/* ===== CSS VARIABLES & RESET ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(255,255,255,0.03);
    --bg-glass: rgba(255,255,255,0.05);
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b5;
    --text-muted: #6a6a80;
    --accent-1: #6c5ce7;
    --accent-2: #a855f7;
    --accent-3: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #6c5ce7, #a855f7, #06b6d4);
    --accent-glow: rgba(108,92,231,0.4);
    --border-color: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(108,92,231,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --font-primary: 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-fast: 0.2s cubic-bezier(0.4,0,0.2,1);
    --transition-base: 0.3s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);
    --transition-spring: 0.6s cubic-bezier(0.34,1.56,0.64,1);
    --nav-height: 72px;
    --container-max: 1200px;
    --container-padding: 24px;
}

[data-theme="light"] {
    --bg-primary: #f8f8fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f5;
    --bg-card: rgba(0,0,0,0.02);
    --bg-glass: rgba(255,255,255,0.7);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5e;
    --text-muted: #8a8a9e;
    --border-color: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.15);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) var(--bg-secondary);
    font-size: 16px;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

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

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

.loader-container { display: flex; justify-content: center; align-items: center; position: relative; }

.pl {
  --trans-dur: 0.6s;
  --bg: var(--bg-primary);
  --primary1: var(--accent-1);
  --primary2: var(--accent-2);
  --fg-t: var(--text-primary);
  box-shadow: 2em 0 2em rgba(0, 0, 0, 0.2) inset, -2em 0 2em rgba(255, 255, 255, 0.1) inset;
  display: flex; justify-content: center; align-items: center; position: relative;
  letter-spacing: 0.1em; text-transform: uppercase;
  transform: rotateX(30deg) rotateZ(45deg); width: 14em; height: 14em; color: white; margin: 0 auto;
}
.pl, .pl__dot { border-radius: 50%; }
.pl__dot {
  animation-name: shadow724; box-shadow: 0.1em 0.1em 0 0.1em black, 0.3em 0 0.3em rgba(0, 0, 0, 0.5);
  top: calc(50% - 0.75em); left: calc(50% - 0.75em); width: 1.5em; height: 1.5em;
  animation-duration: 2s; animation-iteration-count: infinite; position: absolute;
}
.pl__dot:before, .pl__dot:after {
  content: ""; display: block; left: 0; width: inherit; transition: background-color var(--trans-dur);
  animation-duration: 2s; animation-iteration-count: infinite; position: absolute;
}
.pl__dot:before {
  animation-name: pushInOut1724; background-color: var(--bg); border-radius: inherit;
  box-shadow: 0.05em 0 0.1em rgba(255, 255, 255, 0.2) inset; height: inherit; z-index: 1;
}
.pl__dot:after {
  animation-name: pushInOut2724; background-color: var(--primary1); border-radius: 0.75em;
  box-shadow: 0.1em 0.3em 0.2em rgba(255, 255, 255, 0.4) inset, 0 -0.4em 0.2em #2e3138 inset, 0 -1em 0.25em rgba(0, 0, 0, 0.3) inset;
  bottom: 0; clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%); height: 3em; transform: rotate(-45deg); transform-origin: 50% 2.25em;
}

.pl__dot:nth-child(1) { transform: rotate(0deg) translateX(5em) rotate(0deg); z-index: 5; }
.pl__dot:nth-child(1), .pl__dot:nth-child(1):before, .pl__dot:nth-child(1):after { animation-delay: 0s; }
.pl__dot:nth-child(2) { transform: rotate(-30deg) translateX(5em) rotate(30deg); z-index: 4; }
.pl__dot:nth-child(2), .pl__dot:nth-child(2):before, .pl__dot:nth-child(2):after { animation-delay: -0.1666666667s; }
.pl__dot:nth-child(3) { transform: rotate(-60deg) translateX(5em) rotate(60deg); z-index: 3; }
.pl__dot:nth-child(3), .pl__dot:nth-child(3):before, .pl__dot:nth-child(3):after { animation-delay: -0.3333333333s; }
.pl__dot:nth-child(4) { transform: rotate(-90deg) translateX(5em) rotate(90deg); z-index: 2; }
.pl__dot:nth-child(4), .pl__dot:nth-child(4):before, .pl__dot:nth-child(4):after { animation-delay: -0.5s; }
.pl__dot:nth-child(5) { transform: rotate(-120deg) translateX(5em) rotate(120deg); z-index: 1; }
.pl__dot:nth-child(5), .pl__dot:nth-child(5):before, .pl__dot:nth-child(5):after { animation-delay: -0.6666666667s; }
.pl__dot:nth-child(6) { transform: rotate(-150deg) translateX(5em) rotate(150deg); z-index: 1; }
.pl__dot:nth-child(6), .pl__dot:nth-child(6):before, .pl__dot:nth-child(6):after { animation-delay: -0.8333333333s; }
.pl__dot:nth-child(7) { transform: rotate(-180deg) translateX(5em) rotate(180deg); z-index: 2; }
.pl__dot:nth-child(7), .pl__dot:nth-child(7):before, .pl__dot:nth-child(7):after { animation-delay: -1s; }
.pl__dot:nth-child(8) { transform: rotate(-210deg) translateX(5em) rotate(210deg); z-index: 3; }
.pl__dot:nth-child(8), .pl__dot:nth-child(8):before, .pl__dot:nth-child(8):after { animation-delay: -1.1666666667s; }
.pl__dot:nth-child(9) { transform: rotate(-240deg) translateX(5em) rotate(240deg); z-index: 4; }
.pl__dot:nth-child(9), .pl__dot:nth-child(9):before, .pl__dot:nth-child(9):after { animation-delay: -1.3333333333s; }
.pl__dot:nth-child(10) { transform: rotate(-270deg) translateX(5em) rotate(270deg); z-index: 5; }
.pl__dot:nth-child(10), .pl__dot:nth-child(10):before, .pl__dot:nth-child(10):after { animation-delay: -1.5s; }
.pl__dot:nth-child(11) { transform: rotate(-300deg) translateX(5em) rotate(300deg); z-index: 6; }
.pl__dot:nth-child(11), .pl__dot:nth-child(11):before, .pl__dot:nth-child(11):after { animation-delay: -1.6666666667s; }
.pl__dot:nth-child(12) { transform: rotate(-330deg) translateX(5em) rotate(330deg); z-index: 6; }
.pl__dot:nth-child(12), .pl__dot:nth-child(12):before, .pl__dot:nth-child(12):after { animation-delay: -1.8333333333s; }

.pl__text {
  font-family: var(--font-display); font-size: 1.5rem; max-width: 5rem; position: relative;
  text-shadow: 0 0 5px var(--fg-t); transform: rotateZ(-45deg); letter-spacing: 0.1em;
  color: var(--fg-t); z-index: 10; font-weight: 800; text-align: center;
}

@keyframes shadow724 {
  from { animation-timing-function: ease-in; box-shadow: 0.1em 0.1em 0 0.1em black, 0.3em 0 0.3em rgba(0, 0, 0, 0.3); }
  25% { animation-timing-function: ease-out; box-shadow: 0.1em 0.1em 0 0.1em black, 0.8em 0 0.8em rgba(0, 0, 0, 0.5); }
  50%, to { box-shadow: 0.1em 0.1em 0 0.1em black, 0.3em 0 0.3em rgba(0, 0, 0, 0.3); }
}
@keyframes pushInOut1724 {
  from { animation-timing-function: ease-in; background-color: var(--bg); transform: translate(0, 0); }
  25% { animation-timing-function: ease-out; background-color: var(--primary2); transform: translate(-71%, -71%); }
  50%, to { background-color: var(--bg); transform: translate(0, 0); }
}
@keyframes pushInOut2724 {
  from { animation-timing-function: ease-in; background-color: var(--bg); clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%); }
  25% { animation-timing-function: ease-out; background-color: var(--primary1); clip-path: polygon(0 25%, 100% 25%, 100% 100%, 0 100%); }
  50%, to { background-color: var(--bg); clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%); }
}

/* ===== PREMIUM DIFFERENCE CURSOR ===== */
.cursor-dot {
    display: none;
    width: 6px; height: 6px; background: white;
    border-radius: 50%; position: fixed; top: 0; left: 0;
    z-index: 10000; pointer-events: none; mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}
.cursor-outline {
    display: none;
    width: 40px; height: 40px; background: white; border: none;
    border-radius: 50%; position: fixed; top: 0; left: 0;
    z-index: 9999; pointer-events: none; mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: width, height, transform;
}
.cursor-outline.hover {
    width: 90px; height: 90px;
}

@media (max-width: 768px) { .cursor-dot, .cursor-outline { display: none !important; } body { cursor: auto; } button, a, * { cursor: pointer; } }

/* ===== PARTICLE CANVAS ===== */
#particleCanvas {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
}

/* ===== PAGE PROGRESS ===== */
.page-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 9997;
    background: var(--accent-gradient); transform-origin: left; transform: scaleX(0);
    transition: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
    z-index: 1000; transition: var(--transition-base);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(10,10,15,0.85); backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
