/* ============================================
   JAY PANDYA PORTFOLIO - CINEMATIC THRILLER THEME
   ============================================ */

:root {
    --bg-deep: #050508;
    --bg-card: rgba(10, 12, 20, 0.65);
    --bg-card-hover: rgba(15, 18, 30, 0.8);
    --primary: #00d4ff;
    --primary-dark: #0099bb;
    --secondary: #ff0055;
    --accent: #7b2fff;
    --accent-light: #a855f7;
    --neon-green: #00ff88;
    --border-glow: rgba(0, 212, 255, 0.2);
    --border-glow-strong: rgba(0, 212, 255, 0.45);
    --text-white: #ffffff;
    --text-dim: #8892b0;
    --text-muted: #4a5568;
    --danger: #ff3366;
    --success: #00ff88;
    --warning: #ffaa00;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --glow-primary: 0 0 20px rgba(0, 212, 255, 0.4);
    --glow-secondary: 0 0 20px rgba(255, 0, 85, 0.4);
    --glow-accent: 0 0 20px rgba(123, 47, 255, 0.4);
}

/* *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
} */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-deep);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 3px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* a { cursor: none; text-decoration: none; color: inherit; }
button { cursor: none; }
input, textarea, select { cursor: none; } */

a { text-decoration: none; color: inherit; }

/* ===== GLOBAL SCANLINE OVERLAY ===== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 99990;
}

/* ===== GLOBAL GLITCH BURST ===== */
.glitch-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99991;
    opacity: 0;
}
.glitch-overlay.active {
    animation: globalGlitch 0.2s steps(2) 2;
}
@keyframes globalGlitch {
    0% { opacity: 0; background: transparent; }
    25% { opacity: 1; background: rgba(0, 212, 255, 0.04); transform: translateX(-3px); }
    50% { opacity: 1; background: rgba(255, 0, 85, 0.03); transform: translateX(4px) skewX(-1deg); }
    75% { opacity: 1; background: rgba(123, 47, 255, 0.03); transform: translateX(-2px) skewX(0.5deg); }
    100% { opacity: 0; background: transparent; transform: translateX(0); }
}

/* ===== PARTICLE CANVAS ===== */
#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ===== BACKGROUND HEX GRID ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        linear-gradient(30deg, #050508 12%, transparent 12.5%, transparent 87%, #050508 87.5%, #050508),
        linear-gradient(150deg, #050508 12%, transparent 12.5%, transparent 87%, #050508 87.5%, #050508),
        linear-gradient(30deg, #050508 12%, transparent 12.5%, transparent 87%, #050508 87.5%, #050508),
        linear-gradient(150deg, #050508 12%, transparent 12.5%, transparent 87%, #050508 87.5%, #050508),
        linear-gradient(60deg, rgba(0, 212, 255, 0.03) 25%, transparent 25.5%, transparent 75%, rgba(0, 212, 255, 0.03) 75%, rgba(0, 212, 255, 0.03)),
        linear-gradient(60deg, rgba(0, 212, 255, 0.03) 25%, transparent 25.5%, transparent 75%, rgba(0, 212, 255, 0.03) 75%, rgba(0, 212, 255, 0.03));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    opacity: 0.4;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 80px 140px, 80px 140px, 80px 140px, 80px 140px, 80px 140px, 80px 140px, 80px 140px; }
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    clip-path: circle(150% at 50% 50%);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
#preloader.exit {
    clip-path: circle(0% at 50% 50%);
}

.pre-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 212, 255, 0.015) 1px,
        rgba(0, 212, 255, 0.015) 2px
    );
    pointer-events: none;
}

.pre-scanbar {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 30px var(--primary), 0 0 60px rgba(0, 212, 255, 0.5);
    opacity: 0;
    animation: scanBar 1.5s ease-in-out infinite;
}
@keyframes scanBar {
    0% { top: -5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 105%; opacity: 0; }
}

.hex-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hex-svg {
    position: absolute;
    inset: 0;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
}
.hex-path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawHex 2.2s ease-out 0.3s forwards;
}
.hex-path-inner {
    fill: none;
    stroke: rgba(0, 212, 255, 0.3);
    stroke-width: 1;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawHex 2s ease-out 0.6s forwards;
}
@keyframes drawHex { to { stroke-dashoffset: 0; } }

.hex-percent {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
    opacity: 0;
    animation: fadeIn 0.5s 0.8s forwards;
}

.pre-typing-wrap {
    margin-top: 30px;
    height: 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary);
    opacity: 0;
    animation: fadeIn 0.5s 1s forwards;
}
.pre-typing { display: inline; }
.pre-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.7s step-end infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

.pre-status {
    margin-top: 15px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(0, 212, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.5s 1.2s forwards;
    transition: opacity 0.3s;
}

.pre-glitch-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    opacity: 0;
    pointer-events: none;
}
.pre-glitch-bar.burst {
    animation: glitchBarBurst 0.1s steps(2) 3;
}
@keyframes glitchBarBurst {
    0% { opacity: 0; transform: translateX(-10px); }
    25% { opacity: 1; transform: translateX(10px); }
    50% { opacity: 0; transform: translateX(-5px); }
    75% { opacity: 0.8; transform: translateX(8px); }
    100% { opacity: 0; transform: translateX(0); }
}

.pre-flash {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
}
.pre-flash.fire {
    animation: flashFire 0.6s ease-out forwards;
}
@keyframes flashFire {
    0% { opacity: 0.9; }
    100% { opacity: 0; }
}

@keyframes fadeIn { to { opacity: 1; } }

/* ===== SHOCKWAVE ===== */
.shockwave {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vmax;
    height: 100vmax;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 40px var(--primary), inset 0 0 40px var(--primary);
    pointer-events: none;
    z-index: 99998;
    opacity: 0;
}
.shockwave.fire {
    animation: shockwaveExpand 1s ease-out forwards;
}
@keyframes shockwaveExpand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ===== CURSOR ARROW + TRAIL ===== */
/* .cursor-arrow {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 14px solid var(--primary);
    transform: rotate(-30deg);
    z-index: 99999;
    pointer-events: none;
    filter: drop-shadow(0 0 6px var(--primary));
    transition: transform 0.1s, filter 0.2s;
}
     */

     .cursor-arrow {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 14px solid var(--primary);
    transform: rotate(-30deg);
    z-index: 999999;
    pointer-events: none;
    filter: drop-shadow(0 0 6px var(--primary));
    transition: transform 0.1s, filter 0.2s;
}
.cursor-arrow.hovering {
    transform: rotate(-30deg) scale(1.4);
    filter: drop-shadow(0 0 12px var(--primary));
    border-bottom-color: #fff;
}
/* .cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 10px solid var(--primary);
    transform: rotate(-30deg);
    z-index: 99998;
    pointer-events: none;
} */
 .cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 10px solid var(--primary);
    transform: rotate(-30deg);
    z-index: 999998;
    pointer-events: none;
}

/* @media (hover: none) {
    *, *::before, *::after { cursor: auto !important; }
    .cursor-arrow, .cursor-trail { display: none !important; }
} */

/* Custom cursor only on user-side pages
body.custom-cursor,
body.custom-cursor *,
body.custom-cursor *::before,
body.custom-cursor *::after {
    cursor: none !important;
}

@media (hover: none) {
    body.custom-cursor,
    body.custom-cursor *,
    body.custom-cursor *::before,
    body.custom-cursor *::after {
        cursor: auto !important;
    }
    .cursor-arrow, .cursor-trail { display: none !important; }
} */

/* Hide custom cursor elements if body does not have custom-cursor class */
body:not(.custom-cursor) .cursor-arrow,
body:not(.custom-cursor) .cursor-trail {
    display: none !important;
}

/* Custom cursor - only on pages with .custom-cursor class */
body.custom-cursor,
body.custom-cursor *,
body.custom-cursor *::before,
body.custom-cursor *::after {
    cursor: none !important;
}

@media (hover: none) {
    body.custom-cursor,
    body.custom-cursor *,
    body.custom-cursor *::before,
    body.custom-cursor *::after {
        cursor: auto !important;
    }
    .cursor-arrow, .cursor-trail { display: none !important; }
}

