/* ── Tokens live in tokens.css (linked first in <head>) ── */
/* This file's :root was migrated — see tokens.css */

/* ═══════════════════════════════════════
   TYPE SYSTEM — explicit, consistent
   Display headings: Inter 800 (tight tracking)
   Body: Inter 300–500
   Labels/mono: JetBrains Mono
   Hero title only: Playfair Display (intentional exception)
   ═══════════════════════════════════════ */

/* All headings default — explicit so no browser inconsistency */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

/* Section h2 — strong, clean Inter */
.section-header h2 {
  font-size: 2.5rem;
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

/* Card h3s — consistent across bento and credential cards */
.card-content-box h3,
.cred-content h3,
.timeline-content h3 {
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Timeline company name — slightly heavier */
.timeline-content h3 {
  font-size: 1.1rem;
  color: var(--text-main);
}

/* Timeline role — lighter, muted */
.timeline-content h4 {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0;
}

/* Footer h2 */
footer h2 {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.03em;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base for large desktop screens */
  overflow-x: hidden;
}

/* Scale down everything globally for laptops (e.g. 14-inch displays) */
@media (max-width: 1440px) {
  html {
    font-size: 15px; 
  }
}

/* Further scale down for smaller laptops / large tablets */
@media (max-width: 1024px) {
  html {
    font-size: 14px;
  }
}

body {
  background-color: #050505;
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  position: relative;
}

/* Performance: hint browser about animated layers */
.hero-photo-side,
.global-spotlight,
.noise-overlay,
.hero-chip,
.status-live-dot {
  will-change: transform;
}

.aura-orb,
.deco-ring {
  will-change: transform, opacity;
}

/* --- TEXTURE & BACKGROUND --- */
/* Noise overlay removed for cleaner aesthetic */
.noise-overlay {
  display: none;
}

/* Grid removed — replaced with organic glow blobs */
.grid-background {
  display: none;
}

/* The Flashlight Effect — amber accent glow */
.global-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(232, 160, 69, 0.07), transparent 40%);
}

/* --- NAV ISLAND --- */
.nav-island {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);

  /* Default state: transparent */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid transparent;
  box-shadow: none;

  padding: 8px 20px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 100;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Scrolled state: apply glassmorphism */
.nav-island.scrolled {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Hover Effect for the Island itself (only when scrolled for better effect, or always soft) */
.nav-island.scrolled:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-logo {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
}

.dot {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
}

.nav-menu button {
  background: transparent;
  border: none;
  color: #ccc;
  /* Slightly lighter text for contrast */
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.nav-menu button:active {
  transform: scale(0.97);
}

/* Active/Hover state for buttons */
.nav-menu button:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-menu button.active {
  background: var(--color-accent-muted);
  color: var(--color-accent);
  font-weight: 600;
}


.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-actions a {
  color: var(--text-muted);
  transition: 0.2s;
  font-size: 1.1rem;
}

.nav-actions a:hover {
  color: #fff;
}

.btn-contact-small {
  text-decoration: none;
  font-size: 0.85rem !important;
  color: #fff !important;
  background: var(--accent-blue);
  padding: 6px 32px;
  white-space: nowrap;
  border-radius: 20px;
  font-weight: 600;
  border: none;
  /* Ensure no border from previous cycle */
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.btn-contact-small:active {
  transform: scale(0.97);
}

.btn-contact-small:hover {
  background: var(--accent-cyan);
  color: #fff !important;
}

/* Resume button in nav */
.btn-resume-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-resume-nav:active {
  transform: scale(0.97);
}

.btn-resume-nav:hover {
  color: var(--text-main) !important;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

/* Resume button in hero */
.btn-resume-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  background: rgba(255, 255, 255, 0.02);
}

.btn-resume-hero:active {
  transform: scale(0.97);
}

.btn-resume-hero:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- HERO SECTION — Full Bleed Editorial --- */

.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 0;
  max-width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
  /* Smoother transition to next section */
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* ── Seamless Section Bridge ── */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to bottom, transparent, #050505 90%);
  z-index: 5;
  pointer-events: none;
}

/* Ambient bottom glow to pull eye into the next section */
.hero-bottom-glow {
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(232, 160, 69, 0.08) 0%, transparent 70%);
  filter: blur(100px);
  z-index: 4;
  pointer-events: none;
}

/* Ensure continuity with the next section */
#experience {
  margin-top: -100px;
  position: relative;
  z-index: 10;
  padding-top: 150px; /* Counter-padding to keep content readable */
}

