/* ================================================================
   layout.css — Navbar, Sections, Footer, Responsive
   PakAnonymous.org
   ================================================================ */

/* ── NAVBAR ────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  z-index: 1000;
  transition: background 0.38s ease, box-shadow 0.38s ease, border-color 0.38s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: var(--nav-blur-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: var(--nav-shadow);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.navbar-links button {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none; border: none;
  cursor: pointer; padding: 0;
  transition: color 0.22s;
}
.navbar-links button:hover { color: var(--gold); }

.navbar-auth { display: flex; align-items: center; gap: 0.875rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  background: none; border: none;
  cursor: pointer;
}
.hamburger span { display: block; width: 21px; height: 1.5px; background: var(--text); transition: var(--transition); }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 66px; left: 0; right: 0;
  background: var(--nav-blur-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 0;
  animation: drawerSlide 0.28s ease;
  box-shadow: var(--nav-shadow);
}
.mobile-drawer.open { display: flex; }
@keyframes drawerSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.mobile-nav-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none; border: none;
  cursor: pointer;
  padding: 13px 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  width: 100%;
}
.mobile-nav-link:last-of-type { border-bottom: none; }
.mobile-nav-link:hover        { color: var(--gold); }
.mobile-auth-row              { margin-top: 1.25rem; }

@media (max-width: 900px) {
  .navbar-links { display: none; }
  .hamburger    { display: flex; }
}

/* ── HERO ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px clamp(1.25rem, 5vw, 4rem) 80px;
  position: relative;
  overflow: hidden;
}

/* Radial ambient glow */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 18% 45%, var(--gold-alpha) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 82% 22%, rgba(154,114,0,0.05) 0%, transparent 65%);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  #hero::before {
    background:
      radial-gradient(ellipse 70% 55% at 18% 45%, rgba(201,162,39,0.05) 0%, transparent 65%),
      radial-gradient(ellipse 55% 45% at 82% 22%, rgba(201,162,39,0.04) 0%, transparent 65%);
  }
}

/* Decorative rings */
.hero-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  pointer-events: none;
}
.hero-ring-1 { width: 800px; height: 800px; opacity: 0.3; }
.hero-ring-2 { width: 560px; height: 560px; opacity: 0.2; }
.hero-ring-3 { width: 340px; height: 340px; opacity: 0.15; }
@media (prefers-color-scheme: dark) {
  .hero-ring-1 { opacity: 0.5; }
  .hero-ring-2 { opacity: 0.4; }
  .hero-ring-3 { opacity: 0.3; }
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 820px;
  width: 100%;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gold-border);
  background: var(--gold-alpha);
  padding: 6px 16px;
  margin-bottom: 2.25rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  animation: fadeUp 0.85s ease 0.05s both;
}
.hero-badge svg { width: 11px; height: 11px; stroke: var(--gold); fill: none; stroke-width: 2; }

/* Main title */
.hero-title {
  font-size: clamp(3.75rem, 10.5vw, 9rem);
  font-weight: 700;
  line-height: 0.93;
  color: var(--text);
  margin-bottom: 0.875rem;
  animation: fadeUp 0.85s ease 0.2s both;
  letter-spacing: -0.01em;
}
.hero-title-org {
  color: var(--gold);
  font-style: italic;
  display: inline;
  font-size: 0.65em;
  letter-spacing: 0.01em;
}

/* Typewriter */
.hero-typewriter {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.2vw, 2.25rem);
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  animation: fadeUp 0.85s ease 0.35s both;
}
.hero-typewriter .tw-label { font-style: italic; }
.hero-typewriter .tw-word  { color: var(--gold); font-weight: 500; }

/* Sub */
.hero-sub {
  font-size: clamp(0.86rem, 1.8vw, 0.97rem);
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 2.75rem;
  font-weight: 300;
  line-height: 1.95;
  animation: fadeUp 0.85s ease 0.5s both;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
  animation: fadeUp 0.85s ease 0.65s both;
}

/* Stats strip */
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border);
  max-width: 560px;
  margin: 0 auto;
  animation: fadeUp 0.85s ease 0.85s both;
}
.hero-stat-val {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.hero-stat-lbl {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 5px;
  display: block;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--text-faint);
  cursor: pointer; background: none; border: none;
  animation: scrollFloat 3s ease-in-out infinite;
  transition: color 0.2s;
}
.scroll-hint:hover { color: var(--gold); }
.scroll-hint span  { font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; }
.scroll-hint svg   { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
@keyframes scrollFloat {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── ABOUT ─────────────────────────────────────────────────────── */
#about {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-quote {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
}

.about-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.95;
  font-weight: 300;
  margin-bottom: 4rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.pillar {
  background: var(--bg-surface);
  padding: 2.5rem 2rem;
  transition: background 0.25s;
}
.pillar:hover       { background: var(--bg-hover); }
.pillar-icon        { margin-bottom: 1.1rem; }
.pillar-icon svg    { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.pillar-title       { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--text); }
.pillar-desc        { font-size: 0.86rem; color: var(--text-muted); line-height: 1.85; font-weight: 300; }

@media (max-width: 720px) { .about-pillars { grid-template-columns: 1fr; } }

/* ── PROJECTS ──────────────────────────────────────────────────── */
#projects {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--bg);
}

