/* ============================================
    layout.css
    Navbar · Hero · Sections · Footer · Responsive
   ============================================ */

/* ── NAVBAR ──────────────────────────────────── */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  animation: navDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

nav.nav-hidden {
  transform: translateX(-50%) translateY(-140%);
  opacity: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--shadow-md);
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  min-width: 92px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease,
  box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  display: block;
}

/* Hover — subtle lift + dim background */
.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 23, 32, 0.05);
  transform: translateY(-1px);
}

/* Active — glowing green pill */
.nav-links a.active {
  color: #fff;
  background: var(--accent);
  box-shadow:
    0 0 8px rgba(0, 129, 79, 0.4),
    0 0 20px rgba(0, 129, 79, 0.2);
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* Stagger each nav link on load */
.nav-links li:nth-child(1) a { animation-delay: 0.3s; }
.nav-links li:nth-child(2) a { animation-delay: 0.35s; }
.nav-links li:nth-child(3) a { animation-delay: 0.4s; }

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 8%;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

/* Green glow behind photo */
.hero::before {
  content: '';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--hero-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-text { position: relative; z-index: 1; }

.hero-greeting {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  animation: fadeUp 0.10s ease 0.2s both;
  overflow: hidden; 
}

.hero-greeting .accent { color: var(--accent); font-weight: 700; }

.hero-role {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 1.4rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-desc {
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 460px;
  margin-bottom: 2rem;
  line-height: 1.75;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* ── HERO IMAGE ── */
.hero-img {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease 0.3s both;
  transition: transform var(--transition);
}

.hero-img:hover { transform: translateY(-10px); }

.hero-img:hover .img-circle {
  box-shadow: var(--photo-ring-hover);
}

.img-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
background: radial-gradient(circle, var(--photo-glow) 0%, transparent 65%);  pointer-events: none;
  z-index: 0;
  transition: all var(--transition);
}

.img-circle {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--accent);
box-shadow: var(--photo-ring);
  position: relative;
  z-index: 1;
  transition: box-shadow var(--transition);
  box-sizing: border-box;
}

.img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── PAGE ARROWS ── */
.scroll-arrows {
  position: fixed;
  right: 2.5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.arrow-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ── SECTIONS ────────────────────────────────── */
.section { padding: 6rem 8%; }
.section-alt { background: var(--bg-alt); }
.page-top { padding-top: 8rem; }

.section-inner {
  max-width: auto;
  margin: 0 auto;
  margin-bottom: 0;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-family: 'Syne', sans-serif;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--text);
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 3rem 8% 2rem;
  width: 100%;
  margin: 0;
  box-sizing: border-box; 
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.footer-sub { color: var(--muted); font-size: 0.85rem; }

.footer-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  border-color: rgba(0,129,79,0.4);
}

.footer-copy {
  max-width: 1100px;
  margin: 0 auto;
  color: #9aa2ab;
  font-size: 0.78rem;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7rem 6% 4rem;
    gap: 3rem;
  }

  .hero::before { display: none; }
  .hero-img { order: -1; }
  .hero-desc { margin: 0 auto 2rem; }
  .social-icons { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .section { padding: 5rem 6%; }
  .page-top { padding-top: 7rem; }
}

@media (max-width: 600px) {
  nav { top: 12px; width: 92%; }

  .nav-links {
    gap: 2px;
    padding: 6px 8px;
    justify-content: center;
      box-shadow: var(--shadow-md);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  }

  .nav-links a { font-size: 0.78rem; padding: 6px 14px; }

  .img-circle { width: 240px; height: 240px; }
  .img-glow   { width: 280px; height: 280px; }

  .scroll-arrows { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 2.5rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.theme-toggle:hover {
  background: var(--hover-bg);
  color: var(--text);
  transform: translateY(-1px);
}
.theme-toggle .icon-moon { display: none; transform: scale(0.9); }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

