/* ==========================================================================
   MEGHANA PALAGANI — PREMIUM EDITORIAL PORTFOLIO STYLESHEET
   Warm Ivory, Cream, Beige, Charcoal, Muted Purple, Subtle Sage & Terracotta
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & ROOT VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Surface & Canvas Colors */
  --paper: #f6f1e8;          /* Warm Ivory Canvas */
  --paper-warm: #eee6d8;     /* Slightly deeper ivory for contrast */
  --cream: #fdfbf7;          /* Card & Surface Pure Cream */
  --cream-alt: #faf5ec;      /* Sub-card alternate cream */
  
  /* Text & Ink Colors */
  --ink: #1f1d19;            /* Deep Charcoal Ink */
  --ink-soft: #38342c;       /* Readable secondary charcoal */
  --muted: #6e675b;          /* Warm Muted Tone */
  --muted-light: #91897b;    /* Hairline captions */

  /* Hairlines & Borders */
  --line: #ded4c3;           /* Thin hairline border */
  --line-strong: #c8bcab;    /* Emphasized border */
  --line-subtle: #ece5d8;    /* Very soft divider */

  /* Curated Editorial Accents */
  --purple: #584474;         /* Muted Imperial Purple */
  --purple-hover: #45335d;   /* Darker Purple */
  --purple-soft: #efe9f7;    /* Pastel Purple for tags */
  --purple-border: #d4c5ea;  /* Purple border */

  --sage: #4f6d54;           /* Subtle Muted Sage */
  --sage-soft: #e5eee6;      /* Soft Sage surface */
  --sage-border: #bdd3bf;    /* Sage border */

  --orange: #ba6030;         /* Restrained Warm Terracotta / Orange */
  --orange-soft: #fbeee6;    /* Soft terracotta tint */
  --orange-border: #edd1c2;  /* Terracotta border */

  --slate: #3b5066;          /* Deep Architectural Slate */
  --slate-soft: #e7eff6;     /* Slate tint */

  /* Warm Gold Accents */
  --gold: #d4a359;           /* Warm Editorial Gold */
  --gold-hover: #b8873f;     /* Deep Gold for hover states */
  --gold-light: #f6ecdb;     /* Soft gold cream */
  --gold-glow: rgba(212, 163, 89, 0.28);
  --gold-border: rgba(212, 163, 89, 0.35);

  /* Dark Charcoal Surfaces */
  --charcoal-bg: #141217;    /* Deep Charcoal/Plum background */
  --charcoal-card: #1c1922;  /* Dark card surface */
  --charcoal-surface: #25212d;/* Elevated dark surface */
  --charcoal-border: rgba(255, 255, 255, 0.1);
  
  /* Typography Stacks */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'DM Mono', monospace;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 6px rgba(35, 30, 20, 0.04);
  --shadow-md: 0 8px 24px rgba(35, 30, 20, 0.07);
  --shadow-lg: 0 16px 40px rgba(35, 30, 20, 0.11);
  --shadow-purple: 0 12px 30px rgba(88, 68, 116, 0.15);

  /* Transitions */
  --trans-fast: 0.18s cubic-bezier(0.2, 0, 0, 1);
  --trans-base: 0.28s cubic-bezier(0.2, 0, 0, 1);
  --trans-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Curated Text Gradients */
.gold-accent-text {
  background: linear-gradient(135deg, var(--gold) 0%, #ecd29b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-serif);
  font-style: italic;
}

.purple-gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, #8258b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-serif);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   02. RESET & GLOBAL RESETS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtly textured background overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 10% 10%, rgba(88, 68, 116, 0.015) 0%, transparent 40%),
                    radial-gradient(circle at 90% 90%, rgba(186, 96, 48, 0.015) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  z-index: 1000;
  transition: top var(--trans-fast);
}

.skip-link:focus {
  top: 15px;
  outline: 2px solid var(--purple);
}

/* --------------------------------------------------------------------------
   03. TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
}

.name-serif {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  color: var(--purple);
  letter-spacing: -0.02em;
}

.serif-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--purple);
}

.editorial-heading {
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 600;
}

.section-subtext {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 10px;
}

/* Section Kicker Bar */
.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--purple);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.kicker-num {
  font-weight: 700;
}

.kicker-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: var(--purple-border);
}

