/* ═══════════════════════════════════════════
   INFINITE VYBEFLIX PORTFOLIO — STYLE
   Fixed, Perfect, Bug-Free
   ═══════════════════════════════════════════ */

:root {
  --gold: #d4af37;
  --gold-light: #e8c84a;
  --gold-dim: rgba(212,175,55,0.12);
  --cyan: #00d4ff;
  --emerald: #22c55e;
  --purple: #a855f7;
  --rose: #f43f5e;
  --amber: #fbbf24;
  --whatsapp: #25D366;
  --github: #f0f6fc;
  --bg: #020205;
  --bg-elevated: #080810;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(212,175,55,0.2);
  --text: rgba(255,255,255,0.9);
  --text-muted: rgba(255,255,255,0.55);
  --text-dim: rgba(255,255,255,0.3);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Cinzel', serif;
  --font-mono: 'Orbitron', monospace;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
  -webkit-text-size-adjust: 100%;
}

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

::selection {
  background: rgba(212,175,55,0.25);
  color: #fff;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,175,55,0.3); }

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

/* ═══════════════════════════════════════════
   CURSOR + TRAIL
   ═══════════════════════════════════════════ */
.cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
  mix-blend-mode: difference;
}
.cursor.hover {
  width: 44px;
  height: 44px;
  border-color: var(--cyan);
  background: rgba(0,212,255,0.06);
}
.cursor.click {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-color: var(--gold);
}
.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  transition: opacity 0.3s;
}

/* ═══════════════════════════════════════════
   SCROLL PROGRESS
   ═══════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--purple));
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--gold), 0 0 20px var(--cyan);
}

/* ═══════════════════════════════════════════
   BACKGROUND
   ═══════════════════════════════════════════ */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(80,40,120,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(40,60,100,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(100,60,40,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #020205 0%, #050510 40%, #03030c 70%, #010105 100%);
  pointer-events: none;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.4;
}
.bg-mesh::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(at 40% 20%, rgba(212,175,55,0.08) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(0,212,255,0.06) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(168,85,247,0.06) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(34,197,94,0.04) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(212,175,55,0.06) 0px, transparent 50%);
  animation: meshMove 20s ease-in-out infinite alternate;
}
@keyframes meshMove {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, -5%) scale(1.1); }
  66% { transform: translate(-3%, 3%) scale(0.95); }
  100% { transform: translate(2%, -2%) scale(1.05); }
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.floating-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.floating-orbs::before,
.floating-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.floating-orbs::before {
  width: 400px;
  height: 400px;
  background: var(--gold);
  top: 10%;
  left: -10%;
  animation: orbFloat1 15s ease-in-out infinite;
}
.floating-orbs::after {
  width: 300px;
  height: 300px;
  background: var(--cyan);
  bottom: 10%;
  right: -5%;
  animation: orbFloat2 18s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.2); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.1); }
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2,2,5,0.7);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: all 0.35s ease;
}
.nav.scrolled {
  padding: 10px 32px;
  background: rgba(2,2,5,0.92);
  border-bottom-color: var(--border-hover);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-orbit {
  position: relative;
  width: 38px;
  height: 38px;
}
.logo-orbit img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-dim);
  transition: border-color 0.3s;
  position: absolute;
  top: 2px;
  left: 2px;
}
.logo-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 50%;
  animation: logoSpin 8s linear infinite;
}
.logo-ring::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}
@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.nav-logo:hover img { border-color: var(--gold); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  display: inline-block;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: width 0.35s ease;
  box-shadow: 0 0 8px var(--gold);
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--gold-dim), rgba(212,175,55,0.03));
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 24px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.06));
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212,175,55,0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s ease;
  display: block;
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  z-index: 1;
  overflow: hidden;
  perspective: 1000px;
}
.hero-3d-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  animation: orbFloat 10s ease-in-out infinite;
}
.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--gold);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.orb-2 {
  width: 200px;
  height: 200px;
  background: var(--cyan);
  top: 60%;
  right: 15%;
  animation-delay: -3s;
}
.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--purple);
  bottom: 20%;
  left: 30%;
  animation-delay: -6s;
}
.orb-4 {
  width: 180px;
  height: 180px;
  background: var(--rose);
  top: 30%;
  right: 30%;
  animation-delay: -9s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  background: rgba(212,175,55,0.04);
  box-shadow: 0 0 15px rgba(212,175,55,0.05);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 6px;
  line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(212,175,55,0.1), 0 0 80px rgba(0,212,255,0.05);
  word-wrap: break-word;
}
.hero-title-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.2));
}
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 36px;
  min-height: 20px;
}
.hero-subtitle::after {
  content: '|';
  color: var(--gold);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-bottom: 40px;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  text-shadow: 0 0 20px rgba(212,175,55,0.2);
}
.hero-stat-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 28px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dim), rgba(212,175,55,0.08));
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.08));
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(212,175,55,0.15), 0 8px 24px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: linear-gradient(135deg, rgba(37,211,102,0.15), rgba(37,211,102,0.05));
  border: 1px solid rgba(37,211,102,0.3);
  color: #fff;
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, rgba(37,211,102,0.25), rgba(37,211,102,0.1));
  border-color: var(--whatsapp);
  box-shadow: 0 0 30px rgba(37,211,102,0.15);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--gold);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  background: rgba(212,175,55,0.04);
  box-shadow: 0 0 15px rgba(212,175,55,0.05);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(212,175,55,0.08);
  word-wrap: break-word;
}
.section-desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
  word-wrap: break-word;
}