[data-theme="light"] .navbar.scrolled { background: rgba(248,248,252,0.85); }

.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 32px; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 4px; position: relative; z-index: 10; }
.logo-text {
    font-family: var(--font-display); font-size: 1.75rem; font-weight: 800;
    background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-dot {
    width: 8px; height: 8px; background: var(--accent-3); border-radius: 50%;
    animation: logoPulse 2s ease-in-out infinite;
}
@keyframes logoPulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:0.5; transform:scale(0.7); } }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
    display: flex; align-items: center; gap: 6px; padding: 8px 16px;
    border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 500;
    color: var(--text-secondary); transition: var(--transition-base); position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.active { background: var(--bg-glass); }
.link-number {
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent-1);
    opacity: 0; transform: translateX(-8px); transition: var(--transition-base);
}
.nav-link:hover .link-number { opacity: 1; transform: translateX(0); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    width: 40px; height: 40px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: var(--transition-base);
    background: var(--bg-glass); border: 1px solid var(--border-color);
    position: relative; overflow: hidden;
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--border-hover); }

/* --- WOW LEVEL THEME BUTTON ANIMATION --- */
.theme-toggle i {
    position: absolute; top: 50%; left: 50%;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.6s ease;
}
.theme-toggle .fa-moon { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 1; }
.theme-toggle .fa-sun { transform: translate(-50%, -50%) rotate(90deg) scale(0); opacity: 0; color: #f59e0b; }

[data-theme="light"] .theme-toggle .fa-moon { transform: translate(-50%, -50%) rotate(-90deg) scale(0.2); opacity: 0; }
[data-theme="light"] .theme-toggle .fa-sun { transform: translate(-50%, -50%) rotate(0deg) scale(1.1); opacity: 1; text-shadow: 0 0 10px rgba(245,158,11,0.5); }

/* Pulse ripple effect on click */
.theme-toggle::after {
    content: ''; position: absolute; inset: -20%; background: var(--text-primary);
    border-radius: 50%; transform: scale(0); opacity: 0; z-index: -1;
}
.theme-toggle.clicked::after {
    animation: themePulseRipple 0.6s ease-out;
}
@keyframes themePulseRipple {
    0% { transform: scale(0); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Global color transition class (applied via JS) */
body.theme-transition, body.theme-transition * {
    transition: background-color 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                color 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}



.nav-cta {
    display: flex; align-items: center; gap: 8px; padding: 10px 24px;
    background: var(--accent-gradient); border-radius: var(--radius-full);
    font-size: 0.875rem; font-weight: 600; color: #fff;
    transition: var(--transition-base); box-shadow: 0 4px 20px var(--accent-glow);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }

.nav-hamburger {
    display: none; flex-direction: column; gap: 5px; z-index: 10; padding: 4px;
}
.nav-hamburger span {
    width: 24px; height: 2px; background: var(--text-primary);
    transition: var(--transition-base); border-radius: 2px;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.active span:nth-child(2) { opacity:0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 900px) {
    .nav-links, .nav-actions .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed; inset: 0; z-index: 999;
    pointer-events: none; opacity: 0; transition: opacity 0.4s;
}
.mobile-menu.active { pointer-events: all; opacity: 1; }
.mobile-menu-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); }
.mobile-menu-content {
    position: absolute; right: 0; top: 0; bottom: 0; width: 320px;
    background: var(--bg-secondary); padding: 100px 40px 40px;
    display: flex; flex-direction: column; gap: 8px;
    transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.65,0,0.35,1);
}
.mobile-menu.active .mobile-menu-content { transform: translateX(0); }
.mobile-link {
    display: flex; align-items: center; gap: 16px; padding: 16px 0;
    font-size: 1.25rem; font-weight: 600; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color); transition: var(--transition-base);
}
.mobile-link:hover, .mobile-link.active { color: var(--text-primary); }
.mobile-link-number { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-1); }
.mobile-menu-footer { margin-top: auto; }
.mobile-socials { display: flex; gap: 16px; }
.social-icon {
    width: 44px; height: 44px; border-radius: var(--radius-full);
    border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: var(--transition-base);
}
.social-icon:hover { border-color: var(--accent-1); color: var(--accent-1); background: rgba(108,92,231,0.1); }

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding-top: var(--nav-height);
}
.hero-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(108,92,231,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108,92,231,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}
.hero-gradient-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
    animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--accent-1); top: -10%; right: -10%; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--accent-2); bottom: -5%; left: -5%; animation-delay: -3s; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--accent-3); top: 40%; left: 30%; animation-delay: -5s; }
@keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-20px) scale(1.05); }
    66% { transform: translate(-20px,15px) scale(0.95); }
}

.hero-content { text-align: center; position: relative; z-index: 2; max-width: 900px; padding: 0 24px; }

.availability-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin: 0 auto 32px auto;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.availability-block:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.15); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); }
.avail-status { position: relative; display: flex; align-items: center; justify-content: center; margin-right: 12px; }
.avail-dot { width: 10px; height: 10px; background: #22c55e; border-radius: 50%; animation: dotPulse 2s infinite; }
.avail-text { color: var(--text-primary); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.5px; }

@keyframes dotPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(34,197,94,0.4); } 50%{ box-shadow:0 0 0 8px rgba(34,197,94,0); } }

.hero-title {
    font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800; line-height: 1.1; margin-bottom: 24px;
}
.hero-line { display: block; overflow: hidden; }
.hero-word { display: inline-block; }
.hero-name { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero-rotating { position: relative; display: inline-block; }
.rotating-text {
    display: inline-block; opacity: 0; transform: translateY(100%);
    transition: var(--transition-slow); position: absolute; left: 0; white-space: nowrap;
    background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.rotating-text.active { opacity: 1; transform: translateY(0); position: relative; }

.hero-description { font-size: 1.125rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 60px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px;
    border-radius: var(--radius-full); font-size: 0.9375rem; font-weight: 600;
    transition: var(--transition-base); position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--accent-gradient); color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-glow {
    position: absolute; inset: 0; background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
}
.btn-primary:hover .btn-glow { transform: translateX(100%); transition: transform 0.6s; }
.btn-outline {
    border: 1.5px solid var(--border-hover); color: var(--text-primary);
    background: transparent;
}
.btn-outline:hover { border-color: var(--accent-1); background: rgba(108,92,231,0.08); }
.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn-icon { display: flex; transition: transform 0.3s; }
.btn:hover .btn-icon { transform: translateX(4px); }

/* ===== HERO STATS ===== */
.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 40px;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
    background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-plus { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent-2); }
.stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border-color); }

/* ===== HERO SCROLL & SOCIAL ===== */
.hero-scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--accent-1), transparent); }
.scroll-text { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; writing-mode: vertical-lr; }
@keyframes scrollBounce { 0%,100%{ transform: translateX(-50%) translateY(0); } 50%{ transform: translateX(-50%) translateY(10px); } }

.hero-social-sidebar {
    position: fixed; left: 32px; bottom: 0; display: flex; flex-direction: column;
    align-items: center; gap: 20px; z-index: 100;
}
.social-link {
    color: var(--text-muted); font-size: 1.1rem; transition: var(--transition-base);
}
.social-link:hover { color: var(--accent-1); transform: translateY(-3px); }
.social-line { width: 1px; height: 80px; background: var(--border-color); }
.social-text {
    writing-mode: vertical-lr; font-size: 0.7rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 2px;
}

@media (max-width: 768px) {
    .hero-social-sidebar { display: none; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 1.75rem; }
}

/* ===== MARQUEE ===== */
.marquee-section { padding: 40px 0; overflow: hidden; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.marquee-track { display: flex; overflow: hidden; padding: 12px 0; }
.marquee-content {
    display: flex; align-items: center; gap: 40px; white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
.marquee-track[data-direction="reverse"] .marquee-content { animation-direction: reverse; }
.marquee-track[data-speed="fast"] .marquee-content { animation-duration: 20s; }
.marquee-item {
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
    color: var(--text-primary); opacity: 0.7;
}
.marquee-item.outline {
    -webkit-text-stroke: 1px var(--text-muted); -webkit-text-fill-color: transparent;
    font-size: 1.75rem;
}
.marquee-dot { color: var(--accent-1); font-size: 1rem; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; font-family: var(--font-mono); font-size: 0.8rem;
    color: var(--accent-1); text-transform: uppercase; letter-spacing: 3px;
    margin-bottom: 16px; padding: 6px 16px; border: 1px solid rgba(108,92,231,0.3);
    border-radius: var(--radius-full); background: rgba(108,92,231,0.05);
}
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); max-width: 550px; margin: 0 auto; }
.section-cta { text-align: center; margin-top: 48px; }