/* ===== NAVBAR ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-glow);
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}
nav.visible { transform: translateY(0); }

.nav-logo {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 15px var(--primary);
    white-space: nowrap;
}

.nav-menu { display: flex; gap: 35px; align-items: center; }
.nav-menu a {
    color: #8892b0;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}
.nav-menu a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary);
}
.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
    box-shadow: 0 0 10px var(--primary);
}
.nav-menu a:hover::before { width: 100%; }
.nav-menu a.nav-logout { color: var(--secondary); }
.nav-menu a.nav-logout:hover { color: #ff3377; text-shadow: 0 0 10px var(--secondary); }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}
.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
    box-shadow: 0 0 8px var(--primary);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-menu a {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: var(--transition-fast);
    position: relative;
}
.mobile-menu a:hover {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}
.mobile-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition-fast);
}
.mobile-menu a:hover::after { width: 60%; }

/* ===== FLASH MESSAGES ===== */
.flash-message {
    position: fixed;
    top: 90px;
    right: 20px;
    min-width: 320px;
    max-width: 450px;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: flashSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid;
}
.flash-message span { flex: 1; font-size: 0.9rem; font-weight: 500; }
.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    opacity: 0.7;
    transition: var(--transition-fast);
    padding: 0 4px;
}
.flash-close:hover { opacity: 1; }

.flash-success {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--success);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}
.flash-error {
    background: rgba(255, 51, 102, 0.08);
    border-color: rgba(255, 51, 102, 0.3);
    color: var(--danger);
    box-shadow: 0 10px 40px rgba(255, 51, 102, 0.1);
}
.flash-warning {
    background: rgba(255, 170, 0, 0.08);
    border-color: rgba(255, 170, 0, 0.3);
    color: var(--warning);
    box-shadow: 0 10px 40px rgba(255, 170, 0, 0.1);
}

@keyframes flashSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 140px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(5, 5, 8, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Tech Rings */
.tech-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.08);
    transform: scale(0);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tech-ring.visible { transform: scale(1); }
.ring-1 {
    width: 550px;
    height: 550px;
    border-style: dashed;
    animation: spinRing 25s linear infinite;
}
.ring-2 {
    width: 480px;
    height: 480px;
    border-color: rgba(0, 212, 255, 0.15);
    animation: spinRing 18s linear infinite reverse;
}
.ring-3 {
    width: 620px;
    height: 620px;
    border-color: rgba(0, 212, 255, 0.06);
    border-style: dotted;
    animation: spinRing 35s linear infinite;
}
.tech-ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(0, 212, 255, 0.5);
    top: -4px;
    left: 50%;
}
.ring-1::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary), 0 0 20px rgba(255, 0, 85, 0.5);
    bottom: -2px;
    right: 20%;
}
.ring-2::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green), 0 0 20px rgba(0, 255, 136, 0.5);
    top: 30%;
    left: -2px;
}
.ring-3::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    bottom: 15%;
    right: -2px;
    opacity: 0.5;
}
@keyframes spinRing { 100% { transform: scale(1) rotate(360deg); } }

.hero-content {
    text-align: center;
    z-index: 10;
    margin-top: 40px;
    margin-bottom: 30px;
    position: relative;
}
.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 1px;
    opacity: 0;
    transition: width 1.2s 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s 1.4s;
    pointer-events: none;
}
.hero-content::before {
    right: 100%;
    margin-right: 25px;
    background: linear-gradient(90deg, transparent, var(--primary));
}
.hero-content::after {
    left: 100%;
    margin-left: 25px;
    background: linear-gradient(270deg, transparent, var(--primary));
}
.hero-content.revealed::before,
.hero-content.revealed::after {
    width: 100px;
    opacity: 0.4;
}

.hero-title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    line-height: 1.15;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 3px;
}
.hero-title.visible { opacity: 1; transform: translateY(0) scale(1); }
.hero-title.glitching,
.page-hero h1.glitching {
    animation: titleGlitch 0.2s steps(2) 10;
}
@keyframes titleGlitch {
    0% { transform: translate(0); text-shadow: none; }
    25% { transform: translate(-6px, 3px) skewX(-2deg); text-shadow: 4px 0 var(--secondary), -4px 0 var(--neon-green); filter: hue-rotate(90deg); }
    50% { transform: translate(6px, -3px) skewX(2deg); text-shadow: -4px 0 var(--secondary), 4px 0 var(--neon-green); filter: hue-rotate(-90deg); }
    75% { transform: translate(-3px, 1px); text-shadow: 2px 0 var(--secondary), -2px 0 var(--neon-green); }
    100% { transform: translate(0); text-shadow: none; filter: none; }
}

.hero-sub {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 4px;
    margin-top: 20px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s 0.3s, transform 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(0, 212, 255, 0.4);
    display: inline-block;
    padding-top: 12px;
}
.hero-sub.visible { opacity: 1; transform: translateY(0); }

.panther-box {
    position: relative;
    width: min(600px, 58vh);
    height: min(600px, 58vh);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    opacity: 0;
    transform: scale(0.7) translateY(30px);
    transition: opacity 1s 0.5s, transform 1.2s 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.panther-box.visible { opacity: 1; transform: scale(1) translateY(0); }

.panther-aura {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.25) 0%, rgba(123, 47, 255, 0.15) 40%, transparent 70%);
    animation: auraPulse 4s ease-in-out infinite;
    filter: blur(40px);
}
@keyframes auraPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

.panther-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
    animation: floatPanther 6s ease-in-out infinite;
    transition: transform 0.5s, filter 0.5s;
    position: relative;
    z-index: 2;
}
.panther-img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 50px rgba(0, 212, 255, 0.8));
}
@keyframes floatPanther { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Hero Corner Brackets */
.hero-corner {
    position: absolute;
    width: 45px;
    height: 45px;
    z-index: 20;
    opacity: 0;
    transition: opacity 1s 1.2s, transform 1s 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-corner.visible { opacity: 1; }
.hero-corner.tl { top: 12%; left: 6%; border-top: 2px solid rgba(0, 212, 255, 0.4); border-left: 2px solid rgba(0, 212, 255, 0.4); transform: translate(-10px, -10px); }
.hero-corner.tr { top: 12%; right: 6%; border-top: 2px solid rgba(0, 212, 255, 0.4); border-right: 2px solid rgba(0, 212, 255, 0.4); transform: translate(10px, -10px); }
.hero-corner.bl { bottom: 12%; left: 6%; border-bottom: 2px solid rgba(0, 212, 255, 0.4); border-left: 2px solid rgba(0, 212, 255, 0.4); transform: translate(-10px, 10px); }
.hero-corner.br { bottom: 12%; right: 6%; border-bottom: 2px solid rgba(0, 212, 255, 0.4); border-right: 2px solid rgba(0, 212, 255, 0.4); transform: translate(10px, 10px); }
.hero-corner.visible.tl,
.hero-corner.visible.tr,
.hero-corner.visible.bl,
.hero-corner.visible.br { transform: translate(0, 0); }

.hero-corner::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}
.hero-corner.tl::after { top: -3px; left: -3px; }
.hero-corner.tr::after { top: -3px; right: -3px; }
.hero-corner.bl::after { bottom: -3px; left: -3px; }
.hero-corner.br::after { bottom: -3px; right: -3px; }

/* Side Data Panels */
.hero-data-panel {
    position: absolute;
    z-index: 20;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    line-height: 2;
    opacity: 0;
    transition: opacity 1s 1.5s;
}
.hero-data-panel.visible { opacity: 1; }
.hero-data-panel.left { left: 4%; top: 38%; color: rgba(0, 212, 255, 0.5); }
.hero-data-panel.right { right: 4%; top: 38%; text-align: right; color: rgba(0, 212, 255, 0.5); }
.hero-data-panel .dp-label { letter-spacing: 2px; color: rgba(0, 212, 255, 0.25); }
.hero-data-panel .dp-value { color: var(--primary); text-shadow: 0 0 6px rgba(0, 212, 255, 0.4); transition: color 0.15s, opacity 0.15s; }
.hero-data-panel .dp-value.flicker { color: var(--secondary); }
.hero-data-panel .dp-bar {
    display: inline-block;
    width: 50px;
    height: 3px;
    background: rgba(0, 212, 255, 0.1);
    vertical-align: middle;
    margin-left: 6px;
    border-radius: 2px;
    overflow: hidden;
}
.hero-data-panel .dp-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--primary);
    transition: width 0.5s;
}