/* ═══════════════════════════════════════════
   3D TILT CARDS + HOLOGRAPHIC SHINE
   ═══════════════════════════════════════════ */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  position: relative;
}
.holographic-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.03) 45%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.03) 55%,
    transparent 60%
  );
  background-size: 200% 200%;
  background-position: 100% 100%;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s, background-position 0.6s;
}
.tilt-card:hover .holographic-shine {
  opacity: 1;
  background-position: 0% 0%;
}
.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold), var(--cyan), var(--purple), var(--gold));
  background-size: 300% 300%;
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  animation: glowRotate 3s linear infinite;
  transition: opacity 0.3s;
}
.tilt-card:hover .card-glow {
  opacity: 0.4;
}
@keyframes glowRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo {
  position: sticky;
  top: 100px;
}
.about-photo-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.3s, transform 0.4s ease;
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
}
.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.about-photo-frame:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(212,175,55,0.1);
}
.about-photo-frame:hover img {
  transform: scale(1.03);
}

.about-content h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2.5px;
  margin-bottom: 18px;
}
.about-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.about-content strong {
  color: var(--gold);
  font-weight: 600;
}
.about-quote {
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  border-left: 2px solid var(--gold);
  padding: 14px 22px;
  margin: 24px 0;
  background: linear-gradient(90deg, rgba(212,175,55,0.04), transparent);
  border-radius: 0 10px 10px 0;
  word-wrap: break-word;
  position: relative;
}
.quote-mark {
  color: var(--gold);
  font-size: 24px;
  line-height: 0;
  vertical-align: middle;
  text-shadow: 0 0 10px var(--gold);
}
.about-location {
  font-size: 13px !important;
  color: var(--cyan) !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.about-location i { color: var(--cyan); }

.about-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.social-link {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.social-link:hover::before { opacity: 1; }
.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.social-link.email { color: #ea4335; }
.social-link.email:hover { border-color: #ea4335; background: rgba(234,67,53,0.08); box-shadow: 0 0 15px rgba(234,67,53,0.2); }
.social-link.whatsapp { color: var(--whatsapp); }
.social-link.whatsapp:hover { border-color: var(--whatsapp); background: rgba(37,211,102,0.08); box-shadow: 0 0 15px rgba(37,211,102,0.2); }
.social-link.github { color: var(--github); }
.social-link.github:hover { border-color: #8b949e; background: rgba(139,148,158,0.08); box-shadow: 0 0 15px rgba(139,148,158,0.2); }
.social-link.channel { color: var(--gold); }
.social-link.channel:hover { border-color: var(--gold); background: rgba(212,175,55,0.08); box-shadow: 0 0 15px rgba(212,175,55,0.2); }

/* ═══════════════════════════════════════════
   SERVICES GRID
   ═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1000px;
}
.service-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  transform-style: preserve-3d;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(212,175,55,0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px) translateZ(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 40px rgba(212,175,55,0.08);
}
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-dim), rgba(212,175,55,0.03));
  border: 1px solid rgba(212,175,55,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 16px;
  transition: all 0.3s ease;
  transform: translateZ(30px);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  border-color: rgba(212,175,55,0.2);
  transform: scale(1.08) translateZ(40px);
  box-shadow: 0 0 20px rgba(212,175,55,0.15);
}
.service-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  transform: translateZ(20px);
}
.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  word-wrap: break-word;
  transform: translateZ(15px);
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  transform: translateZ(10px);
}
.service-tags span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
  transition: all 0.2s;
}
.service-card:hover .service-tags span {
  border-color: rgba(212,175,55,0.15);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1200px;
}
.project-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  transform-style: preserve-3d;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px) scale(1.01) rotateX(2deg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 40px rgba(212,175,55,0.06);
}
.project-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}
.project-card:hover .project-image {
  transform: scale(1.06);
}
.project-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .project-image-overlay {
  opacity: 1;
}
.project-expand {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.project-expand:hover {
  background: rgba(212,175,55,0.2);
  border-color: var(--gold);
  transform: scale(1.1);
}
.project-glow-border {
  position: absolute;
  inset: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(212,175,55,0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.project-card:hover .project-glow-border {
  opacity: 1;
}
.project-body {
  padding: 22px;
}
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.project-header h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
}
.badge.live {
  background: rgba(34,197,94,0.12);
  color: var(--emerald);
  border: 1px solid rgba(34,197,94,0.2);
}
.badge.dev {
  background: rgba(251,191,36,0.12);
  color: var(--amber);
  border: 1px solid rgba(251,191,36,0.2);
}
.badge.personal {
  background: rgba(168,85,247,0.12);
  color: var(--purple);
  border: 1px solid rgba(168,85,247,0.2);
}
.project-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  word-wrap: break-word;
}
.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
}
.link-btn:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  transform: translateY(-1px);
}
.link-btn.api {
  border-color: rgba(0,212,255,0.2);
  color: var(--cyan);
}
.link-btn.api:hover {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 15px rgba(0,212,255,0.1);
}
.project-soon {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════
   SKILLS MARQUEE
   ═══════════════════════════════════════════ */
.marquee-container {
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}
.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-ltr 30s linear infinite;
}
.marquee-track.marquee-rtl {
  animation: marquee-rtl 35s linear infinite;
}
.marquee-track.marquee-slow {
  animation-duration: 45s;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-ltr {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.marquee-content {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  flex-shrink: 0;
}
.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s ease;
  cursor: default;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.marquee-pill i {
  font-size: 13px;
  flex-shrink: 0;
}
.marquee-pill:hover {
  transform: scale(1.08);
  color: #fff;
}

.glow-gold { border-color: rgba(212,175,55,0.15); }
.glow-gold i { color: var(--gold); }
.glow-gold:hover { border-color: var(--gold); background: rgba(212,175,55,0.08); box-shadow: 0 0 20px rgba(212,175,55,0.2), 0 0 40px rgba(212,175,55,0.1); }

.glow-cyan { border-color: rgba(0,212,255,0.15); }
.glow-cyan i { color: var(--cyan); }
.glow-cyan:hover { border-color: var(--cyan); background: rgba(0,212,255,0.08); box-shadow: 0 0 20px rgba(0,212,255,0.2), 0 0 40px rgba(0,212,255,0.1); }

.glow-purple { border-color: rgba(168,85,247,0.15); }
.glow-purple i { color: var(--purple); }
.glow-purple:hover { border-color: var(--purple); background: rgba(168,85,247,0.08); box-shadow: 0 0 20px rgba(168,85,247,0.2), 0 0 40px rgba(168,85,247,0.1); }

.glow-rose { border-color: rgba(244,63,94,0.15); }
.glow-rose i { color: var(--rose); }
.glow-rose:hover { border-color: var(--rose); background: rgba(244,63,94,0.08); box-shadow: 0 0 20px rgba(244,63,94,0.2), 0 0 40px rgba(244,63,94,0.1); }

.glow-emerald { border-color: rgba(34,197,94,0.15); }
.glow-emerald i { color: var(--emerald); }
.glow-emerald:hover { border-color: var(--emerald); background: rgba(34,197,94,0.08); box-shadow: 0 0 20px rgba(34,197,94,0.2), 0 0 40px rgba(34,197,94,0.1); }

.glow-amber { border-color: rgba(251,191,36,0.15); }
.glow-amber i { color: var(--amber); }
.glow-amber:hover { border-color: var(--amber); background: rgba(251,191,36,0.08); box-shadow: 0 0 20px rgba(251,191,36,0.2), 0 0 40px rgba(251,191,36,0.1); }

.aevibron-pill {
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(0,212,255,0.05));
  border-color: rgba(212,175,55,0.3);
  color: var(--gold);
  font-weight: 600;
}
.aevibron-pill:hover {
  box-shadow: 0 0 30px rgba(212,175,55,0.3), 0 0 60px rgba(0,212,255,0.15);
}

/* ═══════════════════════════════════════════
   LOTTIE SECTION
   ═══════════════════════════════════════════ */
.lottie-section {
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lottie-container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}
.lottie-glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: lottiePulse 4s ease-in-out infinite;
}
@keyframes lottiePulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.lottie-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 20px;
}

/* ═══════════════════════════════════════════
   EXPERIENCE — FIXED TIMELINE
   ═══════════════════════════════════════════ */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 10px 0;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--cyan), var(--purple), transparent);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(212,175,55,0.3), 0 0 20px rgba(0,212,255,0.2);
  z-index: 1;
}
.timeline-items {
  position: relative;
  z-index: 2;
}
.timeline-item {
  position: relative;
  padding-bottom: 50px;
  display: flex;
  align-items: flex-start;
}
.timeline-item:last-child { padding-bottom: 0; }