/* --------------------------------------------------------------------------
   04. TOPBAR / HEADER NAVIGATION
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgba(246, 241, 232, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transition: background var(--trans-base), height var(--trans-base);
}

.topbar-container {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.brand-monogram {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.brand-dot {
  font-size: 1.6rem;
  color: var(--purple);
  font-weight: 700;
  line-height: 0;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-left: 8px;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--purple);
  transition: width var(--trans-base);
}

.nav-link:hover {
  color: var(--purple);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--purple);
  font-weight: 600;
}

.nav-resume-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--purple);
  background-color: var(--purple-soft);
  border: 1px solid var(--purple-border);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all var(--trans-fast);
  text-decoration: none;
}

.nav-resume-link:hover {
  background-color: var(--purple);
  color: #ffffff;
  border-color: var(--purple);
  transform: translateY(-1px);
}

.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--ink);
  border: 1px solid var(--ink);
  padding: 7px 18px;
  border-radius: 20px;
  transition: all var(--trans-fast);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(31, 29, 25, 0.08);
}

.nav-cta:hover {
  background-color: var(--purple);
  border-color: var(--purple);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 68, 116, 0.2);
}

/* Mobile Hamburger Button */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.hamburger-box {
  width: 20px;
  height: 14px;
  position: relative;
  display: inline-block;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  position: absolute;
  transition: transform var(--trans-fast), top var(--trans-fast);
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: "";
  top: -6px;
}

.hamburger-inner::after {
  content: "";
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   05. BUTTONS & SHARED CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--trans-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: 0 4px 12px rgba(31, 29, 25, 0.12);
}

.btn-primary:hover {
  background-color: var(--purple);
  border-color: var(--purple);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.btn-outline {
  background-color: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
  background-color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid transparent;
  padding: 13px 18px;
}

.btn-ghost:hover {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-icon {
  flex-shrink: 0;
  transition: transform var(--trans-fast);
}

.btn:hover .btn-icon {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   06. SECTION WRAPPER & CONTAINER
   -------------------------------------------------------------------------- */
.section {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 6%;
}

.section-head {
  margin-bottom: 52px;
}

/* --------------------------------------------------------------------------
   07. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 80px;
  padding-bottom: 95px;
  background: linear-gradient(180deg, var(--paper) 0%, #f9f5ee 100%);
  overflow: hidden;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 6%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
}

/* Left Hero Copy */
.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.hero-greeting {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: block;
}

.name-serif {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--ink);
  display: block;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.tag-divider {
  color: var(--line-strong);
  font-weight: 400;
}

.hero-intro {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 550px;
  margin-bottom: 28px;
}

/* Meta Strip */
.hero-meta-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  padding: 14px 20px;
  border-radius: 4px;
  margin-bottom: 34px;
  max-width: 550px;
  box-shadow: var(--shadow-sm);
}

.meta-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  font-size: 0.84rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--purple);
  font-weight: 600;
  min-width: 110px;
}

.meta-val {
  color: var(--ink);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--line-subtle);
}

.social-prefix {
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--purple);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  padding: 4px 0;
}

.social-link:hover {
  color: var(--purple);
}

.social-location {
  color: var(--muted);
  margin-left: auto;
}

/* Right Hero Visual / Portrait */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.photo-art-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 18px 24px 34px 0;
}

/* Offset decorative frame */
.photo-backdrop-frame {
  position: absolute;
  inset: 0 0 0 28px;
  border: 1px solid var(--line-strong);
  background-color: var(--paper-warm);
  transform: translate(14px, 14px);
  z-index: 0;
  border-radius: 2px;
}

.photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 520px;
  background: #cfc5b4;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-radius: 2px;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Specific crop to frame face and upper torso naturally */
  object-position: 50% 68%;
  filter: saturate(0.92) contrast(1.02);
  transition: transform var(--trans-smooth), filter var(--trans-smooth);
}

.photo-frame:hover .portrait-img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.04);
}

.photo-overlay-border {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 2;
}

/* Floating Editorial Callout Card */
.photo-floating-card {
  position: absolute;
  bottom: -16px;
  left: -20px;
  z-index: 3;
  background-color: var(--cream);
  border: 1px solid var(--line);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  border-radius: 4px;
  border-left: 3px solid var(--purple);
}

.floating-asterisk {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--purple);
}

.floating-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.floating-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.floating-text span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   08. ABOUT ME SECTION
   -------------------------------------------------------------------------- */