/* ===== PROJECT CARDS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }

.project-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: var(--transition-base); position: relative;
    display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-8px); border-color: var(--border-hover); box-shadow: var(--shadow-glow); }

.mac-header {
    width: 100%;
    padding: 10px 16px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.mac-dot.red { background: #ED594A; }
.mac-dot.yellow { background: #FDD800; }
.mac-dot.green { background: #5AC05A; }

.project-image {
    position: relative; overflow: hidden; aspect-ratio: 16/10;
    background: var(--bg-tertiary);
}
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0; transition: var(--transition-base); display: flex; align-items: flex-end; justify-content: center; padding: 20px;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay-actions { display: flex; gap: 12px; }
.project-overlay-btn {
    padding: 10px 20px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600;
    background: var(--accent-1); color: #fff; transition: var(--transition-base); display: flex; align-items: center; gap: 6px;
}
.project-overlay-btn.outline-btn { background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); }

.project-info { padding: 24px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.project-tag {
    font-size: 0.7rem; padding: 4px 10px; border-radius: var(--radius-full);
    background: rgba(108,92,231,0.1); color: var(--accent-1); font-weight: 500;
}
.project-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.project-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* SKELETON */
.project-skeleton { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-color); }
.skeleton-image { aspect-ratio: 16/10; background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card) 50%, var(--bg-tertiary) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-text { height: 16px; margin: 16px 24px 8px; border-radius: 4px; background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card) 50%, var(--bg-tertiary) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-text.short { width: 60%; margin-bottom: 24px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Keep old ap-* for compatibility with any other page referencing them */

/* ===== BENTO ABOUT BOARD ===== */
.bento-section { overflow: hidden; }
.bento-header { margin-bottom: 48px; }
.bento-header .section-title { font-size: clamp(2rem, 4vw, 3rem); }

/* ── Grid layout ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 16px;
}

/* Card placements */
.bento-hero       { grid-column: 1 / 7;  grid-row: 1 / 3; }
.bento-status     { grid-column: 7 / 10; grid-row: 1 / 2; }
.bento-code       { grid-column: 10 / 13;grid-row: 1 / 2; }
.bento-skills     { grid-column: 7 / 10; grid-row: 2 / 3; }
.bento-philosophy { grid-column: 10 / 13;grid-row: 2 / 3; }
.bento-hobbies    { grid-column: 1 / 4;  grid-row: 3 / 4; }
.bento-coffee     { grid-column: 4 / 7;  grid-row: 3 / 4; }
.bento-cta        { grid-column: 7 / 13; grid-row: 3 / 4; }

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(6, 1fr); }
    .bento-hero       { grid-column: 1 / 5; grid-row: 1 / 3; }
    .bento-status     { grid-column: 5 / 7; grid-row: 1 / 2; }
    .bento-code       { grid-column: 5 / 7; grid-row: 2 / 3; }
    .bento-skills     { grid-column: 1 / 4; grid-row: 3 / 4; }
    .bento-philosophy { grid-column: 4 / 7; grid-row: 3 / 4; }
    .bento-hobbies    { grid-column: 1 / 3; grid-row: 4 / 5; }
    .bento-coffee     { grid-column: 3 / 5; grid-row: 4 / 5; }
    .bento-cta        { grid-column: 5 / 7; grid-row: 4 / 5; }
}
@media (max-width: 640px) {
    .bento-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .bento-hero       { grid-column: 1 / 3; grid-row: auto; }
    .bento-status     { grid-column: 1 / 2; }
    .bento-code       { grid-column: 2 / 3; }
    .bento-skills     { grid-column: 1 / 3; }
    .bento-philosophy { grid-column: 1 / 3; }
    .bento-hobbies    { grid-column: 1 / 2; }
    .bento-coffee     { grid-column: 2 / 3; }
    .bento-cta        { grid-column: 1 / 3; }
}

/* ── Base card ── */
.bento-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    border-color: rgba(108,92,231,0.3);
}
.bento-card-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ╔══ CARD 1: HERO ══╗ */
.bento-hero {
    background: linear-gradient(135deg, rgba(108,92,231,0.12) 0%, rgba(168,85,247,0.08) 50%, rgba(6,182,212,0.06) 100%);
    border-color: rgba(108,92,231,0.2);
    padding: 32px;
}

/* Morphing animated blob */
.bento-blob {
    position: absolute;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(108,92,231,0.25) 0%, rgba(168,85,247,0.1) 50%, transparent 70%);
    border-radius: 50%;
    top: -100px; right: -100px;
    animation: blobMorph 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes blobMorph {
    0%,100% { border-radius: 50%; transform: scale(1) rotate(0deg); }
    33%      { border-radius: 40% 60% 70% 30% / 30% 50% 70% 60%; transform: scale(1.1) rotate(60deg); }
    66%      { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: scale(0.95) rotate(120deg); }
}

.bento-hero-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
    position: relative;
    z-index: 1;
}
@media (max-width: 640px) {
    .bento-hero-inner { flex-direction: column; gap: 20px; }
}

/* Avatar with SVG ring */
.bento-avatar-ring {
    position: relative;
    flex-shrink: 0;
}
.bento-avatar {
    width: 150px; height: 150px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; z-index: 2;
    box-shadow: 0 0 40px rgba(108,92,231,0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}
.bento-avatar img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.bento-avatar .avatar-ready {
    animation: avatarFadeIn 0.5s ease;
}
@keyframes avatarFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.bento-avatar-ph { font-size: 3rem; color: var(--text-muted); }

/* GitHub Activity Card */
.bento-github {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 280px;
}

.github-stats-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.github-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.github-stat {
    text-align: center;
    flex: 1;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.github-stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-1);
    line-height: 1;
    margin-bottom: 2px;
}

.github-stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.github-heatmap {
    flex: 1;
    width: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.heatmap-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(53, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 1px;
    width: 100%;
    height: 100%;
    padding: 6px;
}

.heatmap-day {
    border-radius: 1px;
    background: var(--bg-tertiary);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    min-width: 3px;
    min-height: 3px;
}

.heatmap-day:hover {
    transform: scale(1.5);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.4);
}

.heatmap-day.level-0 { background: var(--bg-tertiary); }
.heatmap-day.level-1 { background: rgba(108, 92, 231, 0.2); }
.heatmap-day.level-2 { background: rgba(108, 92, 231, 0.4); }
.heatmap-day.level-3 { background: rgba(108, 92, 231, 0.6); }
.heatmap-day.level-4 { background: rgba(108, 92, 231, 0.8); }

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-1);
    text-decoration: none;
    transition: all 0.2s ease;
}

.github-link:hover {
    color: var(--accent-2);
    transform: translateX(2px);
}

.bento-ring-svg {
    position: absolute;
    inset: -16px;
    width: calc(100% + 32px);
    height: calc(100% + 32px);
    animation: ringRotate 8s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
.ring-track {
    fill: none;
    stroke: rgba(108,92,231,0.15);
    stroke-width: 1.5;
}
.ring-progress {
    fill: none;
    stroke: url(#ringGrad);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 591;
    stroke-dashoffset: 148; /* ~75% */
    transform-origin: 100px 100px;
}

/* Hero text */
.bento-hero-text { flex: 1; }
.bento-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}
.bento-role {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-weight: 500;
    min-height: 1.4em;
}
.role-cursor {
    display: inline-block;
    color: var(--accent-1);
    animation: blink 0.9s step-end infinite;
}
.bento-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 18px;
}
.bento-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bh-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(108,92,231,0.12);
    border: 1px solid rgba(108,92,231,0.25);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-1);
}
.bh-badge i { font-size: 0.65rem; }

/* ╔══ CARD 2: STATUS ══╗ */
.bento-status {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.bento-status-content { flex: 1; }
.bento-status-dot-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.bento-live-dot {
    width: 10px; height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
    animation: dotPulse 2s ease-in-out infinite;
}
.bento-live-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: #22c55e;
}
.bento-status-msg {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}
.bento-status-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.bento-status-tags span {
    font-size: 0.72rem;
    padding: 3px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    color: var(--text-muted);
}
.bento-status-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-1);
    padding: 8px 16px;
    background: rgba(108,92,231,0.1);
    border: 1px solid rgba(108,92,231,0.25);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    align-self: flex-start;
    margin-top: auto;
}
.bento-status-cta:hover { background: rgba(108,92,231,0.2); transform: translateX(4px); }