/* ── LEFT: Photo Side ── */
.hero-photo-side {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  animation: hero-photo-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

@keyframes hero-photo-reveal {
  from {
    opacity: 0;
    transform: scale(1.04);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-full-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.82) contrast(1.08);
  transform-origin: center center;
  animation: ken-burns 15s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

/* Gradient fade — photo bleeds slowly into the dark right half */
.hero-photo-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 40%, rgba(5, 5, 5, 0.6) 75%, #050505 100%);
  z-index: 2;
  box-shadow: inset -2px 0 30px rgba(0, 0, 0, 0.3);
}

/* Structural grid texture for aesthetic left side */
.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 15%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at center, black 15%, transparent 90%);
}

/* Thin glowing vertical divider line with flow effect */
.hero-divider-line {
  position: absolute;
  top: 15%;
  bottom: 15%;
  right: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent-blue), var(--accent-cyan), transparent);
  background-size: 100% 200%;
  opacity: 0.6;
  z-index: 3;
  animation: line-flow 4s linear infinite;
}

@keyframes line-flow {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 0% 200%;
  }
}

/* Minimal Telemetry Tag */
.photo-telemetry {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(8, 8, 8, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
  animation: pulse-blue 2s infinite;
}

.telemetry-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #a1a1aa;
  letter-spacing: 0.05em;
}

