/* =========================================
   Kristian Hoffmann Portfolio
   ULTRA Premium Dark Edition – 2026
   ========================================= */

:root {
  --bg-primary: #030303;
  --bg-secondary: #080808;
  --bg-tertiary: #0f0f0f;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

  --accent-primary: #8b5cf6;
  --accent-secondary: #06b6d4;
  --accent-tertiary: #f97316;
  --accent-cyan: #22d3ee;
  --accent-emerald: #22c55e;

  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #f97316 100%);
  --gradient-text: linear-gradient(135deg, #c084fc 0%, #22d3ee 50%, #fb923c 100%);
  --gradient-border: linear-gradient(135deg, rgba(139,92,246,0.5), rgba(6,182,212,0.5), rgba(249,115,22,0.5));

  --text-primary: #f0f0f0;
  --text-secondary: rgba(240, 240, 240, 0.55);
  --text-tertiary: rgba(240, 240, 240, 0.3);

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --fs-hero: clamp(3.5rem, 12vw, 8rem);
  --fs-h1: clamp(2.5rem, 6vw, 4rem);
  --fs-h2: clamp(1.75rem, 4vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2.5vw, 1.75rem);
  --fs-body: clamp(1rem, 1.5vw, 1.15rem);
  --fs-small: clamp(0.85rem, 1vw, 0.95rem);

  --space-xs: 0.5rem; --space-sm: 1rem; --space-md: 1.5rem;
  --space-lg: 2.5rem; --space-xl: 4rem; --space-2xl: 6rem; --space-3xl: 10rem;

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 28px;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === PREMIUM Light Theme === */
[data-theme="light"] {
  --bg-primary: #f8f7f4;
  --bg-secondary: #f0eeeb;
  --bg-tertiary: #e8e6e1;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);

  --accent-primary: #6d28d9;
  --accent-secondary: #0891b2;
  --accent-tertiary: #ea580c;

  --gradient-primary: linear-gradient(135deg, #6d28d9 0%, #0891b2 50%, #ea580c 100%);
  --gradient-text: linear-gradient(135deg, #6d28d9 0%, #0891b2 50%, #ea580c 100%);
  --gradient-border: linear-gradient(135deg, rgba(109,40,217,0.5), rgba(8,145,178,0.5), rgba(234,88,12,0.5));

  --text-primary: #1a1523;
  --text-secondary: rgba(26, 21, 35, 0.55);
  --text-tertiary: rgba(26, 21, 35, 0.35);
}

/* Warm gradient background */
[data-theme="light"] body {
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(109,40,217,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(8,145,178,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(234,88,12,0.03) 0%, transparent 60%);
  background-attachment: scroll;
}
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  [data-theme="light"] body { background-attachment: fixed; }
}

/* Vibrant orbs on light – bold colors, bigger blur */
[data-theme="light"] .orb { opacity: 0.25; filter: blur(130px); }
[data-theme="light"] .orb-1 {
  background: radial-gradient(circle, rgba(109,40,217,0.6), transparent 65%);
  width: 800px !important; height: 800px !important;
}
[data-theme="light"] .orb-2 {
  background: radial-gradient(circle, rgba(8,145,178,0.55), transparent 65%);
  width: 700px !important; height: 700px !important;
}
[data-theme="light"] .orb-3 {
  background: radial-gradient(circle, rgba(234,88,12,0.35), transparent 65%);
  width: 600px !important; height: 600px !important;
}

/* No grain in light – cleaner look */
[data-theme="light"] body::after { display: none; }

/* Cursor: warm glow */
[data-theme="light"] .cursor-follower {
  background: radial-gradient(circle, rgba(109,40,217,0.07) 0%, rgba(8,145,178,0.03) 40%, transparent 70%);
}

/* Nav: frosted white glass */
[data-theme="light"] .nav-inner {
  background: rgba(248,247,244,0.75);
  border-color: rgba(109,40,217,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
[data-theme="light"] .nav.scrolled .nav-inner {
  background: rgba(248,247,244,0.92);
  box-shadow: 0 8px 40px rgba(109,40,217,0.06), 0 1px 0 rgba(0,0,0,0.04);
}

/* Hero badge: colored pill */
[data-theme="light"] .hero-badge {
  background: linear-gradient(135deg, rgba(109,40,217,0.08), rgba(8,145,178,0.06));
  border-color: rgba(109,40,217,0.15);
  box-shadow: 0 4px 15px rgba(109,40,217,0.08);
}

/* Cards: white frosted glass with colored shadow */
[data-theme="light"] .bento-card {
  background: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 4px 24px rgba(109,40,217,0.04),
              0 1px 4px rgba(0,0,0,0.04);
  backdrop-filter: blur(30px);
}
[data-theme="light"] .bento-card::before {
  background: var(--gradient-border);
}
[data-theme="light"] .bento-card::after {
  background: rgba(255,255,255,0.92);
}
[data-theme="light"] .bento-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 80px rgba(109,40,217,0.1),
              0 10px 30px rgba(8,145,178,0.06),
              0 0 0 1px rgba(109,40,217,0.08);
}

/* Code preview stays dark for contrast – but with colored top bar */
[data-theme="light"] .code-preview {
  background: #1a1035;
  border-color: rgba(109,40,217,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
[data-theme="light"] .code-header {
  background: linear-gradient(135deg, #241a44, #1a2a3a);
  border-bottom-color: rgba(109,40,217,0.2);
}

/* Pricing: glass cards with gradient glow */
[data-theme="light"] .pricing-card {
  background: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
[data-theme="light"] .pricing-card.featured {
  background: linear-gradient(180deg, rgba(109,40,217,0.04) 0%, rgba(255,255,255,0.8) 100%);
  border-color: rgba(109,40,217,0.12);
  box-shadow: 0 8px 40px rgba(109,40,217,0.08);
}
[data-theme="light"] .pricing-card:hover {
  box-shadow: 0 30px 60px rgba(109,40,217,0.08),
              0 10px 20px rgba(0,0,0,0.05);
}
[data-theme="light"] .pricing-card.featured::after {
  opacity: 0.15;
}

/* Stats: glass with subtle gradient top */
[data-theme="light"] .stats-grid {
  background: rgba(255,255,255,0.6);
  border-color: rgba(109,40,217,0.06);
  box-shadow: 0 4px 20px rgba(109,40,217,0.04);
}
[data-theme="light"] .stats-grid::before {
  background: linear-gradient(180deg, rgba(109,40,217,0.05) 0%, transparent 40%);
}

/* Tags: vibrant pills */
[data-theme="light"] .tag {
  background: rgba(109,40,217,0.04);
  border-color: rgba(109,40,217,0.08);
  color: rgba(26,21,35,0.6);
}
[data-theme="light"] .tag.accent {
  background: linear-gradient(135deg, rgba(109,40,217,0.1), rgba(8,145,178,0.08));
  color: #6d28d9;
  border-color: rgba(109,40,217,0.15);
}

/* Buttons: rich colored shadows */
[data-theme="light"] .btn-primary {
  box-shadow: 0 4px 20px rgba(109,40,217,0.25), 0 8px 40px rgba(8,145,178,0.12);
}
[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(109,40,217,0.35), 0 16px 60px rgba(8,145,178,0.18);
}
[data-theme="light"] .btn-secondary {
  border-color: rgba(109,40,217,0.12);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}
[data-theme="light"] .btn-secondary:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(109,40,217,0.25);
  box-shadow: 0 4px 20px rgba(109,40,217,0.06);
}

/* Marquee: gradient tinted strip */
[data-theme="light"] .marquee-strip {
  background: linear-gradient(90deg, rgba(109,40,217,0.03), rgba(8,145,178,0.03), rgba(234,88,12,0.03));
  border-color: rgba(109,40,217,0.06);
}

/* Section title underline: more vivid */
[data-theme="light"] .section-title::after {
  height: 4px;
  box-shadow: 0 2px 10px rgba(109,40,217,0.2);
}

/* Footer: subtle gradient */
[data-theme="light"] .footer {
  background: linear-gradient(180deg, var(--bg-secondary), #ebe9e4);
  border-color: rgba(0,0,0,0.04);
}

/* Mobile nav: frosted with gradient */
[data-theme="light"] .mobile-nav {
  background: linear-gradient(180deg, rgba(248,247,244,0.98), rgba(240,238,235,0.98));
}
[data-theme="light"] .mobile-nav-link { color: var(--text-primary); }
[data-theme="light"] .mobile-nav-link:hover { color: var(--accent-primary); }

/* Cookie */
[data-theme="light"] .cookie-banner {
  background: rgba(248,247,244,0.97);
  border-color: rgba(109,40,217,0.06);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.05);
}

/* Project link: colored hover */
[data-theme="light"] .project-link {
  background: rgba(109,40,217,0.04);
  border-color: rgba(109,40,217,0.1);
}
[data-theme="light"] .project-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(109,40,217,0.3);
}

/* Scroll indicator */
[data-theme="light"] .scroll-line { background: rgba(109,40,217,0.15); }
[data-theme="light"] .scroll-line::after {
  background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
}

/* === Scroll Progress Bar === */
#scrollProgress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  background: var(--gradient-primary);
  z-index: 9998;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  box-shadow: 0 0 10px rgba(139,92,246,0.5), 0 0 30px rgba(6,182,212,0.3);
}
[data-theme="light"] #scrollProgress {
  box-shadow: 0 0 10px rgba(109,40,217,0.4), 0 0 30px rgba(8,145,178,0.2);
}

/* Light mode canvas: fully visible for dot grid */
[data-theme="light"] #starCanvas { opacity: 1; mix-blend-mode: normal; }

/* Hero zoom support */
.hero-content { will-change: transform, opacity, filter; transform-origin: center center; }

/* Project title scramble cursor */
.project-title { cursor: default; }

/* === Theme Toggle Button === */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  font-size: 1.1rem; color: var(--text-primary);
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-glass-hover);
  transform: rotate(30deg) scale(1.1);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute; transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.theme-toggle .icon-sun { opacity: 0; transform: scale(0.5) rotate(-90deg); }
.theme-toggle .icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: scale(1) rotate(0deg); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: scale(0.5) rotate(90deg); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* === Canvas Stars === */
#starCanvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
}

/* === Gradient Orbs === */
.orb-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.35;
  animation: orbDrift 25s ease-in-out infinite;
  will-change: transform;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,0.7), transparent 70%);
  top: -15%; left: -10%;
  animation-duration: 20s;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.5), transparent 70%);
  top: 50%; right: -20%;
  animation-delay: -8s; animation-duration: 28s;
}
.orb-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34,211,238,0.4), transparent 70%);
  bottom: -10%; left: 25%;
  animation-delay: -15s; animation-duration: 24s;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  20% { transform: translate(100px, -80px) scale(1.15) rotate(5deg); }
  40% { transform: translate(-60px, 60px) scale(0.9) rotate(-3deg); }
  60% { transform: translate(80px, 100px) scale(1.1) rotate(8deg); }
  80% { transform: translate(-40px, -40px) scale(0.95) rotate(-5deg); }
}