/* FIXED: Use data-side attribute instead of broken nth-child */
.timeline-item[data-side="left"] {
  flex-direction: row;
  padding-right: calc(50% + 36px);
}
.timeline-item[data-side="right"] {
  flex-direction: row-reverse;
  padding-left: calc(50% + 36px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  box-shadow: 0 0 16px rgba(212,175,55,0.4), 0 0 32px rgba(212,175,55,0.2);
  transform: translateX(-50%);
  z-index: 3;
  transition: all 0.3s ease;
}
.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 24px rgba(212,175,55,0.5), 0 0 48px rgba(212,175,55,0.3);
}
.timeline-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  width: 100%;
  position: relative;
}
.timeline-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 20px rgba(212,175,55,0.08);
}
.timeline-role {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.timeline-company {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
  display: block;
}
.timeline-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  word-wrap: break-word;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 960px;
  margin: 0 auto;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 20px rgba(212,175,55,0.05);
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.3s;
}
.contact-card:hover .contact-icon {
  transform: scale(1.1);
  box-shadow: 0 0 15px currentColor;
}
.contact-details {
  flex: 1;
  min-width: 0;
}
.contact-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}
.contact-value {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.contact-value:hover {
  color: var(--gold);
}

.contact-form-wrapper {
  position: relative;
}
.contact-form {
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  overflow: hidden;
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(212,175,55,0.3);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 16px rgba(212,175,55,0.04), 0 0 32px rgba(212,175,55,0.02);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 20px var(--gold);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 5px;
  margin-bottom: 10px;
}
.footer-tagline {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.footer-social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.footer-social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}
.modal-box h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.modal-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.modal-box textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}
.modal-box textarea:focus {
  border-color: rgba(212,175,55,0.3);
  background: rgba(255,255,255,0.05);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: var(--border-hover);
}