/* Hero Scan Line */
.hero-scanline {
    position: absolute;
    left: 8%;
    right: 8%;
    height: 1px;
    z-index: 15;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.1) 15%, var(--primary) 50%, rgba(0, 212, 255, 0.1) 85%, transparent 100%);
    box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(0, 212, 255, 0.4), 0 -8px 20px rgba(0, 212, 255, 0.1), 0 8px 20px rgba(0, 212, 255, 0.1);
    opacity: 0;
    top: 10%;
    pointer-events: none;
}
.hero-scanline.active {
    animation: heroScanSweep 4s ease-in-out infinite;
}
@keyframes heroScanSweep {
    0% { top: 10%; opacity: 0; }
    3% { opacity: 0.7; }
    97% { opacity: 0.7; }
    100% { top: 90%; opacity: 0; }
}

/* Energy Pulses */
.hero-energy-pulse {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.3);
    opacity: 0;
    z-index: 4;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
}
.hero-energy-pulse.active {
    animation: energyPulse 4s ease-out infinite;
}
.hero-energy-pulse.delayed.active {
    animation: energyPulse 4s ease-out 2s infinite;
}
@keyframes energyPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.5; border-color: rgba(0, 212, 255, 0.4); }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; border-color: rgba(0, 212, 255, 0); }
}

/* Floating Geometric Shapes */
.hero-float-geo {
    position: absolute;
    z-index: 8;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s 1.8s;
}
.hero-float-geo.visible { opacity: 1; }
.hero-float-geo.geo-tri {
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 9px solid rgba(0, 212, 255, 0.15);
}
.hero-float-geo.geo-diamond {
    width: 7px; height: 7px;
    background: rgba(0, 212, 255, 0.2);
    transform: rotate(45deg);
    border: 1px solid rgba(0, 212, 255, 0.15);
}
.hero-float-geo.geo-ring {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: transparent;
}
.hero-float-geo.geo-cross { width: 8px; height: 8px; position: relative; }
.hero-float-geo.geo-cross::before,
.hero-float-geo.geo-cross::after {
    content: '';
    position: absolute;
    background: rgba(0, 212, 255, 0.15);
}
.hero-float-geo.geo-cross::before { width: 100%; height: 1px; top: 50%; }
.hero-float-geo.geo-cross::after { height: 100%; width: 1px; left: 50%; }

.hero-float-geo:nth-child(1) { top: 18%; left: 15%; animation: geoFloat1 8s ease-in-out infinite; }
.hero-float-geo:nth-child(2) { top: 25%; right: 18%; animation: geoFloat2 10s ease-in-out infinite; }
.hero-float-geo:nth-child(3) { bottom: 28%; left: 12%; animation: geoFloat3 7s ease-in-out infinite; }
.hero-float-geo:nth-child(4) { bottom: 22%; right: 14%; animation: geoFloat1 9s ease-in-out infinite reverse; }
.hero-float-geo:nth-child(5) { top: 40%; left: 8%; animation: geoFloat2 11s ease-in-out infinite; }
.hero-float-geo:nth-child(6) { top: 35%; right: 9%; animation: geoFloat3 8s ease-in-out infinite reverse; }
.hero-float-geo:nth-child(7) { bottom: 40%; left: 20%; animation: geoFloat1 12s ease-in-out infinite; }
.hero-float-geo:nth-child(8) { top: 15%; right: 25%; animation: geoFloat2 9s ease-in-out infinite reverse; }

@keyframes geoFloat1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(90deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}
@keyframes geoFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -12px) rotate(120deg); }
    66% { transform: translate(-8px, -18px) rotate(240deg); }
}
@keyframes geoFloat3 {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-25px) rotate(225deg); }
}

/* Orbiting Satellite Nodes */
.hero-orbit-node {
    position: absolute;
    z-index: 12;
    pointer-events: none;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary), 0 0 12px rgba(0, 212, 255, 0.5);
    opacity: 0;
    transition: opacity 1s 2s;
}
.hero-orbit-node.visible { opacity: 1; }
.hero-orbit-node::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    opacity: 0.5;
}

/* Hero Bottom Fade */
.hero-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-deep));
    z-index: 11;
    pointer-events: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 1s 1.5s;
    z-index: 10;
}
.scroll-indicator.visible { opacity: 1; }
.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(0, 212, 255, 0.5);
    letter-spacing: 4px;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(1.5); opacity: 1; }
}

/* ===== MARQUEE ===== */
.marquee-wrap {
    position: relative;
    z-index: 10;
    padding: 14px 0;
    background: rgba(0, 212, 255, 0.05);
    border-top: 1px solid var(--border-glow);
    border-bottom: 1px solid var(--border-glow);
    transform: skewY(-1deg);
    overflow: hidden;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}
.marquee-track {
    display: flex;
    animation: marqueeScroll 25s linear infinite;
}
.marquee-text {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    padding-right: 60px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== CAROUSEL ===== */
.showcase-section {
    padding: 100px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1500px;
    overflow: hidden;
}
.section-head {
    font-family: var(--font-head);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}
.section-head span {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
}

.carousel-container {
    width: 100%;
    max-width: 1100px;
    height: 520px;
    position: relative;
    transform-style: preserve-3d;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card {
    position: absolute;
    width: 420px;
    height: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 212, 255, 0.03);
    backdrop-filter: blur(10px);
}
.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.card:hover .card-thumbnail { transform: scale(1.05); }

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 60%);
    z-index: 2;
    pointer-events: none;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 5;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    backdrop-filter: blur(10px);
}
.card-play-btn i {
    color: #fff;
    font-size: 1.2rem;
    margin-left: 3px;
}
.card:hover .card-play-btn,
.card.active .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.card:hover .card-play-btn {
    background: rgba(0, 212, 255, 0.35);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.card.active::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 15px;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.15) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: holoEdge 3s linear infinite;
    z-index: 1;
    pointer-events: none;
}
@keyframes holoEdge {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 18px 20px;
}
.card-category {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 6px;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}
.card-title-text {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.3;
}
.card.active {
    transform: translateX(0) translateZ(200px);
    z-index: 10;
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3), 0 20px 60px rgba(0, 0, 0, 0.5);
}
.card.active:hover {
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.4), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 100px rgba(0, 212, 255, 0.15);
}
.card.prev {
    transform: translateX(-340px) translateZ(-100px) rotateY(25deg);
    z-index: 5;
    filter: brightness(0.3) saturate(0.3);
}
.card.next {
    transform: translateX(340px) translateZ(-100px) rotateY(-25deg);
    z-index: 5;
    filter: brightness(0.3) saturate(0.3);
}
.card.hidden-left {
    transform: translateX(-650px) translateZ(-300px) rotateY(45deg);
    opacity: 0;
    pointer-events: none;
}
.card.hidden-right {
    transform: translateX(650px) translateZ(-300px) rotateY(-45deg);
    opacity: 0;
    pointer-events: none;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.revealed { opacity: 1 !important; transform: translateY(0) translateX(0) scale(1) !important; }
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

/* ===== DASHBOARD CARD STYLE ===== */
.tech-section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }

.dashboard-card {
    background: linear-gradient(145deg, rgba(12, 15, 25, 0.75), rgba(5, 5, 8, 0.9));
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.dashboard-card:hover {
    border-color: var(--border-glow-strong);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1);
}
.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.08), transparent 70%);
    pointer-events: none;
}
.dashboard-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-left: 2px solid rgba(0, 212, 255, 0.15);
    border-bottom: 2px solid rgba(0, 212, 255, 0.15);
    border-radius: 0 0 0 20px;
    pointer-events: none;
}

