/* ==========================================
   ULTIMATE PORTFOLIO — DESIGN SYSTEM V2
   Every section stands out with hero elements
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #030014;
  --bg-secondary: #0a0a1a;
  --bg-card: rgba(15, 15, 35, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.07);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #5a5a72;
  --accent-1: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #f43f5e;
  --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --accent-gradient-hot: linear-gradient(135deg, #7c3aed 0%, #f43f5e 50%, #06b6d4 100%);
  --accent-glow: rgba(124, 58, 237, 0.35);
  --font-heading: 'Outfit', 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.12);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-1) var(--bg-primary);
}
html::-webkit-scrollbar { width: 5px; }
html::-webkit-scrollbar-track { background: var(--bg-primary); }
html::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { color: var(--text-primary); font-weight: 600; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0 60px; position: relative; overflow: hidden; }
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   PRELOADER — Spinning ring + gradient text
   ========================================== */
#preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner {
  text-align: center; position: relative;
  display: flex; flex-direction: column; align-items: center;
}

.preloader-ring {
  width: 80px; height: 80px; margin: 0 auto 40px;
  border-radius: 50%; position: relative;
  border: 2px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.1);
}
/* Glowing planet core */
.preloader-ring-inner {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle, #06b6d4 0%, #7c3aed 100%);
  box-shadow: 0 0 20px #06b6d4, inset 0 0 10px #7c3aed;
  animation: planetPulse 2s ease-in-out infinite;
}
/* Orbital rings */
.preloader-ring::before {
  content: ''; position: absolute; inset: -15px; border-radius: 50%;
  border: 2px solid rgba(6, 182, 212, 0.1);
  border-top-color: #06b6d4; border-bottom-color: #7c3aed;
  animation: preloaderSpin 2s linear infinite;
}
.preloader-ring::after {
  content: ''; position: absolute; inset: -30px; border-radius: 50%;
  border: 1px dashed rgba(124, 58, 237, 0.4);
  animation: preloaderSpin 6s linear infinite reverse;
}
@keyframes planetPulse { 
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); box-shadow: 0 0 20px rgba(6,182,212,0.8); } 
  50% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 40px rgba(6,182,212,1), 0 0 60px rgba(124,58,237,0.8); } 
}
@keyframes preloaderSpin { to { transform: rotate(360deg); } }

.preloader-text {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800; letter-spacing: 0.2em;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 24px;
  animation: textPulse 2s ease-in-out infinite;
}
@keyframes textPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.preloader-bar-track {
  width: 200px; height: 3px; background: rgba(255,255,255,0.08);
  border-radius: 2px; margin: 0 auto 12px; overflow: hidden;
}
.preloader-bar-fill {
  height: 100%; width: 0%; background: var(--accent-gradient);
  border-radius: 2px; transition: width 0.1s linear;
}
.preloader-percent {
  font-family: var(--font-heading); font-size: 13px;
  color: var(--text-muted); letter-spacing: 0.15em;
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
.circle {
  position: fixed; pointer-events: none; width: 24px; height: 24px;
  border-radius: 50%; z-index: 9999; opacity: 0.7;
}
@media (max-width: 768px) { .circle { display: none !important; } }

/* ==========================================
   PARTICLE CANVAS
   ========================================== */
#particle-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#star-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6; }
.section-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4; }

/* ==========================================
   NAVIGATION — Pill-shaped glass navbar
   ========================================== */
.glass-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 24px;
  transition: var(--transition);
}
.glass-nav.scrolled .nav-pill {
  background: rgba(8, 5, 28, 0.95);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5), 0 0 20px rgba(124, 58, 237, 0.06);
}
.nav-pill {
  max-width: 1060px;
  margin: 0 auto;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: rgba(10, 8, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  transition: var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  height: 58px;
}
.nav-logo {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-bracket { color: var(--accent-1); font-weight: 400; }
.logo-slash { color: var(--accent-1); font-weight: 400; }
.nav-links { display: flex; list-style: none; gap: 2px; margin: 0 auto; }
.nav-link {
  padding: 7px 16px; border-radius: 100px; font-size: 0.85rem;
  font-weight: 400; color: var(--text-secondary); transition: var(--transition);
  position: relative; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }

/* Contact button */
.nav-contact-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-contact-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-hamburger span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 1px; transition: var(--transition); }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; flex-direction: column; padding: 12px 24px 20px; gap: 4px;
  max-width: 1060px; margin: 8px auto 0;
  background: rgba(10, 8, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.mobile-menu.open { display: flex; }
.mobile-link { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 1rem; color: var(--text-secondary); transition: var(--transition); }
.mobile-link:hover { background: var(--glass-bg); color: var(--text-primary); }
@media (max-width: 768px) { .nav-links { display: none; } .nav-contact-btn { display: none; } .nav-hamburger { display: flex; } }

/* ==========================================
   GLASS CARDS
   ========================================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition); position: relative;
}
.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(124, 58, 237, 0.15);
  box-shadow: var(--shadow-glow);
}
.glass-card-mini {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); border-radius: 100px;
  padding: 6px 16px; font-size: 0.8rem; color: var(--text-secondary);
}

/* ==========================================
   CURSOR LED GLOW EFFECT
   ========================================== */
.cursor-glow-element {
  position: relative;
}
.cursor-glow-element::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; /* The thickness of the glowing border */
  background: radial-gradient(
    800px circle at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
    var(--card-glow-color, rgba(6,182,212,0.8)),
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 10; /* Make sure it draws over the normal border */
}

/* Instant light up on enter, smooth 0.5s fade out on leave */
.cursor-glow-element:hover::before {
  opacity: 1;
  transition: opacity 0.1s ease;
}

/* ==========================================
   SECTION HEADERS — Tag + Title + Subtitle
   ========================================== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { margin-bottom: 8px; font-weight: 500; letter-spacing: 0.05em; }
.tag-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2);
  display: inline-block; animation: tagPulse 2s ease-in-out infinite;
}
@keyframes tagPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; margin: 4px 0 12px; letter-spacing: -0.03em;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ==========================================
   BUTTONS — With shine sweep + glow
   ========================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-md);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  border: none; cursor: pointer; transition: var(--transition);
  letter-spacing: 0.02em; position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--accent-gradient); color: white;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(124,58,237,0.5); }
.btn-secondary {
  background: var(--glass-bg); color: var(--text-primary);
  border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: var(--glass-hover); border-color: var(--accent-1); transform: translateY(-3px); }
.btn-icon { color: var(--accent-2); font-weight: 800; font-family: monospace; }
.btn-full { width: 100%; justify-content: center; }

/* Button shine sweep */
.btn-shine {
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: none;
}
.btn-glow:hover .btn-shine { left: 100%; transition: left 0.6s ease; }

/* ==========================================
   HERO SECTION — Full spectacular
   ========================================== */
.hero-section {
  display: flex; align-items: center; justify-content: center;
  position: relative; padding: 0; overflow: hidden;
}

/* Black hole video background */
.hero-blackhole-video {
  position: absolute;
  top: -480px; left: 0;
  width: 100%;
  min-height: 140%;
  object-fit: cover;
  transform: rotate(180deg);
  z-index: 0;
  opacity: 0.75;
  pointer-events: none;
}

/* Animated gradient orbs */
.hero-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: var(--accent-1); top: -10%; left: -5%; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: var(--accent-2); bottom: -5%; right: -5%; animation-delay: -3s; }
.orb-3 { width: 250px; height: 250px; background: var(--accent-3); top: 40%; right: 20%; animation-delay: -5s; opacity: 0.2; }
.orb-4 { width: 200px; height: 200px; background: #8b5cf6; bottom: 20%; left: 30%; animation-delay: -2s; opacity: 0.25; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Animated grid background */
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Parallax layers */
.hero-bg-layers { position: absolute; inset: 0; z-index: 0; }
.parallax-layer { position: absolute; inset: 0; }
.parallax-layer:nth-child(1) { background: radial-gradient(ellipse at 20% 80%, rgba(124,58,237,0.12) 0%, transparent 60%); }
.parallax-layer:nth-child(2) { background: radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.08) 0%, transparent 50%); }
.parallax-layer:nth-child(3) { background: radial-gradient(circle at 50% 50%, rgba(124,58,237,0.04) 0%, transparent 40%); }