@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }

  70% {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* ── RIGHT: Text Side ── */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 5rem 4rem 4.5rem;
  max-width: 100%;
  position: relative;

  /* Black base with a subtle, diffuse violet/indigo radial mesh (Evervault style) */
  background-color: #050505;
  background-image:
    radial-gradient(circle at 100% 20%, rgba(102, 0, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 100%, rgba(25, 0, 87, 0.1) 0%, transparent 40%);
}



/* Top Badge */
.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-family: var(--font-main);
  font-weight: 500;
  color: #a1a1aa;
  margin-bottom: 2rem;
  align-self: flex-start;
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.status-indicator {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Main Unified Title Block — uses hero token */
.hero-title-main {
  font-family: var(--font-sans);
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

.hero-title-main .hero-greeting {
  display: block;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fade-up 0.7s var(--ease-out) 0.1s forwards;
}

.hero-title-main .text-muted {
  color: var(--color-text-secondary);
}

/* Clean Subtitle */
.hero-subtitle-clean {
  font-size: 1.05rem;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 480px;
  font-weight: 400;
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* CTA Group */
.hero-cta-clean-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* ── CTA Buttons — amber accent, pill shape (per brief §3) ── */
.btn-primary-clean {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  background: transparent;
  text-decoration: none;
  transition:
    background var(--duration-fast) var(--ease-out),
    color     var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.btn-primary-clean:active {
  transform: scale(0.97);
}

.btn-primary-clean:hover {
  background: var(--color-accent);
  color: var(--color-bg-primary);
  transform: translateY(-2px);
}

.btn-primary-clean i {
  transition: transform var(--duration-fast);
}

.btn-primary-clean:hover i {
  transform: translateX(3px);
}

.btn-secondary-clean {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-3) var(--space-5);
  background: transparent;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  transition:
    border-color var(--duration-fast),
    color        var(--duration-fast),
    transform    var(--duration-fast);
}

.btn-secondary-clean:active {
  transform: scale(0.97);
}

.btn-secondary-clean:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

/* Trust Indicators */
.hero-trust-indicators {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-trust-indicators p {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #52525b;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.trust-logos i {
  font-size: 1.4rem;
  color: #71717a;
  transition: color 0.2s;
}

.trust-logos i:hover {
  color: #a1a1aa;
}

.trust-logos .text-logo {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.2rem;
  color: #71717a;
  transition: color 0.2s;
}

.trust-logos .text-logo:hover {
  color: #a1a1aa;
}

@keyframes swipe-shine {

  0%,
  20% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

.btn-primary:hover {
  background: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

.btn-ghost-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  font-family: var(--font-mono);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ghost-link:hover {
  color: var(--text-main);
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Remove old classes that no longer apply */
.hero-visual,
.profile-aura-wrapper,
.aura-orb,
.aura-ring,
.image-mask,
.profile-cutout,
.floating-badge,
.tech-stack-mini {
  display: none !important;
}

/* Shared page-load animation */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    grid-template-rows: 56vh auto;
  }

  .hero-photo-side {
    min-height: 56vh;
  }

  .hero-photo-fade {
    background: linear-gradient(to bottom,
        transparent 30%,
        rgba(5, 5, 5, 0.65) 70%,
        #050505 100%);
  }

  .hero-divider-line {
    display: none;
  }

  .chip-1 {
    top: auto;
    bottom: 18%;
    left: 5%;
  }

  .chip-2 {
    bottom: 6%;
    left: auto;
    right: 5%;
  }

  .hero-content {
    padding: 2.5rem 1.75rem 4rem;
    text-align: center;
  }

  .hero-top-badge {
    align-self: center;
  }

  .hero-subtitle-clean {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-clean-group {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .trust-logos {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-photo-side {
    min-height: 50vh;
  }

  .hero-chip {
    font-size: 0.65rem;
    padding: 5px 10px 5px 6px;
  }

  .hero-tech-stack {
    bottom: 1.5rem;
    left: 1.5rem;
  }

  .hero-content {
    padding: 2rem 1.25rem 3rem;
  }

  .hero-title-main {
    font-size: 2.4rem;
  }
}

/* --- ACTIVE ROLES STATUS ANIMATIONS --- */
.status-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  flex-shrink: 0;
  animation: status-pulse 2.5s ease-in-out infinite;
}

@keyframes status-pulse {

  0%,
  100% {
    box-shadow: 0 0 4px #34d399;
  }

  50% {
    box-shadow: 0 0 12px #34d399, 0 0 20px rgba(52, 211, 153, 0.3);
  }
}

/* --- BENTO GRID --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  position: relative;
  overflow: visible;
}


.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

.highlight {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent-blue);
  text-underline-offset: 6px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  border: 0.5px solid var(--color-border);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base);
  background: var(--color-bg-surface);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--color-border-hover);
}

.bento-card:active {
  transform: scale(0.98);
}

/* Grid Areas */
.feature {
  grid-column: span 2;
  grid-row: span 1;
}

.tall {
  grid-column: span 1;
  grid-row: span 2;
}

.wide {
  grid-column: span 2;
  grid-row: span 1;
}

.standard {
  grid-column: span 1;
  grid-row: span 1;
}

/* Fallback */

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--duration-slow) var(--ease-out), opacity var(--duration-slow) var(--ease-out);
  opacity: 0.6;
}

.bento-card:hover .card-bg {
  transform: scale(1.05);
  opacity: 0.4;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
}

.card-content-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 2;
}

.tags {
  margin-bottom: 0.8rem;
  display: flex;
  gap: 0.5rem;
}

.tag {
  font-size: 0.68rem;
  font-family: var(--font-main);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s, border-color 0.2s;
}

.card-content-box h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.card-content-box p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
}

/* --- BENTO GRID ADJUSTMENTS --- */
.bento-card.feature h3 {
  font-size: 1.6rem;
}

.bento-card.feature p {
  max-width: 90%;
}

.bento-card.tall {
  grid-row: span 2;
}


/* --- PROFESSIONAL EXPERTISE SECTION --- */
.expertise-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  margin-top: 4rem;
}

.expertise-category {
  display: flex;
  flex-direction: column;
}

.category-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.expertise-grid.single-col {
  grid-template-columns: 1fr;
}

.expertise-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.credential-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid var(--color-border);
  background: var(--color-bg-surface);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base);
  min-height: 260px;
}

.credential-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--color-border-hover);
}

