/* =========================================
   BASE STYLES & RESET
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #111114;
  --bg2: #18181c;
  --cream: #e8e3d9;
  --white: #fff;
  --muted: #777;
  --border: #242428;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--cream);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}

/* =========================================
   BACKGROUND EFFECTS & PARTICLES
========================================= */
#particleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(232, 227, 217, 0.025) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(232, 227, 217, 0.025) 1px,
      transparent 1px
    );
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
  opacity: 0.6;
}
@keyframes gridShift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* =========================================
   CUSTOM CURSOR
========================================= */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--cream);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.25s, height 0.25s;
}
#cursorRing {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(232, 227, 217, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
body.cursor-hover #cursor {
  width: 18px;
  height: 18px;
}
body.cursor-hover #cursorRing {
  width: 54px;
  height: 54px;
  border-color: rgba(232, 227, 217, 0.7);
}

/* =========================================
   GLITCH TEXT EFFECT
========================================= */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #6366f1;
  animation: glitch1 4s infinite linear;
  opacity: 0;
}
.glitch::after {
  left: -2px;
  text-shadow: 2px 0 #a78bfa;
  animation: glitch2 4s infinite linear;
  opacity: 0;
}
@keyframes glitch1 {
  0%, 94%, 100% { opacity: 0; transform: skewX(0deg); }
  95% { opacity: 1; transform: skewX(-4deg); }
  96% { opacity: 1; transform: skewX(3deg); }
  97% { opacity: 0; }
}
@keyframes glitch2 {
  0%, 92%, 100% { opacity: 0; transform: skewX(0deg); }
  93% { opacity: 1; transform: skewX(5deg); }
  94% { opacity: 1; transform: skewX(-3deg); }
  95% { opacity: 0; }
}

/* =========================================
   UI ELEMENTS (SCROLLBAR, TICKER)
========================================= */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #a78bfa);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

.data-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(17, 17, 20, 0.85);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  overflow: hidden;
  pointer-events: none;
  z-index: 8000;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  gap: 64px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
  padding-left: 100%;
}
.ticker-item {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.65);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticker-item span {
  color: rgba(99, 240, 180, 0.65);
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#orb1 { width: 520px; height: 520px; background: #252538; top: -140px; left: -120px; animation: orbPulse1 8s ease-in-out infinite; }
#orb2 { width: 620px; height: 620px; background: #1c1c2e; top: 60px; right: -160px; animation: orbPulse2 10s ease-in-out infinite; }
#orb3 { width: 440px; height: 440px; background: #222234; bottom: -60px; left: 28%; animation: orbPulse3 12s ease-in-out infinite; }
#orb4 { width: 360px; height: 360px; background: #2e2e46; top: 180px; left: 8%; animation: orbPulse1 9s ease-in-out infinite reverse; }
#orb5 { width: 460px; height: 460px; background: #1a1a2c; bottom: 80px; right: 8%; animation: orbPulse2 11s ease-in-out infinite reverse; }
#orb6 { width: 300px; height: 300px; background: radial-gradient(circle, #3b3bcc22 0%, #6622cc11 100%); top: 40%; left: 45%; animation: orbPulse3 7s ease-in-out infinite; filter: blur(60px); opacity: 0.4; }

@keyframes orbPulse1 {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.08) translate(12px, -8px); }
  66% { transform: scale(0.94) translate(-8px, 12px); }
}
@keyframes orbPulse2 {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(0.92) translate(-10px, 10px); }
  66% { transform: scale(1.06) translate(14px, -6px); }
}
@keyframes orbPulse3 {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.12) translate(-6px, -12px); }
}