/* ===== ABOUT SECTION ===== */
#about {
    perspective: 1200px;
}
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.about-text { flex: 1; min-width: 280px; }
.about-text .section-head { margin-bottom: 25px; text-align: left; }
.about-img {
    flex: 1;
    min-width: 280px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
    position: relative;
}
.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.7s;
}
.about-img:hover img { transform: scale(1.08); }
.about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), transparent 50%);
    pointer-events: none;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.skill-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 20px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.skill-item:hover {
    background: rgba(0, 212, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}
.skill-item i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: block;
}
.skill-name {
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: #fff;
}
.skill-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}
.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.skill-bar-fill.animated { /* width set via inline style */ }

/* ===== CLIENT LOGOS ===== */
.clients-section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
/* .clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.client-logo-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition-smooth);
    min-height: 140px;
}
.client-logo-card:hover {
    border-color: var(--border-glow-strong);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}
.client-logo-card img {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(0.8) grayscale(0.3);
    transition: var(--transition-fast);
}
.client-logo-card:hover img {
    filter: brightness(1) grayscale(0);
}
.client-logo-card .client-category {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
} */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.client-logo-card {
    background: linear-gradient(145deg, rgba(12, 15, 25, 0.7), rgba(5, 5, 8, 0.9));
    border: 1px solid var(--border-glow);
    border-radius: 18px;
    padding: 30px 20px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.client-logo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.client-logo-card:hover::before { opacity: 1; }
.client-logo-card:hover {
    border-color: var(--border-glow-strong);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.12);
}
.client-logo-card .client-logo-frame {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}
.client-logo-card:hover .client-logo-frame {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.client-logo-card .client-logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.8);
    transition: var(--transition-fast);
}
.client-logo-card:hover .client-logo-frame img {
    filter: brightness(1.1) saturate(1);
    transform: scale(1.1);
}
.client-logo-card .client-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent);
}
.client-logo-card .client-logo-placeholder i {
    font-size: 1.6rem;
    color: var(--primary);
    opacity: 0.5;
}
.client-logo-card .client-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.client-logo-card .client-category {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .clients-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
    .client-logo-card { padding: 22px 14px 20px; gap: 12px; }
    .client-logo-card .client-logo-frame { width: 65px; height: 65px; }
    .client-logo-card .client-name { font-size: 0.8rem; }
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    perspective: 1200px;
}
.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}
.service-card:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.15), 0 5px 15px rgba(0,0,0,0.3);
}
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.05), transparent, transparent);
    animation: serviceRotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
@keyframes serviceRotate { 100% { transform: rotate(360deg); } }

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.service-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0.9);
}
.service-card h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.stat-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.stat-item:hover {
    background: rgba(0, 212, 255, 0.08);
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.12);
}
.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.08), transparent, transparent);
    animation: statRotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}
.stat-item:hover::before { opacity: 1; }
@keyframes statRotate { 100% { transform: rotate(360deg); } }
.stat-number {
    font-family: var(--font-head);
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 15px var(--primary);
    position: relative;
    z-index: 1;
}
.stat-label {
    color: var(--text-dim);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* ===== CONTACT FORM ===== */
.contact-container { max-width: 700px; margin: 0 auto; }
.form-input {
    width: 100%;
    padding: 16px 18px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 10px;
    outline: none;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15), inset 0 0 20px rgba(0, 212, 255, 0.03);
    background: rgba(0, 212, 255, 0.03);
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.2); letter-spacing: 1px; }
.form-input.error { border-color: var(--danger); box-shadow: 0 0 15px rgba(255, 51, 102, 0.15); }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: -15px; margin-bottom: 15px; font-family: var(--font-mono); letter-spacing: 1px; }

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-head);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}
.btn-submit:hover::before { left: 100%; }
.btn-submit:hover {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
    transform: translateY(-3px);
}

/* ===== VIDEO MODAL ===== */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.video-modal.open {
    display: flex;
    animation: modalIn 0.4s ease-out;
}
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }

.modal-container {
    position: relative;
    width: 90%;
    max-width: 950px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: sticky;
    top: 0;
    float: right;
    color: #fff;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: var(--transition-fast);
    z-index: 10;
}
.modal-close:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}

.modal-content { padding-top: 10px; }
.modal-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    clear: both;
}
.modal-description {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.6;
}
.modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}
.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== FOOTER ===== */
footer {
    padding: 60px 20px 40px;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.08);
    background: linear-gradient(to bottom, var(--bg-deep), #020204);
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.footer-logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--primary);
}
.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(0, 212, 255, 0.35);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.socials a {
    color: #555;
    font-size: 1.3rem;
    transition: var(--transition-smooth);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}
.socials a:hover {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
    background: rgba(0, 212, 255, 0.08);
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #444;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    font-weight: 600;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy { color: #2a2a2a; font-size: 0.8rem; letter-spacing: 1px; }

/* ===== CLIENT SHOWCASE CARDS (INDEX) ===== */
.client-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
    margin-top: 45px;
}
.client-showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 25px 10px 18px;
    position: relative;
}
.client-showcase-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary);
    opacity: 0;
    box-shadow: 0 0 10px var(--primary);
    transition: var(--transition-smooth);
}
.client-showcase-card:hover::after {
    opacity: 1;
    width: 50px;
}

/* Rotating ring around avatar */
.csc-ring {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.csc-ring-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: rgba(0, 212, 255, 0.3);
    transition: var(--transition-smooth);
    animation: cscRingRotate 4s linear infinite;
}
.client-showcase-card:hover .csc-ring-inner {
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
@keyframes cscRingRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Avatar circle */
.csc-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
    background: rgba(0, 0, 0, 0.5);
}
.client-showcase-card:hover .csc-avatar {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.35), inset 0 0 15px rgba(0, 212, 255, 0.1);
}
.csc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) saturate(0.7);
    transition: var(--transition-smooth);
}
.client-showcase-card:hover .csc-avatar img {
    filter: brightness(1.15) saturate(1.2);
    transform: scale(1.08);
}
.csc-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.csc-avatar-placeholder i {
    font-size: 1.4rem;
    color: var(--primary);
    opacity: 0.4;
}

/* Name */
.csc-name {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition-smooth);
}
.client-showcase-card:hover .csc-name {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* Category tag */
.csc-tag {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 4px 12px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    background: rgba(0, 212, 255, 0.04);
    transition: var(--transition-smooth);
}
.client-showcase-card:hover .csc-tag {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

/* Hover lift */
.client-showcase-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.client-showcase-card:hover {
    transform: translateY(-8px);
}

@media (max-width: 768px) {
    .client-showcase-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 18px;
    }
    .csc-ring { width: 75px; height: 75px; }
    .csc-avatar { width: 60px; height: 60px; }
    .csc-name { font-size: 0.7rem; max-width: 110px; }
    .csc-tag { font-size: 0.45rem; letter-spacing: 2px; padding: 3px 10px; }
}

@media (max-width: 480px) {
    .client-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    .csc-ring { width: 65px; height: 65px; }
    .csc-avatar { width: 52px; height: 52px; }
    .client-showcase-card { padding: 18px 5px 14px; gap: 10px; }
    .csc-name { font-size: 0.6rem; letter-spacing: 0.5px; }
}

/* ===== PROJECTS PAGE ===== */
.page-hero {
    padding: 160px 20px 60px;
    text-align: center;
    position: relative;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-deep));
    pointer-events: none;
}
.page-hero h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero p {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
    padding: 0 20px;
}
.filter-tab {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
    transition: var(--transition-fast);
}
.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-tab.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}
.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}
.video-card:hover {
    border-color: var(--border-glow-strong);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.1);
}
.video-card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.video-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.video-card:hover .video-card-thumbnail img { transform: scale(1.08); }
.video-card-thumbnail .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}
.video-card:hover .play-overlay { opacity: 1; }
.play-overlay .play-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.25);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: var(--transition-fast);
}
.video-card:hover .play-icon {
    background: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
    transform: scale(1.1);
}
.play-icon i { color: #fff; font-size: 1.1rem; margin-left: 3px; }
.video-card-type {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    color: var(--primary);
    backdrop-filter: blur(5px);
}
.video-card-body { padding: 18px; }
.video-card-body h3 {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: #fff;
    line-height: 1.4;
}
.video-card-body p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.video-card-category {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.video-card-views {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ===== AUTH PAGES (LOGIN / REGISTER) ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}
.auth-card {
    width: 100%;
    max-width: 450px;
    background: linear-gradient(145deg, rgba(12, 15, 25, 0.8), rgba(5, 5, 8, 0.95));
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 45px 35px;
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.auth-card h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 8px;
    color: #fff;
}
.auth-card .auth-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 35px;
}
.auth-card .form-group {
    margin-bottom: 20px;
    position: relative;
}
.auth-card label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.auth-card .btn-submit { margin-top: 10px; }
.auth-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-dim);
}
.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}
.auth-link a:hover { text-shadow: 0 0 10px var(--primary); }