.section-header { text-align: center; margin-bottom: 4.5rem; }
.section-header .section-title { margin-bottom: 0; }
.section-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 420px;
  margin: 1rem auto 0;
  font-weight: 300;
  line-height: 1.85;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .projects-grid { grid-template-columns: 1fr; } }

/* ── STATS / IMPACT ────────────────────────────────────────────── */
#impact {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.impact-header { text-align: center; margin-bottom: 4rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 4.5rem;
}
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── CONTACT ───────────────────────────────────────────────────── */
#contact {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 3rem; } }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-icon {
  width: 40px; height: 40px;
  background: var(--gold-alpha);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.contact-info-lbl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 2px; font-weight: 600; }
.contact-info-val { font-size: 0.88rem; color: var(--text-secondary); font-weight: 300; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

/* Cloudflare Turnstile widget container */
.cf-turnstile {
  min-height: 65px;
  overflow: visible;
}
.cf-turnstile iframe {
  border: none !important;
  display: block;
}

/* ── FOOTER ────────────────────────────────────────────────────── */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: clamp(3rem, 7vw, 5rem) 0 1.75rem;
  /* Pin footer text to dark palette regardless of system theme */
  color: #9A9590;
}

footer .logo-brand { color: #EDE9E2 !important; }
footer .logo-tld   { color: var(--gold) !important; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.footer-tagline {
  font-size: 0.83rem;
  color: #4A4640;
  line-height: 1.85;
  max-width: 250px;
  font-weight: 300;
  margin: 1.25rem 0 1.75rem;
}

.footer-socials { display: flex; gap: 8px; }
.social-link {
  width: 34px; height: 34px;
  background: #111111;
  border: 1px solid #222222;
  display: flex; align-items: center; justify-content: center;
  color: #484440;
  transition: var(--transition);
  text-decoration: none;
}
.social-link svg   { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.social-link:hover { border-color: var(--gold); color: var(--gold); }

/* Coming-soon state (e.g. X) */
.social-coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: #111111;
  border: 1px solid #222222;
  color: #484440;
  position: relative;
  opacity: 0.38;
  cursor: not-allowed;
  flex-shrink: 0;
}
.social-coming-soon:hover { border-color: #222222 !important; color: #484440 !important; }
.social-coming-soon::after {
  content: 'Coming soon';
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #787470;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 4px 9px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}
.social-coming-soon:hover::after { opacity: 1; }

.footer-col-title {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a,
.footer-links button {
  font-size: 0.83rem; color: #484440; font-weight: 300;
  background: none; border: none; cursor: pointer;
  padding: 0; text-align: left; font-family: var(--sans);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid #161514;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy  { font-size: 0.72rem; color: #383530; font-weight: 300; }
.footer-heart {
  font-size: 0.72rem; color: #383530; font-weight: 300;
  display: flex; align-items: center; gap: 5px;
}
.footer-heart svg { width: 11px; height: 11px; stroke: var(--gold); fill: var(--gold); }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { height: 58px; padding: 0 1rem; }
  .mobile-drawer { top: 58px; }

  #hero { padding: 95px 1rem 60px; }
  .hero-ring-1 { width: 480px; height: 480px; }
  .hero-ring-2 { width: 330px; height: 330px; }
  .hero-ring-3 { width: 200px; height: 200px; }
  .hero-title  { font-size: clamp(2.8rem, 9vw, 4rem); }
  .hero-typewriter { font-size: clamp(1.1rem, 3.5vw, 1.4rem); min-height: 2.5rem; }
  .hero-sub    { margin-bottom: 2.5rem; }
  .hero-buttons { margin-bottom: 3rem; }
  .hero-buttons .btn { padding: 12px 22px; font-size: 0.72rem; }
  .hero-stats  { gap: 2rem; padding-top: 2rem; }
  .hero-stat-val { font-size: 1.65rem; }

  #about, #projects, #impact, #contact { padding: 4rem 0; }
  .about-pillars { grid-template-columns: 1fr; }
  .about-quote { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .section-header { margin-bottom: 3rem; }
  .stats-grid { margin-bottom: 3rem; }
  .stat-card  { padding: 1.75rem 1rem; }
  .stat-value { font-size: 2.25rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-heart  { justify-content: center; }
}

@media (max-width: 480px) {
  .navbar { height: 54px; }
  .mobile-drawer { top: 54px; }

  #hero { padding: 85px 0.875rem 50px; }
  .hero-ring-1 { width: 340px; height: 340px; }
  .hero-ring-2 { width: 240px; height: 240px; }
  .hero-ring-3 { width: 150px; height: 150px; }
  .hero-title  { font-size: 2.25rem; }
  .hero-title-org { font-size: 1.6rem; }
  .hero-typewriter { font-size: 0.95rem; gap: 6px; }
  .hero-buttons {
    flex-direction: column; align-items: center;
    width: 100%; max-width: 260px; margin: 0 auto 2.5rem;
  }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 260px;
  }
  .hero-stat-val { font-size: 1.4rem; }
  .hero-stat-lbl { font-size: 0.56rem; }

  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .contact-info-item { gap: 0.875rem; }
  .footer-tagline { max-width: none; }
  .footer-socials { justify-content: flex-start; }

  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; justify-content: center; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.9rem; }
  .hero-title-org { font-size: 1.4rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .about-quote { font-size: 1.3rem; }
}

@media (min-width: 1440px) {
  .section-inner { max-width: 1260px; }
  .hero-inner    { max-width: 900px; }
  .hero-title    { font-size: 9.5rem; }
}