.about {
  background-color: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.about-lead {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.editorial-quote-box {
  background-color: var(--paper);
  border-left: 3px solid var(--purple);
  padding: 24px 28px;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
}

.about-body p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.about-body .lead-paragraph {
  font-size: 1.18rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.7;
}

.about-body strong {
  color: var(--purple);
}

/* Inspirational Growth Section: Curiosity Into Capability */
.inspirational-timeline-wrap {
  margin-top: 55px;
  background: linear-gradient(145deg, #18151f 0%, #121017 100%);
  border: 1px solid rgba(212, 163, 89, 0.22);
  border-radius: 8px;
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 0 14px 40px rgba(18, 16, 23, 0.4);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

/* Background watermark typography for subtle aesthetic depth */
.inspirational-timeline-wrap::after {
  content: "IMPACT";
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  letter-spacing: 0.05em;
  pointer-events: none;
  user-select: none;
}

.timeline-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.timeline-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.timeline-headline {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.timeline-subline {
  font-size: 0.98rem;
  color: #b8b2c4;
  line-height: 1.6;
  margin: 0 auto;
}

/* 3-Stage Connected Stepper Grid on Desktop */
.growth-stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Horizontal connector line behind stage indicator dots on desktop */
.growth-stages-grid::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 17%;
  right: 17%;
  height: 2px;
  background: linear-gradient(90deg, rgba(212, 163, 89, 0.25) 0%, rgba(212, 163, 89, 0.7) 50%, rgba(212, 163, 89, 0.25) 100%);
  z-index: 0;
  pointer-events: none;
}

.growth-stage-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.stage-track-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.stage-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #17151a;
  border: 3px solid var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.growth-stage-card:hover .stage-dot {
  transform: scale(1.2);
  box-shadow: 0 0 16px rgba(212, 163, 89, 0.6);
}

.stage-line {
  display: none;
}

.stage-card-inner {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  transition: transform var(--trans-base), border-color var(--trans-base), box-shadow var(--trans-base), background-color var(--trans-base);
}

.growth-stage-card:hover .stage-card-inner {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), var(--gold-glow);
}

.stage-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-step-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(212, 163, 89, 0.12);
  border: 1px solid rgba(212, 163, 89, 0.28);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.stage-num-gold {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.85;
}

.stage-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.stage-desc {
  font-size: 0.88rem;
  color: #b8b2c4;
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.stage-pill-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #d8cfe2;
  background: rgba(88, 68, 116, 0.35);
  border: 1px solid rgba(130, 88, 179, 0.25);
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 500;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   09. EDUCATION SECTION
   -------------------------------------------------------------------------- */
.education {
  background-color: var(--paper);
}

.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.edu-card {
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 34px 38px;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.edu-card.featured-edu {
  border-left: 4px solid var(--purple);
  box-shadow: var(--shadow-sm);
}

.edu-card:hover {
  border-color: var(--purple-border);
  box-shadow: var(--shadow-md);
}

.edu-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.edu-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}

.edu-pill.current {
  background-color: var(--purple-soft);
  border-color: var(--purple-border);
  color: var(--purple);
  font-weight: 600;
}

.edu-period {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.edu-main {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}

.edu-degree {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--ink);
}

.edu-major {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 14px;
}

.edu-institute {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
  line-height: 1.4;
}

.edu-institute svg {
  margin-top: 3px;
  color: var(--purple);
  flex-shrink: 0;
}

.edu-location {
  font-size: 0.84rem;
  color: var(--muted);
}

.edu-summary {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.course-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 10px;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-tags span {
  font-size: 0.74rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 5px 10px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   10. TECHNICAL SKILLS SECTION — CATEGORIZED RICH GRID
   -------------------------------------------------------------------------- */
.skills {
  background-color: var(--cream);
}

.skills-grid-rich {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.skill-rich-card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 24px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), border-color var(--trans-fast);
  position: relative;
}

/* 3 cards on top row (each spans 2 of 6 columns) */
.skill-rich-card:nth-child(1),
.skill-rich-card:nth-child(2),
.skill-rich-card:nth-child(3) {
  grid-column: span 2;
}

/* 2 cards on bottom row (each spans 3 of 6 columns) */
.skill-rich-card:nth-child(4),
.skill-rich-card:nth-child(5) {
  grid-column: span 3;
}

.skill-rich-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--purple-border);
}

.skill-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-card-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple);
}

.category-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.learning-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-learning {
  background-color: var(--purple-soft);
  color: var(--purple);
  border: 1px solid var(--purple-border);
}

.badge-exploring {
  background-color: var(--sage-soft);
  color: var(--sage);
  border: 1px solid var(--sage-border);
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge-learning .status-pulse-dot {
  background-color: var(--purple);
}

.badge-exploring .status-pulse-dot {
  background-color: var(--sage);
}

.skill-category-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.skill-category-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.skill-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-subtle);
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--cream);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 20px;
  transition: all var(--trans-fast);
}