/* ===== DASHBOARD PAGE ===== */
.dashboard-page {
    padding: 120px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.dashboard-welcome {
    margin-bottom: 40px;
}
.dashboard-welcome h1 {
    font-family: var(--font-head);
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.dashboard-welcome p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}
.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.dash-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 14px;
    padding: 25px 20px;
    transition: var(--transition-smooth);
}
.dash-stat-card:hover {
    border-color: var(--border-glow-strong);
    transform: translateY(-3px);
}
.dash-stat-card .dash-stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.dash-stat-card .dash-stat-value {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.dashboard-section-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glow);
    color: #fff;
}

/* User Profile Page */
.profile-card {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; min-width: 280px; }
.profile-info h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
.profile-info .profile-field {
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
}
.profile-field .pf-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    min-width: 80px;
}
.profile-field .pf-value {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Profile Edit Form */
.profile-edit-form { margin-top: 40px; }
.profile-edit-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== ADMIN PANEL ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, rgba(8, 10, 18, 0.98), rgba(5, 5, 8, 0.98));
    border-right: 1px solid var(--border-glow);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    padding: 30px 0;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.admin-sidebar-logo {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 0 25px 25px;
    border-bottom: 1px solid var(--border-glow);
    margin-bottom: 20px;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}
.admin-sidebar-logo span { color: #fff; }
.admin-nav { list-style: none; }
.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 25px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}
.admin-nav li a:hover,
.admin-nav li a.active {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
    border-left-color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}
.admin-nav li a i { width: 20px; text-align: center; font-size: 0.95rem; }

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
}
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glow);
}
.admin-topbar h1 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    letter-spacing: 2px;
}
.admin-topbar-actions { display: flex; gap: 15px; align-items: center; }

/* Admin Tables */
.admin-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 14px;
    overflow: hidden;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table thead { background: rgba(0, 212, 255, 0.05); }
.admin-table th {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-glow);
}
.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    color: var(--text-dim);
    vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(0, 212, 255, 0.02); }
.admin-table .thumb {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Admin Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    background: none;
    color: inherit;
}
.btn-primary {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 212, 255, 0.08);
}
.btn-primary:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}
.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(255, 51, 102, 0.08);
}
.btn-danger:hover {
    background: rgba(255, 51, 102, 0.15);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.2);
}
.btn-success {
    border-color: var(--success);
    color: var(--success);
    background: rgba(0, 255, 136, 0.08);
}
.btn-success:hover {
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}
.btn-sm { padding: 6px 12px; font-size: 0.65rem; }
.btn-icon { padding: 8px 10px; }

/* Admin Form */
.admin-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 14px;
    padding: 30px;
    max-width: 800px;
}
.admin-form-card h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 10px;
    outline: none;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
    font-size: 0.95rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}
.form-select option { background: #111; color: #fff; }
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: none;
}
.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: none;
}

/* Image Preview */
.img-preview {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    border: 1px solid var(--border-glow);
    margin-top: 10px;
    display: none;
}
.img-preview.visible { display: block; }

/* Badge */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.badge-primary { background: rgba(0, 212, 255, 0.1); color: var(--primary); border: 1px solid rgba(0, 212, 255, 0.2); }
.badge-success { background: rgba(0, 255, 136, 0.1); color: var(--success); border: 1px solid rgba(0, 255, 136, 0.2); }
.badge-danger { background: rgba(255, 51, 102, 0.1); color: var(--danger); border: 1px solid rgba(255, 51, 102, 0.2); }
.badge-warning { background: rgba(255, 170, 0, 0.1); color: var(--warning); border: 1px solid rgba(255, 170, 0, 0.2); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    transition: var(--transition-fast);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 15px; opacity: 0.3; }
.empty-state p { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .admin-sidebar { width: 220px; }
    .admin-content { margin-left: 220px; }
}

@media (max-width: 768px) {
    nav { padding: 15px 25px; }
    .nav-menu { display: none; }
    .mobile-menu-toggle { display: flex; }
    .mobile-menu {
        display: flex;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.4s, visibility 0.4s;
    }
    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
    }

    .hero-title { font-size: 2rem; letter-spacing: 1px; }
    .ring-1 { width: 320px; height: 320px; }
    .ring-2 { width: 280px; height: 280px; }
    .ring-3 { width: 360px; height: 360px; }
    .panther-box { width: 340px; height: 340px; }
    .section-head { font-size: 1.6rem; margin-bottom: 40px; }

    .tech-section { padding: 45px 15px; }
    .showcase-section { padding: 50px 0; }

    .carousel-container { height: 260px; }
    .card { width: 300px; height: 180px; }
    .card.prev, .card.next { opacity: 0; pointer-events: none; }
    .card.active { transform: none !important; }
    .card-play-btn { width: 45px; height: 45px; }
    .card-play-btn i { font-size: 0.9rem; }

    .dashboard-card { padding: 25px; }
    .about-content { gap: 30px; }
    .about-img { height: 300px; }

    .hero-data-panel { display: none; }
    .hero-corner { width: 25px; height: 25px; }
    .hero-float-geo { display: none; }
    .hero-content::before, .hero-content::after { display: none; }
    .hero-orbit-node { display: none; }

    .video-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .clients-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .services-grid { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 12px; }

    .page-hero h1 { font-size: 2rem; }

    /* Auth */
    .auth-card { padding: 35px 25px; }

    /* Admin */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; padding: 20px 15px; }
    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 10px 12px; }
    .admin-table .thumb { width: 60px; height: 34px; }
    .form-row { grid-template-columns: 1fr; }
    .profile-edit-form .form-row { grid-template-columns: 1fr; }
    .profile-card { flex-direction: column; align-items: center; text-align: center; }
    .profile-info .profile-field { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem; }
    .nav-logo { font-size: 1.1rem; }
    .hero-corner { width: 18px; height: 18px; }
    .card { width: 260px; height: 160px; }
    .card.active { transform: none !important; }
    .card-title-text { font-size: 0.8rem; }
    .carousel-container { height: 220px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .stat-number { font-size: 2.2rem; }
    .filter-tabs { gap: 8px; }
    .filter-tab { padding: 8px 14px; font-size: 0.65rem; }
    .modal-title { font-size: 1.1rem; }
    .modal-description { font-size: 0.7rem; }
}

/* ===== ADMIN MOBILE TOGGLE ===== */
.admin-mobile-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1002;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-glow);
    color: var(--primary);
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
@media (max-width: 768px) {
    .admin-mobile-toggle { display: flex; }
}

/* Admin sidebar overlay */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
}
.admin-sidebar-overlay.open { display: block; }

/* Confirm Dialog */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}
.confirm-overlay.open { display: flex; }
.confirm-box {
    background: linear-gradient(145deg, rgba(12, 15, 25, 0.95), rgba(5, 5, 8, 0.98));
    border: 1px solid var(--border-glow-strong);
    border-radius: 16px;
    padding: 35px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: modalIn 0.3s ease-out;
}
.confirm-box h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.confirm-box p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 25px;
}
.confirm-actions { display: flex; gap: 12px; justify-content: center; }