/* ╔══ CARD 3: CODE DNA ══╗ */
.bento-code {
    background: #0d1117;
    border-color: rgba(255,255,255,0.06);
}
[data-theme="light"] .bento-code { background: #1a1b26; }
.bento-code .bento-card-label { color: rgba(255,255,255,0.3); }

.bento-code-block { font-family: var(--font-mono); font-size: 0.82rem; }
.bcode-line { line-height: 2; white-space: nowrap; }
.bc-indent { padding-left: 20px; }
.bc-fn   { color: #cba6f7; }
.bc-p    { color: rgba(255,255,255,0.3); }
.bc-s    { color: #a6e3a1; }
.bc-k    { color: #89b4fa; }
.bc-comment { color: rgba(255,255,255,0.2); font-style: italic; }
.bc-out  { color: #f9e2af; }
.bcode-cursor {
    display: inline-block;
    color: #cba6f7;
    animation: blink 1s step-end infinite;
}

/* ╔══ CARD 4: SKILLS ══╗ */
.bento-skill-list { display: flex; flex-direction: column; gap: 12px; }
.bsk-row { display: flex; align-items: center; gap: 10px; }
.bsk-name {
    font-size: 0.78rem;
    color: var(--text-secondary);
    width: 62px;
    flex-shrink: 0;
}
.bsk-track {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 99px;
    overflow: hidden;
}
.bsk-fill {
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    border-radius: 99px;
    transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}
.bsk-fill.animated { width: var(--p); }
.bsk-pct {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

/* ╔══ CARD 5: PHILOSOPHY ══╗ */
.bento-philosophy { display: flex; flex-direction: column; }
.bento-quote-wrap { flex: 1; position: relative; min-height: 100px; }
.bento-quote {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
.bento-quote.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    position: relative;
}
.bq-mark {
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 0.5;
    color: var(--accent-1);
    opacity: 0.4;
}
.bento-quote p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}
.bq-dots {
    display: flex;
    gap: 6px;
    margin-top: 16px;
}
.bq-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-base);
}
.bq-dot.active { background: var(--accent-1); width: 18px; border-radius: 99px; }

/* ╔══ CARD 6: BEYOND CODE (HOBBIES) ══╗ */
.bento-hobbies { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.hobbies-container { 
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; 
    flex: 1; margin-top: 14px; margin-bottom: 12px;
}
.hobby-tag {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex; align-items: center; gap: 6px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.hobby-tag i { color: var(--accent-1); transition: transform 0.3s; }
.hobby-tag:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-1);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    z-index: 5;
}

/* Unique Icon Animations */
.hobby-tag.tag-travel:hover { transform: translateY(-4px) translateX(2px) scale(1.05); }
.hobby-tag.tag-travel:hover i { animation: flyPlane 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate; }
@keyframes flyPlane { 
    0% { transform: translate(0, 0) rotate(0deg) scale(1.1); } 
    100% { transform: translate(6px, -6px) rotate(15deg) scale(1.2); } 
}

.hobby-tag.tag-fitness:hover { transform: translateY(-3px) scale(1.05); }
.hobby-tag.tag-fitness:hover i { animation: pumpIron 0.6s ease-in-out infinite alternate; }
@keyframes pumpIron { 
    0% { transform: translateY(2px) scale(1.1); } 
    100% { transform: translateY(-4px) scale(1.15) rotate(-10deg); } 
}

.hobby-tag.tag-reading:hover { transform: translateY(-3px) scale(1.05); }
.hobby-tag.tag-reading:hover i { animation: readBook 1.5s ease-in-out infinite; }
@keyframes readBook {
    0%, 100% { transform: rotate(-8deg) scale(1.1); }
    50% { transform: rotate(8deg) scale(1.2); }
}

.hobby-tag.tag-gaming:hover { transform: translateY(-3px) scale(1.05); }
.hobby-tag.tag-gaming:hover i { animation: playGames 0.2s ease-in-out infinite alternate; color: #a855f7; }
@keyframes playGames {
    0% { transform: translate(-1px, 1px) rotate(-8deg) scale(1.2); }
    100% { transform: translate(1px, -1px) rotate(8deg) scale(1.2); }
}

.hobby-tag.tag-music:hover { transform: translateY(-3px) scale(1.05); }
.hobby-tag.tag-music:hover i { animation: driftMusic 1.5s ease-in-out infinite alternate; color: #ec4899; }
@keyframes driftMusic {
    0% { transform: translateY(0) scale(1.1) rotate(0deg); }
    100% { transform: translateY(-4px) scale(1.2) rotate(15deg); }
}

/* ╔══ CARD 7: COFFEE ══╗ */
.bento-coffee { display: flex; flex-direction: column; position: relative; }
.bento-coffee-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.bento-coffee-icon { font-size: 2.5rem; animation: coffeeWiggle 3s ease-in-out infinite; }
@keyframes coffeeWiggle {
    0%,100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}
.bento-coffee-count {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.bento-coffee-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bento-coffee-plus { font-size: 1.2rem; font-weight: 700; color: var(--accent-2); }
.bento-coffee-label { font-size: 0.72rem; color: var(--text-muted); text-align: center; line-height: 1.4; }

/* Steam animation */
.bento-coffee-steam {
    position: absolute;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    opacity: 0.4;
}
.steam {
    width: 4px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 99px;
    animation: steamRise 2s ease-in-out infinite;
}
.steam.s1 { animation-delay: 0s; }
.steam.s2 { animation-delay: 0.4s; height: 14px; }
.steam.s3 { animation-delay: 0.8s; height: 18px; }
@keyframes steamRise {
    0% { transform: translateY(0) scaleX(1); opacity: 0.4; }
    100% { transform: translateY(-20px) scaleX(0.3); opacity: 0; }
}

/* ╔══ CARD 8: CTA ══╗ */
.bento-cta { border: none; padding: 0; overflow: hidden; }
.bento-cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6c5ce7, #a855f7 40%, #06b6d4);
    opacity: 0.95;
}
/* Subtle animated mesh */
.bento-cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
    animation: ctaMesh 6s ease-in-out infinite alternate;
}
@keyframes ctaMesh {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}
.bento-cta-inner {
    position: relative;
    z-index: 1;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.bento-cta-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
}
.bento-cta-heading {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.bento-cta-heading em { font-style: normal; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); }
.bento-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* White button for CTA */
.btn-white {
    background: #fff;
    color: #6c5ce7;
    border-color: #fff;
}
.btn-white:hover { background: rgba(255,255,255,0.9); }

.bento-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition-base);
}
.bento-cta-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; gap: 12px; }

/* dotPulse shared animation */
@keyframes dotPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}



/* ── Ambient background orbs ── */
.ap-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.ap-orb-1 { width: 500px; height: 500px; background: rgba(108,92,231,0.12); top: -100px; left: -150px; animation: apOrbFloat 10s ease-in-out infinite; }
.ap-orb-2 { width: 350px; height: 350px; background: rgba(168,85,247,0.1); bottom: -80px; right: -80px; animation: apOrbFloat 14s ease-in-out infinite reverse; }
.ap-orb-3 { width: 200px; height: 200px; background: rgba(6,182,212,0.08); top: 50%; left: 45%; animation: apOrbFloat 8s ease-in-out infinite 4s; }
@keyframes apOrbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(30px,-20px) scale(1.08); }
}

/* ── Main grid ── */
.ap-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (max-width: 960px) {
    .ap-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ── LEFT column ── */
.ap-left { display: flex; flex-direction: column; gap: 24px; }

/* ─── 3D tilt card ─── */
.ap-card {
    position: relative;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(168,85,247,0.08), rgba(6,182,212,0.06));
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    padding: 36px 36px 48px;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    will-change: transform;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
[data-theme="light"] .ap-card {
    background: linear-gradient(135deg, rgba(108,92,231,0.07), rgba(168,85,247,0.04));
    border-color: rgba(0,0,0,0.08);
}

/* Holographic glare layer */
.ap-card-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0;
    z-index: 3;
}
.ap-card:hover .ap-card-glare { opacity: 1; }

/* Avatar wrap + rings */
.ap-avatar-wrap { position: relative; display: flex; justify-content: center; margin-bottom: 16px; }

.ap-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 2px solid;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.ap-ring-1 {
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border-color: rgba(108,92,231,0.3);
    animation: ringPulse 3s ease-in-out infinite;
}
.ap-ring-2 {
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    border-color: rgba(168,85,247,0.15);
    animation: ringPulse 3s ease-in-out infinite 1s;
}
@keyframes ringPulse {
    0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%,-50%) scale(1.03); }
}

.ap-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    overflow: hidden;
    border: 3px solid rgba(108,92,231,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(108,92,231,0.3), 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
}
.ap-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ap-avatar-placeholder { font-size: 3.5rem; color: var(--text-muted); }

/* Status pill */
.ap-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 4px;
    padding: 6px 18px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #22c55e;
    width: fit-content;
    margin: 12px auto 0;
}
.ap-status-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: dotPulse 2s ease-in-out infinite;
}