.chip-icon {
  color: var(--purple);
  flex-shrink: 0;
}

.skill-rich-card:hover .skill-chip {
  background-color: #ffffff;
  border-color: var(--line-strong);
}

.skill-chip:hover {
  border-color: var(--purple-border) !important;
  color: var(--purple);
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .skills-grid-rich {
    grid-template-columns: repeat(2, 1fr);
  }
  .skill-rich-card:nth-child(1),
  .skill-rich-card:nth-child(2),
  .skill-rich-card:nth-child(3),
  .skill-rich-card:nth-child(4) {
    grid-column: span 1;
  }
  .skill-rich-card:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .skills-grid-rich {
    grid-template-columns: 1fr;
  }
  .skill-rich-card:nth-child(n) {
    grid-column: span 1 !important;
  }
}

/* --------------------------------------------------------------------------
   11. FEATURED PROJECTS SECTION
   -------------------------------------------------------------------------- */
.projects {
  background-color: var(--paper);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 34px;
}

.project-card {
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-base);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-border);
  box-shadow: var(--shadow-md);
}

/* Featured card spans full width across all 3 columns */
.featured-project-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
}

/* Visual Canvas Top/Left Box */
.project-art {
  height: 140px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-project-card .project-art {
  height: 100%;
  min-height: 360px;
}

.art-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.95);
  z-index: 2;
  background: rgba(0, 0, 0, 0.28);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.art-metric-pill {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  font-weight: 600;
}

/* Canvas Styles for Art */
.art-purple {
  background: linear-gradient(135deg, #46345d 0%, #291e38 100%);
}

.art-sage {
  background: linear-gradient(135deg, #3d5842 0%, #223525 100%);
}

.art-terracotta {
  background: linear-gradient(135deg, #8a482b 0%, #522714 100%);
}

.art-slate {
  background: linear-gradient(135deg, #364858 0%, #1e2933 100%);
}

.art-visual-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-core-node {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--paper);
  color: var(--purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 0 8px rgba(246, 241, 232, 0.2), 0 8px 20px rgba(0, 0, 0, 0.25);
}

.core-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.core-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 3px;
}

.qaoa-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.12em;
  text-align: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Project Content Area */
.project-content {
  padding: 26px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.featured-project-card .project-content {
  padding: 34px 36px;
}

.project-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.project-type-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--purple);
  font-weight: 700;
}

.project-status-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
}

.project-status-badge.concept {
  background-color: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
}

.project-status-badge.prototype {
  background-color: var(--sage-soft);
  border: 1px solid var(--sage-border);
  color: var(--sage);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--ink);
  line-height: 1.25;
}

.featured-project-card .project-title {
  font-size: 1.55rem;
}

.project-subtitle {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.45;
}

.project-description {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.62;
  margin-bottom: 16px;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--paper);
  border: 1px solid var(--line-subtle);
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.highlight-item {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.highlight-item strong {
  color: var(--ink);
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.project-tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background-color: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 4px;
}

.project-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ext-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--paper);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all var(--trans-fast);
}

.ext-link:hover {
  background-color: #ffffff;
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.details-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--purple);
  border: 1px solid var(--purple);
  padding: 7px 15px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--trans-fast);
  box-shadow: 0 1px 3px rgba(88, 44, 131, 0.2);
}

.details-btn:hover {
  background-color: var(--purple-hover);
  border-color: var(--purple-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(88, 44, 131, 0.25);
  text-decoration: none;
}

.repo-note {
  font-size: 0.72rem;
  color: var(--muted-light);
  font-style: italic;
}

/* Disclaimer Callout Box */
.disclaimer-callout {
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  padding: 20px 24px;
  border-radius: 2px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
}

.disclaimer-callout svg {
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-callout p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.disclaimer-callout strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   12. EXPERIENCE & PROGRAMMES SECTION
   -------------------------------------------------------------------------- */
.experience {
  background-color: var(--cream);
}

/* Working Filter Bar for Experience & Leadership */
.exp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 38px;
  align-items: center;
}

.exp-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--trans-fast);
  min-height: 44px;
  white-space: nowrap;
  user-select: none;
}