/* Sparkles */
.sp {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(232, 227, 217, 0.7);
  animation: spk 3.5s ease-in-out infinite;
}
.sp:nth-child(1) { width: 4px; height: 4px; top: 12%; left: 14%; animation-delay: 0s; }
.sp:nth-child(2) { width: 3px; height: 3px; top: 22%; right: 18%; animation-delay: 0.7s; }
.sp:nth-child(3) { width: 3px; height: 3px; top: 62%; left: 9%; animation-delay: 1.2s; }
.sp:nth-child(4) { width: 4px; height: 4px; bottom: 28%; right: 14%; animation-delay: 1.8s; }
.sp:nth-child(5) { width: 2px; height: 2px; top: 42%; left: 58%; animation-delay: 2.4s; }
.sp:nth-child(6) { width: 3px; height: 3px; bottom: 18%; left: 38%; animation-delay: 0.4s; }
.sp:nth-child(7) { width: 3px; height: 3px; top: 35%; right: 32%; animation-delay: 1.6s; }
.sp:nth-child(8) { width: 2px; height: 2px; top: 78%; left: 55%; animation-delay: 3.1s; }
.sp:nth-child(9) { width: 4px; height: 4px; top: 8%; left: 72%; animation-delay: 2s; }
.sp:nth-child(10) { width: 4px; height: 4px; top: 8%; left: 79%; animation-delay: 2s; }
@keyframes spk {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

/* Navigation */
.hero-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 9px 18px;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s, border-color 0.25s;
}
.nav-btn-primary { border: 1.5px solid var(--cream); color: var(--cream); }
.nav-btn-primary:hover { background: var(--cream); color: var(--bg); transform: translateY(-2px); }
.nav-btn-ghost { border: 1.5px solid rgba(232, 227, 217, 0.28); color: rgba(232, 227, 217, 0.6); }
.nav-btn-ghost:hover { border-color: var(--cream); color: var(--cream); transform: translateY(-2px); }
.nav-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.nav-right { display: flex; gap: 36px; }
.nav-right a {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}
.nav-right a:hover { opacity: 0.5; transform: translateY(-2px); }

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(99, 240, 180, 0.25);
  color: rgba(99, 240, 180, 0.8);
  background: rgba(99, 240, 180, 0.05);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #63f0b4;
  animation: statusPulse 2s ease-in-out infinite;
}

/* Big Name Text & Avatar */
.hero-name-wrap {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-name-container {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
}
.hero-name {
  text-align: center;
  font-size: clamp(72px, 13.5vw, 180px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.88;
  color: var(--cream);
  user-select: none;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.03),
    3px 3px 0 rgba(0, 0, 0, 0.25),
    6px 6px 0 rgba(0, 0, 0, 0.12),
    12px 12px 28px rgba(0, 0, 0, 0.35);
}
.hero-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateZ(50px);
  width: 300px;
  height: 400px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07);
  animation: floatUp 4s ease-in-out infinite;
  transition: box-shadow 0.3s, transform 0.12s ease-out;
  z-index: 20;
}
.hero-avatar:hover {
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 40px rgba(99, 102, 241, 0.15);
}
@keyframes floatUp {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}
.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0%;
}

/* Hero Bottom */
.hero-bottom {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 48px 44px;
  gap: 16px;
}
.hero-bio { font-size: 15px; line-height: 1.65; color: var(--cream); max-width: 360px; }
.hero-bio a { text-decoration: underline; text-underline-offset: 3px; }
.hero-bio-right { text-align: right; }