/* Hero content */
.hero-content {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; min-height: 100vh;
}
.hero-left { flex: 0 0 50%; }
.hero-right { flex: 0 0 45%; display: flex; align-items: center; justify-content: center; }

/* Hero badge */
.hero-badge {
  margin-bottom: 24px; font-weight: 500;
  animation: badgeFade 1s ease forwards;
}
.badge-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  display: inline-block; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); } 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.badge-icon { color: var(--accent-2); }

/* Hero name */
.hero-name-large { margin-bottom: 16px; }
.hero-line {
  display: block; font-family: var(--font-heading); font-weight: 800;
  letter-spacing: -0.03em;
}
.line-1 { font-size: clamp(1rem, 2vw, 1.4rem); color: var(--text-secondary); margin-bottom: 4px; font-weight: 500; }
.line-2 { font-size: clamp(2.5rem, 5vw, 4rem); }

.hero-role-wrapper {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.hero-role-label { font-size: 1.1rem; color: var(--text-muted); font-weight: 400; }
.hero-typewriter-container {
  display: flex; align-items: baseline; height: 50px;
  white-space: nowrap;
}
.hero-typewriter-text {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  background: var(--accent-gradient-hot);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: inline-block;
  white-space: nowrap;
  overflow: hidden;
}
.hero-typewriter-cursor {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  color: var(--accent-2); margin-left: 2px;
  animation: cursorBlink 0.8s infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; margin-bottom: 28px; max-width: 480px; }
.hero-buttons { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }

/* Hero Tech Marquee — scrolling right to left */
.hero-marquee-wrapper {
  margin-top: 24px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.hero-marquee { overflow: hidden; width: 100%; }
.marquee-track {
  display: flex; gap: 14px; width: max-content;
  animation: marqueeScroll 25s linear infinite;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  flex-shrink: 0;
  padding: 8px 18px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}
.marquee-item:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
  color: var(--text-primary);
}

/* Hero visual — orbits */
.hero-visual { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }

/* Orbiting rings */
.orbit-container {
  position: absolute; inset: -40px; pointer-events: none;
}
.orbit {
  position: absolute; inset: 0; border: 1px solid rgba(124,58,237,0.06);
  border-radius: 50%; animation: orbitSpin linear infinite;
}
.orbit-1 { inset: 10%; animation-duration: 20s; }
.orbit-2 { inset: 25%; animation-duration: 15s; animation-direction: reverse; border-color: rgba(6,182,212,0.06); }
.orbit-3 { inset: 40%; animation-duration: 25s; border-color: rgba(244,63,94,0.04); }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

.orbit-dot {
  position: absolute; top: 0; left: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-1); transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--accent-glow);
}
.orbit-2 .orbit-dot { background: var(--accent-2); box-shadow: 0 0 12px rgba(6,182,212,0.4); }
.orbit-3 .orbit-dot { background: var(--accent-3); box-shadow: 0 0 12px rgba(244,63,94,0.3); }