.exp-filter-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
  background-color: #ffffff;
  transform: translateY(-1px);
}

.exp-filter-btn.active {
  background-color: var(--purple);
  border-color: var(--purple);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(88, 68, 116, 0.25);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
  transition: all var(--trans-fast);
}

.exp-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.experience-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}

.exp-item {
  display: grid;
  grid-template-columns: 220px 1fr 40px;
  align-items: flex-start;
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color var(--trans-fast), padding-left var(--trans-fast);
}

.exp-item.filter-hidden {
  display: none !important;
}

.exp-item:hover {
  background-color: rgba(246, 241, 232, 0.4);
  padding-left: 14px;
}

.exp-date-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-year {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--purple);
  font-weight: 600;
}

.exp-nature {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.exp-content-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-header-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.exp-org {
  font-size: 0.92rem;
  color: var(--purple);
  font-weight: 600;
}

.exp-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.exp-tags span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background-color: var(--paper);
  border: 1px solid var(--line-subtle);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 2px;
}

.exp-arrow-col {
  font-size: 1.3rem;
  color: var(--line-strong);
  text-align: right;
  transition: color var(--trans-fast), transform var(--trans-fast);
}

.exp-item:hover .exp-arrow-col {
  color: var(--purple);
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   13. CERTIFICATIONS SECTION
   -------------------------------------------------------------------------- */
.certifications {
  background-color: var(--paper);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert-card {
  background-color: var(--cream);
  border: 1px solid var(--line);
  padding: 28px 24px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple-border);
  box-shadow: var(--shadow-sm);
}

.cert-card.verified-cert {
  border-left: 3px solid var(--sage);
  background: linear-gradient(180deg, var(--cream) 0%, #f6faf6 100%);
}

.cert-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}

.verified-cert .cert-badge-icon {
  color: var(--sage);
  background-color: var(--sage-soft);
  border-color: var(--sage-border);
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--purple);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.verified-cert .cert-issuer {
  color: var(--sage);
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
}

.cert-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.cert-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cert-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 2px;
}

.cert-tag.verified {
  background-color: var(--sage-soft);
  border-color: var(--sage-border);
  color: var(--sage);
  font-weight: 600;
}
/* --------------------------------------------------------------------------
   14. CONTACT SECTION (07 — LET'S CONNECT & ALTERNATIVE CHANNELS)
   -------------------------------------------------------------------------- */
.contact {
  background-color: var(--cream);
  padding-bottom: 95px;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
  margin-top: 10px;
}

/* Left Column: Contact Introduction */
.contact-intro-col {
  display: flex;
  flex-direction: column;
}

.contact-section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--purple);
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.contact-main-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.contact-intro-desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

/* Four Compact Contact-Purpose Items */
.contact-purpose-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 30px;
}

.purpose-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.purpose-item:hover {
  border-color: var(--purple-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.purpose-icon {
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.purpose-content {
  display: flex;
  flex-direction: column;
}

.purpose-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.purpose-sub {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}

/* Right Column: Modern Contact Form Card (Dark Theme + Gold Accents) */
.contact-form-col {
  display: flex;
  flex-direction: column;
}

.contact-card-box {
  background: #17151a;
  border: 1px solid rgba(212, 163, 89, 0.28);
  border-radius: 8px;
  padding: clamp(26px, 4.5vw, 44px);
  box-shadow: 0 16px 45px rgba(18, 16, 23, 0.45);
  color: var(--cream);
  position: relative;
}

.form-card-header {
  margin-bottom: 24px;
}

.form-heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.form-subtext {
  font-size: 0.88rem;
  color: #b6b0c2;
  line-height: 1.5;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ded8e8;
  letter-spacing: 0.01em;
}

.required-star {
  color: var(--gold);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #0d0b10;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #ffffff;
  outline: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast), background-color var(--trans-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #6a6375;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 163, 89, 0.2);
  background: #110e14;
}

.form-input.input-invalid,
.form-select.input-invalid,
.form-textarea.input-invalid {
  border-color: #e25c5c;
  box-shadow: 0 0 0 2px rgba(226, 92, 92, 0.25);
}

.form-field-error {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fca5a5;
  min-height: 16px;
  margin-top: 2px;
}

.form-select option {
  background: #17151a;
  color: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 105px;
}

/* Prominent Gold Send Message Button */
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--gold) 0%, #ba893f 100%);
  color: #17151a;
  border: 1px solid var(--gold);
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--trans-fast);
  box-shadow: 0 4px 14px rgba(212, 163, 89, 0.3);
  min-height: 48px;
  margin-top: 6px;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 163, 89, 0.45);
  filter: brightness(1.06);
}