/* ═══════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.lightbox.active .lightbox-content {
  transform: scale(1);
}
.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.15);
  transform: rotate(90deg);
}
.lightbox-caption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 2px;
  text-align: center;
}

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 12px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 500;
  z-index: 10002;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
.toast i {
  font-size: 16px;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.9); }
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

.reveal-3d-up {
  opacity: 0;
  transform: translateY(60px) rotateX(15deg);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-3d-up.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}
.reveal-3d-left {
  opacity: 0;
  transform: translateX(-80px) rotateY(-15deg);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-3d-left.visible {
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
}
.reveal-3d-right {
  opacity: 0;
  transform: translateX(80px) rotateY(15deg);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-3d-right.visible {
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
}
.reveal-3d-scale {
  opacity: 0;
  transform: scale(0.85) rotateX(10deg);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-3d-scale.visible {
  opacity: 1;
  transform: scale(1) rotateX(0deg);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { position: relative; top: 0; max-width: 320px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(2,2,5,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
    align-items: flex-start;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 14px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 120px 20px 80px; }
  .hero-stats { gap: 32px; }
  .hero-cta-group { flex-direction: column; align-items: center; }

  .section { padding: 64px 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  /* TIMELINE MOBILE FIX */
  .timeline-line { left: 16px; }
  .timeline-item[data-side="left"],
  .timeline-item[data-side="right"] {
    flex-direction: column;
    padding: 0 0 36px 44px;
  }
  .timeline-dot {
    left: 16px;
    transform: translateX(-50%);
  }
  .timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
  }

  .contact-grid { grid-template-columns: 1fr; }

  .cursor, .cursor-trail { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; letter-spacing: 3px; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 28px; }
  .section-title { font-size: 24px; }
  .about-photo-frame { aspect-ratio: 1/1; }
  .project-image-wrap { height: 160px; }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up, .reveal-left, .reveal-right, .reveal-scale,
  .reveal-3d-up, .reveal-3d-left, .reveal-3d-right, .reveal-3d-scale {
    opacity: 1;
    transform: none;
  }
}