/* The Wide Card for Melbourne */
.wide-credential {
  grid-column: span 2;
  background: linear-gradient(to right, #0a0a0a, #0f1014);
}

.card-glow-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  filter: blur(40px);
  z-index: 0;
}

.cred-icon-box {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.cred-icon-box img,
.cred-icon-box svg {
  width: 100%;
  height: auto;
}

.cred-icon-box i {
  font-size: 2.5rem;
}

/* Special header for the wide card */
.cred-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.small-icon {
  width: auto;
  height: auto;
  margin-bottom: 0;
}

.small-icon i {
  font-size: 2rem;
  color: #fff;
}

.tags-row {
  display: flex;
  gap: 0.5rem;
}

.cred-content {
  position: relative;
  z-index: 2;
}

.cred-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.cred-content .subtitle {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  display: block;
}

.cred-content p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.cred-content p strong {
  color: #fff;
  font-weight: 500;
}

/* --- CREDENTIAL THEMES --- */
/* Google Blue */
.google-theme .card-glow-bg {
  background: radial-gradient(circle at top left, #4285F4, transparent 60%);
}

.google-theme:hover {
  border-color: rgba(66, 133, 244, 0.4);
}

/* IBM Dark Blue */
.ibm-theme .card-glow-bg {
  background: radial-gradient(circle at top left, #0f62fe, transparent 60%);
}

.ibm-theme:hover {
  border-color: rgba(15, 98, 254, 0.4);
}

/* Gen AI Gold */
.genai-theme .card-glow-bg {
  background: radial-gradient(circle at top left, #FFD700, transparent 60%);
}

.genai-theme .cred-icon-box i {
  color: #FFD700;
}

.genai-theme:hover {
  border-color: rgba(255, 215, 0, 0.4);
}

/* HackerRank Green */
.hackerrank-theme .card-glow-bg {
  background: radial-gradient(circle at top left, #2EC866, transparent 60%);
}

.hackerrank-theme .cred-icon-box i {
  color: #2EC866;
}

.hackerrank-theme:hover {
  border-color: rgba(46, 200, 102, 0.4);
}

/* Melbourne Theme (Navy/Teal) */
.melbourne-theme .card-glow-bg {
  background: radial-gradient(circle at top left, #0e7490, transparent 60%);
}

.melbourne-theme:hover {
  border-color: rgba(14, 116, 144, 0.5);
}

.melbourne-theme i {
  color: #22d3ee;
}

/* --- IEEE FEATURED CARD --- */
.ieee-featured {
  border-color: rgba(59, 130, 246, 0.2) !important;
  background: linear-gradient(135deg, #070a10 0%, #0a0d14 100%) !important;
}

.ieee-featured .card-glow-bg {
  background: radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1), transparent 50%);
}

.ieee-featured:hover {
  border-color: rgba(59, 130, 246, 0.45) !important;
  box-shadow: var(--shadow-lift);
}

/* Extra ambient glow accent */
.ieee-glow-accent {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

/* Paper title — the actual paper name, styled prominently */
.ieee-paper-title {
  font-family: var(--font-main);
  font-style: italic;
  font-weight: 400;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  border-left: 2px solid rgba(59, 130, 246, 0.4);
  padding-left: 0.9rem;
}

/* IEEE tag variant */
.tag-ieee {
  background: rgba(59, 130, 246, 0.12) !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  color: #93c5fd !important;
  letter-spacing: 0.02em;
}

/* Meta row — publisher, ISBN, domain in a structured grid */
.ieee-meta-row {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ieee-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ieee-meta-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #333;
}

.ieee-meta-value {
  font-size: 0.82rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ieee-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  letter-spacing: 0.06em;
}

/* --- EDUCATION SECTION — HORIZONTAL TIMELINE --- */
.horizontal-timeline {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 5rem auto 4rem;
  padding: 0;
  min-height: 500px;
  /* Claims enough space up and down for absolute cards */
  display: flex;
  align-items: center;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  /* Thinner sophisticated line */
  background: rgba(255, 255, 255, 0.05);
  /* Softer base */
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  /* Match thinner line */
  width: 100%;
  /* Represents current progress */
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan), #10b981);
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.timeline-nodes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 5;
  width: 100%;
}

.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 340px;
  /* Slightly wider cards for better text layout */
  z-index: 10;
}

/* Base point on the line */
.node-point {
  width: 16px;
  /* Smaller more elegant points */
  height: 16px;
  border-radius: 50%;
  background: #050505;
  border: 4px solid var(--accent-cyan);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  z-index: 10;
}

.timeline-node:hover .node-point {
  background: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan);
  transform: scale(1.2);
}

.timeline-node.current .node-point {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.timeline-node.current .node-point .core {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
}

.timeline-node.current .node-point .halo {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
  z-index: -1;
  pointer-events: none;
}

/* Year Label Floating Above/Below Point */
.node-year-label {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 15;
  white-space: nowrap;
}

.timeline-node.current .node-year-label {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

.node-content.down~.node-year-label {
  top: -45px;
}

.node-content.up~.node-year-label {
  bottom: -45px;
}

/* Glassmorphism Detail Card */
.node-content {
  position: absolute;
  width: 100%;
  background: rgba(12, 12, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.8rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.timeline-node:hover .node-content {
  opacity: 1;
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(0) scale(1.02);
}

.timeline-node.current .node-content {
  background: linear-gradient(145deg, rgba(15, 25, 40, 0.7), rgba(10, 15, 25, 0.9));
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}

.timeline-node.current:hover .node-content {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2);
}

.node-content.up {
  bottom: 60px;
}

.node-content.down {
  top: 60px;
}

/* Connector Line (between point and card) */
.node-content::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  opacity: 0.5;
}

.node-content.up::after {
  bottom: -20px;
  background: linear-gradient(to top, var(--accent-cyan), transparent);
}

.node-content.down::after {
  top: -20px;
}

.timeline-node.current .node-content::after {
  background: linear-gradient(to bottom, #10b981, transparent);
  opacity: 0.8;
}

/* Card Content Typography */
.node-content .edu-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.timeline-node.current .edu-badge {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.node-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.node-content .edu-spec {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a1a1aa;
  margin-bottom: 0.8rem;
}

.node-content p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.5;
}

/* ── RESPONSIVE HORIZONTAL TIMELINE ── */
@media (max-width: 950px) {
  .horizontal-timeline {
    padding-left: 20px;
    padding-right: 20px;
    margin: 3rem 0;
    min-height: auto;
    display: block;
  }

  /* Fallback to vertical layout for mobile */
  .timeline-line {
    top: 0;
    left: 40px;
    width: 3px;
    height: 100%;
    transform: none;
  }

  .timeline-progress {
    width: 100%;
    height: 100%;
    top: 0;
    transform: none;
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-cyan), #10b981);
  }

  .timeline-nodes {
    flex-direction: column;
    align-items: flex-start;
    gap: 4rem;
  }

  .timeline-node {
    width: 100%;
    align-items: flex-start;
    padding-left: 80px;
  }

  .node-point {
    position: absolute;
    left: 29.5px;
    /* Aligned with line */
    top: 20px;
  }

  .node-year-label {
    top: 20px;
    left: 0;
    transform: translateX(-110%);
    position: absolute;
    font-size: 0.85rem;
    padding: 2px 8px;
  }

  .node-content.up,
  .node-content.down {
    position: relative;
    top: 0;
    bottom: 0;
    text-align: left;
    width: 100%;
  }

  .node-content::after {
    left: -20px;
    top: 30px;
    width: 20px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-cyan), transparent);
  }
}


/* --- ACTIVE TIMELINE ROLE --- */
.timeline-item.active-role {
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(10, 10, 10, 0) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.timeline-item.active-role::before {
  content: none;
}

.active-timeline-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.8rem;
}

.active-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #34d399;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.active-title {
  font-size: 1.35rem !important;
  color: #fff !important;
  margin-bottom: 0.3rem !important;
}

.active-subtitle {
  font-size: 0.95rem !important;
  color: var(--accent-cyan) !important;
  margin-bottom: 1rem !important;
  font-weight: 400 !important;
}

/* --- TIMELINE METRIC CHIPS --- */
.timeline-metrics {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 0.75rem;
}

.metric-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.9rem;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 8px;
  min-width: 72px;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.62rem;
  color: #555;
  text-align: center;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

/* --- EY AWARD THEME --- */
.ey-theme .card-glow-bg {
  background: radial-gradient(circle at top left, #c8a84c, transparent 60%);
}

.ey-theme:hover {
  border-color: rgba(200, 168, 76, 0.4);
}

.ey-theme .small-icon i {
  color: #c8a84c;
}

.footer-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.footer-eyebrow::before,
.footer-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
}

.btn-footer-resume {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-accent);
  color: var(--color-bg-primary);
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast);
}