.contact-submit-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.btn-send-icon {
  transition: transform var(--trans-fast);
}

.contact-submit-btn:hover .btn-send-icon {
  transform: translate(3px, -2px);
}

.contact-submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(23, 21, 26, 0.3);
  border-top-color: #17151a;
  border-radius: 50%;
  animation: btnSpin 0.75s linear infinite;
}

.contact-submit-btn.loading .btn-spinner {
  display: inline-block;
}

.contact-submit-btn.loading .btn-send-icon {
  display: none;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

.form-status-alert {
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 16px;
  display: none;
}

.form-status-alert.success {
  background: rgba(79, 109, 84, 0.22);
  border: 1px solid var(--sage-border);
  color: #bfe5c5;
}

.form-status-alert.error {
  background: rgba(226, 92, 92, 0.16);
  border: 1px solid rgba(226, 92, 92, 0.4);
  color: #fecaca;
}

.form-status-alert.info {
  background: rgba(88, 68, 116, 0.3);
  border: 1px solid rgba(212, 163, 89, 0.35);
  color: #f3ecfb;
}

.form-integrity-note {
  font-size: 0.76rem;
  color: #8c8596;
  text-align: center;
  margin-top: 14px;
}

/* ==========================================================================
   NEW QUICK CONTACT SECTION: Prefer Another Way to Connect?
   Exact Theme Match: Dark Background (#17151a), Gold Accents, Clean 2x2 Grid
   ========================================================================== */
.quick-alt-connect-wrap {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.quick-alt-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 32px;
}

.quick-alt-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.quick-alt-subtext {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.6;
}

.quick-alt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.quick-alt-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #17151a;
  border: 1px solid rgba(212, 163, 89, 0.28);
  border-radius: 8px;
  color: #ded8e8;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(18, 16, 23, 0.35);
  transition: transform var(--trans-fast), border-color var(--trans-fast), background-color var(--trans-fast), box-shadow var(--trans-fast);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  box-sizing: border-box;
}

.quick-alt-card:hover {
  background: #1e1b23;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 163, 89, 0.18);
  color: #ffffff;
}

.quick-alt-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.quick-alt-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(212, 163, 89, 0.12);
  border: 1px solid rgba(212, 163, 89, 0.28);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--trans-fast), color var(--trans-fast);
}

.quick-alt-card:hover .quick-alt-icon-wrap {
  background: var(--gold);
  color: #17151a;
}

.quick-alt-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
  overflow: hidden;
}

.quick-alt-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.quick-alt-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #ded8e8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-alt-arrow {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  transition: transform var(--trans-fast);
  flex-shrink: 0;
}

.quick-alt-card:hover .quick-alt-arrow {
  transform: translate(2px, -2px);
}

.quick-alt-action-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(212, 163, 89, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  transition: all var(--trans-fast);
  flex-shrink: 0;
}

.quick-alt-card:hover .quick-alt-action-tag {
  background: var(--gold);
  color: #17151a;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--paper);
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.76rem;
  color: var(--muted);
  gap: 4px;
  text-align: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted-light);
}

.footer-right {
  display: flex;
  align-items: center;
}

.back-to-top {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background-color: var(--cream);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--trans-fast);
  text-decoration: none;
}

.back-to-top:hover {
  border-color: var(--purple);
  background-color: var(--purple-soft);
  color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(88, 68, 116, 0.12);
}