/* Floating code snippet */
.floating-code {
  position: absolute; bottom: 10%; right: -5%;
  border-radius: var(--radius-md) !important; padding: 16px 20px !important;
  font-size: 0.7rem; line-height: 1.6;
  animation: codeFloat 4s ease-in-out infinite;
  z-index: 5;
}
@keyframes codeFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.floating-code pre { margin: 0; }
.floating-code code { font-family: 'SF Mono', 'Fira Code', monospace; color: var(--text-secondary); }
.code-keyword { color: var(--accent-1); }
.code-fn { color: var(--accent-2); }
.code-cls { color: #f59e0b; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 5;
  animation: scrollFade 2s ease-in-out infinite;
}
@keyframes scrollFade { 0%,100% { opacity: 1; transform: translateX(-50%) translateY(0); } 50% { opacity: 0.5; transform: translateX(-50%) translateY(8px); } }
.scroll-mouse { width: 24px; height: 38px; border: 2px solid var(--glass-border); border-radius: 12px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-dot { width: 4px; height: 8px; background: var(--accent-1); border-radius: 2px; animation: scrollDot 1.5s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
.scroll-indicator span { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ==========================================
   SECTION DECORATIONS — Floats & shapes
   ========================================== */
.section-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.float-shape {
  position: absolute; font-size: 2rem; color: rgba(124,58,237,0.08);
  animation: shapeFloat 6s ease-in-out infinite;
}
.shape-1 { top: 15%; left: 5%; animation-delay: 0s; }
.shape-2 { top: 60%; right: 8%; animation-delay: -2s; font-size: 2.5rem; color: rgba(6,182,212,0.06); }
.shape-3 { bottom: 10%; left: 15%; animation-delay: -4s; color: rgba(244,63,94,0.06); }
@keyframes shapeFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(10deg); } }

.gradient-line-h {
  position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), transparent);
  opacity: 0.15;
}

/* ==========================================
   ABOUT SECTION — Avatar + Text Layout
   ========================================== */
.about-layout {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}

/* Avatar Column */
.about-avatar-col {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.about-avatar-wrapper {
  position: relative; width: 280px; height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.about-avatar-ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: avatarRingSpin 6s linear infinite;
}
.about-avatar-ring.ring-2 {
  inset: -16px;
  border-width: 1px;
  opacity: 0.3;
  animation-duration: 10s;
  animation-direction: reverse;
}
@keyframes avatarRingSpin { to { transform: rotate(360deg); } }

.about-avatar-img {
  width: 260px; height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.2), 0 0 120px rgba(6, 182, 212, 0.08);
  position: relative; z-index: 2;
}

.about-avatar-badges {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.about-info-badge {
  font-size: 0.82rem; font-weight: 500;
}

/* Text Column */
.about-text-col {
  text-align: left;
}
.about-text-col .section-tag {
  margin-bottom: 16px;
}
.about-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin: 8px 0 24px; line-height: 1.15;
}
.about-bio {
  color: var(--text-secondary);
  font-size: 0.95rem; line-height: 1.85;
  max-width: 600px;
}
.about-bio strong {
  color: var(--text-primary); font-weight: 600;
}

/* Typewriter Effect CSS */
.typewriter-wrapper {
  display: inline-block;
}
.typewriter-text {
  overflow: hidden;
  border-right: 0.15em solid var(--accent-2);
  white-space: nowrap;
  letter-spacing: 0.02em;
  animation: 
    typing 3s steps(30, end) infinite alternate,
    blink-caret 0.75s step-end infinite;
  display: inline-block;
  max-width: 100%;
}
@keyframes typing {
  0% { width: 0; }
  20% { width: 0; }
  80% { width: 100%; }
  100% { width: 100%; }
}
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-2); }
}

/* Counters Row */
.about-counters-row {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 48px;
  position: relative; z-index: 1;
}
.about-counters-row .counter-card {
  text-align: center; padding: 24px 16px;
}

/* Counter cards */
.counter-icon { display: flex; justify-content: center; margin-bottom: 12px; color: var(--accent-2); }
.counter-value {
  font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800;
  background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.counter-suffix { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--accent-2); }
.counter-label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ==========================================
   SKILLS SECTION
   ========================================== */
/* Skills ambient video glow */
.skills-video-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: 0.12;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Hex grid decoration */
.hex-grid { position: absolute; right: 5%; top: 20%; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; transform: rotate(15deg); }
.hex {
  width: 50px; height: 50px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(124,58,237,0.04); border: 1px solid rgba(124,58,237,0.06);
  animation: hexPulse 3s ease-in-out infinite;
}
.hex:nth-child(2n) { animation-delay: -1s; }
.hex:nth-child(3n) { animation-delay: -2s; }
@keyframes hexPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 0.7; } }

/* Infinite Scrolling Tech Marquee */
.tech-marquee-wrapper {
  margin-top: 48px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.tech-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: techMarqueeScroll 35s linear infinite;
}
.tech-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes techMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-card {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 14px 24px !important;
  background: rgba(15, 12, 35, 0.7) !important;
  border: 1px solid rgba(124, 58, 237, 0.15) !important;
  border-radius: 100px !important;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-card:hover {
  background: rgba(30, 24, 60, 0.85) !important;
  border-color: rgba(124, 58, 237, 0.5) !important;
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.2);
  transform: translateY(-3px);
}

.tech-icon {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.skill-icon-wrap {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124,58,237,0.08); border-radius: var(--radius-md);
  border: 1px solid rgba(124,58,237,0.1);
  transition: var(--transition);
}
.skill-card:hover .skill-icon-wrap { background: rgba(124,58,237,0.15); transform: scale(1.1) rotate(5deg); border-color: rgba(124,58,237,0.25); }
.skill-icon { font-size: 1.6rem; transition: transform 0.3s ease; }
.skill-name { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.skill-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.skill-bar-fill { height: 100%; width: 0%; background: var(--accent-gradient); border-radius: 2px; transition: width 1.5s cubic-bezier(0.4,0,0.2,1); }
.skill-percent { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; }

/* ==========================================
   TRUST INTERLUDE — Reimagined encryption
   ========================================== */
.trust-section {
  position: relative; overflow: hidden;
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  padding: 80px 0;
}
.trust-video-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: 0.25;
  pointer-events: none;
}
.trust-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 640px; padding: 0 24px;
}
.trust-icon-container {
  display: flex; justify-content: center; margin-bottom: 28px;
}
.trust-shield {
  position: relative; width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 50%; cursor: pointer;
  transition: var(--transition);
}
.trust-shield:hover { background: rgba(124, 58, 237, 0.15); transform: scale(1.1); }
.shield-pulse-ring {
  position: absolute; inset: -12px; border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.2);
  animation: shieldPulse 3s ease-in-out infinite;
}
.shield-pulse-ring.ring-2 { inset: -24px; animation-delay: -1.5s; border-color: rgba(6, 182, 212, 0.15); }
@keyframes shieldPulse { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 0; } }

