/* ============================================================
   karimsangid.dev — ULTRA Premium Portfolio Styles
   ============================================================ */

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

:root {
  --bg: #050507;
  --bg-card: #0a0a0f;
  --text: #ffffff;
  --text-secondary: #888899;
  --accent: #ff4444;
  --accent-hover: #ff6b6b;
  --accent-glow: rgba(255, 68, 68, 0.08);
  --accent-border: rgba(255, 68, 68, 0.1);
  --accent2: #4444ff;
  --accent3: #ff44aa;
  --accent4: #00ffff;
  --border: rgba(255, 255, 255, 0.06);
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-height: 72px;
  --container: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.33, 1, 0.68, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

/* Screen flash on load complete */
body.flash::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 68, 68, 0.1);
  z-index: 99998;
  pointer-events: none;
  animation: flashFade 0.2s ease-out forwards;
}
@keyframes flashFade {
  from { opacity: 1; }
  to { opacity: 0; }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { background: none; border: none; color: inherit; font: inherit; cursor: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

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

/* ============================================================
   LOADING SCREEN — DRAMATIC BOOT
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s var(--ease-in-out), opacity 0.8s var(--ease-in-out);
}

.loader.done {
  transform: translateY(-100%) scaleY(0.8);
  opacity: 0;
  pointer-events: none;
}

.loader-grid-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

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

.loader-boot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 24px;
  text-align: left;
  width: 320px;
}

.boot-line {
  opacity: 0;
  transform: translateX(-8px);
  animation: bootLineIn 0.3s ease forwards;
  animation-delay: calc(var(--i) * 0.3s + 0.4s);
  margin-bottom: 4px;
}

@keyframes bootLineIn {
  to { opacity: 0.6; transform: translateX(0); }
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  margin-top: 24px;
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: loaderFill 1.6s var(--ease-in-out) forwards;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.6), 0 0 30px rgba(255, 68, 68, 0.3);
}

@keyframes loaderFill {
  to { width: 100%; }
}

.loader-percent {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-top: 8px;
  letter-spacing: 0.1em;
}

.loader-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
  animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 200px; }
}

.loader-glitch {
  animation: loaderGlitch 2s ease-in-out infinite;
}

@keyframes loaderGlitch {
  0%, 60%, 100% { text-shadow: none; opacity: 1; }
  61% { text-shadow: 3px 0 var(--accent), -3px 0 var(--accent4); transform: translate(-2px); }
  62% { text-shadow: -3px 0 var(--accent), 3px 0 var(--accent4); transform: translate(2px); }
  63% { text-shadow: none; transform: translate(0); }
  80% { opacity: 1; }
  81% { opacity: 0.7; }
  82% { opacity: 1; }
  83% { opacity: 0.5; }
  84% { opacity: 1; }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, opacity 0.3s;
}

.cursor-dot.hover {
  width: 12px;
  height: 12px;
  background: transparent;
  border: 2px solid var(--accent);
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 68, 68, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s, opacity 0.3s;
  mix-blend-mode: screen;
}

.cursor-ring.hover {
  width: 72px;
  height: 72px;
  border-color: rgba(255, 68, 68, 0.9);
  border-width: 1px;
}

.cursor-glow {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 68, 68, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9990;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s;
}

.cursor-dot.hidden, .cursor-ring.hidden, .cursor-glow.hidden {
  opacity: 0;
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring, .cursor-glow { display: none !important; }
  body { cursor: auto; }
  body *, body a, body button { cursor: auto; }
}

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: grainShift 0.5s steps(4) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2px, 2px); }
  50%  { transform: translate(2px, -2px); }
  75%  { transform: translate(-2px, -2px); }
  100% { transform: translate(2px, 2px); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 0 30px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.03em;
  transition: opacity 0.3s;
  position: relative;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

.nav-logo:hover { opacity: 0.7; }
.nav-logo:hover::after { transform: scaleX(1); }

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 24px; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Grid background — clean, minimal */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask: radial-gradient(ellipse 60% 50% at 50% 50%, #000 0%, transparent 70%);
  -webkit-mask: radial-gradient(ellipse 60% 50% at 50% 50%, #000 0%, transparent 70%);
}

/* Aurora gradient — subtle */
.hero-aurora {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 25% 35%, rgba(255, 68, 68, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 75% 55%, rgba(68, 68, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 70% 35% at 50% 25%, rgba(255, 68, 170, 0.05) 0%, transparent 50%);
  animation: auroraMove 25s ease-in-out infinite;
  filter: blur(60px);
}

@keyframes auroraMove {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(3%, -2%); }
  50%  { transform: translate(-2%, 3%); }
  75%  { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}

/* Bottom edge vignette */
.hero-vignette {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 2;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: blobFloat 20s ease-in-out infinite;
  transition: border-radius 0.3s ease;
}

.hero-blob--1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
  animation: blobFloat 20s ease-in-out infinite, blobPulse1 4s ease-in-out infinite;
}

.hero-blob--2 {
  width: 400px;
  height: 400px;
  background: var(--accent2);
  bottom: -100px;
  left: -50px;
  animation: blobFloat 20s ease-in-out infinite, blobPulse2 5s ease-in-out infinite;
  animation-delay: -7s, -2s;
}

.hero-blob--3 {
  width: 300px;
  height: 300px;
  background: var(--accent3);
  top: 50%;
  left: 50%;
  animation: blobFloat 20s ease-in-out infinite, blobPulse3 6s ease-in-out infinite;
  animation-delay: -13s, -4s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(30px, -40px) scale(1.05); }
  50%      { transform: translate(-20px, 20px) scale(0.95); }
  75%      { transform: translate(40px, 30px) scale(1.02); }
}

@keyframes blobPulse1 { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.22; } }
@keyframes blobPulse2 { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.2; } }
@keyframes blobPulse3 { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.25; } }