/* Floating stat bubbles */
.ap-bubble {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    z-index: 4;
    animation: bubbleFloat 4s ease-in-out infinite;
}
.ap-bubble-tl { top: 16px; left: -20px; animation-delay: 0s; }
.ap-bubble-br { bottom: 56px; right: -20px; animation-delay: 2s; }
@keyframes bubbleFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.ap-bubble-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.ap-bubble span:nth-child(2) {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-2);
}
.ap-bubble-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ─── Code Terminal ─── */
.ap-terminal {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
[data-theme="light"] .ap-terminal {
    background: #1e1e2e;
}
.ap-terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ap-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.ap-dot.red    { background: #ff5f57; }
.ap-dot.yellow { background: #ffbd2e; }
.ap-dot.green  { background: #28c840; }
.ap-terminal-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-left: 8px;
}
.ap-terminal-body { padding: 18px 20px; }
.ap-line {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.9;
    white-space: pre;
}
.ap-line.ap-blank { height: 1em; }
.ap-indent { padding-left: 24px; }

/* Syntax colours */
.ap-kw   { color: #ff79c6; }
.ap-var  { color: #cba6f7; }
.ap-op   { color: rgba(255,255,255,0.3); }
.ap-brace{ color: #cdd6f4; }
.ap-key  { color: #89b4fa; }
.ap-str  { color: #a6e3a1; }
.ap-bool { color: #fab387; }
.ap-num  { color: #f9e2af; }
.ap-cursor {
    color: var(--accent-1);
    animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── RIGHT column ── */
.ap-right { display: flex; flex-direction: column; gap: 0; }

.ap-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 12px 0 20px;
    color: var(--text-primary);
}
.ap-gradient-word {
    display: inline-block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}
/* Underline shimmer */
.ap-gradient-word::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: shimmerBar 3s linear infinite;
    background-size: 200% 100%;
}
@keyframes shimmerBar {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.ap-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 24px;
}

/* ── Trait pills ── */
.ap-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.ap-trait {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition-base);
    cursor: default;
}
.ap-trait i { color: var(--accent-1); font-size: 0.7rem; }
.ap-trait:hover {
    border-color: var(--accent-1);
    color: var(--text-primary);
    background: rgba(108,92,231,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(108,92,231,0.15);
}

/* ── Highlight cards ── */
.ap-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}
@media (max-width: 600px) { .ap-highlights { grid-template-columns: 1fr; } }

.ap-hl-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}
.ap-hl-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--hl-rgb,108,92,231),0.06), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}
.ap-hl-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.ap-hl-card:hover::before { opacity: 1; }

.ap-hl-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--hl-color) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--hl-color) 30%, transparent);
    display: flex; align-items: center; justify-content: center;
    color: var(--hl-color);
    font-size: 1rem;
    margin-bottom: 12px;
}
.ap-hl-card h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.ap-hl-card p  { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }

/* Progress bar */
.ap-hl-bar {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: visible;
}
.ap-hl-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
    position: relative;
}
.ap-hl-fill::after {
    content: '';
    position: absolute;
    right: -2px; top: 50%;
    transform: translateY(-50%);
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 8px var(--accent-2);
}
/* Triggered by Intersection Observer */
.ap-hl-fill.animated { width: var(--fill); }

/* ── Action buttons ── */
.ap-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.ap-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-2);
    padding: 8px 0;
    border-bottom: 1.5px solid transparent;
    transition: var(--transition-base);
}
.ap-link-btn:hover { border-color: var(--accent-2); letter-spacing: 0.02em; }

/* Keep old float-badge-number counter working */
.float-badge-number { font-family: var(--font-display); font-size: 2rem; font-weight: 800; display: block; }
.float-badge-text   { font-size: 0.75rem; opacity: 0.9; line-height: 1.3; }



/* ===== 3D MAGIC WALL (SKILLS) ===== */
.magic-wall {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
}
.magic-wall::before, .magic-wall::after {
    content: ''; position: absolute; left: 0; right: 0; height: 100px; z-index: 10; pointer-events: none;
}
.magic-wall::before { top: 0; background: linear-gradient(to bottom, var(--bg-primary), transparent); }
.magic-wall::after { bottom: 0; background: linear-gradient(to top, var(--bg-primary), transparent); }

.magic-wall-row {
    position: relative;
    display: flex;
    justify-content: center;
    transform: rotateX(35deg) rotateZ(-10deg) rotateY(15deg);
    transform-style: preserve-3d;
    width: 100%;
}
.magic-wall-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
}
/* Drive translate by JS scroll progress */
.magic-wall-row[style*="--row-dir: 1"] .magic-wall-track {
    transform: translateX(calc(-10% - 30% * var(--scroll-progress, 0)));
}
.magic-wall-row[style*="--row-dir: -1"] .magic-wall-track {
    transform: translateX(calc(-40% + 30% * var(--scroll-progress, 0)));
}

.magic-wall-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-display);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.magic-wall-item i { font-size: 1.8rem; }
.magic-wall-item:hover {
    transform: translateZ(60px) translateY(-10px);
    background: var(--bg-glass);
    border-color: var(--accent-1);
    box-shadow: 0 20px 50px rgba(108,92,231,0.4);
    color: var(--text-primary);
}

.blog-flat-card {
    width: 100%;
    height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
}
.blog-flat-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-1);
    box-shadow: var(--shadow-glow);
}
.blog-flat-image-wrapper { position: relative; width: 100%; height: 200px; overflow: hidden; }
.blog-flat-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-flat-card:hover .blog-flat-image { transform: scale(1.05); }
.blog-flat-badge {
    position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,0.6); color: #fff;
    padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(8px);
}
.blog-flat-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-flat-date { font-size: 0.85rem; color: var(--accent-1); font-weight: 600; margin-bottom: 8px; }
.blog-flat-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; line-height: 1.3; }
.blog-flat-excerpt { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-flat-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.blog-read-more { color: var(--accent-1); font-weight: 600; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; transition: gap 0.3s; }
.blog-flat-card:hover .blog-read-more { gap: 12px; }

@media (max-width: 768px) {
    .blog-flat-card { width: 100%; height: 420px; }
}

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

.magic-glow-1, .magic-glow-2 {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15; z-index: -1; pointer-events: none;
}
.magic-glow-1 { width: 400px; height: 400px; background: var(--accent-1); top: 50%; left: 20%; transform: translateY(-50%); animation: pulseGlow 4s infinite alternate; }
.magic-glow-2 { width: 300px; height: 300px; background: var(--accent-2); top: 50%; right: 20%; transform: translateY(-50%); animation: pulseGlow 5s infinite alternate-reverse; }

@keyframes pulseGlow { 0% { opacity: 0.1; transform: translateY(-50%) scale(0.9); } 100% { opacity: 0.25; transform: translateY(-50%) scale(1.1); } }

@media (max-width: 768px) {
    .magic-wall { height: 350px; gap: 16px; perspective: 800px; }
    .magic-wall-item { padding: 12px 24px; font-size: 0.95rem; gap: 10px; }
    .magic-wall-item i { font-size: 1.4rem; }
    .magic-wall-row { transform: rotateX(25deg) rotateZ(-5deg) rotateY(10deg); }
}

/* ===== SPLIT PARALLEL SCROLL PROJECTS ===== */
.parallel-scroll-container {
    display: flex;
    align-items: flex-start;
    gap: 100px;
    position: relative;
}

/* Left side stays sticky */
.ps-left {
    flex: 0 0 450px;
    position: sticky;
    top: 15vh; /* sticks near the top */
    height: 80vh;
}
.ps-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding-bottom: 20vh;
}

/* ── Stacked Cards ── */
.project-stacked-card {
    position: sticky;
    top: 15vh;
    background: var(--bg-primary); /* Ensures completely solid base to hide text underneath */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.6); /* Cast shadow upwards */
    transition: transform 0.4s ease, border-color 0.4s ease;
}
/* We can add a slight glass sheen on top, since the background is solid above */
.project-stacked-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none; z-index: 1;
}
.project-stacked-card:hover { border-color: var(--accent-1); }

/* By using nth-child, we make each subsequent card sit slightly lower so they look stacked */
.project-stacked-card:nth-child(1) { top: 15vh; z-index: 10; transform: scale(1); }
.project-stacked-card:nth-child(2) { top: 18vh; z-index: 20; transform: scale(1); }
.project-stacked-card:nth-child(3) { top: 21vh; z-index: 30; transform: scale(1); }
.project-stacked-card:nth-child(4) { top: 24vh; z-index: 40; transform: scale(1); }

.project-stacked-card .project-image { width: 100%; height: 350px; position: relative; overflow: hidden; }
.project-stacked-card .project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-stacked-card .project-info { padding: 40px; position: relative; z-index: 2; background: var(--bg-secondary); }

/* Responsive break for split layout */
@media (max-width: 1024px) {
    .parallel-scroll-container { flex-direction: column; gap: 60px; }
    .ps-left { position: relative; top: 0; height: auto; flex: none; width: 100%; text-align: center; }
    .ps-left .section-subtitle { text-align: center; margin: 0 auto 40px auto; }
    .project-stacked-card { position: relative; top: 0 !important; }
    .ps-right { gap: 40px; padding-bottom: 0; }
}

/* ===== TESTIMONIALS ===== */
.testimonials-slider {
    display: flex; gap: 24px; overflow-x: auto; scroll-behavior: smooth;
    scroll-snap-type: x mandatory; padding-bottom: 20px;
    -ms-overflow-style: none; scrollbar-width: none; cursor: grab;
}
.testimonials-slider:active { cursor: grabbing; }
.testimonials-slider::-webkit-scrollbar { display: none; }
.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    scroll-snap-align: start; min-width: 300px;
    padding: 32px; transition: var(--transition-base);
}
.glass-card {
    background: var(--bg-glass); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); backdrop-filter: blur(10px);
}
.testimonial-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-glow); }
.testimonial-stars { color: #f59e0b; margin-bottom: 16px; display: flex; gap: 4px; font-size: 0.9rem; }
.testimonial-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 0.85rem;
}
.author-info h4 { font-size: 0.9rem; font-weight: 600; }
.author-info span { font-size: 0.8rem; color: var(--text-muted); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.slider-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: var(--transition-base);
}
.slider-btn:hover { border-color: var(--accent-1); color: var(--accent-1); }
.slider-dots { display: flex; gap: 8px; }