/* Grain */
body::after {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025; pointer-events: none; z-index: 9999;
  mix-blend-mode: overlay;
}

/* === Cursor Follower === */
.cursor-follower {
  position: fixed; width: 400px; height: 400px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%);
  transform: translate3d(-1000px, -1000px, 0) translate(-50%, -50%);
  z-index: 0; transition: width 0.5s, height 0.5s, opacity 0.5s, background 0.5s;
  will-change: transform;
}

/* === Container === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }

/* === Navigation === */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: var(--space-md) var(--space-lg);
  transition: var(--transition-normal);
}
.nav.scrolled .nav-inner {
  background: rgba(3,3,3,0.9);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 100px; border: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}
.nav-logo {
  display: flex; align-items: center; gap: var(--space-xs);
  text-decoration: none; font-size: var(--fs-h3);
  font-weight: 700; color: var(--text-primary);
}
.nav-logo .logo-accent {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: var(--space-lg); list-style: none; }
.nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: var(--fs-small); font-weight: 500;
  transition: var(--transition-fast); position: relative; padding: var(--space-xs) 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary); border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

/* === Hero Section === */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: var(--space-3xl) 0 var(--space-2xl); position: relative;
  overflow: hidden;
}
.hero-content { text-align: center; max-width: 1000px; position: relative; z-index: 2; }