/* =========================================
   GENERAL SECTIONS
========================================= */
.sec { padding: 88px 48px; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.big-title {
  font-size: clamp(36px, 6.5vw, 92px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 64px;
}

/* About Section */
.about-headline {
  font-size: clamp(28px, 5.5vw, 86px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 64px;
}
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about-text p { font-size: 17px; line-height: 1.82; color: var(--cream); margin-bottom: 20px; }
.about-text p:last-child { margin-bottom: 0; }
.about-skills { display: flex; flex-direction: column; gap: 28px; }
.skill-group h4 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.skill-group p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }

/* =========================================
   PROJECTS
========================================= */
.sec-projects { padding: 80px 0; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.projects-big-title {
  text-align: center;
  font-size: clamp(44px, 10vw, 140px);
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.projects-sub {
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 64px;
  padding: 0 48px;
}
.projects-list { display: flex; flex-direction: column; gap: 20px; padding: 0 48px; }

/* Project Card */
.project-card {
  background: var(--bg2);
  border-radius: 20px;
  padding: 26px 32px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 52px;
  align-items: center;
  transition: background 0.25s, transform 0.15s ease-out, box-shadow 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(99, 102, 241, 0.08) 40%,
    rgba(167, 139, 250, 0.12) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.project-card:hover::before { opacity: 1; animation: shimmerSlide 1.5s ease-in-out infinite; }
@keyframes shimmerSlide { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.project-card:hover {
  background: #1d1d22;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.1);
}
.proj-btns { display: flex; gap: 12px; margin-bottom: 24px; }
.proj-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}
.proj-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); }
.proj-btn-white { background: var(--white); color: var(--bg); }
.proj-btn-dark { background: #2c2c30; color: var(--cream); }
.proj-btn svg { width: 19px; height: 19px; }
.project-card h3 { font-size: clamp(18px, 2vw, 26px); font-weight: 700; color: var(--white); letter-spacing: -0.03em; margin-bottom: 12px; }
.project-card p { font-size: 13.5px; line-height: 1.72; color: var(--muted); margin-bottom: 18px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.project-tags span { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--cream); }

/* =========================================
   PROJECT VISUAL IMAGE WRAP
========================================= */
.proj-visual { width: 100%; display: flex; align-items: center; justify-content: center; }
.proj-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9; /* <-- FIX: Changed to match standard screenshot shape! */
  background: #0d0d10;
}
.proj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* <-- FIX: Fills the entire box flawlessly */
  object-position: top; /* Ensures the top of your app doesn't get cut off */
  display: block;
  opacity: 0.82;
  transition: opacity 0.35s ease, transform 0.4s ease;
  transform: scale(1.03);
}
.project-card:hover .proj-img-wrap img { opacity: 1; transform: scale(1); }

/* 1. THE GRADIENT OVERLAY */
.proj-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Strong bottom-up dark gradient to protect text readability */
  background: linear-gradient(to top, rgba(13, 13, 16, 0.95) 0%, rgba(13, 13, 16, 0.7) 30%, transparent 65%);
  pointer-events: none;
  z-index: 2; /* ALWAYS stays above the gallery images */
  opacity: 1; /* Always visible so text is never lost */
  transition: opacity 0.35s ease;
}

/* 2. THE TEXT LABEL CONTAINER */
.proj-img-label { 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  padding: 18px 20px 16px; 
  z-index: 3; /* ALWAYS stays above the gradient */
  opacity: 1;
  transform: translateY(0); 
  transition: opacity 0.35s ease, transform 0.35s ease;
} /* <-- THIS WAS THE MISSING BRACKET! */



/* --- HOVER EFFECTS --- */
/* Show gradient on hover */
.project-card:hover .proj-img-wrap::after {
  opacity: 1;
}

/* Show and slide up label on hover */
.project-card:hover .proj-img-label {
  opacity: 1;
  transform: translateY(0);
}

.proj-img-label-title { font-size: 14px; font-weight: 700; color: #e8e3d9; letter-spacing: -0.02em; margin-bottom: 7px; line-height: 1.3; }
.proj-img-label-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.proj-img-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 227, 217, 0.5);
  background: rgba(232, 227, 217, 0.06);
  border: 1px solid rgba(232, 227, 217, 0.1);
  border-radius: 100px;
  padding: 3px 8px;
}
.proj-img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.proj-img-fallback span { font-size: 44px; opacity: 0.5; }

/* =========================================
   EDUCATION ROWS
========================================= */
.edu-rows { display: flex; flex-direction: column; }
.edu-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.2s;
}
.edu-row:last-child { border-bottom: none; }
.edu-year { font-size: 12px; color: var(--muted); padding-top: 3px; }
.edu-content h3 { font-size: 17px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; margin-bottom: 4px; }
.edu-content p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.award-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

