/* ==========================================================================
   Design Tokens & CSS Variables (Aceternity / 21st.dev inspired modern palette)
   ========================================================================== */

:root {
  /* Colors - Light Theme */
  --bg-main: #f8faf9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f0f4f2;
  --bg-dark-accent: #f2f7f5;

  --text-primary: #0e1715;
  --text-secondary: #475551;
  --text-muted: #6e7e79;
  --text-inverted: #ffffff;

  --border-subtle: #e2e8e5;
  --border-strong: #c8d3ce;
  --border-focus: #0da2b8;

  --accent-primary: #0da2b8;
  --accent-secondary: #088194;
  --accent-bright: #14b8ce;
  --accent-light: #e6f7fa;
  --accent-glow: rgba(13, 162, 184, 0.22);
  --accent-gradient: linear-gradient(135deg, #0da2b8 0%, #14b8ce 50%, #36d399 100%);

  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(226, 232, 229, 0.85);
  --card-shadow: 0 10px 30px -10px rgba(14, 23, 21, 0.05), 0 4px 6px -2px rgba(14, 23, 21, 0.02);
  --card-hover-shadow: 0 20px 40px -15px rgba(13, 162, 184, 0.15), 0 0 0 1px rgba(13, 162, 184, 0.25);

  --nav-bg: rgba(248, 250, 249, 0.8);
  --nav-border: rgba(226, 232, 229, 0.7);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s var(--ease-spring);
  --transition-slow: 0.45s var(--ease-spring);
}

[data-theme="dark"] {
  /* Colors - Dark Theme */
  --bg-main: #0b0f0e;
  --bg-surface: #121816;
  --bg-surface-elevated: #18221f;
  --bg-surface-subtle: #141c19;
  --bg-dark-accent: #0e1412;

  --text-primary: #f0f7f4;
  --text-secondary: #a6b7b1;
  --text-muted: #72847e;
  --text-inverted: #0b0f0e;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: #14b8ce;

  --accent-primary: #14b8ce;
  --accent-secondary: #0da2b8;
  --accent-bright: #38d6eb;
  --accent-light: rgba(20, 184, 206, 0.12);
  --accent-glow: rgba(20, 184, 206, 0.28);
  --accent-gradient: linear-gradient(135deg, #14b8ce 0%, #36d399 100%);

  --card-bg: rgba(18, 24, 22, 0.75);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  --card-hover-shadow: 0 20px 40px -15px rgba(20, 184, 206, 0.25), 0 0 0 1px rgba(20, 184, 206, 0.4);

  --nav-bg: rgba(11, 15, 14, 0.82);
  --nav-border: rgba(255, 255, 255, 0.07);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
  position: relative;
  z-index: 1;
}

.section-dark-accent {
  background-color: var(--bg-dark-accent);
}

/* ==========================================================================
   Ambient Background Effects (Aceternity grid & aurora glow)
   ========================================================================== */

.bg-grid-pattern {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 100%);
}

.bg-radial-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.bg-radial-glow.top-left {
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  top: -150px;
  left: -150px;
}

.bg-radial-glow.center-right {
  width: 600px;
  height: 600px;
  background: #36d399;
  top: 40%;
  right: -200px;
}

/* ==========================================================================
   Typography & Section Headers
   ========================================================================== */

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-header {
  margin-bottom: 56px;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-eyebrow {
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

/* ==========================================================================
   Buttons & Chips
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  border: 1px solid var(--accent-primary);
}

.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px var(--accent-glow);
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: 0.6s;
}

.btn-glow:hover::after {
  left: 150%;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.card-chips, .skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip, .skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.chip:hover, .skill-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* ==========================================================================
   Aceternity-Style Spotlight Card System
   ========================================================================== */

.spotlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(20, 184, 206, 0.4),
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(20, 184, 206, 0.3);
}

.card-inner {
  padding: 32px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Floating Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all var(--transition-normal);
  padding: 16px 0;
}

.site-header.scrolled {
  padding: 10px 0;
}

.nav-container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 2px 10px -2px var(--accent-glow);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.brand:hover .brand-avatar {
  transform: scale(1.06);
  border-color: var(--accent-bright);
}

.brand-monogram {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--accent-primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px -2px var(--accent-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-title {
  font-size: 0.7rem;
  color: var(--text-muted);
}

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

.nav-link {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-primary);
  background: var(--accent-light);
}

.nav-link.active {
  color: var(--accent-primary);
  background: var(--accent-light);
  font-weight: 600;
}

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

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: rotate(15deg);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle .bar {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 70px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  border: 1px solid var(--accent-glow);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.hero-typed-wrapper {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 22px;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.typed-prefix {
  color: var(--text-muted);
}

.typed-text {
  color: var(--accent-primary);
  font-weight: 600;
}

.typed-cursor {
  color: var(--accent-primary);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-description strong {
  color: var(--text-primary);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.location-tag, .status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #36d399;
  box-shadow: 0 0 8px #36d399;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.hero-social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-pill:hover {
  background: var(--accent-light);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Hero Portrait Visual */
.hero-visual-wrapper {
  display: grid;
  place-items: center;
}

.hero-portrait-card {
  width: 100%;
  max-width: 400px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.portrait-aura {
  position: absolute;
  inset: 15%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}

.portrait-ring {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  border: 1.5px dashed var(--accent-primary);
  opacity: 0.45;
  animation: rotate-ring 24s linear infinite;
  pointer-events: none;
}

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

.portrait-container {
  width: 240px;
  height: 270px;
  border-radius: 120px 120px 24px 24px;
  overflow: hidden;
  border: 5px solid var(--bg-surface);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.2);
  background: var(--bg-surface-subtle);
  position: relative;
  z-index: 1;
}

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

.floating-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
}

.badge-top-right {
  top: 15px;
  right: -10px;
}

.badge-bottom-left {
  bottom: 85px;
  left: -15px;
}

.badge-icon {
  font-size: 1.2rem;
}

.badge-text strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.1;
  color: var(--text-primary);
}

.badge-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.code-snippet-box {
  margin-top: 24px;
  width: 100%;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.5;
  z-index: 1;
}

.code-kw { color: #f43f5e; font-weight: 600; }
.code-prop { color: var(--accent-primary); }
.code-str { color: #10b981; }
.code-bool { color: #8b5cf6; }

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-indicator a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.scroll-indicator a:hover {
  color: var(--accent-primary);
}

.scroll-indicator svg {
  animation: bounce 2s infinite ease-in-out;
}

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

/* ==========================================================================
   About Section & Bento Grid
   ========================================================================== */

.about-bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.about-story-card .card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent-primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.card-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.card-paragraph {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-paragraph strong {
  color: var(--text-primary);
}

.core-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.value-chip {
  padding: 8px 14px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stats-bento-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat-card .card-inner {
  padding: 24px 20px;
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent-primary);
  line-height: 1;
}

.stat-plus {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-text {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-primary);
  line-height: 1.1;
}

.stat-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.stat-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.highlight-stat {
  grid-column: span 2;
}

/* ==========================================================================
   Experience Section (Vertical Timeline)
   ========================================================================== */

.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding-left: 36px;
}

.timeline-track {
  position: absolute;
  top: 10px;
  bottom: 20px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, var(--border-subtle) 100%);
}

.timeline-entry {
  position: relative;
  margin-bottom: 40px;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 24px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.marker-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  opacity: 0.4;
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.company-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.role-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-badge-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-loc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.timeline-summary {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.timeline-bullets {
  list-style: none;
  margin-bottom: 16px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.55;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Projects Section (Bento Grid & Filter)
   ========================================================================== */

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.filter-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px -2px var(--accent-glow);
}

.projects-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card.is-hidden {
  display: none !important;
}

.project-feature {
  grid-column: span 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.project-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.project-link-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent-primary);
}

.project-subtitle {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.project-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-bullet-list {
  list-style: none;
  margin-bottom: 18px;
}

.project-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.project-bullet-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent-primary);
}

.project-footer {
  margin-top: auto;
  padding-top: 14px;
}

/* ==========================================================================
   Skills Section (Bento Grid)
   ========================================================================== */

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

.skill-card-wide {
  grid-column: span 2;
}

.skill-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.skill-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent-primary);
  display: grid;
  place-items: center;
}

.skill-category {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   Education Section
   ========================================================================== */

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.edu-card .card-inner {
  display: flex;
  gap: 20px;
}

.edu-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.edu-period {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.edu-degree {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.edu-institution {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.edu-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Leadership Section
   ========================================================================== */

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

.leadership-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.leadership-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent-primary);
  display: grid;
  place-items: center;
}

.leadership-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.leadership-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section (High-Contrast Aceternity Card)
   ========================================================================== */

.contact-card {
  background: linear-gradient(135deg, #0e2e28 0%, #0d3831 50%, #092621 100%);
  border: 1px solid rgba(20, 184, 206, 0.25);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(20, 184, 206, 0.15);
  border-radius: var(--radius-xl);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.contact-aura {
  position: absolute;
  width: 500px;
  height: 500px;
  right: -150px;
  top: -150px;
  background: radial-gradient(circle, rgba(20, 184, 206, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-card .card-inner {
  padding: 64px;
}

.contact-eyebrow {
  color: #38d6eb;
}

.contact-heading {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.contact-heading em {
  font-style: normal;
  color: #38d6eb;
}

.contact-subtext {
  font-size: 1.05rem;
  color: #c0d8d2;
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.email-action-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 34px;
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}

.email-display {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.email-link {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.email-link:hover {
  color: #38d6eb;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #0d3831;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: #38d6eb;
  color: #0b0f0e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(56, 214, 235, 0.3);
}

.contact-social-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transition: all var(--transition-fast);
}

.contact-social-btn:hover {
  background: #ffffff;
  color: #0d3831;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-brand {
  font-weight: 700;
  color: var(--text-primary);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease-spring);
  z-index: 1000;
}

.toast svg {
  color: #10b981;
}

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

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
  will-change: opacity, transform;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual-wrapper {
    order: -1;
  }

  .about-bento-grid {
    grid-template-columns: 1fr;
  }

  .skills-bento-grid {
    grid-template-columns: 1fr;
  }

  .skill-card-wide {
    grid-column: span 1;
  }

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

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 18px;
    right: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .resume-btn {
    display: none;
  }

  .projects-bento-grid, .education-grid {
    grid-template-columns: 1fr;
  }

  .contact-card .card-inner {
    padding: 36px 24px;
  }

  .email-action-box {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-bento-column {
    grid-template-columns: 1fr;
  }

  .highlight-stat {
    grid-column: span 1;
  }

  .timeline-wrapper {
    padding-left: 24px;
  }

  .timeline-marker {
    left: -24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::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;
  }
}