/* Floating Geometry */
.geo-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.geo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  opacity: 0.06;
  animation: geoFloat var(--d) ease-in-out var(--del) infinite;
}

.geo--tri {
  width: 0;
  height: 0;
  border-left: calc(var(--s) / 2) solid transparent;
  border-right: calc(var(--s) / 2) solid transparent;
  border-bottom: var(--s) solid var(--accent);
}

.geo--circle {
  border-radius: 50%;
  border: 1px solid var(--accent2);
}

.geo--hex {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--accent3);
}

.geo--diamond {
  transform: rotate(45deg);
  border: 1px solid var(--accent);
}

.geo--cross {
  background:
    linear-gradient(var(--accent4) 0 0) center/30% 100%,
    linear-gradient(var(--accent4) 0 0) center/100% 30%;
  background-repeat: no-repeat;
}

.geo--ring {
  border-radius: 50%;
  border: 1px solid rgba(255, 68, 68, 0.15);
  animation: geoFloat var(--d) ease-in-out var(--del) infinite, geoRingSpin 12s linear infinite;
}

.geo--dot {
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: geoFloat var(--d) ease-in-out var(--del) infinite, geoDotPulse 3s ease-in-out infinite;
}

@keyframes geoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-30px) rotate(90deg); }
  50%      { transform: translateY(10px) rotate(180deg); }
  75%      { transform: translateY(-20px) rotate(270deg); }
}

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