.trust-badge {
  margin-bottom: 20px; font-weight: 500;
}
.trust-sparkle { color: var(--accent-2); margin-right: 4px; }
.trust-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  margin-bottom: 16px; letter-spacing: -0.03em;
}
.trust-desc {
  color: var(--text-secondary); font-size: 0.95rem;
  line-height: 1.8; margin-bottom: 32px;
}
.trust-metrics {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.trust-metric {
  flex-direction: column; gap: 4px; padding: 12px 24px;
  border-radius: var(--radius-md) !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(124, 58, 237, 0.12) !important;
  transition: var(--transition);
}
.trust-metric:hover {
  background: rgba(124, 58, 237, 0.08) !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
  transform: translateY(-3px);
}
.trust-metric-value {
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: block;
}
.trust-metric-label {
  font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; display: block;
}

/* ==========================================
   PROJECTS SECTION — Enhanced glow cards
   ========================================== */
/* Corner accents */
.corner-accent {
  position: absolute; width: 80px; height: 80px;
  border: 1px solid rgba(124,58,237,0.08);
}
.corner-accent.top-left { top: 80px; left: 20px; border-right: none; border-bottom: none; }
.corner-accent.top-right { top: 80px; right: 20px; border-left: none; border-bottom: none; }
.corner-accent.bottom-left { bottom: 40px; left: 20px; border-right: none; border-top: none; }
.corner-accent.bottom-right { bottom: 40px; right: 20px; border-left: none; border-top: none; }

.gradient-sphere {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15;
}
.sphere-1 { width: 300px; height: 300px; background: var(--accent-1); top: 10%; left: -5%; }
.sphere-2 { width: 250px; height: 250px; background: var(--accent-2); bottom: 10%; right: -5%; }
.sphere-3 { width: 280px; height: 280px; background: var(--accent-1); top: 20%; right: -8%; }
.sphere-4 { width: 220px; height: 220px; background: var(--accent-2); bottom: 15%; left: -5%; }

.project-stack-container {
  display: flex;
  flex-direction: column;
  gap: 140px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.project-stack-card {
  position: sticky;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s ease,
              box-shadow 0.6s ease;
  will-change: transform, opacity;
}
.project-stack-card.tint-navy {
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(8,15,30,0.98));
}
.project-stack-card.tint-purple {
  background: linear-gradient(135deg, rgba(20,15,45,0.95), rgba(10,5,30,0.98));
}

.mac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mac-dots { display: flex; gap: 8px; width: 60px; }
.mac-dots .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mac-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-1);
  letter-spacing: 0.02em;
}
.mac-spacer { width: 60px; }

/* Full-width card body (no split layout) */
.project-card-body {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
}
.stack-project-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--text-primary);
  width: 100%;
}
.stack-project-duration {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.stack-project-points {
  list-style: none; padding: 0; margin-bottom: 28px;
  width: 100%;
  max-width: 100%;
}
.stack-project-points li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.stack-project-points li::before {
  content: '✦';
  position: absolute; left: 0; top: 2px;
  color: var(--accent-1);
  font-size: 0.85rem;
}

/* Tech stack pills — dark glassmorphism style with cyan border */
.stack-project-tech {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px;
  width: 100%;
}
.tech-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(10, 10, 30, 0.7);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(6, 182, 212, 0.9);
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: default;
}
.tech-tag:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.5);
  color: #06b6d4;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}

.stack-project-buttons {
  display: flex; gap: 16px; margin-top: 8px;
}

/* ---- Live Demo Button ---- */
.btn-live-demo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7c3aed, #06b6d4, #7c3aed);
  background-size: 300% 300%;
  animation: liveGradientShift 4s ease infinite;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-live-demo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 32px rgba(124, 58, 237, 0.5), 0 0 40px rgba(6, 182, 212, 0.25);
}
@keyframes liveGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pulsing red live dot */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: livePulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); }
  50% { opacity: 0.4; box-shadow: 0 0 16px rgba(239, 68, 68, 1); }
}

/* ---- Project Section 2-column Layout ---- */
.project-section-layout {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Side decoration columns */
.project-side-decor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Vertical glowing line */
.project-vert-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(124, 58, 237, 0.4) 15%,
    rgba(6, 182, 212, 0.5) 50%,
    rgba(124, 58, 237, 0.4) 85%,
    transparent
  );
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Project number indicators — positioned by JS */
.project-number-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(124, 58, 237, 0.3);
  letter-spacing: 0.05em;
  background: rgba(10, 10, 30, 0.8);
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid rgba(124, 58, 237, 0.15);
  text-shadow: none;
  transition: all 0.5s ease;
}
.project-number-indicator.active {
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.08);
  text-shadow: 0 0 14px rgba(6, 182, 212, 0.8), 0 0 28px rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

/* Floating tech icons (right side) */
.project-float-icon {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.2;
  top: var(--offset);
  animation: projectIconFloat 12s linear infinite;
  animation-delay: var(--delay);
}
@keyframes projectIconFloat {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.25;
  }
  90% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(-200px);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .project-section-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .project-side-decor { display: none; }
  .project-card-body { padding: 28px 20px; }
  .project-stack-card { top: 80px !important; }
  .stack-project-title { font-size: 1.6rem; }
  .stack-project-buttons { flex-direction: column; gap: 12px; }
}