/* ============================================
   GLITCH REVEAL - SECTION HEADINGS
   ============================================ */
.glitch-reveal {
    position: relative;
    overflow: hidden;
}
.gr-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    white-space: nowrap;
    color: var(--primary);
    background: var(--bg-deep);
    z-index: 2;
    clip-path: inset(0 0 0 0%);
    pointer-events: none;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}
.gr-overlay .gr-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px var(--primary), 0 0 16px var(--primary);
    opacity: 0;
}

/* Scan line */
.gr-scan {
    position: absolute;
    top: -10%;
    left: -120%;
    width: 70%;
    height: 120%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.12), var(--primary), rgba(0, 212, 255, 0.12), transparent);
    z-index: 3;
    pointer-events: none;
    transform: skewX(-25deg);
    filter: blur(0.5px);
}
.gr-scan.active {
    animation: grScanSweep 0.5s ease-in-out forwards;
}
@keyframes grScanSweep {
    0% { left: -120%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

/* RGB Glitch Burst */
.gr-burst {
    animation: grRGBurst 0.25s steps(2) 3;
}
@keyframes grRGBurst {
    0% { text-shadow: none; transform: translate(0); filter: none; }
    15% { text-shadow: -4px 0 #ff0055, 4px 0 #00d4ff; transform: translateX(-3px) skewX(-2deg); filter: hue-rotate(90deg); }
    30% { text-shadow: 4px 0 #ff0055, -4px 0 #00d4ff; transform: translateX(3px) skewX(2deg); filter: hue-rotate(-90deg); }
    45% { text-shadow: -2px 1px #ff0055, 2px -1px #00ff88; transform: translate(-2px, 1px); }
    60% { text-shadow: 3px 0 #00d4ff, -3px 0 #ff0055; transform: translateX(2px); filter: hue-rotate(45deg); }
    75% { text-shadow: -1px 0 #00ff88, 1px 0 #ff0055; transform: translateX(-1px) skewX(-0.5deg); }
    100% { text-shadow: none; transform: translate(0); filter: none; }
}



/* Small spark particles on decode */
.gr-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}
.gr-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary);
    opacity: 0;
}

/* ============================================
   ELECTRIC FORM - CONTACT SECTION
   ============================================ */
.electric-form {
    position: relative;
    overflow: hidden;
}
.electric-form::before,
.electric-form::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    z-index: 5;
    opacity: 0;
}
.electric-form::before {
    top: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.1) 20%, var(--primary) 50%, rgba(0, 212, 255, 0.1) 80%, transparent 100%);
    box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(0, 212, 255, 0.3);
    animation: electricPulseTop 5s ease-in-out 2s infinite;
}
.electric-form::after {
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 85, 0.1) 20%, var(--secondary) 50%, rgba(255, 0, 85, 0.1) 80%, transparent 100%);
    box-shadow: 0 0 15px var(--secondary), 0 0 30px rgba(255, 0, 85, 0.3);
    animation: electricPulseBottom 5s ease-in-out 0s infinite;
}
@keyframes electricPulseTop {
    0% { left: -100%; opacity: 0; }
    5% { opacity: 1; }
    45% { left: 100%; opacity: 1; }
    50% { left: 100%; opacity: 0; }
    100% { left: -100%; opacity: 0; }
}
@keyframes electricPulseBottom {
    0% { left: -100%; opacity: 0; }
    5% { opacity: 1; }
    45% { left: 100%; opacity: 1; }
    50% { left: 100%; opacity: 0; }
    100% { left: -100%; opacity: 0; }
}

/* Form breach animation */
.electric-form.form-breach {
    animation: formBreach 1.8s ease-out forwards;
}
@keyframes formBreach {
    0% { border-color: rgba(255, 255, 255, 0.05); box-shadow: none; }
    12% { border-color: #ff0055; box-shadow: 0 0 40px rgba(255, 0, 85, 0.3), inset 0 0 40px rgba(255, 0, 85, 0.05); }
    22% { border-color: rgba(255, 255, 255, 0.05); box-shadow: none; }
    35% { border-color: #ff0055; box-shadow: 0 0 25px rgba(255, 0, 85, 0.2); }
    45% { border-color: rgba(255, 255, 255, 0.05); box-shadow: none; }
    60% { border-color: var(--primary); box-shadow: 0 0 30px rgba(0, 212, 255, 0.25), inset 0 0 30px rgba(0, 212, 255, 0.03); }
    75% { border-color: rgba(255, 255, 255, 0.05); box-shadow: none; }
    85% { border-color: var(--primary); box-shadow: 0 0 15px rgba(0, 212, 255, 0.15); }
    100% { border-color: var(--border-glow); box-shadow: none; }
}



/* Submit button electric pulse */
.electric-submit {
    position: relative;
    overflow: hidden;
}
.electric-submit::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.3), transparent, transparent);
    animation: submitElectricSpin 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}
.electric-submit:hover::before {
    opacity: 1;
}
@keyframes submitElectricSpin {
    100% { transform: rotate(360deg); }
}

/* Stagger delays so cards don't sync */
.float-slow.delay-1 { animation-delay: 0s; }
.float-slow.delay-2 { animation-delay: -1.2s; }
.float-slow.delay-3 { animation-delay: -2.5s; }
.float-slow.delay-4 { animation-delay: -3.8s; }
.float-medium.delay-1 { animation-delay: -0.8s; }
.float-medium.delay-2 { animation-delay: -2s; }
.float-medium.delay-3 { animation-delay: -3.2s; }
.float-fast.delay-1 { animation-delay: -0.5s; }
.float-fast.delay-2 { animation-delay: -1.5s; }
.float-fast.delay-3 { animation-delay: -2.8s; }

/* Faster scan for carousel cards */
.corner-scan.scan-fast::after {
    animation-duration: 3s;
}
.corner-scan.scan-fast.scanning::before {
    animation-duration: 3s;
}

/* /* ============================================
   FASTER GLITCH REVEAL OVERRIDES
   ============================================ */
/* .gr-scan.active {
    animation: grScanSweep 0.35s ease-in-out forwards !important;
}
@keyframes grScanSweep {
    0% { left: -120%; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { left: 130%; opacity: 0; }
}
.gr-burst {
    animation: grRGBurst 0.2s steps(2) 4 !important;
} */

/* ============================================
   CAROUSEL CARD SCAN LINE REMOVE
   ============================================ */
.card.active::after {
    display: none;
}

/* ============================================
   3D TILT CARD - HOVER 3D EFFECT
   ============================================ */
/* .tilt-card {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}
.tilt-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(circle 120px at var(--mx, 50%) at var(--my, 50%),
        rgba(255, 255, 255, 0.12) 0%,
        transparent 50%);
}
.tilt-card:hover .tilt-glare {
    opacity: 1;
} */

/* ============================================
   HEADING WIPE REVEAL - RELIABLE & DRAMATIC
   ============================================ */