@keyframes geoDotPulse {
  0%, 100% { opacity: 0.15; box-shadow: 0 0 6px var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 20px var(--accent); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  will-change: transform, opacity;
}

/* Available badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 68, 68, 0.2);
  border-radius: 100px;
  margin-bottom: 32px;
  opacity: 0;
  animation: badgeIn 0.6s var(--ease-out) 2.8s forwards;
  background: rgba(255, 68, 68, 0.04);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 8px #28c840;
  animation: badgeDotPulse 2s ease-in-out infinite;
}

.hero-badge-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

@keyframes badgeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes badgeDotPulse {
  0%, 100% { box-shadow: 0 0 6px #28c840; }
  50% { box-shadow: 0 0 16px #28c840, 0 0 30px rgba(40, 200, 64, 0.3); }
}

.hero-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(56px, 15vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-letter {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
  animation: letterReveal 0.8s var(--ease-out) forwards;
  animation-delay: calc(0.06s * var(--i) + 1.9s);
}

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

.hero-subtitle,
.hero-founder {
  overflow: hidden;
}

.hero-role {
  display: inline-block;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(100%);
  opacity: 0;
  animation: letterReveal 0.8s var(--ease-out) forwards;
  animation-delay: var(--delay, 0.6s);
}

.hero-founder .hero-role {
  color: var(--accent);
  font-weight: 500;
}

.hero-desc {
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 24px auto 0;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.2s forwards;
}

/* CTA Buttons (hidden but kept for future use) */
.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  opacity: 0;
  animation: badgeIn 0.6s var(--ease-out) 3.2s forwards;
}

.hero-cta {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: ctaShine 3s ease-in-out infinite;
}

@keyframes ctaShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 68, 68, 0.4), 0 0 60px rgba(255, 68, 68, 0.15);
}

.hero-cta--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.hero-cta--outline::before { display: none; }

.hero-cta--outline:hover {
  border-color: var(--accent);
  background: rgba(255, 68, 68, 0.06);
  box-shadow: 0 8px 30px rgba(255, 68, 68, 0.15);
}

/* Hero rotating rings — 3 layers */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(450px, 60vw, 900px);
  height: clamp(450px, 60vw, 900px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--accent) 15%, transparent 30%, transparent 70%, var(--accent2) 85%, transparent);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
  animation: heroRingRotate 10s linear infinite;
  opacity: 0.1;
  pointer-events: none;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(350px, 48vw, 720px);
  height: clamp(350px, 48vw, 720px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 120deg, transparent, var(--accent3) 15%, transparent 30%, transparent 70%, var(--accent4) 85%, transparent);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #fff calc(100% - 1.5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #fff calc(100% - 1.5px));
  animation: heroRingRotate 12s linear infinite reverse;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

.hero-content::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(250px, 35vw, 550px);
  height: clamp(250px, 35vw, 550px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 240deg, transparent, rgba(255,255,255,0.3) 10%, transparent 20%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #fff calc(100% - 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #fff calc(100% - 1px));
  animation: heroRingRotate 20s linear infinite;
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

@keyframes heroRingRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-subtitle::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 16px auto 0;
  animation: lineDrawHero 1.5s var(--ease-out) forwards;
  animation-delay: 2.5s;
}

@keyframes lineDrawHero {
  to { width: min(300px, 60vw); }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 3.5s;
  z-index: 3;
}

.hero-scroll-text {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; }
  50%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@media (max-width: 600px) {
  .hero-cta-row { flex-direction: column; align-items: center; }
  .hero-cta { width: 200px; text-align: center; }
  .hero-badge { margin-bottom: 20px; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-content {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee--reverse { border-top: none; }

.marquee-track--reverse {
  animation: marqueeScrollReverse 35s linear infinite;
}

@keyframes marqueeScrollReverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  padding: clamp(100px, 15vh, 200px) 0;
  position: relative;
}

.about-statement {
  max-width: 900px;
  margin-bottom: 80px;
}

.about-quote {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.about-quote em {
  font-style: italic;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(255, 68, 68, 0.3), 0 0 80px rgba(255, 68, 68, 0.1);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 40px rgba(255, 68, 68, 0.3), 0 0 80px rgba(255, 68, 68, 0.1); }
  50% { text-shadow: 0 0 60px rgba(255, 68, 68, 0.5), 0 0 120px rgba(255, 68, 68, 0.2), 0 0 200px rgba(255, 68, 68, 0.05); }
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 80px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.stat { text-align: center; position: relative; }

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent-border), transparent);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  display: inline;
}

.stat-number.counted {
  animation: statGlow 2s ease-in-out infinite;
}

