*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #102A2A;
  --surface:   #163636;
  --surface2:  #122f2f;
  --border:    rgba(148, 163, 184, 0.12);
  --accent:    #5EEAD4;
  --accent-dim:#3ecfb8;
  --muted:     #9FB7B9;
  --muted2:    #6B8C8E;
  --text:      #E6FFFA;
  --text-soft: #B2CECE;
  --glow:      rgba(94, 234, 212, 0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 42, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: padding 0.3s ease;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.nav-logo span {
  color: var(--accent);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links volunteering-a, .nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

/* ══════════════════════════════════════
   PAGE SYSTEM
══════════════════════════════════════ */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 5rem;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.45s ease forwards;
}

.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   HOME PAGE
══════════════════════════════════════ */
.hero {
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 3rem;
  max-width: 820px;
  margin: 0 auto;
  position: relative; /* Moved from inline style */
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.6rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--text-soft);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 0.9rem;
  line-height: 1.75;
}

.hero-whisper {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--muted2);
  letter-spacing: 0.06em;
  margin-bottom: 2.8rem;
  font-style: italic;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(94, 234, 212, 0.22);
  padding: 0.75rem 1.6rem;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glow);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  border-color: rgba(94, 234, 212, 0.45);
  color: var(--text);
}

.btn-primary svg {
  transition: transform 0.2s ease;
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 0.8rem;
  align-self: flex-start;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: transparent;
  color: var(--accent);
  border-color: rgba(94, 234, 212, 0.4);
}

.btn-secondary svg { transition: transform 0.2s ease; }
.btn-secondary:hover svg { transform: translateX(3px); }
.btn-secondary svg.arrow-icon { margin-left: 2px; } /* Moved from inline style */

/* Decorative vertical line */
.hero-deco {
  position: absolute;
  right: 6rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.25;
}

.hero-deco-line {
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.hero-deco-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── SECTION WRAPPERS ── */
.section {
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

/* ══════════════════════════════════════
   PRODUCTS PAGE
══════════════════════════════════════ */
.projects-header {
  margin-bottom: 1rem;
}

.projects-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.75rem;
}

/* Cleaned inline styles from index.html */
.projects-title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--text-soft);
}

.projects-desc {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 3.5rem;
  border: 1px solid var(--border);
}

/* ── Accordion card ── */
.project-card {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.project-card:last-child { border-bottom: none; }

.project-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover { background: var(--surface2); }
.project-card:hover::before { opacity: 0.5; }

.project-card.open {
  background: var(--surface2);
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.15), 0 0 24px rgba(94, 234, 212, 0.04);
}

.project-card.open::before { opacity: 1; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
}

.card-header-left { flex: 1; }

.card-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--muted2);
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.card-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.55;
}

.card-chevron {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted2);
  transition: transform 0.35s ease, color 0.25s ease;
}

.project-card.open .card-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.card-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s ease;
}

.project-card.open .card-body { grid-template-rows: 1fr; }

.card-body-inner {
  overflow: hidden;
  min-height: 0;
}

.card-body-content {
  padding: 0 2.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s;
}

.project-card.open .card-body-content {
  opacity: 1;
  transform: translateY(0);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 520px;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted2);
  letter-spacing: 0.08em;
}

.card-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.9; }
}

.projects-more {
  margin-top: 2.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--muted2);
  font-style: italic;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════ */
.about-body {
  max-width: 600px;
}

.about-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

.about-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-text strong {
  color: var(--text-soft);
  font-weight: 400;
}

.about-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

.about-creator {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted2);
  letter-spacing: 0.08em;
}

.about-creator span { color: var(--muted); }

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: gap 0.2s ease, opacity 0.2s ease;
  border-bottom: 1px solid rgba(45, 212, 191, 0.2);
  padding-bottom: 2px;
}

.about-link:hover {
  gap: 0.8rem;
  opacity: 0.85;
}

/* ══════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════ */
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.contact-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.feedback-section { margin-top: 1rem; }

.feedback-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 1rem;
  display: block;
}

.feedback-textarea {
  width: 100%;
  max-width: 480px;
  min-height: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  padding: 1rem 1.2rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
  line-height: 1.65;
}

.feedback-textarea::placeholder { color: var(--muted2); }
.feedback-textarea:focus { border-color: rgba(45, 212, 191, 0.35); }

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.25);
  padding: 0.65rem 1.4rem;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Instrument Sans', sans-serif;
}

.feedback-btn:hover {
  background: var(--glow);
  border-color: rgba(94, 234, 212, 0.5);
}

.feedback-hint {
  margin-top: 1.25rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--muted2);
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-left {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted2);
  font-style: italic;
}

.footer-right {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--muted2);
  letter-spacing: 0.1em;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 1px;
  background: var(--muted);
  transition: all 0.25s ease;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { padding: 1rem 1.5rem; }
  .hero { padding: 0 1.5rem; }
  .section { padding: 3.5rem 1.5rem; }
  .footer { padding: 1.5rem; }
  .hero-deco { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(11, 46, 43, 0.97);
    backdrop-filter: blur(14px);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .feedback-textarea { max-width: 100%; }
}
