/* =============================================
   BENINA KUSARI — PORTFOLIO
   Palette: Navy / Ivory / Gold
   Type: Playfair Display + Inter
   ============================================= */

/* --- TOKENS --- */
:root {
  --navy:      #1C2B3A;
  --navy-mid:  #253647;
  --gold:      #B8953F;
  --gold-light:#D4AF6A;
  --ivory:     #F7F4EE;
  --ivory-dim: #EDE9E0;
  --grey:      #6B7B8D;
  --grey-light:#9AAAB8;
  --white:     #FFFFFF;
  --text:      #1C2B3A;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --max-w: 1100px;
  --section-pad: 5rem 1.5rem;
  --radius: 6px;

  --transition: 0.3s ease;
}

.nav-logo-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--gold);
}

.hero-top {
  display: flex;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 0;
}
.hero-text {
  flex: 1;
}
.hero-photo {
  width: 260px;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .hero-top { flex-direction: column-reverse; align-items: flex-start; gap: 1.5rem; }
  .hero-photo { width: 140px; height: 170px; }
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.2; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; margin-bottom: 2.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
em { font-style: italic; }

.section-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

/* --- LAYOUT --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   NAV
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition);
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100dvh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* subtle texture overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(184,149,63,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(28,43,58,0.6) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero-name {
  font-family: var(--ff-display);
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.6rem;
}
.hero-name em {
  color: var(--gold-light);
  font-style: italic;
}

/* THE SIGNATURE ELEMENT — animated gold rule */
.hero-rule-wrap {
  margin-bottom: 2rem;
  overflow: hidden;
  height: 2px;
  width: min(420px, 100%);
}
.hero-rule {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
  width: 100%;
  transform: translateX(-100%);
  animation: drawRule 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
@keyframes drawRule {
  to { transform: translateX(0); }
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.75;
  font-weight: 300;
}
.br-desk { display: none; }
@media (min-width: 640px) { .br-desk { display: inline; } }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.hero-badges span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  border: 1px solid rgba(184,149,63,0.4);
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  letter-spacing: 0.04em;
}
.hero-scroll:hover { color: var(--gold-light); }

/* =============================================
   ABOUT
   ============================================= */
#about {
  padding: var(--section-pad);
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text h2 { margin-bottom: 1.4rem; }
.about-text p {
  color: #3a4a5a;
  margin-bottom: 1.1rem;
  font-size: 0.97rem;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.stat-card {
  background: var(--ivory);
  border: 1px solid var(--ivory-dim);
  border-left: 3px solid var(--gold);
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius);
}
.stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--grey);
  font-weight: 500;
  line-height: 1.4;
}

/* =============================================
   EXPERIENCE
   ============================================= */
#experience {
  padding: var(--section-pad);
  background: var(--ivory);
}
.timeline {
  position: relative;
  padding-left: 2.2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--ivory-dim));
}
.timeline-item {
  position: relative;
  margin-bottom: 2.8rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.timeline-item.revealed { opacity: 1; transform: none; }
.timeline-dot {
  position: absolute;
  left: -2.2rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
}
.timeline-dot--gold { background: var(--gold); border-color: var(--gold-light); }
.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.timeline-body h3 { margin-bottom: 0.2rem; font-size: 1.15rem; }
.timeline-org {
  font-size: 0.88rem;
  color: var(--grey);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.timeline-body ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: #3a4a5a;
}
.timeline-body ul li {
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  line-height: 1.65;
}
.timeline-body ul li strong { color: var(--navy); }
.timeline-divider {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1rem 0 2rem;
  padding: 0.5rem 0;
  border-top: 1px dashed var(--ivory-dim);
  border-bottom: 1px dashed var(--ivory-dim);
}
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--ff-body);
  background: var(--ivory-dim);
  color: var(--grey);
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 0.4rem;
}

/* =============================================
   PUBLICATIONS
   ============================================= */
#publications {
  padding: var(--section-pad);
  background: var(--navy);
  color: var(--white);
}
#publications .section-label { color: var(--gold-light); }
#publications h2 { color: var(--white); }
.pub-category {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  margin: 2rem 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1rem;
}
.pub-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--gold);
  padding: 1.6rem;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pub-card.revealed { opacity: 1; transform: none; }
.pub-type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.7rem;
}
.pub-card h4 { color: var(--white); margin-bottom: 0.5rem; }
.pub-meta { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 0.3rem; }
.pub-journal { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.pub-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.pub-link:hover { color: var(--white); }

.policy-list { margin-top: 0.5rem; }
.policy-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.policy-item.revealed { opacity: 1; transform: none; }
.policy-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 80px;
  letter-spacing: 0.06em;
}
.policy-title {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
}

/* =============================================
   MEMBERSHIPS
   ============================================= */
#memberships {
  padding: var(--section-pad);
  background: var(--white);
}
.memberships-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 4rem;
}
.membership-card {
  background: var(--ivory);
  border: 1px solid var(--ivory-dim);
  padding: 1.8rem 1.4rem;
  border-radius: var(--radius);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.membership-card.revealed { opacity: 1; transform: none; }
.membership-icon { font-size: 2rem; margin-bottom: 1rem; }
.membership-card h4 { font-size: 0.95rem; margin-bottom: 0.6rem; }
.membership-status {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-light);
}
.membership-status.active { color: var(--gold); }

.education-block {
  border-top: 2px solid var(--ivory-dim);
  padding-top: 3rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.education-block.revealed { opacity: 1; transform: none; }
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.edu-item {
  display: flex;
  gap: 1rem;
  align-items: start;
}
.edu-year {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 52px;
  line-height: 1.2;
}
.edu-item strong { display: block; margin-bottom: 0.2rem; }
.edu-item p { font-size: 0.85rem; color: var(--grey); line-height: 1.5; }

/* =============================================
   CONTACT
   ============================================= */
#contact {
  padding: var(--section-pad);
  background: var(--navy);
  text-align: center;
}
.contact-inner { max-width: 640px; }
#contact .section-label { color: var(--gold-light); }
#contact h2 { color: var(--white); }
.contact-sub {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.contact-btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.contact-btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
}
.contact-btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.languages-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #141f2a;
  padding: 1.4rem 1.5rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pub-grid { grid-template-columns: 1fr; }
  .memberships-grid { grid-template-columns: 1fr 1fr; }
  .edu-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}

@media (max-width: 640px) {
  :root { --section-pad: 3.5rem 1.2rem; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 1.5rem; gap: 1.2rem; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .burger { display: flex; }
  .memberships-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .policy-item { flex-direction: column; gap: 0.25rem; }
  .footer-inner { flex-direction: column; gap: 0.4rem; text-align: center; }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-rule { animation: none; transform: none; }
  .timeline-item, .pub-card, .policy-item,
  .membership-card, .education-block { opacity: 1; transform: none; }
}