@keyframes statGlow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50%      { text-shadow: 0 0 20px rgba(255, 68, 68, 0.3), 0 0 40px rgba(255, 68, 68, 0.1); }
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 8px;
}

.stat-label--cert {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  text-transform: none;
  margin-top: 0;
}

.about-bio {
  max-width: 680px;
}

.about-bio p {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-secondary);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .stat:not(:last-child)::after { display: none; }
}

/* ============================================================
   SCROLL REVEAL — WITH 3D CARD ENTRANCES
   ============================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 3D card entrances */
.project-card[data-enter="left"] {
  transform: translateX(-80px) translateY(40px) rotateY(8deg);
  transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring);
}

.project-card[data-enter="right"] {
  transform: translateX(80px) translateY(40px) rotateY(-8deg);
  transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring);
}

.project-card.revealed[data-enter="left"],
.project-card.revealed[data-enter="right"] {
  opacity: 1;
  transform: translateX(0) translateY(0) rotateY(0);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 80px;
  line-height: 1;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  padding: clamp(80px, 12vh, 160px) 0 0;
  position: relative;
  overflow: hidden;
}

.projects-wrapper {
  position: relative;
  perspective: 1200px;
}

.projects-track {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  max-width: var(--container);
  margin: 0 auto 48px;
  padding: 0 clamp(24px, 5vw, 80px);
}

.project-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(32px, 4vw, 56px);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.6s var(--ease-spring);
  position: relative;
  overflow: hidden;
  min-height: 420px;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Card spotlight overlay */
.card-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  border-radius: 16px;
}

.project-card-inner > *:not(.card-spotlight) {
  position: relative;
  z-index: 1;
}

/* Animated gradient border on hover */
.project-card-inner::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent2), var(--accent3), var(--accent4), var(--accent));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: borderRotate 4s linear infinite paused;
}

.project-card-inner:hover {
  border-color: transparent;
  box-shadow:
    0 0 60px rgba(255, 68, 68, 0.08),
    0 0 120px rgba(255, 68, 68, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-card-inner:hover::before {
  opacity: 0.4;
  animation-play-state: running;
}

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

.project-number {
  font-family: var(--font-heading);
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: -10px;
  left: 24px;
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  animation: numberPulse 4s ease-in-out infinite;
}

@keyframes numberPulse {
  0%, 100% { color: rgba(255, 255, 255, 0.03); }
  50%      { color: rgba(255, 68, 68, 0.07); }
}

.project-name {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 24px;
}

.project-features {
  margin-bottom: 24px;
  padding-left: 0;
  list-style: none;
  min-height: 120px;
}

.project-features li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.project-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.project-tech span:hover {
  border-color: var(--accent-border);
  color: var(--text);
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.1);
}

.project-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.3s, text-shadow 0.3s;
  display: inline-block;
}

.project-link:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

.project-link--private {
  color: var(--text-secondary);
  font-weight: 400;
  font-style: italic;
}

@media (max-width: 900px) {
  .project-card-inner { grid-template-columns: 1fr; }
  .project-visual { order: -1; }
  .project-card[data-enter="left"],
  .project-card[data-enter="right"] {
    transform: translateY(60px);
  }
}

/* ============================================================
   PROJECT VISUALS
   ============================================================ */
.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
}

/* --- Terminal (SentinelIQ) --- */
.vis-terminal {
  width: 100%;
  max-width: 400px;
  background: #0c0c14;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 68, 68, 0.04);
}

.vis-terminal-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
}