/* ==========================================
   EXPERIENCE SECTION — Alternating Timeline
   ========================================== */
.alt-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
  z-index: 1;
}

/* Center vertical line (background / full length) */
.alt-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(99,102,241,0.08),
    rgba(99,102,241,0.15) 30%,
    rgba(6,182,212,0.15) 70%,
    rgba(6,182,212,0.08)
  );
}

/* Scroll-driven progress overlay */
.alt-timeline-line-progress {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 0%; /* JS will update this */
  background: linear-gradient(
    to bottom,
    rgba(99,102,241,0.3),
    rgba(6,182,212,0.9)
  );
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(6,182,212,0.4);
  transition: height 0.15s linear;
}

/* Each timeline row */
.alt-timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  width: 100%;
}
.alt-timeline-item:last-child { margin-bottom: 0; }

/* LEFT card alignment */
.alt-left {
  justify-content: flex-start;
  padding-right: calc(50% + 28px);
}
.alt-left .alt-timeline-card {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.alt-left.visible .alt-timeline-card {
  opacity: 1;
  transform: translateX(0);
}

/* RIGHT card alignment */
.alt-right {
  justify-content: flex-end;
  padding-left: calc(50% + 28px);
}
.alt-right .alt-timeline-card {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.alt-right.visible .alt-timeline-card {
  opacity: 1;
  transform: translateX(0);
}

/* Connector dot on the center line */
.alt-timeline-dot {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 14px; height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #06b6d4;
  border: 3px solid var(--bg-primary);
  z-index: 3;
  box-shadow: 0 0 14px rgba(6,182,212,0.5);
}
.alt-dot-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(6,182,212,0.35);
  animation: altDotPulse 2.2s ease-in-out infinite;
}
@keyframes altDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.8); opacity: 0; }
}

/* Glassmorphic card */
.alt-timeline-card {
  padding: 28px 24px;
  position: relative;
  border: 1px solid rgba(6,182,212,0.12) !important;
  box-shadow: 0 0 30px rgba(6,182,212,0.06), 0 8px 32px rgba(0,0,0,0.25);
}
.alt-timeline-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(6,182,212,0.3) !important;
  box-shadow: 0 0 40px rgba(6,182,212,0.15), 0 16px 48px rgba(0,0,0,0.35);
}

/* Type pill */
.alt-type-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pill-internship {
  background: rgba(0,180,216,0.1);
  color: #00B4D8;
  border: 1px solid rgba(0,180,216,0.2);
}
.pill-training {
  background: rgba(139,92,246,0.1);
  color: #8B5CF6;
  border: 1px solid rgba(139,92,246,0.2);
}

/* Card content */
.alt-card-role {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.alt-card-company {
  font-size: 0.95rem;
  color: #06b6d4;
  font-weight: 600;
  margin-bottom: 2px;
}
.alt-card-duration {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.alt-card-points {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}
.alt-card-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}
.alt-card-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #06b6d4;
  font-weight: 700;
}

/* Tech stack tags */
.alt-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.alt-card-tags span {
  padding: 3px 10px;
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.12);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* View Certificate button */
.alt-cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid #06b6d4;
  border-radius: 100px;
  color: #06b6d4;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}
.alt-cert-btn:hover {
  background: #06b6d4;
  color: var(--bg-primary);
  box-shadow: 0 0 18px rgba(6,182,212,0.3);
}

/* Mini Stat Chips */
.alt-timeline-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  top: 18px;
  z-index: 2;
}
.alt-left .alt-timeline-chips {
  left: calc(50% + 40px);
  align-items: flex-start;
}
.alt-right .alt-timeline-chips {
  right: calc(50% + 40px);
  align-items: flex-end;
}
.mini-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(10, 10, 25, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 100px;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.15), inset 0 0 10px rgba(6, 182, 212, 0.1);
  animation: chipBob 4s ease-in-out infinite;
  transition: all 0.3s ease;
}
.mini-chip:nth-child(even) {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15), inset 0 0 10px rgba(124, 58, 237, 0.1);
  animation-delay: -2s;
}
.mini-chip:hover {
  transform: scale(1.05);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), inset 0 0 15px rgba(124, 58, 237, 0.2);
}
.chip-icon {
  font-size: 0.9rem;
}
.chip-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@keyframes chipBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Responsive: single column on mobile */
@media (max-width: 768px) {
  .alt-timeline-line { left: 20px; }
  .alt-timeline-dot { left: 20px; }
  .alt-timeline-item { flex-direction: column; align-items: stretch; }
  .alt-left,
  .alt-right {
    padding-left: 52px;
    padding-right: 0;
  }
  .alt-right .alt-timeline-card {
    transform: translateX(-60px);
  }
  .alt-timeline-chips {
    width: 100%;
    position: relative;
    left: 0 !important;
    right: auto !important;
    top: 0;
    margin: 16px 0 0 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    align-items: flex-start !important;
  }
  .alt-timeline-chips::before,
  .alt-timeline-chips::after {
    left: 20px;
  }
}


/* ==========================================
   CONTACT SECTION
   ========================================== */
.mesh-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(6,182,212,0.06) 0%, transparent 50%);
}
.float-emoji {
  position: absolute; font-size: 2rem; opacity: 0.15;
  animation: emojiFloat 5s ease-in-out infinite;
}
.e1 { top: 20%; right: 10%; animation-delay: 0s; }
.e2 { bottom: 30%; left: 8%; animation-delay: -2s; }
.e3 { top: 50%; right: 25%; animation-delay: -3.5s; }
@keyframes emojiFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(10deg); } }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50/50 split */
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  align-items: center;
  padding: 0 40px;
}

.contact-form-col {
  width: 100%;
}

.contact-spline-col {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px;
}