.heading-reveal {
    position: relative;
}
.js-loaded .heading-reveal {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
}
.js-loaded .heading-reveal.wipe-in {
    opacity: 1 !important;
}
.js-loaded .heading-reveal.wipe-in {
    animation: hrWipeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-fill-mode: forwards !important;
}
@keyframes hrWipeIn {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
.heading-reveal.wipe-done {
    clip-path: none !important;
    opacity: 1 !important;
    animation: hrWipeGlitch 0.5s steps(3) 1;
}
@keyframes hrWipeGlitch {
    0% { text-shadow: none; transform: translate(0); filter: none; clip-path: inset(0 0 0 0); }
    10% { text-shadow: -5px 0 #ff0055, 5px 0 #00d4ff, 5px 0 #00ff88; transform: translateX(-5px) skewX(-3deg); filter: hue-rotate(90deg); clip-path: inset(0 -3% 0 -3%); }
    20% { text-shadow: 5px 0 #ff0055, -5px 0 #00d4ff; transform: translateX(5px) skewX(3deg); filter: hue-rotate(-90deg); clip-path: inset(0 3% 0 3%); }
    30% { text-shadow: -3px 1px #00ff88, 3px -1px #ff0055; transform: translate(-2px, 1px); clip-path: inset(0 -2% 0 -2%); }
    40% { text-shadow: 4px 0 #00d4ff, -4px 0 #ff0055; transform: translateX(3px) scale(1.02); filter: hue-rotate(45deg); clip-path: inset(0 2% 0 2%); }
    100% { text-shadow: none; transform: translate(0); filter: none; clip-path: inset(0 0 0 0); }
}

/* Scan bar that travels with wipe edge */
.hr-wipe-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary), 0 0 30px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.2);
    z-index: 20;
    pointer-events: none;
    opacity: 0;
}
.heading-reveal.wipe-in .hr-wipe-bar {
    opacity: 1;
    animation: hrWipeBarMove 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes hrWipeBarMove {
    0% { left: 0%; }
    100% { left: 100%; }
}
/* Extra wide glow behind the bar */
.hr-wipe-bar::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -15px;
    width: 35px;
    height: calc(100% + 80px);
    background: linear-gradient(to bottom, transparent, rgba(0, 212, 255, 0.15), transparent);
    filter: blur(5px);
}

/* Accent word - separate pop-in */
.heading-reveal .gr-accent {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px) scale(0.8);
    filter: blur(4px);
    transition: none;
    border-bottom: none !important;
}
.heading-reveal.accent-drop .gr-accent,
.heading-reveal .gr-accent.accent-drop {
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s ease-out;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0) !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}
/* Underline after accent drops */
.gr-accent-line {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary), 0 0 20px rgba(0, 212, 255, 0.5);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.heading-reveal.underline-on .gr-accent-line {
    width: 100% !important;
}
/* Continuous subtle glow pulse on accent after underline */
.heading-reveal.glow-pulse .gr-accent {
    animation: accentGlowPulse 3s ease-in-out infinite;
}
@keyframes accentGlowPulse {
    0%, 100% { text-shadow: 0 0 8px rgba(0, 212, 255, 0.3); }
    50% { text-shadow: 0 0 25px rgba(0, 212, 255, 0.7), 0 0 50px rgba(0, 212, 255, 0.25); }
}

/* ============================================
   CROSS EDGE HOVER - CAROUSEL CARDS
   ============================================ */
.cross-edge-card {
    position: relative;
    overflow: hidden;
}
.cross-edge-card::before,
.cross-edge-card::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120%;
    height: 120%;
    pointer-events: none;
    z-index: 8;
    opacity: 0;
    transition: opacity 0.35s ease;
}
/* Line 1: top-left to center */
.cross-edge-card::before {
    transform: translate(-50%, -50%) rotate(45deg);
    transform-origin: center;
    background: linear-gradient(to bottom right, rgba(0, 212, 255, 0.5) 0%, transparent 70%);
}
/* Line 2: top-right to center */
.cross-edge-card::after {
    transform: translate(-50%, -50%) rotate(-45deg);
    transform-origin: center;
    background: linear-gradient(to bottom left, rgba(255, 0, 85, 0.5) 0%, transparent 70%);
}
.cross-edge-card:hover::before,
.cross-edge-card:hover::after {
    opacity: 1;
}
/* Second pair of lines - bottom */
.cross-edge-line2,
.cross-edge-line3 {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120%;
    height: 120%;
    pointer-events: none;
    z-index: 8;
    opacity: 0;
    transition: opacity 0.35s ease 0.08s, transform 0.35s ease 0.08s;
    border-radius: 2px;
}
.cross-edge-line2 {
    transform: translate(-50%, -50%) rotate(-45deg);
    transform-origin: center;
    background: linear-gradient(to top right, rgba(0, 255, 136, 0.5) 0%, transparent 70%);
    border: none;
    height: 2px;
}
.cross-edge-line3 {
    transform: translate(-50%, -50%) rotate(45deg);
    transform-origin: center;
    background: linear-gradient(to top left, rgba(255, 0, 85, 0.4) 0%, transparent 70%);
    border: none;
    height: 2px;
}
.cross-edge-card:hover .cross-edge-line2 {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg) scale(0.7);
}
.cross-edge-card:hover .cross-edge-line3 {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.7);
}
/* Center dot at cross intersection */
.cross-edge-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px var(--primary), 0 0 20px var(--primary), 0 0 40px rgba(0, 212, 255, 0.4);
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s, opacity 0.3s ease 0.1s;
}
.cross-edge-card:hover .cross-edge-dot {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ============================================
   STATS SUBTLE IDLE FLOAT
   ============================================ */
.stat-float {
    animation: statFloat 5s ease-in-out infinite;
}
.stat-float.d1 { animation-delay: 0s; }
.stat-float.d2 { animation-delay: -1.25s; }
.stat-float.d3 { animation-delay: -2.5s; }
.stat-float.d4 { animation-delay: -3.75s; }
@keyframes statFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   LIVE STAT GLITCH (periodic wrong number)
   ============================================ */
.live-stat.flash-wrong {
    color: #ff0055 !important;
    text-shadow: -3px 0 #ff0055, 3px 0 #00d4ff !important;
    transform: scale(1.08) !important;
    transition: color 0.05s, text-shadow 0.05s, transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.live-stat.flash-back {
    transition: color 0.15s, text-shadow 0.15s, transform 0.3s ease-out;
}

/* ============================================
   ALIVE FLOAT - Dynamic continuous bob & shadow on cards
   ============================================ */

/* Service Cards Animation */
@keyframes serviceCardFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 212, 255, 0.12);
    }
    50% {
        transform: translateY(-24px);
        box-shadow: 0 42px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 212, 255, 0.45), 0 0 60px rgba(0, 212, 255, 0.2);
    }
}
.service-card.revealed {
    animation: serviceCardFloat 4.5s ease-in-out infinite;
}
.service-card.revealed:nth-child(2) { animation-delay: -1s; }
.service-card.revealed:nth-child(3) { animation-delay: -2s; }
.service-card.revealed:nth-child(4) { animation-delay: -3s; }
.service-card.revealed:nth-child(5) { animation-delay: -0.5s; }
.service-card.revealed:nth-child(6) { animation-delay: -2.5s; }
.service-card:hover {
    animation: none !important;
}

/* Skill Items Animation */
@keyframes skillItemFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 212, 255, 0.08);
    }
    50% {
        transform: translateY(-18px);
        box-shadow: 0 32px 48px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 212, 255, 0.35);
    }
}
.skill-item.revealed {
    animation: skillItemFloat 5s ease-in-out infinite;
}
.skill-item.revealed:nth-child(2) { animation-delay: -0.8s; }
.skill-item.revealed:nth-child(3) { animation-delay: -1.6s; }
.skill-item.revealed:nth-child(4) { animation-delay: -2.4s; }
.skill-item.revealed:nth-child(5) { animation-delay: -3.2s; }
.skill-item.revealed:nth-child(6) { animation-delay: -4s; }
.skill-item.revealed:nth-child(7) { animation-delay: -0.4s; }
.skill-item:hover {
    animation: none !important;
}

/* Client Logo & Showcase Cards Animation */
@keyframes clientCardFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 10px rgba(0, 212, 255, 0.08);
    }
    50% {
        transform: translateY(-20px);
        box-shadow: 0 38px 55px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 212, 255, 0.4);
    }
}
.client-logo-card.revealed,
.client-showcase-card {
    animation: clientCardFloat 5.5s ease-in-out infinite;
}
.client-logo-card.revealed:nth-child(2),
.client-showcase-card:nth-child(2) { animation-delay: -1.2s; }
.client-logo-card.revealed:nth-child(3),
.client-showcase-card:nth-child(3) { animation-delay: -2.4s; }
.client-logo-card.revealed:nth-child(4),
.client-showcase-card:nth-child(4) { animation-delay: -3.6s; }
.client-logo-card.revealed:nth-child(5),
.client-showcase-card:nth-child(5) { animation-delay: -0.6s; }
.client-logo-card.revealed:nth-child(6),
.client-showcase-card:nth-child(6) { animation-delay: -1.8s; }
.client-logo-card:hover,
.client-showcase-card:hover {
    animation: none !important;
}