/* ===== CTA SECTION ===== */
.cta-section { text-align: center; overflow: hidden; }
.cta-bg-pattern {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(108,92,231,0.08) 0%, transparent 70%);
}
.cta-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; margin-bottom: 20px; }
.cta-text { font-size: 1.1rem; color: var(--text-secondary); max-width: 550px; margin: 0 auto 40px; }

/* ===== FOOTER ===== */
.footer {
    position: relative; padding: 80px 0 0; border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}
.footer-gradient {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 2px; background: var(--accent-gradient); filter: blur(1px);
}
.footer-top { display: flex; justify-content: space-between; gap: 64px; padding-bottom: 48px; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; }
.footer-links-grid { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 4px; }
.footer-link { font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition-base); }
.footer-link:hover { color: var(--accent-1); transform: translateX(4px); display: inline-block; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; flex-wrap: wrap; gap: 16px; }
.footer-copyright { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-link { font-size: 0.85rem; color: var(--text-muted); transition: var(--transition-base); }
.footer-bottom-link:hover { color: var(--text-primary); }
.back-to-top {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: var(--transition-base);
}
.back-to-top:hover { border-color: var(--accent-1); color: var(--accent-1); transform: translateY(-3px); }

/* ===== AI CHAT WIDGET ===== */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 900; }
.chat-toggle {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--accent-gradient); color: #fff; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center; position: relative;
    box-shadow: 0 8px 32px var(--accent-glow); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-toggle:hover { transform: scale(1.15) translateY(-5px); box-shadow: 0 16px 40px var(--accent-glow); }
.chat-toggle:hover .chat-icon-open { animation: botWobble 0.6s ease-in-out infinite alternate; }

@keyframes botWobble {
    0% { transform: rotate(-12deg) scale(1.1); }
    100% { transform: rotate(12deg) scale(1.1); }
}

.chat-toggle-inner { position: relative; }
.chat-icon-close { display: none; }
.chat-widget.active .chat-icon-open { display: none; }
.chat-widget.active .chat-icon-close { display: block; animation: pingIn 0.3s ease; }
@keyframes pingIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.chat-pulse {
    position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent-1);
    animation: chatPulse 2s ease-in-out infinite;
}
@keyframes chatPulse { 0%,100%{ transform:scale(1); opacity:0.6; } 50%{ transform:scale(1.3); opacity:0; } }
.chat-notification {
    position: absolute; top: -4px; right: -4px; width: 20px; height: 20px;
    border-radius: 50%; background: #ef4444; font-size: 0.7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.chat-notification.hidden { display: none; }

.chat-window {
    position: absolute; bottom: 72px; right: 0; width: 380px;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(20px); opacity: 0; pointer-events: none;
    transition: var(--transition-spring); transform-origin: bottom right;
}
.chat-widget.active .chat-window { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color);
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center; color: #fff; position: relative;
}
.chat-status-dot {
    position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px;
    border-radius: 50%; background: #22c55e; border: 2px solid var(--bg-tertiary);
}
.chat-header-title { font-size: 0.9rem; font-weight: 600; }
.chat-header-status { font-size: 0.7rem; color: var(--text-muted); }
.chat-header-actions { display: flex; gap: 8px; }
.chat-action-btn {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: var(--transition-base); font-size: 0.8rem;
}
.chat-action-btn:hover { color: var(--text-primary); background: var(--bg-glass); }

.chat-messages { height: 340px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-message { display: flex; gap: 8px; animation: msgSlide 0.3s ease-out; }
.chat-message.user { flex-direction: row-reverse; }
@keyframes msgSlide { from { opacity:0; transform:translateY(10px); } }
.message-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: var(--accent-gradient); display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.75rem;
}
.chat-message.user .message-avatar { background: var(--bg-tertiary); color: var(--text-primary); }
.message-content {
    max-width: 75%; padding: 12px 16px; border-radius: var(--radius-md);
    background: var(--bg-glass); border: 1px solid var(--border-color); font-size: 0.875rem; line-height: 1.5;
}
.chat-message.user .message-content { background: rgba(108,92,231,0.15); border-color: rgba(108,92,231,0.3); }
.message-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 6px; }
.message-content .typing-dots { display: inline-flex; gap: 4px; }
.typing-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted);
    animation: typing 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100%{ transform:translateY(0); } 30%{ transform:translateY(-6px); } }