/* Dark Form Card */
.dark-form-card {
  margin-top: 40px;
  background: #0a0a1a !important;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px !important;
  padding: 32px !important;
  max-width: 500px;
}
.dark-form-card .stack-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.dark-form-card label {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  margin-bottom: 10px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.dark-form-card input,
.dark-form-card textarea {
  background: rgba(20, 20, 40, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 14px 18px !important;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.dark-form-card input:focus,
.dark-form-card textarea:focus {
  border-color: rgba(124, 58, 237, 0.8) !important;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.25) !important;
  outline: none;
}

/* Multicolor Send Button */
.btn-multicolor {
  height: 55px;
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(90deg, #7C3AED, #06B6D4, #10B981, #F59E0B);
  background-size: 200% auto;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}
.btn-multicolor svg {
  margin-left: 4px;
}
.btn-multicolor:hover {
  background-position: right center;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.contact-form-col {
  width: 100%;
}

.contact-spline-col {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  height: 100%;
  padding-left: 60px;
}

/* Float animation on the wrapper — whole thing moves together */
.spline-float-wrapper {
  animation: astronautFloat 3s ease-in-out infinite;
}

.spline-crop {
  width: 450px;
  height: 480px;
  max-width: 100%;
}

.spline-crop spline-viewer {
  width: 450px !important;
  height: 480px !important;
  max-width: 100%;
  pointer-events: none;
  display: block;
}

@keyframes astronautFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Hide Spline branding */
spline-viewer::part(watermark) { 
  display: none !important; 
}
spline-viewer #logo {
  display: none !important;
}

/* Container for blending */
.spline-container {
  width: 100%;
  height: 100%;
  position: absolute; /* absolute fill to match col height */
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at center, black 40%, transparent 100%);
}

/* Hide ME text overlay */
.spline-hide-logo {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 140px;
  height: 100px;
  background: var(--bg-primary);
  z-index: 10;
  pointer-events: none;
  filter: blur(12px);
}

/* 3D Spline viewer takes full width/height */
.spline-container spline-viewer {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

/* Subtle cyan/purple radial glow behind the robot */
.spline-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

#contact {
  padding-bottom: 100px;
}
.contact-card { padding: 40px; position: relative; overflow: hidden; }
.contact-card-glow {
  position: absolute; top: -50%; right: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(6,182,212,0.05) 0%, transparent 50%);
  animation: contactGlow 8s ease-in-out infinite;
}
@keyframes contactGlow { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-5%,5%); } }

.contact-info-row {
  display: flex; gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.contact-info-item {
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-secondary);
}
.contact-info-icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--accent-2); padding: 0;
}
.contact-intro { text-align: center; color: var(--text-secondary); margin-bottom: 28px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { position: relative; margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  color: var(--text-primary); font-family: var(--font-body); font-size: 0.92rem;
  outline: none; transition: var(--transition); resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-1); box-shadow: 0 0 24px rgba(124,58,237,0.12); background: rgba(255,255,255,0.05);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.input-glow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--accent-gradient); border-radius: 1px; transition: width 0.4s ease;
}
.form-group input:focus ~ .input-glow, .form-group textarea:focus ~ .input-glow { width: 100%; }

/* ==========================================
   FOOTER
   ========================================== */
.footer { padding: 48px 0; border-top: 1px solid var(--glass-border); position: relative; }
.footer-beam {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), transparent);
}
.footer-inner { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; text-align: center; }
.footer-logo { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; }
.footer-socials { display: flex; gap: 12px; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); transition: var(--transition);
}
.social-link:hover {
  color: white; background: var(--accent-1); border-color: var(--accent-1);
  transform: translateY(-4px); box-shadow: 0 6px 24px var(--accent-glow);
}
.footer-text { font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================
   REVEAL ANIMATIONS
   ========================================== */
/* Reveal Animations */
.reveal { opacity: 0; transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.visible { opacity: 1; transform: none !important; }
.reveal-up { transform: translateY(60px); }
.reveal-left { transform: translateX(-80px); }
.reveal-right { transform: translateX(80px); }
.reveal-scale { transform: scale(0.8); }

/* 3D tilt card */
.tilt-card { transition: transform 0.15s ease; transform-style: preserve-3d; }

/* ==========================================
   ORBITING CIRCLES — Skills section
   ========================================== */
.orbit-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center; justify-content: center;
  margin-top: 40px;
  overflow: visible;
}
.orbit-path {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-item {
  position: absolute;
  width: 44px; height: 44px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translate(-50%, -50%);
  animation: orbitRotate var(--duration) linear infinite;
  animation-delay: var(--delay);
  offset-path: circle(var(--radius) at center);
  z-index: 2;
}
.orbit-item:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 20px var(--accent-glow);
  z-index: 10;
}
@keyframes orbitRotate {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

/* ==========================================
   FLOATING DOCK — Navigation & Socials
   ========================================== */
.floating-dock {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; align-items: center; gap: 8px;
  padding: 8px; background: rgba(15, 15, 35, 0.7);
  backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
  border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-dock:hover { transform: translateX(-50%) translateY(-4px); }
.dock-item {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: var(--transition);
  position: relative;
}
.dock-item:hover {
  background: var(--glass-bg); color: var(--text-primary);
  transform: scale(1.1);
}
.dock-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%);
  padding: 4px 10px; background: var(--bg-primary); border: 1px solid var(--glass-border);
  border-radius: 6px; font-size: 0.7rem; color: var(--text-primary);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
  white-space: nowrap;
}
.dock-item:hover::after { opacity: 1; }

/* ==========================================
   3D GLOBE — About/Contact section
   ========================================== */
.globe-container {
  width: 100%; height: 380px; position: relative;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  margin-top: -30px;
}
#globe-canvas {
  width: 100%; height: 100%; max-width: 800px;
  opacity: 0; transition: opacity 1s ease;
  cursor: grab;
}
#globe-canvas:active { cursor: grabbing; }

/* ==========================================
   CREDENTIALS SECTION — Certificates + Badges
   ========================================== */