/* Hero badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: 8px 20px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 100px; font-size: var(--fs-small);
  color: var(--accent-primary);
  opacity: 0; transform: translateY(30px) scale(0.95);
  animation: heroIn 1s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
.hero-badge .dot {
  width: 8px; height: 8px; background: var(--accent-emerald);
  border-radius: 50%; box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s ease-in-out infinite;
}

/* Hero title - split word animation */
.hero-title {
  font-size: clamp(2rem, 5.5vw, 4.5rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.04em;
  margin: var(--space-lg) 0;
}
.hero-title .line {
  display: block;
}
.hero-title .line:last-child {
  min-height: 1.2em;
}
.hero-title .line-inner {
  display: inline-block;
  opacity: 0; transform: translateY(100%);
  animation: lineReveal 1s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-title .line:nth-child(1) .line-inner { animation-delay: 0.4s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 0.55s; }

.hero-title .gradient-text {
  background: var(--gradient-text);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  /* lineReveal handled by JS initLetterScatter */
}

@keyframes lineReveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary); max-width: 600px;
  margin: 0 auto var(--space-xl); line-height: 1.7;
  opacity: 0; transform: translateY(30px);
  animation: heroIn 1s cubic-bezier(0.16,1,0.3,1) 0.7s forwards;
}