/* Video Cards Animation */
@keyframes videoCardFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 212, 255, 0.08);
    }
    50% {
        transform: translateY(-24px);
        box-shadow: 0 42px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 212, 255, 0.45);
    }
}
.video-card.revealed {
    animation: videoCardFloat 5.2s ease-in-out infinite;
}
.video-card.revealed:nth-child(2) { animation-delay: -1.3s; }
.video-card.revealed:nth-child(3) { animation-delay: -2.6s; }
.video-card.revealed:nth-child(4) { animation-delay: -3.9s; }
.video-card.revealed:nth-child(5) { animation-delay: -0.7s; }
.video-card.revealed:nth-child(6) { animation-delay: -2s; }
.video-card:hover {
    animation: none !important;
}

/* Dashboard Cards Animation */
@keyframes dashboardCardFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 212, 255, 0.08);
    }
    50% {
        transform: translateY(-22px);
        box-shadow: 0 48px 75px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 212, 255, 0.4);
    }
}
.dashboard-card.revealed,
.dashboard-card.reveal-scale.revealed {
    animation: dashboardCardFloat 6s ease-in-out infinite;
}
.dashboard-card:hover {
    animation: none !important;
}

/* About Page Tool Boxes Animation */
@keyframes toolBoxFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 8px rgba(0, 212, 255, 0.08);
    }
    50% {
        transform: translateY(-18px);
        box-shadow: 0 34px 48px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 212, 255, 0.35);
    }
}
.tech-section > div[style*="display: flex"][style*="justify-content: center"] > div.revealed {
    animation: toolBoxFloat 4.8s ease-in-out infinite;
}
.tech-section > div[style*="display: flex"][style*="justify-content: center"] > div.revealed:nth-child(2) { animation-delay: -1s; }
.tech-section > div[style*="display: flex"][style*="justify-content: center"] > div.revealed:nth-child(3) { animation-delay: -2s; }
.tech-section > div[style*="display: flex"][style*="justify-content: center"] > div.revealed:nth-child(4) { animation-delay: -3s; }
.tech-section > div[style*="display: flex"][style*="justify-content: center"] > div.revealed:nth-child(5) { animation-delay: -4s; }
.tech-section > div[style*="display: flex"][style*="justify-content: center"] > div:hover {
    animation: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.12) !important;
}

/* ===== PAGE TRANSITION SYSTEM ===== */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Enable pointer events only during active animation to prevent clicking elements behind */
.page-transition-overlay.active {
    pointer-events: all;
}

.transition-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* --- TRANSITION 1: FADE & GLITCH --- */
.transition-fade-bg {
    position: absolute;
    inset: 0;
    background: #050508;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.transition-fade-bg.active {
    opacity: 1;
}
.transition-glitch-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    opacity: 0;
    z-index: 2;
}
.transition-glitch-bar.active {
    animation: transitionGlitchStrip 0.5s steps(3) infinite;
}
@keyframes transitionGlitchStrip {
    0% { top: 10%; opacity: 0.8; height: 3px; }
    33% { top: 60%; opacity: 0.9; height: 10px; background: var(--secondary); box-shadow: 0 0 15px var(--secondary); }
    66% { top: 30%; opacity: 0.7; height: 2px; }
    100% { top: 85%; opacity: 0.8; height: 6px; }
}

/* --- TRANSITION 2: DIGITAL PILLARS --- */
.transition-pillars-wrap {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 7;
}
.transition-pillar {
    flex: 1;
    height: 100%;
    background: #05060f;
    border-left: 1px solid rgba(0, 212, 255, 0.04);
    border-right: 1px solid rgba(0, 212, 255, 0.04);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1), background-color 0.4s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
.transition-pillar:nth-child(odd) {
    transform: translateY(-100%);
}
.transition-pillar:nth-child(even) {
    transform: translateY(100%);
}
.transition-pillar.active {
    transform: translateY(0);
    background: #080a18;
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.15);
}
.transition-pillar.exit:nth-child(odd) {
    transform: translateY(100%);
}
.transition-pillar.exit:nth-child(even) {
    transform: translateY(-100%);
}

/* --- TRANSITION 3: CYBER GATE --- */
.transition-gate-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #060814, #03040a);
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 10;
}
.transition-gate-left {
    left: 0;
    transform: translateX(-100%);
    border-right: 3px solid var(--primary);
    box-shadow: 10px 0 30px rgba(0, 212, 255, 0.2);
}
.transition-gate-right {
    right: 0;
    transform: translateX(100%);
    border-left: 3px solid var(--primary);
    box-shadow: -10px 0 30px rgba(0, 212, 255, 0.2);
}
.transition-gate-left.active,
.transition-gate-right.active {
    transform: translateX(0);
}

.transition-gate-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 5px;
    text-shadow: 0 0 20px var(--primary);
    opacity: 0;
    z-index: 11;
    transition: transform 0.5s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s 0.2s;
}
.transition-gate-logo.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* --- TRANSITION 4: SCANLINE CURTAIN --- */
.transition-curtain-fill {
    position: absolute;
    left: 0;
    width: 100%;
    background: #04050c;
    transition: height 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 8;
}
.transition-curtain-top-fill {
    top: 0;
    height: 0;
}
.transition-curtain-top-fill.active {
    height: 100%;
}
.transition-curtain-scanline {
    position: absolute;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green), 0 0 35px var(--neon-green);
    z-index: 9;
    top: 0%;
    opacity: 0;
    transition: top 0.6s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.2s;
}
.transition-curtain-scanline.active {
    top: 100%;
    opacity: 1;
}

/* For Entrance Sweeper */
.transition-curtain-bottom-fill {
    position: absolute;
    left: 0;
    width: 100%;
    background: #04050c;
    z-index: 8;
    bottom: 0;
    height: 100%;
    transition: height 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.transition-curtain-bottom-fill.active {
    height: 0;
}
.transition-curtain-scanline-up {
    position: absolute;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green), 0 0 35px var(--neon-green);
    z-index: 9;
    bottom: 100%;
    top: auto;
    opacity: 1;
    transition: bottom 0.6s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.2s;
}
.transition-curtain-scanline-up.active {
    bottom: 0%;
    opacity: 0;
}

/* --- TRANSITION 5: CONCENTRIC VORTEX --- */
.transition-vortex-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    inset: 0;
    z-index: 6;
}
.transition-vortex-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(123, 47, 255, 0.3);
    background: rgba(3, 4, 10, 0.05);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.6, -0.28, 0.735, 0.045), opacity 0.5s;
    opacity: 0;
}
.transition-vortex-ring.active {
    transform: scale(3.5);
    opacity: 1;
    background: #03040a;
}
.transition-vortex-ring-1 { width: 15vw; height: 15vw; transition-delay: 0s; z-index: 10; border-color: var(--accent); }
.transition-vortex-ring-2 { width: 30vw; height: 30vw; transition-delay: 0.1s; z-index: 9; border-color: var(--primary); }
.transition-vortex-ring-3 { width: 45vw; height: 45vw; transition-delay: 0.2s; z-index: 8; border-color: var(--secondary); }
.transition-vortex-ring-4 { width: 60vw; height: 60vw; transition-delay: 0.3s; z-index: 7; border-color: var(--neon-green); }
.transition-vortex-center {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #03040a;
    opacity: 0;
    z-index: 6;
    transition: opacity 0.4s 0.35s;
}
.transition-vortex-center.active {
    opacity: 1;
}

/* Smooth scale zoom of main page content during transition */
body.transitioning-out main,
body.transitioning-out .page-hero,
body.transitioning-out nav {
    filter: blur(5px);
    transform: scale(0.97);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s;
}
body.transitioning-in main,
body.transitioning-in .page-hero,
body.transitioning-in nav {
    animation: pageEntranceZoom 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes pageEntranceZoom {
    from {
        filter: blur(5px);
        transform: scale(1.03);
    }
    to {
        filter: blur(0);
        transform: scale(1);
    }
}