/* Certificate Carousel */
.cert-carousel-wrapper {
  position: relative; z-index: 1;
  margin-bottom: 64px;
}
.cert-carousel {
  display: flex; gap: 24px;
  overflow-x: hidden; overflow-y: hidden;
  padding: 20px 4px 24px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cert-carousel::-webkit-scrollbar { display: none; }

.cert-carousel .cert-scroll-track {
  display: flex; gap: 24px;
  width: max-content;
  animation: certMarquee 40s linear infinite;
}
@keyframes certMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cert-carousel:hover .cert-scroll-track {
  animation-play-state: paused;
}

.cert-card {
  flex: 0 0 340px; min-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(165, 243, 252, 0.4);
  border-color: rgba(165, 243, 252, 0.8);
}
.cert-card:active {
  transform: scale(0.96);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
  border-color: rgba(6, 182, 212, 0.8);
  transition: all 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cert-card img {
  width: 100%; height: 240px;
  object-fit: cover; display: block;
  cursor: pointer; transition: transform 0.4s ease;
}
.cert-card:hover img { transform: scale(1.03); }

.cert-carousel-hint {
  text-align: center; font-size: 0.78rem;
  color: var(--text-muted); margin-top: 8px;
  letter-spacing: 0.08em; animation: hintPulse 2.5s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 0.3; } }

/* Certificate Fullscreen Modal */
.cert-modal {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.cert-modal.active { opacity: 1; visibility: visible; }
.cert-modal img {
  max-width: 90vw; max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}
.cert-modal-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: white; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.cert-modal-close:hover {
  background: rgba(255,255,255,0.15); transform: scale(1.1);
}

/* Badges Subheader */
.badges-subheader {
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Badges Marquee */
.badges-marquee-wrapper {
  overflow: hidden;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.badges-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: badgesMarqueeScroll 25s linear infinite;
}

.badges-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes badgesMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.badge-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 10px;
  width: 160px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  flex-shrink: 0;
}
.badge-card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(124,58,237,0.15), rgba(6,182,212,0.15), rgba(124,58,237,0.15));
  z-index: -1; opacity: 0.5;
}
.badge-card::after {
  content: ''; position: absolute; inset: 1px;
  border-radius: inherit;
  background: var(--bg-card);
  z-index: -1;
}
.badge-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 0 40px rgba(165, 243, 252, 0.4);
  border-color: rgba(165, 243, 252, 0.8);
}
.badge-card:active {
  transform: scale(0.95);
  box-shadow: 0 0 35px rgba(124, 58, 237, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
  border-color: rgba(124, 58, 237, 0.8);
  transition: all 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.badge-card img {
  width: 100%; max-width: 90px; height: auto;
  object-fit: contain; display: block;
  transition: transform 0.35s ease;
}
.badge-card:hover img { transform: scale(1.08); }

/* Click sweep shine animation */
.shine-anim::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.9), transparent);
  transform: skewX(-20deg);
  animation: sweepShine 0.5s ease-out forwards;
  z-index: 10;
  pointer-events: none;
}
@keyframes sweepShine {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ==========================================
   COMPETITIVE PROGRAMMING SECTION
   ========================================== */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.cp-card {
  padding: 35px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
}
.cp-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.5);
}
.cp-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.4));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cp-card:hover .cp-icon {
  transform: scale(1.15) rotate(8deg);
}
.cp-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.gradient-text-cyan {
  background: linear-gradient(135deg, #06b6d4, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cp-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* GITHUB HEATMAP */
.github-heatmap-wrapper {
  width: 100%;
}
.github-heatmap-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
}
.heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.heatmap-title {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
}
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
}
.heatmap-grid-container {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 4px;
}
.heatmap-months {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 2px;
  padding-right: 18px;
}
.heatmap-days {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding-top: 32px;
  padding-bottom: 12px;
  text-align: right;
  padding-right: 5px;
}
.heatmap-cell {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}
.heatmap-cell:hover {
  transform: scale(1.3);
  z-index: 10;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.level-0 { background-color: rgba(255, 255, 255, 0.04); }
.level-1 { background-color: rgba(6, 182, 212, 0.25); }
.level-2 { background-color: rgba(6, 182, 212, 0.5); }
.level-3 { background-color: rgba(6, 182, 212, 0.75); }
.level-4 { background-color: rgba(6, 182, 212, 1); box-shadow: 0 0 8px rgba(6, 182, 212, 0.5); }

/* ==========================================
   EDUCATION SECTION
   ========================================== */
.education-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 40px 0;
}

/* Floating Background Icons */
.edu-float-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.edu-float-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.07;
  left: var(--offset);
  animation: eduFloatUp 15s linear infinite;
  animation-delay: var(--delay);
}
@keyframes eduFloatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.07; }
  90% { opacity: 0.07; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Glowing Vertical Timeline Line */
.edu-timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(6, 182, 212, 0.6) 0%,
    rgba(124, 58, 237, 0.6) 50%,
    rgba(59, 130, 246, 0.6) 100%
  );
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.edu-timeline-line.draw-line {
  transform: scaleY(1);
}

/* Timeline Layout */
.education-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-left: 60px; /* Space for timeline and dots */
}

.edu-timeline-item {
  position: relative;
}

/* Timeline Dots */
.edu-timeline-dot {
  position: absolute;
  left: -40px;
  top: 36px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px currentColor;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.edu-timeline-item.revealed .edu-timeline-dot {
  transform: scale(1);
}
.dot-cyan { background: #06b6d4; color: #06b6d4; }
.dot-purple { background: #7c3aed; color: #7c3aed; }
.dot-blue { background: #3b82f6; color: #3b82f6; }

/* Card Styling */
.edu-card {
  padding: 0; /* padding applied to content */
  overflow: hidden;
}
.edu-card-content {
  display: flex;
  padding: 24px;
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
}
.hover-glow-cyan:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.15), 0 0 20px rgba(6, 182, 212, 0.1) inset;
}
.hover-glow-purple:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15), 0 0 20px rgba(124, 58, 237, 0.1) inset;
}
.hover-glow-blue:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.1) inset;
}