.vis-terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.vis-terminal-bar span:first-child { background: #ff5f57; }
.vis-terminal-bar span:nth-child(2) { background: #ffbd2e; }
.vis-terminal-bar span:nth-child(3) { background: #28c840; }

.vis-terminal-body {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.vis-terminal-lines {
  animation: termScroll 12s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  padding: 12px 16px;
  color: #666;
}

.vis-terminal-lines p { white-space: nowrap; }
.vis-t-time { color: #555; }
.vis-t-ok { color: #28c840; }
.vis-t-warn { color: #ffbd2e; }
.vis-t-err { color: #ff5f57; }

@keyframes termScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* --- Canvas House (RoofRoof) --- */
.vis-house-scene {
  width: 100%;
  max-width: 500px;
  height: 480px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vis-house-canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.vis-sat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-top: -30px;
  animation: blink 1s step-end infinite;
}

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

/* --- Flashcard (Cram) --- */
.vis-flashcard { width: 260px; height: 180px; perspective: 600px; }
.vis-flashcard-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.6s var(--ease-out); }
.vis-flashcard:hover .vis-flashcard-inner { transform: rotateY(180deg); }
.vis-flashcard-front, .vis-flashcard-back { position: absolute; inset: 0; backface-visibility: hidden; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.vis-flashcard-back { transform: rotateY(180deg); border-color: var(--accent-border); }
.vis-fc-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 12px; }
.vis-flashcard-front p, .vis-flashcard-back p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* --- Matrix Canvas (HummusI) --- */
.vis-matrix-canvas { display: block; border-radius: 8px; background: #0a0a0f; max-width: 100%; height: auto; }

/* --- Devices (HummusLink) --- */
.vis-devices { display: flex; align-items: center; gap: 20px; }
.vis-device { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.vis-device--pc { width: 120px; height: 90px; border-radius: 8px; }
.vis-device--phone { width: 60px; height: 100px; border-radius: 14px; }
.vis-device-screen { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); }
.vis-device-connection { display: flex; align-items: center; gap: 8px; }
.vis-conn-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: connPulse 1.5s ease-in-out infinite; animation-delay: calc(var(--d) * 0.3s); box-shadow: 0 0 8px var(--accent); }
@keyframes connPulse { 0%, 100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }

/* --- Chat (Hummus IQ) --- */
.vis-chat { width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 10px; }
.vis-chat-bubble { padding: 12px 16px; border-radius: 16px; font-size: 12px; line-height: 1.5; max-width: 85%; opacity: 0; animation: chatAppear 0.5s var(--ease-out) forwards; animation-delay: calc(var(--i) * 0.8s + 0.5s); }
.vis-chat-bubble--user { background: rgba(255, 68, 68, 0.1); border: 1px solid var(--accent-border); color: var(--text); align-self: flex-end; border-bottom-right-radius: 4px; }
.vis-chat-bubble--ai { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--text-secondary); align-self: flex-start; border-bottom-left-radius: 4px; }
@keyframes chatAppear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* --- Phone (Blazin-App) --- */
.vis-phone { width: 180px; height: 320px; background: #0c0c14; border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 28px; padding: 8px; position: relative; }
.vis-phone-notch { width: 80px; height: 20px; background: #050507; border-radius: 0 0 14px 14px; margin: 0 auto 12px; }
.vis-phone-screen { padding: 8px 12px; }
.vis-phone-header { font-family: var(--font-heading); font-weight: 800; font-size: 16px; color: var(--accent); margin-bottom: 16px; text-align: center; }
.vis-phone-item { font-size: 11px; color: var(--text-secondary); padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.vis-phone-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.vis-phone-price { margin-left: auto; color: var(--accent); font-family: var(--font-mono); font-size: 10px; }
.vis-phone-btn { margin-top: 16px; background: var(--accent); color: #fff; text-align: center; padding: 8px; border-radius: 8px; font-size: 11px; font-weight: 600; }

/* --- Heart (Papi-AI) --- */
.vis-heart { width: 100%; max-width: 300px; }
.vis-heart-svg { width: 100%; height: auto; }
.vis-heart-line { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 600; stroke-dashoffset: 600; animation: heartDraw 2s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(255, 68, 68, 0.5)); }
@keyframes heartDraw { 0% { stroke-dashoffset: 600; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -600; } }

/* --- CMD (PC Terminal) --- */
.vis-cmd { width: 100%; max-width: 320px; background: #0c0c14; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.vis-cmd-bar { display: flex; gap: 6px; padding: 12px 16px; background: rgba(255, 255, 255, 0.03); }
.vis-cmd-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.vis-cmd-bar span:first-child { background: #ff5f57; }
.vis-cmd-bar span:nth-child(2) { background: #ffbd2e; }
.vis-cmd-bar span:nth-child(3) { background: #28c840; }
.vis-cmd-body { padding: 16px; font-family: var(--font-mono); font-size: 12px; color: #28c840; min-height: 60px; }
.vis-cmd-typed { display: inline; }
.vis-cmd-cursor { animation: blink 1s step-end infinite; color: #28c840; }

/* --- FiveM Server Visual --- */
.vis-fivem { width: 100%; display: flex; justify-content: center; }
.vis-fivem-server { width: 280px; background: #0a0a0f; border: 1px solid rgba(255,68,68,0.15); border-radius: 8px; overflow: hidden; font-family: var(--font-mono); font-size: 11px; }
.vis-fivem-header { background: rgba(255,68,68,0.08); color: var(--accent); padding: 8px 12px; font-size: 10px; letter-spacing: 2px; border-bottom: 1px solid rgba(255,68,68,0.1); }
.vis-fivem-lines { padding: 12px; }
.vis-fivem-line { color: #28c840; margin-bottom: 6px; opacity: 0; animation: fivem-line-in 0.3s forwards; }
.vis-fivem-line:nth-child(1) { animation-delay: 0.5s; }
.vis-fivem-line:nth-child(2) { animation-delay: 1.0s; }
.vis-fivem-line:nth-child(3) { animation-delay: 1.5s; }
.vis-fivem-line:nth-child(4) { animation-delay: 2.0s; }
.vis-fivem-line:nth-child(5) { animation-delay: 2.5s; }
.vis-fivem-line:nth-child(6) { animation-delay: 3.0s; }
.vis-fivem-active { color: var(--accent); }
@keyframes fivem-line-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

/* ============================================================
   SKILLS
   ============================================================ */
.skills {
  padding: clamp(80px, 12vh, 160px) 0;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}

.skill-category-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: default;
  opacity: 0;
  transform: translateY(10px);
}

.scroll-reveal.revealed .skill-pill {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.revealed .skill-pill:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal.revealed .skill-pill:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed .skill-pill:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal.revealed .skill-pill:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal.revealed .skill-pill:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal.revealed .skill-pill:nth-child(6) { transition-delay: 0.3s; }
.scroll-reveal.revealed .skill-pill:nth-child(7) { transition-delay: 0.35s; }
.scroll-reveal.revealed .skill-pill:nth-child(8) { transition-delay: 0.4s; }
.scroll-reveal.revealed .skill-pill:nth-child(9) { transition-delay: 0.45s; }
.scroll-reveal.revealed .skill-pill:nth-child(10) { transition-delay: 0.5s; }
.scroll-reveal.revealed .skill-pill:nth-child(11) { transition-delay: 0.55s; }
.scroll-reveal.revealed .skill-pill:nth-child(12) { transition-delay: 0.6s; }

.skill-pill:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(255, 68, 68, 0.08);
  box-shadow: 0 0 25px rgba(255, 68, 68, 0.15), 0 0 60px rgba(255, 68, 68, 0.05);
  transform: translateY(-3px) scale(1.05);
}

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

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience {
  padding: clamp(80px, 12vh, 160px) 0;
  position: relative;
}

.timeline {
  position: relative;
  padding-left: 40px;
  margin-bottom: 80px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 30%, var(--border) 70%, transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--border);
  border-radius: 50%;
  border: 2px solid var(--bg);
  transition: background 0.3s, box-shadow 0.3s;
}

.timeline-item[data-current="true"] .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.4), 0 0 24px rgba(255, 68, 68, 0.2);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 68, 68, 0.4); }
  50%      { box-shadow: 0 0 30px rgba(255, 68, 68, 0.8); }
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  margin: 4px 0;
}

.timeline-company {
  font-size: 14px;
  color: var(--text-secondary);
}

.timeline-bullets {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

.timeline-bullets li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 16px;
  margin-bottom: 6px;
  position: relative;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-reveal.revealed .timeline-bullets li {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal.revealed .timeline-bullets li:nth-child(1) { transition-delay: 0.2s; }
.scroll-reveal.revealed .timeline-bullets li:nth-child(2) { transition-delay: 0.35s; }
.scroll-reveal.revealed .timeline-bullets li:nth-child(3) { transition-delay: 0.5s; }

.timeline-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  box-shadow: 0 0 6px var(--accent);
}

/* --- Certifications --- */
.certs-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.cert-item:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cert-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 68, 68, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.cert-name {
  font-size: 14px;
  color: var(--text-secondary);
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.6;
}

.cert-item--award {
  border-color: rgba(255, 200, 50, 0.2);
  background: rgba(255, 200, 50, 0.03);
}

.cert-item--award:hover {
  border-color: rgba(255, 200, 50, 0.4);
  box-shadow: 0 0 20px rgba(255, 200, 50, 0.06), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cert-badge--award {
  color: #ffc832;
  background: rgba(255, 200, 50, 0.1);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(100px, 15vh, 200px) 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta {
  position: relative;
  display: inline-block;
}

.contact-cta::before,
.contact-cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 68, 68, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: radarPulse 4s ease-out infinite;
  pointer-events: none;
}

.contact-cta::after {
  animation-delay: 2s;
}

@keyframes radarPulse {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 48px;
  position: relative;
  color: #fff;
}

.contact-heading .word {
  background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--accent) 50%, #fff 60%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
}

.contact-heading .word-mask {
  overflow: hidden;
  display: inline-block;
}

.contact .scroll-reveal .word {
  transform: translateY(110%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact .scroll-reveal.revealed .word {
  transform: translateY(0);
}

@keyframes shimmerText {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.contact-email {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 600;
  color: var(--accent);
  padding: 16px 32px;
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  transition: background 0.3s, box-shadow 0.3s, transform 0.15s ease-out;
  margin-bottom: 40px;
  animation: floatEmail 3s ease-in-out infinite;
  position: relative;
}

.contact-email::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 102px;
  background: linear-gradient(90deg, var(--accent), var(--accent3), var(--accent2));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  filter: blur(8px);
}

.contact-email:hover {
  background: rgba(255, 68, 68, 0.06);
  box-shadow: 0 0 40px rgba(255, 68, 68, 0.15);
}

.contact-email:hover::after {
  opacity: 0.4;
}

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

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 80px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: border-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 68, 68, 0.15);
}

.social-link:hover::before {
  opacity: 0.4;
  transform: scale(1.3);
  animation: socialPulseRing 1s ease-out infinite;
}

@keyframes socialPulseRing {
  0%   { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.8); opacity: 0; }
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 68, 68, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 68, 68, 0.4); }

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: rgba(255, 68, 68, 0.3);
  color: #fff;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent3), var(--accent2));
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.5), 0 0 20px rgba(255, 68, 68, 0.3);
}

/* ============================================================
   MOUSE TRAIL
   ============================================================ */
.mouse-trail {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 0 4px var(--accent);
}

/* ============================================================
   TYPING CURSOR
   ============================================================ */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

/* ============================================================
   WORD SPLIT REVEAL
   ============================================================ */
.word-mask {
  overflow: hidden;
  display: inline-block;
}

.word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed .word {
  transform: translateY(0);
}

.scroll-reveal.revealed .word-mask:nth-child(2) .word { transition-delay: 0.1s; }
.scroll-reveal.revealed .word-mask:nth-child(3) .word { transition-delay: 0.2s; }
.scroll-reveal.revealed .word-mask:nth-child(4) .word { transition-delay: 0.3s; }

/* ============================================================
   SECTION TRANSITIONS
   ============================================================ */
.about,
.projects,
.skills,
.experience,
.contact {
  border-top: 1px solid rgba(255, 68, 68, 0.08);
}

section { position: relative; }

.about::before,
.skills::before,
.experience::before,
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
  z-index: 1;
}

.about::after,
.skills::after,
.experience::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   KONAMI MATRIX RAIN
   ============================================================ */
.matrix-rain-canvas {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.matrix-rain-canvas.active {
  opacity: 1;
}

/* ============================================================
   RESPONSIVE + MOBILE
   ============================================================ */
@media (max-width: 600px) {
  .hero-name { font-size: clamp(42px, 16vw, 120px); }
  .hero-desc { font-size: 13px; padding: 0 8px; }
  .section-title { font-size: clamp(28px, 10vw, 64px); margin-bottom: 40px; }
  .contact-heading { font-size: clamp(32px, 12vw, 80px); }
  .project-card { padding: 0 16px; margin-bottom: 32px; }
  .project-card-inner { padding: 20px; gap: 24px; min-height: auto; }
  .project-number { font-size: clamp(60px, 16vw, 100px); }
  .project-features { min-height: auto; }
  .project-visual { height: auto; min-height: 180px; }
  .vis-terminal, .vis-matrix-canvas, .vis-chat, .vis-heart, .vis-cmd { max-width: 100%; }
  .vis-phone { width: 170px; height: 300px; }
  .vis-phone-notch { width: 70px; height: 18px; }
  .vis-phone-item { font-size: 10px; padding: 8px 0; }
  .vis-phone-btn { font-size: 10px; padding: 7px; margin-top: 12px; white-space: nowrap; }
  .vis-devices { transform: scale(0.75); }
  .vis-flashcard { width: 100%; max-width: 240px; height: 160px; }
  .vis-fivem-server { width: 100%; }
  .vis-house-scene { max-width: 100%; height: auto; }
  .about-quote { font-size: clamp(24px, 7vw, 48px); }
  .about-bio p { font-size: 14px; }
  .about-statement { margin-bottom: 48px; }
  .timeline { padding-left: 32px; }
  .timeline-role { font-size: clamp(16px, 4vw, 20px); }
  .timeline-bullets li { font-size: 12px; }
  .certs-grid { grid-template-columns: 1fr; }
  .cert-item { padding: 14px 16px; }
  .contact-email { font-size: clamp(14px, 4vw, 24px); padding: 12px 24px; }
  .contact-socials { gap: 16px; margin-bottom: 48px; }
  .marquee-content { font-size: 11px; }
  .skills-grid { gap: 32px; }
  .skill-pill { font-size: 11px; padding: 6px 12px; }
}

@media (max-width: 380px) {
  .hero-name { font-size: clamp(36px, 15vw, 80px); }
  .project-card-inner { padding: 16px; }
  .vis-phone { width: 150px; height: 260px; }
  .vis-devices { transform: scale(0.65); }
  .nav-links a { font-size: 20px; }
  .contact-heading { font-size: clamp(28px, 11vw, 60px); }
}

@media (pointer: coarse) {
  .hero-name { animation: none; }
  .hero-letter, .hero-role, .hero-desc {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .contact-email { animation: none; }
  .contact-cta::before, .contact-cta::after { display: none; }
  .loader-glitch { animation: none; }
  .loader-scanlines { display: none; }
  .loader-grid-canvas { display: none; }
  section::before, section::after { display: none; }
  .mouse-trail { display: none !important; }
  .particle { display: none !important; }
  .cursor-glow { display: none !important; }
  /* Bigger tap targets */
  .nav-links a { padding: 8px 4px; }
  .social-link { width: 52px; height: 52px; }
  .project-link { padding: 8px 0; }
  .skill-pill { padding: 10px 16px; }
  /* Disable hover-only effects */
  .project-card-inner:hover::before { display: none; }
  .hero-content::before, .hero-content::after, .hero-bg::after { display: none; }
}