/* =========================================
   LEADERSHIP & EXPERIENCE CARDS
========================================= */
.vol-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vol-card {
  background: var(--bg2);
  border-radius: 18px;
  padding: 32px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.vol-card:hover { background: #1e1e24; transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }
.vol-org { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.vol-card h3 { font-size: 20px; font-weight: 800; color: var(--white); letter-spacing: -0.03em; margin-bottom: 10px; }
.vol-card p { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* =========================================
   CONTACT SECTION
========================================= */
.sec-contact { padding: 96px 48px 80px; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.contact-title { font-size: clamp(36px, 6.5vw, 80px); font-weight: 900; letter-spacing: -0.045em; text-transform: uppercase; color: var(--cream); margin-bottom: 18px; }
.contact-sub { font-size: 16px; color: var(--cream); margin-bottom: 8px; }
.contact-sub strong { font-weight: 600; }
.contact-note { font-size: 13.5px; color: var(--muted); margin-bottom: 52px; }
.contact-inner { display: grid; grid-template-columns: 420px 1fr; gap: 60px; align-items: center; max-width: 1100px; margin: 0 auto; }
.contact-avatar-col { display: flex; align-items: flex-end; justify-content: center; height: 100%; min-height: 460px; }
.contact-hero-img-wrap {
  position: relative;
  height: 500px;
  width: 1300px;
  max-width: 400px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07);
  animation: floatUp 4s ease-in-out infinite;
}
.contact-hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.contact-hero-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(17, 17, 20, 0.45) 100%);
  pointer-events: none;
}

.contact-card-col { text-align: left; }
.contact-card-col .contact-title, .contact-card-col .contact-sub, .contact-card-col .contact-note { text-align: left; }
.contact-card {
  background: var(--bg2);
  border-radius: 18px;
  padding: 36px;
  text-align: left;
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover { border-color: #3a3a40; transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45); }
.contact-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.contact-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #3b3bcc, #6622cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-card-top h4 { font-size: 15px; font-weight: 700; color: var(--white); }
.contact-card-top p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.contact-card-body { font-size: 13.5px; color: var(--muted); line-height: 1.72; margin-bottom: 24px; }
.contact-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-email {
  flex: 1;
  min-width: 0;
  background: var(--white);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  padding: 13px 16px;
  border-radius: 10px;
  text-align: center;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-email:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  background: #1e1e24;
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-cv:hover { background: #28282e; border-color: #4a4a50; transform: translateY(-2px); }
.btn-cv svg { width: 14px; height: 14px; flex-shrink: 0; }
.contact-socials { display: flex; justify-content: flex-start; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.contact-socials a { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; transition: color 0.2s, transform 0.2s; }
.contact-socials a:hover { color: var(--cream); transform: translateY(-2px); }
.contact-socials svg { width: 11px; height: 11px; }

/* =========================================
   FOOTER
========================================= */
footer { border-top: 1px solid var(--border); padding: 22px 48px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
footer p { font-size: 12px; color: var(--muted); }

/* =========================================
   SCROLL REVEAL & ANIMATIONS
========================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.hero-name-container { will-change: transform; transition: transform 0.12s ease-out; }
.hero-bottom { will-change: transform, opacity; transition: transform 0.08s linear, opacity 0.08s linear; }
.big-title, .about-headline, .projects-big-title, .contact-title { will-change: transform, opacity; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease; }
.skill-group { will-change: transform, opacity; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease; }
.vol-card { will-change: transform; transition: transform 0.25s ease-out, background 0.2s, box-shadow 0.2s; }

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 900px) {
  .hero-nav { padding: 20px 24px; }
  .nav-right { gap: 20px; }
  .hero-bottom { padding: 0 24px 32px; }
  .hero-bio { font-size: 13px; max-width: 260px; }
  .sec { padding: 60px 24px; }
  .big-title { font-size: clamp(28px, 7vw, 54px); margin-bottom: 40px; }
  .about-headline { font-size: clamp(22px, 6.5vw, 48px); margin-bottom: 40px; }
  .about-cols { grid-template-columns: 1fr; gap: 40px; }
  .about-text p { font-size: 15px; }
  .sec-projects { padding: 60px 0; }
  .projects-sub { padding: 0 24px; margin-bottom: 40px; }
  .projects-list { padding: 0 24px; gap: 16px; }
  .project-card { grid-template-columns: 1fr; gap: 28px; padding: 26px; border-radius: 14px; }
  .project-card h3 { font-size: 17px; }
  .vol-cards { grid-template-columns: 1fr; gap: 14px; }
  .vol-card { padding: 24px; border-radius: 14px; }
  .vol-card h3 { font-size: 17px; }
  .edu-row { grid-template-columns: 88px 1fr; gap: 20px; padding: 22px 0; }
  .edu-content h3 { font-size: 15px; }
  .sec-contact { padding: 64px 24px 60px; }
  .contact-inner { grid-template-columns: 1fr; gap: 0; }
  .contact-avatar-col { display: flex; justify-content: center; align-items: center; min-height: unset; margin-bottom: 32px; order: -1; }
  .contact-hero-img-wrap { width: 180px; height: 200px; max-width: 300px; border-radius: 18px; }
  .contact-card-col .contact-title { text-align: center; }
  .contact-card-col .contact-sub, .contact-card-col .contact-note { text-align: center; }
  .contact-socials { justify-content: center; }
  .contact-btns { flex-direction: column; }
  .btn-email, .btn-cv { min-width: unset; width: 100%; }
  footer { padding: 18px 24px; flex-direction: column; gap: 6px; text-align: center; }
  .data-ticker { display: none; }
}
@media (max-width: 540px) {
  .hero-name { font-size: 17vw; }
  .hero-avatar { width: 200px; height: 260px; border-radius: 14px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-bio-right { text-align: left; }
  .nav-btn { padding: 8px 13px; font-size: 10px; }
  .nav-right a { font-size: 13px; }
}

/* =========================================
   HOVER IMAGE GALLERY (Dynamic JS Version)
========================================= */
.hover-gallery .gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Change to 'contain' if you don't want the edges cut off */
  object-position: top; 
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1; 
}

/* Ensure the first image is always visible by default */
.hover-gallery .gallery-img:nth-child(1) {
  opacity: 1;
}