.btn-footer-resume:hover {
  background: #f0b05a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 160, 69, 0.35);
}

.btn-footer-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-footer-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .achievements-bento {
    grid-template-columns: 1fr;
  }

  .wide-credential {
    grid-column: span 1;
  }

  .cred-header-row {
    flex-direction: column;
    gap: 1rem;
  }

  /* Bento grid: 2 columns on tablet */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .feature {
    grid-column: span 2;
  }

  .tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Hero section adjustments for tablet */
  .hero-section {
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .profile-aura-wrapper {
    width: 280px;
    height: 280px;
  }

  .aura-ring {
    width: 300px;
    height: 300px;
  }

  .image-mask {
    width: 240px;
    height: 240px;
  }

  /* Section padding */
  .section-container {
    padding: 4rem 1.5rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }
}

/* [duplicate removed] */


/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border-color);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 70%);
}

.email-link {
  font-size: 2rem;
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 700;
  display: block;
  margin: 1rem 0 3rem;
  transition: color var(--duration-base);
}

.email-link:hover {
  color: var(--color-accent);
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── SCROLL REVEAL (RevealOnScroll equivalent) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ── WORD-SPLIT ANIMATION (AnimatedHeadline equivalent) ── */
.word-split {
  display: block;
}

.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  animation: word-in 0.5s var(--ease-out) forwards;
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── KPI CHIP STAGGER ANIMATION ── */
.kpi-block {
  opacity: 0;
  transform: scale(0.88) translateY(8px);
}

.kpi-block.chip-visible {
  animation: chip-in 0.35s var(--ease-spring) forwards;
}

@keyframes chip-in {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── VIEW SOURCE AFFORDANCE ── */
.card-source-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity var(--duration-fast);
}

.bento-card:hover .card-source-link {
  opacity: 1;
}

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000; /* Above nav-island and chat-trigger */
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-nav-overlay button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.mobile-nav-overlay button:hover,
.mobile-nav-overlay button.active {
  color: var(--color-accent);
}

.overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.overlay-socials {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.overlay-socials a {
  color: #888;
  font-size: 1.8rem;
  transition: color 0.2s;
}

.overlay-socials a:hover {
  color: #fff;
}

.close-overlay {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem !important;
}

@media (max-width: 900px) {
  .achievements-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .credential-card {
    min-height: 220px;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — Full Adaptive Design
   ══════════════════════════════════════════════════════════════════════ */

/* --- HAMBURGER (hidden on desktop) --- */
.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 101;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

/* ═══════════ TABLET — 950px (Resolves navbar overlap) ═══════════ */
@media (max-width: 950px) {

  /* ── Nav ── */
  .nav-island {
    width: 92%;
    max-width: 420px;
    padding: 6px 14px;
    border-radius: 14px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 0;
    margin-top: 0;
    border-top: 1px solid transparent;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
  }

  .nav-menu.active {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0;
  }

  .nav-menu button {
    width: 100%;
    text-align: left;
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 6px;
  }

  .nav-menu button:hover,
  .nav-menu button.active {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-actions {
    display: none;
  }

  /* ── Hero ── */
  .hero-section {
    grid-template-columns: 1fr;
    grid-template-rows: 56vh auto;
    padding: 0;
    min-height: auto;
  }

  .hero-photo-side {
    min-height: 56vh;
  }

  .hero-photo-fade {
    background: linear-gradient(to bottom, transparent 30%, rgba(5, 5, 5, 0.65) 70%, #050505 100%);
  }

  .hero-divider-line {
    display: none;
  }

  .chip-1 {
    top: auto;
    bottom: 18%;
    left: 5%;
  }

  .chip-2 {
    bottom: 6%;
    left: auto;
    right: 5%;
  }

  .hero-content {
    padding: 2.5rem 1.75rem 4rem;
    text-align: center;
    max-width: 100%;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-eyebrow::before {
    display: none;
  }

  .hero-title-rule {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* ── Ticker ── */
  .ticker-wrap {
    padding: 1rem 0;
  }

  .ticker__item {
    font-size: 0.85rem;
    padding: 0 1.5rem;
  }

  /* ── Bento Grid ── */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
  }

  .feature,
  .tall,
  .wide,
  .standard {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-card {
    min-height: 240px;
  }

  .card-content-box h3 {
    font-size: 1.15rem;
  }

  .card-content-box p {
    font-size: 0.88rem;
  }

  /* ── Credentials / Achievements ── */
  .expertise-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .credential-card {
    min-height: auto;
    padding: 1.5rem;
  }

  .cred-header-row {
    flex-direction: column;
    gap: 0.8rem;
  }

  .tags-row {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .cred-content h3 {
    font-size: 1.15rem;
  }

  .cred-content p {
    font-size: 0.9rem;
  }

  /* ── Section Spacing ── */
  .section-container {
    padding: 4rem 1.25rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  /* ── Footer ── */
  footer {
    padding: 4rem 1.5rem;
  }

  .email-link {
    font-size: 1.4rem;
    word-break: break-word;
  }

  .footer-meta {
    font-size: 0.8rem;
  }
}


/* ═══════════ PHONE — 480px ═══════════ */
@media (max-width: 480px) {

  /* ── Hero ── */
  .hero-photo-side {
    min-height: 50vh;
  }

  .hero-chip {
    font-size: 0.65rem;
    padding: 5px 10px 5px 6px;
  }

  .hero-tech-stack {
    bottom: 1.5rem;
    left: 1.5rem;
  }

  .hero-content {
    padding: 2rem 1.25rem 3rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  /* ── Nav ── */
  .nav-island {
    width: 94%;
    padding: 8px 14px;
  }

  .nav-logo {
    font-size: 1rem;
  }

  /* ── Bento Cards ── */
  .bento-card {
    min-height: 220px;
  }

  .bento-card.feature {
    min-height: 260px;
  }

  /* ── Credentials ── */
  .credential-card {
    padding: 1.25rem;
  }

  .cred-icon-box {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
  }

  .cred-icon-box i {
    font-size: 2rem;
  }

  .cred-content h3 {
    font-size: 1.05rem;
  }

  .cred-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .cred-content .subtitle {
    font-size: 0.78rem;
  }

  .tag {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  /* ── Section ── */
  .section-container {
    padding: 3rem 1rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  /* ── Footer ── */
  footer {
    padding: 3rem 1rem;
    padding-bottom: max(3rem, env(safe-area-inset-bottom, 3rem));
  }

  footer h2 {
    font-size: 1.5rem;
  }

  .email-link {
    font-size: 1.1rem;
    margin: 0.8rem 0 2rem;
  }
}


/* ═══════════ SMALL PHONE — 380px (iPhone SE, etc.) ═══════════ */
@media (max-width: 380px) {

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

  .hero-chip {
    display: none;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .bento-card {
    min-height: 200px;
  }

  .cred-content h3 {
    font-size: 0.95rem;
  }
}