.hero-cta {
  display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(30px);
  animation: heroIn 1s cubic-bezier(0.16,1,0.3,1) 0.85s forwards;
  width: min(1000px, 100%);
  margin: 0 auto;
}
.hero-cta .btn {
  justify-content: center;
  width: min(480px, calc(50% - (var(--space-md) / 2)));
  min-width: 320px;
}
.hero-cta .btn-primary {
  position: relative;
  padding-left: 56px;
  padding-right: 56px;
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--accent-emerald); }
  50% { transform: scale(1.3); box-shadow: 0 0 20px var(--accent-emerald), 0 0 40px rgba(34,197,94,0.3); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 0; right: 0;
  width: max-content; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; color: var(--text-tertiary);
  text-align: center;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  opacity: 0; animation: heroIn 1s cubic-bezier(0.16,1,0.3,1) 1.2s forwards;
}
.scroll-line {
  width: 1px; height: 50px; position: relative; overflow: hidden;
  background: rgba(255,255,255,0.1);
}
.scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { top: -100%; }
  100% { top: 200%; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: 14px 32px; border-radius: 100px;
  font-size: var(--fs-body); font-weight: 600;
  line-height: 1.1;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  position: relative; overflow: hidden;
}
.btn-arrow {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transform: translateY(1px);
}
.hero-cta .btn-primary .btn-arrow {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-45%);
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-primary); color: #fff;
  box-shadow: 0 0 30px rgba(139,92,246,0.3), 0 0 60px rgba(6,182,212,0.15);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 40px rgba(139,92,246,0.5), 0 0 80px rgba(6,182,212,0.25);
}
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

/* === Marquee === */
.marquee-strip {
  background: rgba(139,92,246,0.04);
  border-top: 1px solid rgba(139,92,246,0.1);
  border-bottom: 1px solid rgba(139,92,246,0.1);
  padding: var(--space-sm) 0; overflow: hidden;
}
.marquee-content {
  display: flex; gap: var(--space-xl);
  animation: marquee 25s linear infinite; width: max-content;
}
.marquee-item {
  font-size: var(--fs-body); font-weight: 600;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-strip:hover .marquee-content { animation-play-state: paused; }

/* === Sections === */
.section { padding: var(--space-3xl) 0; scroll-margin-top: 100px; }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-label {
  font-size: var(--fs-small);
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase; letter-spacing: 0.2em;
  font-weight: 700; margin-bottom: var(--space-sm);
}
.section-title {
  font-size: var(--fs-h1); font-weight: 700;
  position: relative; display: inline-block;
}
.section-title::after {
  content: ''; position: absolute; bottom: -12px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 3px;
  background: var(--gradient-primary); border-radius: 2px;
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0; transform: translateY(80px) scale(0.97);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1),
              transform 1s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-left { opacity: 0; transform: translateX(-80px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(80px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-stagger:nth-child(1) { transition-delay: 0s; }
.reveal-stagger:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger:nth-child(7) { transition-delay: 0.6s; }
.reveal-stagger:nth-child(8) { transition-delay: 0.7s; }
.reveal-stagger:nth-child(9) { transition-delay: 0.8s; }
.reveal-stagger:nth-child(10) { transition-delay: 0.9s; }

.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* === Bento Grid === */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-md); }

.bento-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.5s ease, border-color 0.5s ease;
}

/* Animated gradient border on hover */
.bento-card::before {
  content: ''; position: absolute; inset: -1px;
  background: var(--gradient-border);
  border-radius: inherit; z-index: -1;
  opacity: 0; transition: opacity 0.5s ease;
}
.bento-card:hover::before { opacity: 1; }

/* Inner background to cover the gradient border */
.bento-card::after {
  content: ''; position: absolute; inset: 1px;
  background: rgba(8,8,8,0.97);
  border-radius: calc(var(--radius-xl) - 1px);
  z-index: -1;
}

.bento-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 80px rgba(139,92,246,0.12),
              0 0 40px rgba(6,182,212,0.06);
}

.bento-card.large { grid-column: span 8; grid-row: span 2; }
.bento-card.medium { grid-column: span 6; }
.bento-card.small { grid-column: span 4; }
.bento-card.tall { grid-column: span 4; grid-row: span 2; }
.bento-card.full { grid-column: span 12; }