/* Far Left Icon Box */
.edu-icon-box {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 30, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid;
  transition: all 0.4s ease;
}
.edu-emoji { font-size: 1.6rem; }

.box-cyan { border-color: rgba(6, 182, 212, 0.4); box-shadow: 0 0 15px rgba(6, 182, 212, 0.2) inset; text-shadow: 0 0 10px rgba(6, 182, 212, 0.5); }
.box-purple { border-color: rgba(124, 58, 237, 0.4); box-shadow: 0 0 15px rgba(124, 58, 237, 0.2) inset; text-shadow: 0 0 10px rgba(124, 58, 237, 0.5); }
.box-blue { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 0 15px rgba(59, 130, 246, 0.2) inset; text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }

.hover-glow-cyan:hover .box-cyan { border-color: rgba(6, 182, 212, 0.8); box-shadow: 0 0 20px rgba(6, 182, 212, 0.4) inset, 0 0 15px rgba(6, 182, 212, 0.3); }
.hover-glow-purple:hover .box-purple { border-color: rgba(124, 58, 237, 0.8); box-shadow: 0 0 20px rgba(124, 58, 237, 0.4) inset, 0 0 15px rgba(124, 58, 237, 0.3); }
.hover-glow-blue:hover .box-blue { border-color: rgba(59, 130, 246, 0.8); box-shadow: 0 0 20px rgba(59, 130, 246, 0.4) inset, 0 0 15px rgba(59, 130, 246, 0.3); }

/* Card Info Area */
.edu-info {
  flex-grow: 1;
}
.edu-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.edu-duration {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid;
  transition: all 0.4s ease;
}
.glow-cyan { color: #06b6d4; border-color: rgba(6, 182, 212, 0.3); }
.glow-purple { color: #c084fc; border-color: rgba(124, 58, 237, 0.3); }
.glow-blue { color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }

.hover-glow-cyan:hover .glow-cyan { border-color: rgba(6, 182, 212, 0.6); box-shadow: 0 0 12px rgba(6, 182, 212, 0.2); }
.hover-glow-purple:hover .glow-purple { border-color: rgba(124, 58, 237, 0.6); box-shadow: 0 0 12px rgba(124, 58, 237, 0.2); }
.hover-glow-blue:hover .glow-blue { border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 0 12px rgba(59, 130, 246, 0.2); }

/* Status Badges */
.edu-status {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
}
.status-active { color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.2); }
.status-completed { color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }

.status-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; box-shadow: 0 0 12px #4ade80; }
}

/* Typography */
.edu-degree {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}
.edu-stream {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.edu-institution {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.edu-location {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Grade Badge with Shimmer */
.edu-grade-row {
  margin-bottom: 12px;
}
.edu-grade-badge {
  position: relative;
  display: inline-flex;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 6px;
  overflow: hidden;
}
.shimmer-effect {
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  20%, 100% { left: 200%; }
}

.edu-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
  margin-top: 4px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .cp-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .github-heatmap-card { overflow-x: auto; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0 60px; }
  .section-header { margin-bottom: 44px; }
  .glass-card { padding: 24px; }
  .hero-content { flex-direction: column; text-align: left; padding: 100px 24px 60px; }
  .hero-left { flex: none; width: 100%; }
  .hero-right { flex: none; width: 100%; margin-top: 20px; }
  .hero-visual { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-text-col { text-align: center; }
  .about-bio { margin: 0 auto; }
  .about-heading { text-align: center; }
  .about-text-col .section-tag { display: flex; justify-content: center; }
  .about-counters-row { grid-template-columns: repeat(2, 1fr); }
  .about-avatar-wrapper { width: 220px; height: 220px; }
  .about-avatar-img { width: 200px; height: 200px; }
  .counter-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .projects-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 36px; }
  .timeline::before { left: 12px; }
  .timeline-dot { left: -32px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .corner-accent { display: none; }
  .floating-year { display: none; }
  .hex-grid { display: none; }
  .floating-code { display: none; }
  .orbit-wrapper { height: 350px; }
  .globe-container { height: 320px; }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-card-content { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .edu-icon-box { margin-bottom: 0; }
  .education-grid { padding-left: 20px; }
  .edu-timeline-line { display: none; }
  .edu-timeline-dot { display: none; }
  .edu-header-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-spline-col { min-height: 350px; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-name-large .line-2 { font-size: 2.2rem; }
  .counter-value { font-size: 2.2rem; }
  .contact-card { padding: 20px; }
  .floating-dock { bottom: 12px; padding: 4px; border-radius: 12px; }
  .dock-item { width: 40px; height: 40px; }
  .badges-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cert-card { flex: 0 0 260px; min-width: 260px; }
  .badge-card { padding: 20px; }
  .cp-grid { grid-template-columns: 1fr; gap: 20px; }
  .github-heatmap-card { padding: 16px; }
  .heatmap-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ===== Contact form: spam trap + delivery status ===== */
.form-honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.2em; margin: 12px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary); }
.form-status[data-tone="ok"] { color: #34d399; }
.form-status[data-tone="warn"] { color: #fbbf24; }
.contact-form button[disabled] { opacity: .75; cursor: progress; }

/* ===== Mobile hero: keep text readable over the black hole ===== */
@media (max-width: 768px) {
  .hero-blackhole-video { opacity: 0.38; top: -340px; }
  .hero-left {
    position: relative;
    padding: 22px 20px 26px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(6, 4, 18, 0.62) 0%, rgba(6, 4, 18, 0.42) 100%);
    border: 1px solid rgba(167, 139, 250, 0.16);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .hero-name-large, .hero-role-label { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
  .hero-desc { color: #d6d4ee; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
}