/* --------------------------------------------------------------------------
   16. TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--trans-base), transform var(--trans-base);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   17. MODAL DIALOG
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 22, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--trans-base), visibility var(--trans-base);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform var(--trans-smooth);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 2;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--purple);
  font-weight: 700;
}

.modal-close-btn {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.modal-close-btn:hover {
  color: var(--ink);
  background-color: var(--line-subtle);
}

.modal-body {
  padding: 28px;
}

.modal-body h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.modal-diagram-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  padding: 18px;
  margin: 18px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--ink-soft);
  overflow-x: auto;
}

.modal-body ul {
  padding-left: 20px;
  margin: 14px 0 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   18. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .photo-frame {
    height: 460px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .featured-project-card {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .featured-project-card .project-art {
    min-height: 250px;
  }

  .edu-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards-grid {
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .topbar-container {
    padding: 0 5%;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 24px 7%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--trans-smooth), opacity var(--trans-base);
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  .section {
    padding: 70px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  /* Refined Vertical Timeline on Tablet & Mobile */
  .growth-stages-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 32px;
    position: relative;
  }

  .growth-stages-grid::before {
    top: 16px;
    bottom: 16px;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--gold) 0%, var(--purple) 100%);
  }

  .stage-track-indicator {
    position: absolute;
    left: -32px;
    top: 22px;
    margin-bottom: 0;
  }

  .stage-dot {
    width: 16px;
    height: 16px;
  }

  .skills-grid-rich,
  .skills-grid-clean,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .featured-project-card {
    grid-column: span 1;
  }

  /* Responsive Experience & Leadership Section */
  .exp-filter-bar {
    width: 100%;
    gap: 8px;
  }

  .exp-filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    min-height: 40px;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .exp-date-col {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .exp-arrow-col {
    display: none;
  }

  /* Contact Section: Two Columns to Single Column on Tablet & Mobile */
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .quick-alt-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .strengths-list {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .footer-center {
    order: 2;
  }

  .footer-right {
    order: 3;
  }
}

@media (max-width: 580px) {
  .topbar {
    height: 70px;
  }

  .nav {
    top: 70px;
  }

  .hero {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-tagline {
    font-size: 1rem;
    flex-wrap: wrap;
  }

  .photo-art-container {
    padding: 10px 10px 25px 0;
  }

  .photo-frame {
    height: 380px;
  }

  .photo-floating-card {
    left: -10px;
    bottom: -15px;
    padding: 10px 14px;
  }

  .vertical-editorial-label {
    display: none;
  }

  .inspirational-timeline-wrap {
    padding: 24px 16px;
  }

  .timeline-headline {
    font-size: 1.75rem;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* Contact Section Mobile Refinements */
  .contact-card-box {
    padding: 24px 18px;
  }

  .contact-purpose-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quick-alt-connect-wrap {
    margin-top: 45px;
    padding-top: 36px;
  }

  .quick-alt-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .quick-alt-icon-wrap {
    width: 38px;
    height: 38px;
  }

  .quick-alt-label {
    font-size: 0.82rem;
  }

  .quick-alt-val {
    font-size: 0.78rem;
  }

  .contact-card {
    padding: 22px 18px;
  }

  .contact-main-heading {
    font-size: 2.1rem;
  }

  .contact-email-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-copy-btn {
    width: 100%;
    justify-content: center;
  }

  .contact-actions-bar {
    flex-direction: column;
    width: 100%;
  }

  .contact-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   20. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   21. SCROLL PROGRESS BAR & RECRUITER ADDITIONS
   -------------------------------------------------------------------------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple) 0%, var(--orange) 100%);
  z-index: 9999;
  transition: width 0.06s ease-out;
  pointer-events: none;
}

.nav-resume-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--purple);
  padding: 5px 11px;
  border: 1px dashed var(--purple-border);
  border-radius: 4px;
  transition: all var(--trans-fast);
  font-weight: 600;
}

.nav-resume-link:hover {
  background-color: var(--purple-soft);
  color: var(--purple);
  border-style: solid;
  transform: translateY(-1px);
}

.tab-count {
  display: inline-block;
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  margin-left: 5px;
  vertical-align: middle;
  font-weight: 600;
}

.skill-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.resume-channel-link {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  font-weight: 600;
}

.resume-channel-link:hover {
  background: #ffffff !important;
  color: var(--purple) !important;
  border-color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   22. PRINT STYLESHEET
   -------------------------------------------------------------------------- */
@media print {
  .topbar, .menu-toggle, .scroll-progress-bar, .skip-link, .modal-backdrop, .toast, .back-to-top, .details-btn {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .section {
    page-break-inside: avoid;
    padding: 24px 0 !important;
  }
}