/* Blurred / Coming Soon Card */
.blurred-card { position: relative; }
.blurred-card .project-header,
.blurred-card .project-title { pointer-events: auto; position: relative; z-index: 20; }
.blurred-content { filter: blur(6px); user-select: none; pointer-events: none; position: relative; }
.coming-soon-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.coming-soon-badge {
  background: var(--bg-glass); border: 1px solid var(--glass-border);
  padding: 0.75rem 2rem; border-radius: var(--radius-lg);
  font-weight: 700; font-size: 1.1rem; letter-spacing: 0.05em;
  color: var(--accent-primary); backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(139,92,246,0.2);
}
.bento-card.full .project-card { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.bento-card.full .project-header { margin-bottom: var(--space-md); }
.bento-card.full .code-preview { margin-top: 0; height: 100%; }
@media (max-width: 1024px) { .bento-card.full .project-card { display: flex; flex-direction: column; } }

/* === Project Cards === */
.project-card { display: flex; flex-direction: column; height: 100%; position: relative; z-index: 2; }
.project-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--space-md); }
.project-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; background: rgba(139,92,246,0.15);
}
.project-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.project-icon.logo-only { background: transparent; overflow: hidden; }
.logo-light { display: none; }
.logo-dark { display: block; }
.project-link {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
  color: var(--text-secondary); text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.project-link:hover {
  background: var(--accent-primary); border-color: var(--accent-primary); color: #fff;
  transform: rotate(-45deg) scale(1.1);
  box-shadow: 0 0 20px rgba(139,92,246,0.4);
}
.project-title { font-size: var(--fs-h3); font-weight: 700; margin-bottom: var(--space-xs); }
.project-description { color: var(--text-secondary); margin-bottom: var(--space-md); flex-grow: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.tag {
  padding: 4px 14px; background: rgba(255,255,255,0.04);
  border-radius: 100px; font-size: var(--fs-small);
  color: var(--text-secondary); font-weight: 500;
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition-normal);
}
.tag:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
.tag.accent {
  background: rgba(139,92,246,0.1); color: #c084fc;
  border-color: rgba(139,92,246,0.2);
}

/* === Code Preview === */
.code-preview {
  background: rgba(0,0,0,0.4); border-radius: var(--radius-md);
  overflow: hidden; margin-top: var(--space-md);
  border: 1px solid rgba(255,255,255,0.04);
}
.code-header {
  background: rgba(255,255,255,0.03); display: flex; align-items: center;
  padding: var(--space-sm) var(--space-md); gap: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }
.code-filename { color: rgba(255,255,255,0.35); font-family: var(--font-mono); font-size: 0.8rem; margin-left: var(--space-sm); }
.code-body { padding: var(--space-md); overflow-x: auto; }
.code-body pre { font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.7; color: #c8d6e5; margin: 0; white-space: pre-wrap; word-break: break-word; }
.code-keyword { color: #c084fc !important; }
.code-function { color: #60a5fa !important; }
.code-string { color: #4ade80 !important; }
.code-number { color: #fb923c !important; }
.code-comment { color: #4a5568 !important; }
.code-variable { color: #2dd4bf !important; }

/* === Stats Grid === */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md); padding: var(--space-xl);
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  position: relative; overflow: hidden;
}
.stats-grid::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.08), transparent 60%);
  pointer-events: none;
}
.stat { text-align: center; position: relative; }
.stat-value { font-size: 2.5rem; margin-bottom: 0.25rem; filter: grayscale(0); transition: transform 0.3s; }
.stat:hover .stat-value { transform: scale(1.2) translateY(-4px); }
.stat-label { font-size: var(--fs-small); color: var(--text-tertiary); font-weight: 500; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); margin-top: var(--space-lg); }
.pricing-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl); padding: var(--space-lg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
  position: relative; display: flex; flex-direction: column;
  overflow: hidden;
}
.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.pricing-card:hover::before { opacity: 1; }
.pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  border-color: rgba(139,92,246,0.15);
}
.pricing-card.featured {
  background: rgba(139,92,246,0.05);
  border-color: rgba(139,92,246,0.2);
}
.pricing-card.featured::after {
  content: ''; position: absolute; inset: -1px;
  background: var(--gradient-border);
  border-radius: inherit; z-index: -1; opacity: 0.3;
  animation: borderPulse 4s ease-in-out infinite;
}
@keyframes borderPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}
.pricing-header { text-align: center; margin-bottom: var(--space-lg); padding-bottom: var(--space-md); border-bottom: 1px solid var(--glass-border); }
.pricing-title { font-size: 1.15rem; font-weight: 700; margin-bottom: var(--space-xs); min-height: 2.5rem; display: flex; align-items: center; justify-content: center; }
.pricing-subtitle { font-size: 0.85rem; color: var(--text-secondary); min-height: 3rem; display: flex; align-items: flex-start; justify-content: center; line-height: 1.4; }
.pricing-price-wrapper { margin: var(--space-md) 0; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.pricing-currency { font-size: var(--fs-h3); color: var(--text-secondary); font-weight: 500; }
.pricing-price {
  font-size: 2.5rem; font-weight: 800;
  background: var(--gradient-text); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; line-height: 1;
}
.pricing-period { color: var(--text-secondary); font-size: var(--fs-small); }
.pricing-features { list-style: none; margin-bottom: var(--space-md); flex-grow: 1; }
.pricing-feature-item { display: flex; align-items: flex-start; gap: var(--space-xs); margin-bottom: 10px; color: var(--text-secondary); font-size: 0.9rem; }
.feature-icon { color: var(--accent-emerald); flex-shrink: 0; margin-top: 2px; }
.pricing-cta { margin-top: auto; width: 100%; }

/* === Footer === */
.footer {
  padding: var(--space-xl) 0; background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border); margin-top: var(--space-2xl);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); }