.chat-suggestions { padding: 0 16px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.suggestion-chip {
    padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.75rem;
    background: var(--bg-glass); border: 1px solid var(--border-color);
    color: var(--text-secondary); transition: var(--transition-base);
}
.suggestion-chip:hover { border-color: var(--accent-1); color: var(--accent-1); }

.chat-input-area { padding: 12px 16px; border-top: 1px solid var(--border-color); }
.chat-input-container {
    display: flex; align-items: center; gap: 8px; background: var(--bg-glass);
    border: 1px solid var(--border-color); border-radius: var(--radius-full); padding: 4px 4px 4px 16px;
}
.chat-input {
    flex: 1; background: none; border: none; outline: none; color: var(--text-primary);
    font-size: 0.875rem; padding: 8px 0;
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-send {
    width: 36px; height: 36px; border-radius: 50%; background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem;
    transition: var(--transition-base);
}
.chat-send:hover { transform: scale(1.1); }

@media (max-width: 480px) {
    .chat-window { width: calc(100vw - 48px); right: -12px; }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container { position: fixed; top: 90px; right: 24px; z-index: 9000; display: flex; flex-direction: column; gap: 12px; }
.toast {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    animation: toastSlide 0.4s ease-out; min-width: 280px;
}
.toast.success { border-left: 3px solid #22c55e; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.info { border-left: 3px solid var(--accent-1); }
.toast-icon { font-size: 1.1rem; }
.toast.success .toast-icon { color: #22c55e; }
.toast.error .toast-icon { color: #ef4444; }
.toast.info .toast-icon { color: var(--accent-1); }
.toast-message { font-size: 0.875rem; flex: 1; }
.toast-close { color: var(--text-muted); transition: var(--transition-base); padding: 4px; }
.toast-close:hover { color: var(--text-primary); }
@keyframes toastSlide { from { transform: translateX(100%); opacity: 0; } }

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: opacity 0.8s, transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.revealed, .reveal-left.revealed, .reveal-right.revealed { opacity: 1; transform: translate(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .section { padding: 80px 0; }
    .projects-grid { grid-template-columns: 1fr; }
    .testimonials-slider { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; gap: 32px; }
    .footer-links-grid { gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media screen and (min-width: 1024px) {
    /* Only apply to desktop to avoid potential mobile layout issues */
    .section {
        content-visibility: auto;
        contain-intrinsic-size: 1px 1000px;
    }
}

/* Hardware acceleration for smooth animations */
.hero-content, .project-card, .about-preview-grid, .stat-item, .chat-window {
    will-change: transform, opacity;
}

/* Optimized rendering */
body {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth image reveal */
img {
    transition: opacity 0.5s ease;
}
img[loading="lazy"] {
    opacity: 0;
}
img.loaded {
    opacity: 1;
}


/* ===== SCROLL METER ===== */
.scroll-meter {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(80px);
    z-index: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1),
                transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.scroll-meter.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(-50%) translateX(0);
}

/* Outer track container */
.scroll-meter-track {
    position: relative;
    width: 4px;
    height: 120px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: visible;
    backdrop-filter: blur(8px);
    cursor: pointer;
}

[data-theme="light"] .scroll-meter-track {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.08);
}

/* Gradient fill bar */
.scroll-meter-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent-gradient);
    border-radius: 99px;
    transition: height 0.08s linear;
    will-change: height;
}

/* Glowing orb at the top of the fill */
.scroll-meter-fill::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 12px 4px rgba(168, 85, 247, 0.7),
                0 0 24px 8px rgba(108, 92, 231, 0.35);
    animation: meterPulse 2s ease-in-out infinite;
}

@keyframes meterPulse {
    0%, 100% { box-shadow: 0 0 10px 3px rgba(168,85,247,0.7), 0 0 20px 6px rgba(108,92,231,0.3); }
    50%       { box-shadow: 0 0 18px 6px rgba(168,85,247,0.9), 0 0 36px 12px rgba(108,92,231,0.5); }
}

/* Percentage text label */
.scroll-meter-pct {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    writing-mode: horizontal-tb;
    text-align: center;
    min-width: 28px;
    transition: color 0.3s;
    user-select: none;
}

.scroll-meter.visible:hover .scroll-meter-pct {
    color: var(--accent-2);
}

/* Click-to-scroll-top on the track */
.scroll-meter-track:hover .scroll-meter-fill::after {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .scroll-meter { display: none; }
}

/* Reduced motion: no glitch, no blur */
@media (prefers-reduced-motion: reduce) {
    .scroll-meter, .scroll-meter-fill, .scroll-meter-fill::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ===== NAV SEARCH BUTTON ===== */
.nav-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}
.nav-search-btn:hover {
    border-color: var(--accent-1);
    color: var(--text-primary);
    background: rgba(108,92,231,0.08);
}
.nav-search-label { font-size: 0.8rem; color: inherit; }
.nav-search-kbd {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    letter-spacing: 0.02em;
    pointer-events: none;
}
[data-theme="light"] .nav-search-kbd {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.12);
}
@media (max-width: 900px) { .nav-search-btn { display: none; } }

/* ===== COMMAND PALETTE ===== */
.cmd-overlay {
    position: fixed;
    inset: 0;
    z-index: 10100;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.cmd-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.cmd-modal {
    width: min(640px, 92vw);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(108,92,231,0.15);
    overflow: hidden;
    transform: scale(0.96) translateY(-12px);
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
    opacity: 0;
}
.cmd-overlay.open .cmd-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.cmd-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}
.cmd-search-icon { color: var(--text-muted); font-size: 1rem; flex-shrink: 0; }
.cmd-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    caret-color: var(--accent-1);
}
.cmd-input::placeholder { color: var(--text-muted); }
.cmd-esc-key {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    flex-shrink: 0;
    cursor: pointer;
}
.cmd-results {
    list-style: none;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) transparent;
    padding: 8px;
}
.cmd-results::-webkit-scrollbar { width: 4px; }
.cmd-results::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 4px; }
.cmd-result-group-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 10px 12px 4px;
    pointer-events: none;
    user-select: none;
}
.cmd-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    border: 1px solid transparent;
    margin-bottom: 2px;
}
.cmd-result-item:hover, .cmd-result-item.active {
    background: rgba(108,92,231,0.1);
    border-color: rgba(108,92,231,0.25);
}
.cmd-result-icon {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(108,92,231,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-1); font-size: 0.9rem; flex-shrink: 0;
}
.cmd-result-item.active .cmd-result-icon {
    background: var(--accent-gradient); color: #fff;
}
.cmd-result-body { flex: 1; min-width: 0; }
.cmd-result-title {
    font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmd-result-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.cmd-result-arrow {
    color: var(--text-muted); font-size: 0.75rem; opacity: 0; transition: opacity 0.15s;
}
.cmd-result-item:hover .cmd-result-arrow,
.cmd-result-item.active .cmd-result-arrow { opacity: 1; color: var(--accent-1); }
.cmd-no-results {
    text-align: center; padding: 32px 20px;
    color: var(--text-muted); font-size: 0.9rem;
}
.cmd-no-results i { font-size: 2rem; display: block; margin-bottom: 12px; opacity: 0.4; }
.cmd-footer {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    flex-wrap: wrap;
}
.cmd-hint {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.72rem; color: var(--text-muted);
}
.cmd-hint kbd, .cmd-footer kbd {
    font-family: var(--font-mono); font-size: 0.68rem;
    padding: 2px 5px; border-radius: 4px;
    background: var(--bg-glass); border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.cmd-shortcut-hint {
    margin-left: auto; display: flex; align-items: center; gap: 4px;
    font-size: 0.72rem; color: var(--accent-1); font-weight: 600;
}
@media (max-width: 520px) {
    .cmd-shortcut-hint { display: none; }
    .cmd-footer { gap: 10px; }
}
.cmd-match { color: var(--accent-2); font-weight: 700; }

/* ===== CONTACT CONNECT BENTO ===== */
.cb-section {
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 120px;
}
.cb-header {
    text-align: center;
    margin-bottom: 60px;
}
.cb-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
.cb-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    border-color: rgba(108,92,231,0.3);
}

/* Placements */
.cb-hero     { grid-column: 1 / 8; grid-row: 1 / 2; display: flex; flex-direction: column; min-height: 380px; }
.cb-terminal { grid-column: 8 / 13; grid-row: 1 / 2; display: flex; flex-direction: column; background: #0d1117; border-color: rgba(255,255,255,0.06); }
.cb-resume   { grid-column: 1 / 5; grid-row: 2 / 3; display: flex; flex-direction: column; justify-content: flex-end; position: relative; padding-top: 100px; }
.cb-socials  { grid-column: 5 / 9; grid-row: 2 / 3; }
.cb-plane    { grid-column: 9 / 13; grid-row: 2 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

@media (max-width: 1024px) {
    .cb-hero     { grid-column: 1 / 13; grid-row: 1 / 2; min-height: 300px; }
    .cb-terminal { grid-column: 1 / 7; grid-row: 2 / 3; min-height: 250px; }
    .cb-resume   { grid-column: 7 / 13; grid-row: 2 / 3; }
    .cb-socials  { grid-column: 1 / 7; grid-row: 3 / 4; }
    .cb-plane    { grid-column: 7 / 13; grid-row: 3 / 4; }
}
@media (max-width: 640px) {
    .cb-grid { display: flex; flex-direction: column; }
    .cb-card { padding: 24px; }
}

/* ── Hero Send ── */
.cb-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(168,85,247,0.15) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(108,92,231,0.15) 0%, transparent 60%);
    z-index: 0;
}
.cb-hero-pulse {
    position: absolute;
    top: -50px; right: -50px;
    width: 300px; height: 300px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: cbPulse 6s ease-in-out infinite alternate;
}
@keyframes cbPulse { 0% { transform: scale(0.8); opacity: 0.1; } 100% { transform: scale(1.2); opacity: 0.25; } }

.cb-hero-content {
    position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
}
.cb-hero-content h3 {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800;
    line-height: 1.1; margin-bottom: 16px; color: var(--text-primary);
    background: linear-gradient(270deg, var(--text-primary), var(--accent-1), var(--accent-2), var(--text-primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
}
@keyframes gradientFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.cb-hero { overflow: hidden; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; }
.cb-hero:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.cb-hero .cb-hero-bg { transition: transform 2s ease; }
.cb-hero:hover .cb-hero-bg { transform: scale(1.1) rotate(5deg); }
.cb-hero-content p {
    font-size: 1.1rem; color: var(--text-secondary); max-width: 80%; line-height: 1.6;
}
@media (max-width: 640px) { .cb-hero-content p { max-width: 100%; font-size: 1rem; } }

/* ── Terminal Email ── */
[data-theme="light"] .cb-terminal { background: #1a1b26; border-color: rgba(255,255,255,0.1); }
.cb-terminal { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; }
.cb-terminal:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

.tc-header {
    display: flex; align-items: center; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px;
}
.tc-dot { width: 12px; height: 12px; border-radius: 50%; }
.tc-dot.red { background: #ff5f56; } .tc-dot.yel { background: #ffbd2e; } .tc-dot.grn { background: #27c93f; }
.tc-title { margin-left: auto; font-family: var(--font-mono); font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.tc-body { font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.8; color: #a9b1d6; flex: 1; }
.tc-line { position: relative; transition: transform 0.3s ease; }
.cb-terminal:hover .tc-line:nth-child(1) { transform: translateX(4px); }
.cb-terminal:hover .tc-line:nth-child(2) { transform: translateX(8px); transition-delay: 0.1s; }
.cb-terminal:hover .tc-line:nth-child(3) { transform: translateX(12px); transition-delay: 0.15s; }
.cb-terminal:hover .tc-line:nth-child(5) { transform: translateX(4px); transition-delay: 0.3s; }

.tc-prompt { color: #f7768e; font-weight: bold; }
.tc-outp { color: #7aa2f7; }

.tc-email {
    margin: 12px 0; padding: 12px 16px; background: rgba(255,255,255,0.05);
    border-left: 3px solid #9ece6a; border-radius: 4px; color: #9ece6a; font-size: 1rem;
    position: relative; overflow: hidden; transition: all 0.4s ease;
}
.cb-terminal:hover .tc-email {
    transform: scale(1.02) translateX(8px);
    box-shadow: -10px 0 20px rgba(158, 206, 106, 0.15);
    background: rgba(158, 206, 106, 0.1);
    transition-delay: 0.2s;
}
.tc-email::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.cb-terminal:hover .tc-email::after {
    animation: emailShine 1.5s ease forwards 0.4s;
}
@keyframes emailShine { 0% { left: -100%; } 100% { left: 200%; } }
.tc-cursor { display: inline-block; color: #bb9af7; animation: blink 1s step-end infinite; }
.tc-copy-btn {
    position: absolute; top: 24px; right: 24px; background: rgba(255,255,255,0.1); border: none;
    color: #fff; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; transition: background 0.2s, transform 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.tc-copy-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.tc-copy-btn.copied { background: #27c93f; color: #000; }

/* ── Resume Grab ── */
.cb-resume { display: flex; flex-direction: column; justify-content: flex-end; position: relative; padding-top: 100px; }
.res-visual {
    position: absolute; top: 20px; left: 24px; width: 100px; height: 80px;
    perspective: 800px; display: flex; align-items: flex-end; justify-content: center;
}
.res-folder-back {
    position: absolute; bottom: 0; width: 80px; height: 60px;
    background: #4a4a4a; border-radius: 6px; z-index: 1;
}
.res-folder-back::after { content: ''; position: absolute; top: -10px; left: 0; width: 30px; height: 10px; background: #4a4a4a; border-radius: 4px 4px 0 0; }
.res-paper {
    position: absolute; bottom: 5px; width: 66px; height: 74px;
    background: #f1f5f9; border-radius: 4px; z-index: 2; padding: 6px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; gap: 4px;
}
.cb-resume:hover .res-paper { transform: translateY(-26px); }
.p-head { font-size: 0.35rem; color: #e11d48; font-family: var(--font-mono); font-weight: bold; margin-bottom: 4px; }
.p-line { height: 3px; background: #cbd5e1; border-radius: 99px; width: 100%; }
.p-line.short { width: 60%; }
.res-folder-front {
    position: absolute; bottom:0; width: 80px; height: 50px;
    background: linear-gradient(135deg, #a855f7, #6c5ce7); border-radius: 4px 4px 6px 6px;
    z-index: 3; display: flex; align-items: center; justify-content: center;
    transform-origin: bottom; transform: rotateX(10deg); transition: transform 0.4s ease;
}
.cb-resume:hover .res-folder-front { transform: rotateX(25deg); }
.res-folder-front i { color: #fff; font-size: 1.2rem; opacity: 0.8; }

.res-info h4 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.res-info p { font-size: 0.9rem; color: var(--text-muted); }
.res-dl-btn {
    position: absolute; top: 32px; right: 32px; width: 44px; height: 44px;
    border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center; color: var(--text-secondary);
    transition: var(--transition-bounce);
}
.res-dl-btn:hover { background: var(--accent-1); color: #fff; transform: translateY(-4px); }

/* ── Uiverse Social Box ── */
.un-card {
  position: absolute;
  inset: 0;
  background: var(--bg-tertiary);
  overflow: hidden;
  transition: all 1s ease-in-out;
}
.un-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 107%, #ff89cc 0%, #9cb8ec 30%, #00ffee 60%, #62c2fe 100%);
  opacity: 0.3; /* Adjusted to fit overall theme */
}
.un-logo {
  position: absolute;
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
  transition: all 0.6s ease-in-out;
  color: var(--text-primary);
  font-size: 3rem;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}
.un-hint {
  position: absolute;
  top: 72%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-secondary);
  pointer-events: none;
  transition: opacity 0.4s ease;
  animation: unHintFloat 3s ease-in-out infinite;
  z-index: 5;
}
@keyframes unHintFloat {
    0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(-4px); opacity: 0.9; }
}
.un-icon { display: inline-block; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.un-icon i { color: rgba(255, 255, 255, 0.8); font-size: 26px; transition: all 0.5s ease-in-out; }

.un-box {
  position: absolute;
  padding: 16px;
  text-align: right;
  background: rgba(255, 255, 255, 0.15);
  border-top: 2px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10% 13% 42% 0%/10% 12% 75% 0%;
  box-shadow: rgba(0, 0, 0, 0.2) -7px 7px 29px 0px;
  transform-origin: bottom left;
  transition: all 1s ease-in-out;
  backdrop-filter: blur(8px);
  z-index: 20;
}
.un-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: all 0.5s ease-in-out;
  z-index: -1;
}
.un-box:hover i { color: white; }

.un-box1 { width: 85%; height: 85%; bottom: -85%; left: -85%; }
.un-box1::before { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #ff53d4 60%, #62c2fe 90%); }
.un-box1:hover::before { opacity: 1; }
.un-box1:hover .un-icon i { filter: drop-shadow(0 0 5px white); }

.un-box2 { width: 65%; height: 65%; bottom: -65%; left: -65%; transition-delay: 0.1s; z-index: 21; }
.un-box2::before { background: radial-gradient(circle at 30% 107%, #91e9ff 0%, #00ACEE 90%); }
.un-box2:hover::before { opacity: 1; }
.un-box2:hover .un-icon i { filter: drop-shadow(0 0 5px white); }

.un-box3 { width: 45%; height: 45%; bottom: -45%; left: -45%; transition-delay: 0.2s; z-index: 22; }
.un-box3::before { background: radial-gradient(circle at 30% 107%, #969fff 0%, #b349ff 90%); }
.un-box3:hover::before { opacity: 1; }
.un-box3:hover .un-icon i { filter: drop-shadow(0 0 5px white); }

.un-box4 { width: 25%; height: 25%; bottom: -25%; left: -25%; transition-delay: 0.3s; z-index: 23; }
.un-box4::before { background: radial-gradient(circle at 30% 107%, #0077b5 0%, #004471 90%); }
.un-box4:hover::before { opacity: 1; }
.un-box4:hover .un-icon i { filter: drop-shadow(0 0 5px white); }

.cb-socials:hover .un-card { transform: scale(1.02); }
.cb-socials:hover .un-box { bottom: -1px; left: -1px; }
.cb-socials:hover .un-logo { transform: translate(0, 0); bottom: 16px; right: 24px; font-size: 1.5rem; opacity: 0.5; }
.cb-socials:hover .un-hint { opacity: 0; }

/* ── 3D Paper Plane ── */
.plane-wrap { position: relative; width: 80px; height: 80px; margin: 0 auto 24px; perspective: 1000px; display: flex; align-items: center; justify-content: center; }
.plane-icon { font-size: 3rem; color: var(--accent-1); transform-style: preserve-3d; transition: transform 0.5s ease; animation: planeHover 4s ease-in-out infinite alternate; }
@keyframes planeHover { 0% { transform: translateY(0) rotate(-10deg); } 100% { transform: translateY(-15px) rotate(5deg); } }
.cb-plane:hover .plane-icon { transform: translateZ(30px) rotate(-15deg) scale(1.1); animation: none; }
.plane-trail {
    position: absolute; bottom: 10px; left: -20px; width: 40px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1)); opacity: 0; transition: opacity 0.3s, transform 0.3s;
}
.plane-trail.t2 { bottom: 20px; left: -10px; width: 20px; }
.cb-plane:hover .plane-trail { opacity: 0.8; transform: translateX(-10px); }
.cb-plane h4 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.plane-form {
    display: flex; gap: 8px; width: 100%; background: var(--bg-tertiary); padding: 6px;
    border-radius: 99px; border: 1px solid var(--border-color); transition: border-color 0.3s;
    position: relative; overflow: hidden;
}
.plane-form:focus-within { border-color: var(--accent-1); }
.plane-form .quick-input { flex: 1; background: none; border: none; outline: none; padding: 0 16px; color: var(--text-primary); font-size: 0.9rem; transition: opacity 0.3s; z-index: 2; position: relative; }
.plane-form .quick-btn {
    width: 38px; height: 38px; border-radius: 50%; background: var(--accent-gradient);
    border: none; color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform 0.3s, opacity 0.3s; z-index: 2; position: relative;
    flex-shrink: 0;
}
.plane-form .quick-btn:hover { transform: scale(1.1); }

/* Truck Animation Scene */
.truck-scene {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    display: flex; align-items: center; justify-content: flex-start;
}
.t-truck {
    position: absolute; transform: translateX(-100px); color: var(--accent-2); font-size: 1.4rem;
}
.t-payload {
    position: absolute; transform: translate(-50%, -30px) scale(0); left: 50%;
    background: #fff; color: #111; font-size: 0.7rem; padding: 4px; border-radius: 4px;
}

/* Delivery Triggered Styles */
.plane-form.is-delivering .quick-input { opacity: 0; pointer-events: none; }
.plane-form.is-delivering .quick-btn { transform: translateX(50px); opacity: 0; pointer-events: none; }

.plane-form.is-delivering .t-truck {
    animation: driveTruck 2.5s ease-in-out forwards;
}
.plane-form.is-delivering .t-payload {
    animation: dropPayload 2.5s ease-in-out forwards;
}

@keyframes driveTruck {
    0% { transform: translateX(-80px); opacity: 1; }
    30% { transform: translateX(calc(50% + 40px)); opacity: 1; } /* reaches center */
    60% { transform: translateX(calc(50% + 40px)); opacity: 1; } /* waits for payload drop */
    100% { transform: translateX(400px); opacity: 1; } /* drives off the form */
}
@keyframes dropPayload {
    0%, 25% { transform: translate(-50%, -30px) scale(0); opacity: 0; }
    35% { transform: translate(-50%, -20px) scale(1); opacity: 1; } /* drops */
    45% { transform: translate(-50%, -5px) scale(1); opacity: 1; } /* hits truck bed */
    60% { transform: translate(-50%, -5px) scale(1); opacity: 1; } /* rides on truck */
    100% { transform: translate(300px, -5px) scale(1); opacity: 1; } /* goes away */
}