.footer-links { display: flex; gap: var(--space-lg); }
.footer-link { color: var(--text-secondary); text-decoration: none; font-size: var(--fs-small); transition: var(--transition-fast); }
.footer-link:hover { color: var(--text-primary); }
.footer-copyright { color: var(--text-tertiary); font-size: var(--fs-small); }

/* === Mobile Menu === */
.mobile-menu-toggle {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: var(--bg-glass);
  cursor: pointer; align-items: center; justify-content: center;
  transition: var(--transition-normal); position: relative; z-index: 101;
}
.hamburger { width: 18px; height: 14px; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition-normal); transform-origin: center; }
.mobile-menu-toggle.active .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle.active .hamburger span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(3,3,3,0.95);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav-content { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: var(--space-lg); }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); }
.mobile-nav-link {
  font-size: clamp(1.5rem, 5vw, 2.5rem); font-weight: 700; color: var(--text-primary);
  text-decoration: none; opacity: 0; transform: translateY(30px);
  transition: opacity 0.4s, transform 0.4s, color 0.2s;
}
.mobile-nav.open .mobile-nav-link { opacity: 1; transform: translateY(0); }
.mobile-nav.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open .mobile-nav-link:nth-child(2) { transition-delay: 0.18s; }
.mobile-nav.open .mobile-nav-link:nth-child(3) { transition-delay: 0.26s; }
.mobile-nav.open .mobile-nav-link:nth-child(4) { transition-delay: 0.34s; }
.mobile-nav-link:hover { color: var(--accent-primary); }
.mobile-nav-cta { margin-top: var(--space-lg); opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease 0.4s, transform 0.3s ease 0.4s; }
.mobile-nav.open .mobile-nav-cta { opacity: 1; transform: translateY(0); }

/* === Cookie === */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; padding: var(--space-md) var(--space-lg); background: rgba(8,8,8,0.95); border-top: 1px solid var(--glass-border); backdrop-filter: blur(20px); display: flex; justify-content: center; }
.cookie-content { display: flex; align-items: center; gap: var(--space-lg); max-width: 1200px; flex-wrap: wrap; justify-content: center; }
.cookie-content p { color: var(--text-secondary); margin: 0; }
.cookie-content a { color: var(--accent-primary); }
.cookie-buttons { display: flex; gap: var(--space-sm); }
.cookie-buttons .btn { padding: 10px 24px; font-size: var(--fs-small); }

/* === Responsive: Tablet === */
@media (max-width: 1024px) {
  .mobile-menu-toggle { display: flex; }
  .mobile-nav { display: block; }
  .nav-links { display: none !important; }
  .bento-card.large, .bento-card.medium, .bento-card.small, .bento-card.tall { grid-column: span 6; grid-row: span 1; }

  /* Smaller orbs on tablet */
  .orb-1 { width: 400px; height: 400px; }
  .orb-2 { width: 350px; height: 350px; }
  .orb-3 { width: 300px; height: 300px; }
  [data-theme="light"] .orb-1 { width: 500px !important; height: 500px !important; }
  [data-theme="light"] .orb-2 { width: 400px !important; height: 400px !important; }
  [data-theme="light"] .orb-3 { width: 350px !important; height: 350px !important; }
}

/* === Responsive: Mobile === */
@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
  }

  .container { padding: 0 var(--space-sm); }

  /* Nav */
  .nav { padding: var(--space-sm) var(--space-sm); }
  .nav-inner { padding: var(--space-xs) var(--space-md); }

  /* Hero */
  .hero { min-height: 90vh; padding-top: 6rem; padding-bottom: 3rem; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); letter-spacing: -0.03em; }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: var(--space-sm); width: 100%; }
  .hero-cta .btn { width: 100%; min-width: 0; justify-content: center; }

  /* Disable hero zoom on mobile (no smooth scroll) */
  .hero-content { will-change: auto; }

  /* Cards */
  .bento-grid { gap: var(--space-sm); }
  .bento-card.large, .bento-card.medium, .bento-card.small, .bento-card.tall { grid-column: span 12; }
  .bento-card { padding: var(--space-md); }
  .bento-card.full .project-card { display: flex; flex-direction: column; }
  .project-icon { width: 42px; height: 42px; font-size: 1.25rem; }
  .project-title { font-size: 1.2rem; }
  .project-description { font-size: 0.9rem; margin-bottom: var(--space-sm); }
  .project-tags { gap: 6px; }
  .tag { font-size: 0.75rem; padding: 3px 10px; }

  /* Code preview */
  .code-preview { margin-top: var(--space-sm); }
  .code-header { padding: 8px 12px; }
  .code-body { padding: 10px; }
  .code-body pre { font-size: 0.65rem; line-height: 1.4; }
  .code-filename { font-size: 0.65rem; }

  /* Stats */
  .stats-grid { padding: var(--space-md); gap: var(--space-sm); grid-template-columns: repeat(3, 1fr); }
  .stat-value { font-size: 1.5rem; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; }

  /* Orbs: much smaller on mobile */
  .orb-1 { width: 250px; height: 250px; }
  .orb-2 { width: 200px; height: 200px; }
  .orb-3 { width: 180px; height: 180px; }
  [data-theme="light"] .orb-1 { width: 300px !important; height: 300px !important; }
  [data-theme="light"] .orb-2 { width: 250px !important; height: 250px !important; }
  [data-theme="light"] .orb-3 { width: 200px !important; height: 200px !important; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: var(--space-sm); }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }

  /* Cookie */
  .cookie-content { flex-direction: column; text-align: center; }
  .cookie-buttons { width: 100%; }
  .cookie-buttons .btn { flex: 1; }

  /* Hide desktop effects */
  .scroll-indicator { display: none; }
  .cursor-follower { display: none; }

  /* Section spacing */
  .section { padding: var(--space-2xl) 0; }
  .section-header { margin-bottom: var(--space-lg); }

  /* Scroll progress: thinner on mobile */
  #scrollProgress { height: 2px; }
}

body.menu-open { overflow: hidden; }

/* =========================================
   SUBPAGE STYLES (Preserved)
   ========================================= */
.page-simple { padding-top: 140px; min-height: 100vh; }
.legal-content { max-width: 1100px; margin: 0 auto; padding: var(--space-xl); background: var(--bg-glass); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.legal-content h1 { font-size: var(--fs-h1); margin-bottom: var(--space-lg); background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.legal-content h2 { font-size: var(--fs-h3); margin-top: var(--space-lg); margin-bottom: var(--space-sm); color: var(--text-primary); }
.legal-content p { color: var(--text-secondary); margin-bottom: var(--space-sm); }
.legal-content a { color: var(--accent-primary); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* About */
.about-wrapper { display: grid; grid-template-columns: 350px 1fr; gap: var(--space-2xl); align-items: start; margin-bottom: var(--space-2xl); }
.about-profile { position: sticky; top: 120px; text-align: center; }
.profile-image-wrapper { position: relative; width: 280px; height: 280px; margin: 0 auto var(--space-lg); }
.profile-image { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-xl); border: 2px solid var(--glass-border); position: relative; z-index: 1; filter: grayscale(20%); transition: var(--transition-normal); }
.profile-image:hover { filter: grayscale(0%); transform: scale(1.02); }
.profile-image-glow { position: absolute; top: 10%; left: 10%; width: 80%; height: 80%; background: var(--gradient-primary); filter: blur(40px); opacity: 0.3; z-index: 0; border-radius: 50%; }
.profile-status { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-md); background: var(--bg-glass); border: 1px solid var(--glass-border); border-radius: 100px; font-size: var(--fs-small); color: var(--text-secondary); }
.status-dot { width: 8px; height: 8px; background: var(--accent-emerald); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.about-content { padding-top: var(--space-md); }
.about-title { font-size: var(--fs-h1); font-weight: 800; margin-bottom: var(--space-md); line-height: 1.2; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-intro { font-size: var(--fs-h3); color: var(--text-secondary); margin-bottom: var(--space-lg); line-height: 1.6; }
.about-text { margin-bottom: var(--space-xl); }
.about-text p { color: var(--text-secondary); margin-bottom: var(--space-md); line-height: 1.8; }
.about-text strong { color: var(--text-primary); font-weight: 600; }
.about-header { text-align: center; margin-bottom: var(--space-3xl); max-width: 800px; margin-left: auto; margin-right: auto; }
.about-image-container { display: inline-block; position: relative; margin-bottom: var(--space-lg); }
.about-image { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 2px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform 0.3s ease; }
.about-image:hover { transform: scale(1.05); }
.status-badge { position: absolute; bottom: 0; right: -10px; background: var(--bg-tertiary); padding: 6px 12px; border-radius: 20px; border: 1px solid var(--glass-border); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.about-subtitle { font-size: var(--fs-h3); color: var(--text-secondary); line-height: 1.6; }
.about-cta-container { margin-top: var(--space-lg); }
.about-skills { margin-bottom: var(--space-xl); }
.skills-title { font-size: var(--fs-h3); margin-bottom: var(--space-md); color: var(--text-primary); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.skill-card { background: var(--bg-glass); padding: var(--space-lg); border-radius: var(--radius-lg); border: 1px solid var(--glass-border); transition: var(--transition-normal); display: flex; flex-direction: column; gap: var(--space-md); }
.skill-card:hover { transform: translateY(-5px); border-color: rgba(139,92,246,0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.skill-icon { font-size: 2rem; background: var(--bg-tertiary); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); }
.skill-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.skill-item { display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-md); background: var(--bg-glass); border: 1px solid var(--glass-border); border-radius: var(--radius-md); transition: var(--transition-normal); }
.skill-item:hover { background: var(--bg-glass-hover); transform: translateY(-2px); }
.skill-text h4 { font-size: var(--fs-body); font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.skill-text p { font-size: var(--fs-small); color: var(--text-tertiary); }
.about-cta { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.about-journey { padding: var(--space-xl); background: var(--bg-glass); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); backdrop-filter: blur(20px); }
.journey-title { font-size: var(--fs-h2); margin-bottom: var(--space-xl); text-align: center; }
.timeline { display: flex; flex-direction: column; gap: var(--space-lg); position: relative; padding-left: 40px; margin: var(--space-xl) 0; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.06); }
.timeline-item { position: relative; display: flex; align-items: flex-start; gap: var(--space-md); }
.timeline-marker { position: absolute; left: -35px; top: 6px; width: 12px; height: 12px; background: var(--bg-secondary); border: 2px solid var(--accent-primary); border-radius: 50%; z-index: 1; }
.timeline-marker.active { background: var(--accent-primary); box-shadow: 0 0 12px rgba(139,92,246,0.4); }
.timeline-content { flex: 1; }
.timeline-date { font-size: var(--fs-small); color: var(--accent-primary); font-weight: 600; display: block; margin-bottom: 4px; }
.timeline-title { font-size: var(--fs-h3); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-xs); }
.timeline-content p { font-size: var(--fs-small); color: var(--text-secondary); }
@media (max-width: 1024px) { .about-wrapper { grid-template-columns: 1fr; gap: var(--space-xl); } .about-profile { position: static; } .profile-image-wrapper { width: 220px; height: 220px; } }
@media (max-width: 768px) { .skills-grid { grid-template-columns: 1fr; } .about-cta { flex-direction: column; } .about-cta .btn { width: 100%; justify-content: center; } .timeline { padding-left: 20px; } .timeline-marker { left: -27px; } }

/* Project Detail Pages */
.back-link { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--text-secondary); text-decoration: none; font-size: var(--fs-small); margin-bottom: var(--space-lg); transition: var(--transition-fast); }
.back-link:hover { color: var(--accent-primary); }
.project-detail-header { text-align: center; padding: var(--space-xl) 0; }
.project-detail-icon { width: 100px; height: 100px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 3rem; margin: 0 auto var(--space-lg); box-shadow: var(--glass-shadow); }
.project-detail-icon img { width: 80%; height: 80%; object-fit: contain; border-radius: var(--radius-md); }
.project-detail-icon.logo-only { background: var(--bg-tertiary); border: 1px solid var(--glass-border); }
.project-detail-title { font-size: var(--fs-h1); font-weight: 800; margin-bottom: var(--space-sm); }
.project-detail-subtitle { font-size: var(--fs-h3); color: var(--text-secondary); max-width: 700px; margin: 0 auto; line-height: 1.6; }
.project-detail-cta { margin-top: var(--space-xl); }
.project-section { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--glass-border); }
.project-section .section-title { margin-bottom: var(--space-sm); }
.section-subtitle { color: var(--text-secondary); margin-bottom: var(--space-lg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.feature-card { background: var(--bg-glass); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: var(--space-md); transition: var(--transition-normal); }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,0.2); box-shadow: var(--glass-shadow); }
.feature-card .feature-icon { font-size: 1.5rem; margin-bottom: var(--space-xs); display: block; color: inherit; }
.feature-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-xs); }
.feature-card p { color: var(--text-secondary); font-size: var(--fs-body); }
.code-showcase { margin-top: var(--space-lg); }
.code-preview.large { margin-top: 0; }
.code-preview.large .code-body { padding: var(--space-lg); }
.code-preview.large .code-body pre { font-size: 0.9rem; line-height: 1.8; }
.tech-stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.tech-item { background: var(--bg-glass); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-xs); }
.tech-item strong { color: var(--accent-primary); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.05em; }
.tech-item span { color: var(--text-secondary); }
@media (max-width: 768px) {
  .project-detail-icon { width: 60px; height: 60px; font-size: 2rem; }
  .project-detail-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .project-detail-subtitle { font-size: 0.9rem; line-height: 1.5; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card { padding: var(--space-sm); }
  .feature-card h3 { font-size: 1rem; }
  .feature-card p { font-size: 0.85rem; }
  .tech-stack-grid { grid-template-columns: 1fr 1fr; }
  .code-preview.large .code-body { padding: var(--space-sm); }
  .code-preview.large .code-body pre { font-size: 0.7rem; line-height: 1.4; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .tech-stack-grid { grid-template-columns: 1fr; }
}

/* === Blog Article Styles === */
article.page-simple .section-title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
article.page-simple .section-title::after {
  bottom: -8px;
  width: 50px;
  height: 2px;
}
article.page-simple .project-detail-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}
