/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  JAYAPRAKASH K — AQUA FLOW STYLESHEET v6.0                         ║
   ║  "Water-inspired Apple Design — Fluid, Clean, Ethereal"            ║
   ║                                                                      ║
   ║  Systems: Water Waves • Floating Bubbles • Ripple Effects          ║
   ║  Glassmorphism • Fluid Animations • Dynamic Particles              ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

/* ========================================
   I. CUSTOM PROPERTIES - WATER THEME
   ======================================== */
:root {
    /* ── Water Depths ── */
    --water-deep: #0a1628;
    --water-abyss: #050d18;
    --water-surface: #0f2847;
    --water-shallow: #1a3a5c;
    --water-card: rgba(15, 40, 71, 0.45);

    /* ── Aqua Palette ── */
    --aqua-primary: #00d4ff;
    --aqua-secondary: #0891b2;
    --aqua-light: #67e8f9;
    --aqua-deep: #0369a1;
    --aqua-teal: #14b8a6;
    --aqua-mint: #5eead4;
    --aqua-sky: #38bdf8;
    --aqua-white: #e0f7ff;

    /* ── Water Gradients ── */
    --grad-water: linear-gradient(135deg, #00d4ff 0%, #0891b2 50%, #0369a1 100%);
    --grad-ocean: linear-gradient(180deg, #0a1628 0%, #0f2847 50%, #1a3a5c 100%);
    --grad-wave: linear-gradient(135deg, #67e8f9 0%, #00d4ff 30%, #0891b2 70%, #0369a1 100%);
    --grad-bubble: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.4) 0%, rgba(0,212,255,0.2) 40%, transparent 70%);
    --grad-surface: linear-gradient(180deg, rgba(0,212,255,0.1) 0%, transparent 100%);
    --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    --grad-frost: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(255,255,255,0.05) 100%);

    /* ── Text ── */
    --text-primary: #e0f7ff;
    --text-secondary: #94d2e8;
    --text-muted: #5a8fa8;

    /* ── Typography (Apple-like) ── */
    --font-display: 'SF Pro Display', 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'SF Pro Text', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SF Mono', 'JetBrains Mono', monospace;

    /* ── Spacing ── */
    --gap-xs: 0.5rem;
    --gap-sm: 1rem;
    --gap-md: 2rem;
    --gap-lg: 4rem;
    --gap-xl: 8rem;

    /* ── Glass Effects ── */
    --blur-glass: 30px;
    --blur-heavy: 60px;
    --border-glass: 1px solid rgba(0, 212, 255, 0.15);
    --border-frost: 1px solid rgba(255, 255, 255, 0.1);

    /* ── Apple-style Easings ── */
    --ease-apple: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-flow: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-water: cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* ── iOS-Specific Design System ── */
    --ios-radius-sm: 10px;
    --ios-radius-md: 16px;
    --ios-radius-lg: 24px;
    --ios-radius-xl: 32px;
    --ios-spacing: 16px;
    --ios-grid: 8px;
    
    /* iOS Spring Animation (Apple's signature bounce) */
    --ease-ios-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-ios-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-ios-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-ios-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* iOS Blur & Glass */
    --ios-blur-light: blur(20px);
    --ios-blur-heavy: blur(40px);
    --ios-glass-bg: rgba(255, 255, 255, 0.08);
    --ios-glass-border: rgba(255, 255, 255, 0.18);
    
    /* iOS Shadows (layered depth) */
    --ios-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --ios-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --ios-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);
    --ios-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.22);
    
    /* iOS Interactive States */
    --ios-active-scale: 0.96;
    --ios-hover-scale: 1.02;
}

/* ========================================
   II. RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--aqua-primary) var(--water-deep);
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { 
    background: var(--water-deep);
    border-radius: 3px;
}
html::-webkit-scrollbar-thumb {
    background: var(--grad-water);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--aqua-primary);
}

body {
    font-family: var(--font-body);
    background: var(--water-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    /* Safe area insets for notched devices */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
::selection { background: rgba(0, 212, 255, 0.4); color: #fff; }

/* ========================================
   III. WATER BACKGROUND SYSTEM
   ======================================== */
.aura-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(ellipse 100% 80% at 50% 120%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(20, 184, 166, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse 60% 60% at 80% 30%, rgba(103, 232, 249, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse 70% 40% at 10% 90%, rgba(56, 189, 248, 0.1) 0%, transparent 45%),
        linear-gradient(180deg, var(--water-abyss) 0%, var(--water-deep) 30%, var(--water-surface) 100%);
    animation: waterFlow 20s ease-in-out infinite;
}

@keyframes waterFlow {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 100% 0%, 0% 100%, 0% 0%;
        filter: brightness(1) saturate(1);
    }
    25% {
        background-position: 5% 5%, 5% 3%, 95% 5%, 5% 95%, 0% 0%;
        filter: brightness(1.05) saturate(1.1);
    }
    50% {
        background-position: 0% 10%, 10% 5%, 90% 10%, 10% 90%, 0% 0%;
        filter: brightness(1) saturate(1);
    }
    75% {
        background-position: -5% 5%, 5% 2%, 95% 5%, 5% 95%, 0% 0%;
        filter: brightness(1.02) saturate(1.05);
    }
}

/* ========================================
   IV. FLOATING WATER BUBBLES
   ======================================== */
.morph-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.morph-blob {
    position: absolute;
    border-radius: 50%;
    background: var(--grad-bubble);
    filter: blur(1px);
    opacity: 0.6;
    will-change: transform;
    animation: floatBubble 15s ease-in-out infinite;
    box-shadow: 
        inset 0 0 20px rgba(255,255,255,0.3),
        inset -5px -5px 15px rgba(0,212,255,0.2),
        0 0 30px rgba(0,212,255,0.1);
}

.blob-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.blob-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    animation-duration: 22s;
}

.blob-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 40%;
    animation-delay: -10s;
    animation-duration: 16s;
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(15px) scale(1.05);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) translateX(-10px) scale(0.95);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-40px) translateX(20px) scale(1.02);
        opacity: 0.65;
    }
}

/* Additional floating elements */
.morph-blobs::before,
.morph-blobs::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--grad-bubble);
    animation: floatBubble 20s ease-in-out infinite;
}

.morph-blobs::before {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 60%;
    animation-delay: -7s;
}

.morph-blobs::after {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 30%;
    animation-delay: -12s;
    opacity: 0.4;
}

/* ========================================
   VII. WATER SURFACE & CAUSTICS OVERLAY
   ======================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: 
        radial-gradient(ellipse 100% 100% at 50% 0%, rgba(0,212,255,0.03) 0%, transparent 50%);
    animation: caustics 8s ease-in-out infinite;
}

.noise-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0%,
            rgba(0,212,255,0.02) 2%,
            transparent 4%
        );
    animation: waterRipple 12s linear infinite;
}

.noise-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,212,255,0.05) 100%);
    animation: waveGlow 4s ease-in-out infinite;
}

@keyframes caustics {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

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

@keyframes waveGlow {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-10px);
    }
}

/* ========================================
   VIII. WATER WAVE ANIMATION LAYER
   ======================================== */
.water-waves {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z' fill='rgba(0,212,255,0.05)'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 100%;
    animation: waveMove 15s linear infinite;
}

.wave:nth-child(2) {
    opacity: 0.5;
    animation-duration: 20s;
    animation-delay: -5s;
    bottom: 10px;
}

.wave:nth-child(3) {
    opacity: 0.3;
    animation-duration: 25s;
    animation-delay: -10s;
    bottom: 20px;
}

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

/* ========================================
   IX. WATER RIPPLE CLICK EFFECT
   ======================================== */
.click-ripple {
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
}

.ripple-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.6);
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: waterRippleExpand 1s var(--ease-water) forwards;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.ripple-ring:nth-child(2) {
    border-color: rgba(103, 232, 249, 0.4);
    width: 180px;
    height: 180px;
    animation-delay: 0.1s;
}

.ripple-ring:nth-child(3) {
    border-color: rgba(56, 189, 248, 0.2);
    width: 240px;
    height: 240px;
    animation-delay: 0.2s;
}

@keyframes waterRippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
        border-width: 1px;
    }
}

.ripple-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--aqua-light);
    border-radius: 50%;
    animation: dropletFly 0.8s var(--ease-water) forwards;
    box-shadow: 0 0 10px var(--aqua-primary), 0 0 20px var(--aqua-light);
}

@keyframes dropletFly {
    0% {
        transform: translate(-50%, -50%) translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

/* ========================================
   XI. NAVIGATION (Frosted Glass Water)
   ======================================== */
.nav-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    padding-top: calc(1.5rem + env(safe-area-inset-top));
    padding-left: calc(3rem + env(safe-area-inset-left));
    padding-right: calc(3rem + env(safe-area-inset-right));
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10000;
    transition: all 0.5s var(--ease-apple);
}

.nav-glass.scrolled {
    padding: 1rem 3rem;
    padding-top: calc(1rem + env(safe-area-inset-top));
    background: rgba(10, 22, 40, 0.85);
    -webkit-backdrop-filter: blur(30px) saturate(1.8);
    backdrop-filter: blur(30px) saturate(1.8);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.1), 0 1px 0 rgba(255,255,255,0.05) inset;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    position: relative;
}

.logo-letter {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--grad-water);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.4s var(--ease-bounce);
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0,212,255,0.3));
}

.logo-letter:hover {
    transform: translateY(-4px) scale(1.15);
    filter: drop-shadow(0 0 20px rgba(0,212,255,0.5));
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--aqua-light);
    border-radius: 50%;
    margin-left: 4px;
    animation: bubblePulse 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(103, 232, 249, 0.6);
}

@keyframes bubblePulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
        box-shadow: 0 0 15px rgba(103, 232, 249, 0.6);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.2); 
        box-shadow: 0 0 25px rgba(103, 232, 249, 0.8), 0 0 40px rgba(0, 212, 255, 0.4);
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s var(--ease-apple);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-water);
    transition: width 0.5s var(--ease-flow);
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

.nav-link:hover, .nav-link.active {
    color: var(--aqua-light);
}

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

.nav-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 10001;
}

.toggle-line {
    width: 28px;
    height: 2px;
    background: var(--aqua-light);
    transition: all 0.4s var(--ease-flow);
    transform-origin: center;
    border-radius: 2px;
}

.nav-menu-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.nav-menu-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-menu-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   XII. WATER FULLSCREEN MENU
   ======================================== */
.dimensional-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-apple);
}

.dimensional-menu.open {
    pointer-events: all;
    opacity: 1;
}

.menu-dimension-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dimension-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s var(--ease-flow), opacity 0.8s;
}

.dimension-layer:nth-child(1) {
    background: var(--water-abyss);
    clip-path: circle(0% at 95% 5%);
}
.dimension-layer:nth-child(2) {
    background: var(--water-deep);
    clip-path: circle(0% at 95% 5%);
    transition-delay: 0.1s;
}
.dimension-layer:nth-child(3) {
    background: var(--water-surface);
    clip-path: circle(0% at 95% 5%);
    transition-delay: 0.2s;
}

.dimensional-menu.open .dimension-layer {
    clip-path: circle(150% at 95% 5%);
}

.menu-items {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dimension-link {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    transform: translateX(80px);
    opacity: 0;
    transition: all 0.6s var(--ease-flow);
}

.dimensional-menu.open .dimension-link {
    transform: translateX(0);
    opacity: 1;
}

.dimensional-menu.open .dimension-link:nth-child(1) { transition-delay: 0.4s; }
.dimensional-menu.open .dimension-link:nth-child(2) { transition-delay: 0.5s; }
.dimensional-menu.open .dimension-link:nth-child(3) { transition-delay: 0.6s; }
.dimensional-menu.open .dimension-link:nth-child(4) { transition-delay: 0.7s; }

.dim-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--aqua-primary);
    letter-spacing: 0.1em;
}

.dim-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    transition: all 0.4s var(--ease-flow);
    position: relative;
}

.dim-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: var(--grad-water);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.6s var(--ease-flow);
}

.dimension-link:hover .dim-text::before {
    clip-path: inset(0 0 0 0);
}

.dim-line {
    flex: 1;
    height: 1px;
    background: rgba(0, 212, 255, 0.2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-flow);
}

.dimension-link:hover .dim-line {
    transform: scaleX(1);
}

.menu-footer-info {
    position: absolute;
    bottom: 3rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-flow) 0.8s;
}

.dimensional-menu.open .menu-footer-info {
    opacity: 1;
    transform: translateY(0);
}

.menu-socials-row {
    display: flex;
    gap: 2rem;
}

.menu-socials-row a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    transition: color 0.3s, text-shadow 0.3s;
}

.menu-socials-row a:hover {
    color: var(--aqua-primary);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.menu-copyright {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ========================================
   XIII. SCROLL PROGRESS (Water Glow)
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10002;
    background: rgba(0, 212, 255, 0.1);
}

.scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--grad-water);
    transition: width 0.05s linear;
    box-shadow: 0 0 15px rgba(0,212,255,0.6), 0 0 40px rgba(0,212,255,0.3), 0 0 80px rgba(103,232,249,0.2);
    position: relative;
}

.scroll-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--aqua-light);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--aqua-primary), 0 0 40px rgba(0,212,255,0.5);
}

/* ========================================
   XIV. HERO SECTION (Water Theme)
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 3rem 3rem;
    z-index: 3;
    overflow: hidden;
}

.hero-depth-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.layer-1 {
    background: radial-gradient(ellipse 80% 60% at 20% 60%, rgba(0,212,255,0.1) 0%, transparent 70%);
}
.layer-2 {
    background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(20,184,166,0.08) 0%, transparent 70%);
}
.layer-3 {
    background: radial-gradient(ellipse 50% 40% at 50% 80%, rgba(103,232,249,0.05) 0%, transparent 70%);
}

.hero-content {
    flex: 1;
    max-width: none;
    width: 100%;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(20, 184, 166, 0.4);
    border-radius: 100px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-flow) 1.5s forwards;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(20, 184, 166, 0.1);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--aqua-teal);
    border-radius: 50%;
    animation: waterBadgePulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(20,184,166,0.5);
}

@keyframes waterBadgePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(20,184,166,0.5), 0 0 20px rgba(20,184,166,0.2); }
    50% { box-shadow: 0 0 20px rgba(20,184,166,0.8), 0 0 40px rgba(20,184,166,0.4); }
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--aqua-teal);
}

.hero-title {
    margin-bottom: 1.5rem;
}

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

.title-word {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--aqua-white);
    opacity: 0;
    transform: translateY(100%);
    animation: titleReveal 1s var(--ease-flow) forwards;
    white-space: nowrap;
    text-shadow: 0 0 30px rgba(0,212,255,0.5), 0 0 60px rgba(103,232,249,0.3);
}

.title-line[data-delay="0"] .title-word { animation-delay: 1.6s; }
.title-line[data-delay="1"] .title-word { animation-delay: 1.8s; }
.title-line[data-delay="1"] .title-word:nth-child(2) { animation-delay: 1.9s; }

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

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

.accent-text {
    background: var(--grad-water);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: titleReveal 1s var(--ease-flow) forwards, waterGradientFlow 4s ease-in-out infinite;
}

@keyframes waterGradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.outline-text {
    -webkit-text-stroke: 2px var(--aqua-primary);
    -webkit-text-fill-color: transparent;
    margin-left: 1rem;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-flow) 2.2s forwards;
}

.subtitle-line {
    width: 60px;
    height: 2px;
    background: var(--grad-water);
    flex-shrink: 0;
    position: relative;
    border-radius: 1px;
}

.subtitle-line::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aqua-primary);
    animation: bubblePulse 2s ease infinite;
    box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

.subtitle-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.scramble-text {
    display: inline;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.scramble-text:hover {
    color: var(--aqua-primary);
    text-shadow: 0 0 20px rgba(0,212,255,0.4);
}

.liquid-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-water);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-flow);
    border-radius: 1px;
}

.scramble-text:hover .liquid-underline {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-description {
    max-width: 520px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-flow) 2.4s forwards;
}

.hero-description p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-flow) 2.6s forwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-flow) 2.8s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--grad-water);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(0,212,255,0.5));
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
    color: var(--aqua-primary);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(0,212,255,0.6), transparent);
}

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

/* ========================================
   XV. WATER DROPLET PROFILE CARD
   ======================================== */
.profile-card-wrapper {
    position: absolute;
    right: 5%;
    top: 35%;
    transform: translateY(-50%);
    z-index: 3;
    perspective: 1500px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-flow) 2s forwards;
}

.profile-card-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, 
        rgba(0,212,255,0.4) 0%, 
        rgba(103,232,249,0.25) 25%,
        rgba(0,212,255,0.1) 50%, 
        transparent 80%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -2;
    pointer-events: none;
    box-shadow: 0 0 120px rgba(0,212,255,0.3);
}

.profile-card-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center,
        rgba(20,184,166,0.2) 0%, 
        rgba(0,212,255,0.1) 40%, 
        transparent 80%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
    box-shadow: 0 0 160px rgba(20,184,166,0.2);
}

.profile-card {
    width: 380px;
    height: 500px;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 40, 71, 0.9) 0%, rgba(15, 40, 71, 0.7) 100%);
    border: 2px solid rgba(0, 212, 255, 0.4);
    box-shadow: 
        inset -50px -50px 150px rgba(0,212,255,0.12),
        inset 30px 30px 150px rgba(103,232,249,0.08),
        0 0 40px rgba(0,212,255,0.4),
        0 0 80px rgba(0,212,255,0.25),
        0 0 120px rgba(20,184,166,0.2),
        0 0 160px rgba(0,212,255,0.15),
        0 30px 100px rgba(0,0,0,0.8),
        -20px 40px 60px rgba(0,212,255,0.1),
        20px 40px 60px rgba(20,184,166,0.08);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    transition: all 0.6s var(--ease-flow);
}

.profile-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 
        inset -50px -50px 150px rgba(0,212,255,0.18),
        inset 30px 30px 150px rgba(103,232,249,0.12),
        0 0 50px rgba(0,212,255,0.55),
        0 0 100px rgba(0,212,255,0.35),
        0 0 150px rgba(20,184,166,0.28),
        0 0 200px rgba(0,212,255,0.2),
        0 40px 120px rgba(0,0,0,0.9),
        -30px 50px 80px rgba(0,212,255,0.15),
        30px 50px 80px rgba(20,184,166,0.12);
}

.circular-card:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(0, 212, 255, 0.7);
    box-shadow: 
        inset 0 0 50px rgba(0,212,255,0.2),
        0 0 80px rgba(0,212,255,0.6),
        0 0 120px rgba(103,232,249,0.4),
        0 0 160px rgba(0,212,255,0.3),
        0 30px 100px rgba(0,0,0,0.8);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 350px 280px at -60px -60px, 
            rgba(0,212,255,0.25) 0%, 
            rgba(103,232,249,0.12) 30%,
            transparent 70%),
        radial-gradient(ellipse 400px 350px at 430px 550px, 
            rgba(20,184,166,0.2) 0%, 
            rgba(0,212,255,0.1) 40%,
            transparent 75%);
    border-radius: 32px;
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.card-border-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0,212,255,0.15) 0%, 
        rgba(103,232,249,0.08) 25%,
        transparent 50%,
        rgba(20,184,166,0.05) 75%);
    border-radius: 32px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.profile-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.profile-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1);
    transition: all 0.4s ease;
}

/* Desktop hover effects - only on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .profile-card:hover .profile-image {
        filter: brightness(1.05);
        transform: scale(1.05);
    }
}

/* Mobile touch effects - for touch devices */
@media (hover: none) and (pointer: coarse) {
    .profile-card {
        animation: mobileFloating 3s ease-in-out infinite;
    }
    
    .profile-card:active .profile-image {
        filter: brightness(1.1);
        transform: scale(0.95);
        transition: all 0.1s ease;
    }
    
    .circular-card .card-glow {
        animation: mobilePulse 2s ease-in-out infinite;
    }
}

/* ========================================
   CIRCULAR CARD VARIANT
   ======================================== */
.circular-card {
    width: 400px !important;
    height: 400px !important;
    border-radius: 50% !important;
}

.circular-card .card-glow {
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0,212,255,0.35) 0%, rgba(103,232,249,0.18) 30%, transparent 70%) !important;
}

.circular-card .card-border-shine {
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0,212,255,0.2) 0%, rgba(103,232,249,0.1) 40%, transparent 70%) !important;
}

.circular-card .profile-image-container {
    border-radius: 50%;
    overflow: hidden;
}

.circular-card .profile-image {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.holo-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,212,255,0.02) 3px, rgba(0,212,255,0.02) 6px),
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,212,255,0.02) 3px, rgba(0,212,255,0.02) 6px);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   XVI. WATER FLOW BUTTONS
   ======================================== */
.liquid-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.25rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.5s var(--ease-flow);
    z-index: 1;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.liquid-btn.primary {
    color: var(--aqua-primary);
    border: 2px solid var(--aqua-primary);
    background: rgba(0, 212, 255, 0.08);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,212,255,0.15);
}

.liquid-btn.primary .btn-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-water);
    border-radius: 100px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease-flow);
}

.liquid-btn.primary:hover .btn-fill {
    transform: scaleX(1);
    transform-origin: left;
}

.liquid-btn.primary:hover {
    color: var(--water-deep);
    box-shadow: 0 0 30px rgba(0,212,255,0.4), 0 0 60px rgba(0,212,255,0.2), 0 0 100px rgba(103,232,249,0.1);
    transform: translateY(-3px);
    border-color: var(--aqua-light);
}

.liquid-btn.secondary {
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.12);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,212,255,0.1);
}

.liquid-btn.secondary .btn-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease-flow);
}

.liquid-btn.secondary:hover .btn-fill {
    transform: scaleX(1);
    transform-origin: left;
}

.liquid-btn.secondary:hover {
    color: var(--aqua-light);
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,212,255,0.25);
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: transform 0.3s var(--ease-flow);
}

.btn-arrow {
    position: relative;
    z-index: 2;
    display: flex;
    transition: transform 0.4s var(--ease-flow);
}

.liquid-btn:hover .btn-arrow {
    transform: translate(3px, -3px);
}

.btn-arrow svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   XVII. SECTION COMMONS
   ======================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.about-section,
.featured-section,
.contact-section {
    position: relative;
    padding: 8rem 0;
    z-index: 3;
}

/* Section Reveal Wipe */
.about-section,
.featured-section,
.contact-section {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s var(--ease-flow);
}

.about-section.section-revealed,
.featured-section.section-revealed,
.contact-section.section-revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-flow);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--aqua-primary);
    letter-spacing: 0.1em;
    text-shadow: 0 0 15px rgba(0,212,255,0.4);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--aqua-white);
}

.section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,212,255,0.5), rgba(103,232,249,0.2), transparent);
    border-radius: 1px;
}

/* ========================================
   XVIII. WATER GLASS CARD (With Spotlight)
   ======================================== */
.glass-card {
    background: var(--grad-frost);
    -webkit-backdrop-filter: blur(var(--blur-glass));
    backdrop-filter: blur(var(--blur-glass));
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-flow);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Mouse spotlight effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        400px circle at var(--spotlight-x, -100px) var(--spotlight-y, -100px),
        rgba(0,212,255,0.1) 0%,
        transparent 60%
    );
    border-radius: 24px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

/* ========================================
   XIX. INTERESTS GRID
   ======================================== */
.interests-orbit {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.interest-card {
    padding: 2.5rem;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s var(--ease-flow);
}

.interest-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--aqua-primary) 0%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s;
    filter: blur(80px);
    pointer-events: none;
}

.interest-card:hover .card-glow {
    opacity: 0.2;
}

.card-icon-wrap {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--aqua-primary);
    filter: drop-shadow(0 0 10px rgba(0,212,255,0.3));
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    color: var(--aqua-white);
}

.card-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.card-border-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    pointer-events: none;
}

.card-border-anim::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: var(--grad-water);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

.interest-card:hover .card-border-anim::before {
    opacity: 0.4;
}

/* ========================================
   XX. FEATURED PROJECTS
   ======================================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.featured-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(0, 212, 255, 0.15);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s var(--ease-flow);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.featured-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Spotlight on featured items */
.featured-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        500px circle at var(--spotlight-x, -100px) var(--spotlight-y, -100px),
        rgba(0,212,255,0.12) 0%,
        transparent 50%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.featured-item:hover::after {
    opacity: 1;
}

.featured-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
    transform: translateY(-5px) scale(1);
}

.featured-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s var(--ease-flow), opacity 0.6s;
    opacity: 0.4;
}

.featured-item:hover .featured-image {
    transform: scale(1.08);
    opacity: 0.6;
}

.featured-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s var(--ease-flow);
    z-index: 1;
}

.featured-item[data-project="scannon"] .featured-gradient {
    background: linear-gradient(
        to bottom,
        rgba(0,212,255,0.1) 0%, 
        rgba(10, 22, 40, 0.7) 60%,
        rgba(10, 22, 40, 0.95) 100%
    );
}

.featured-item[data-project="hospital"] .featured-gradient {
    background: linear-gradient(
        to bottom,
        rgba(103,232,249,0.1) 0%, 
        rgba(10, 22, 40, 0.7) 60%,
        rgba(10, 22, 40, 0.95) 100%
    );
}

.featured-item[data-project="safenet"] .featured-gradient {
    background: linear-gradient(
        to bottom,
        rgba(20,184,166,0.1) 0%, 
        rgba(10, 22, 40, 0.7) 60%,
        rgba(10, 22, 40, 0.95) 100%
    );
}

.featured-item:hover .featured-gradient {
    transform: scale(1.15);
}

.featured-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.featured-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    display: block;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s, text-shadow 0.3s;
    color: var(--aqua-white);
}

.featured-item:hover .featured-title {
    color: var(--aqua-primary);
    text-shadow: 0 0 20px rgba(0,212,255,0.4);
}

.featured-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.featured-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.featured-tags span {
    padding: 0.25rem 0.6rem;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    color: var(--aqua-primary);
}

.featured-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all 0.4s var(--ease-out-expo);
    color: var(--aqua-primary);
}

.featured-item:hover .featured-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.view-all-wrap {
    text-align: center;
}

/* ========================================
   XXI. CONTACT SECTION
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-wrap {
    padding: 3rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.contact-form-wrap.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    color: #e0e7ff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.4s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(224, 231, 255, 0.5);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(224, 231, 255, 0.8);
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    font-size: 0.6rem;
    color: var(--aqua-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--aqua-primary);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-water);
    transition: width 0.6s var(--ease-out-expo);
    box-shadow: 0 0 10px rgba(0,212,255,0.3);
}

.form-group input:focus ~ .input-glow,
.form-group textarea:focus ~ .input-glow {
    width: 100%;
}

.submit-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.info-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--aqua-primary);
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-details h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.info-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-cards {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.social-cards.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-card {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
}

.social-card svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: color 0.3s, filter 0.3s;
}

.social-card span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.social-card:hover svg {
    color: var(--aqua-primary);
    filter: drop-shadow(0 0 8px rgba(0,212,255,0.4));
}

.social-card:hover {
    border-color: rgba(0,212,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,212,255,0.1);
}

/* ========================================
   XXII. FOOTER
   ======================================== */
.cosmic-footer {
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(0,212,255,0.1);
    padding: 3rem;
    padding-bottom: calc(3rem + env(safe-area-inset-bottom));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--grad-water);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--aqua-primary);
    transition: width 0.3s;
}

.footer-links a:hover {
    color: var(--aqua-primary);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ========================================
   XXIII. PAGE SPECIFIC — PROJECTS
   ======================================== */
.page-hero {
    padding: 10rem 3rem 4rem;
    position: relative;
    z-index: 3;
}

.page-hero .section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    max-width: 500px;
}

.projects-grid {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    border-radius: 24px;
    background: var(--grad-glass);
    -webkit-backdrop-filter: blur(var(--blur-glass));
    backdrop-filter: blur(var(--blur-glass));
    border: var(--border-glass);
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    transition: all 0.8s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

/* Spotlight on project cards */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--spotlight-x, -100px) var(--spotlight-y, -100px),
        rgba(0,212,255,0.06) 0%,
        transparent 50%
    );
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even) > * {
    direction: ltr;
}

.project-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    z-index: 1;
    border: 1px solid rgba(0,212,255,0.3);
    box-shadow: 0 0 30px rgba(0,212,255,0.2), 0 0 60px rgba(20,184,166,0.1), inset 0 0 30px rgba(0,212,255,0.05);
    transition: all 0.6s var(--ease-out-expo);
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.project-card:hover .project-visual img {
    transform: scale(1.1);
}

.project-card:hover .project-visual {
    box-shadow: 0 0 50px rgba(0,212,255,0.4), 0 0 100px rgba(20,184,166,0.2), inset 0 0 30px rgba(0,212,255,0.1);
}

.project-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(20,184,166,0.1), transparent);
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1;
}

.project-info .project-num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    background: var(--grad-water);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.25;
    line-height: 1;
}

.project-info .project-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.project-info .project-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.project-info .project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-info .project-tags span {
    padding: 0.3rem 0.8rem;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    color: var(--aqua-primary);
}

.project-info .project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(0,212,255,0.25);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--aqua-primary);
    transition: all 0.4s var(--ease-out-expo);
    width: fit-content;
}

.project-info .project-link:hover {
    background: rgba(0,212,255,0.1);
    border-color: var(--aqua-primary);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0,212,255,0.15);
}

.project-info .project-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.project-info .project-link:hover svg {
    transform: translate(3px, -3px);
}

/* ========================================
   XXIV. PAGE SPECIFIC — SKILLS
   ======================================== */
.skills-showcase {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem 6rem;
}

.skill-category-block {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s var(--ease-out-expo);
}

.skill-category-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-cat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 12px;
    color: var(--aqua-primary);
    transition: all 0.3s;
}

.skill-cat-icon:hover {
    box-shadow: 0 0 20px rgba(0,212,255,0.2);
    transform: rotate(5deg);
}

.skill-cat-icon svg {
    width: 24px;
    height: 24px;
}

.skill-cat-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.skills-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 3rem;
}

.skill-bar-item {
    position: relative;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-bar-name {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.skill-bar-pct {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--aqua-primary);
}

.skill-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.04);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--grad-water);
    border-radius: 2px;
    width: 0%;
    transition: width 1.5s var(--ease-out-expo);
    box-shadow: 0 0 10px rgba(0,212,255,0.3);
}

/* ========================================
   XXV. PAGE SPECIFIC — EDUCATION
   ======================================== */
.edu-timeline {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3rem 6rem;
}

.edu-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--aqua-primary), rgba(20,184,166,0.2), rgba(0,212,255,0.05));
    transform: translateX(-50%);
}

.edu-item {
    display: flex;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s var(--ease-out-expo);
}

.edu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.edu-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.edu-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--water-deep);
    border: 2px solid var(--aqua-primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0,212,255,0.4), 0 0 40px rgba(0,212,255,0.1);
    animation: markerPulse 3s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.4); }
    50% { box-shadow: 0 0 30px rgba(0,212,255,0.6), 0 0 60px rgba(0,212,255,0.2); }
}

.edu-content {
    flex: 1;
    padding: 2rem;
    background: var(--grad-glass);
    -webkit-backdrop-filter: blur(var(--blur-glass));
    backdrop-filter: blur(var(--blur-glass));
    border: var(--border-glass);
    border-radius: 20px;
    transition: all 0.4s;
}

.edu-content:hover {
    border-color: rgba(0,212,255,0.15);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.edu-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--aqua-primary);
    margin-bottom: 0.5rem;
}

.edu-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.edu-institution {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.edu-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.edu-desc ul {
    list-style: none;
    margin-top: 0.75rem;
}

.edu-desc ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.edu-desc ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--aqua-primary);
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 3rem 6rem;
}

.cert-card-item {
    padding: 2rem;
    background: var(--grad-glass);
    -webkit-backdrop-filter: blur(var(--blur-glass));
    backdrop-filter: blur(var(--blur-glass));
    border: var(--border-glass);
    border-radius: 16px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s var(--ease-out-expo);
}

.cert-card-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cert-card-item:hover {
    border-color: rgba(0,212,255,0.2);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,212,255,0.1);
}

.cert-icon-wrap {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: rgba(0,212,255,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aqua-primary);
}

.cert-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.cert-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cert-card-provider {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ========================================
   XXVI. THANK YOU PAGE
   ======================================== */
.thankyou-section {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
}

.thankyou-content {
    max-width: 600px;
}

.thankyou-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatUp 0.8s var(--ease-out-expo), iconPulse 3s ease-in-out infinite 0.8s;
}

.thankyou-icon svg {
    width: 40px;
    height: 40px;
    color: var(--aqua-teal);
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(16,185,129,0.2); }
    50% { box-shadow: 0 0 40px rgba(16,185,129,0.3), 0 0 80px rgba(16,185,129,0.1); }
}

.thankyou-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--grad-water);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thankyou-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

@keyframes floatUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   XXVII. RESPONSIVE - ALL DEVICES
   ======================================== */

/* ── Large Desktops (1440px+) ── */
@media only screen and (min-width: 1440px) {
    .section-container { max-width: 1400px; }
    .hero { padding: 12rem 4rem 6rem; }
    .hero-title .title-word { font-size: clamp(3rem, 5vw, 5rem); }
    .featured-grid { grid-template-columns: repeat(3, 1fr); }
    .interests-orbit { grid-template-columns: repeat(4, 1fr); }
    .projects-grid { max-width: 1400px; }
    .skills-bars { grid-template-columns: repeat(3, 1fr); }
}

/* ── Standard Laptops (1200px - 1440px) ── */
@media only screen and (max-width: 1440px) and (min-width: 1200px) {
    .section-container { max-width: 1200px; padding: 0 2rem; }
    .hero { padding: 10rem 3rem 5rem; }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .interests-orbit { grid-template-columns: repeat(3, 1fr); }
}

/* ── Small Laptops & Tablets Landscape (1024px - 1200px) ── */
@media only screen and (max-width: 1200px) and (min-width: 1024px) {
    .section-container { max-width: 1000px; padding: 0 2rem; }
    .hero { padding: 9rem 2.5rem 4rem; }
    .hero-title .title-word { font-size: clamp(2rem, 4vw, 3.5rem); }
    .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .profile-card { width: 360px; height: 480px; }
    .interests-orbit { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ── Tablets Portrait (768px - 1024px) ── */
@media only screen and (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 8rem 2rem 4rem;
        gap: 2rem;
    }
    
    .hero-content { 
        max-width: 100%; 
        align-items: center;
    }
    .hero-subtitle { justify-content: center; }
    .hero-description { 
        margin-left: auto; 
        margin-right: auto; 
        max-width: 600px;
    }
    .hero-cta { justify-content: center; flex-wrap: wrap; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .hero-title .title-word { font-size: clamp(2rem, 6vw, 3rem); }
    
    .holo-card-wrapper {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 2rem;
        display: flex;
        justify-content: center;
    }
    .profile-card { width: 340px; height: 450px; }
    
    .section-title { font-size: clamp(2rem, 5vw, 3rem); }
    .featured-grid { grid-template-columns: 1fr; gap: 2rem; }
    .featured-item { padding: 2rem; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form-wrap { padding: 2rem; }
    
    .project-card { 
        grid-template-columns: 1fr; 
        padding: 2rem;
        gap: 2rem;
    }
    .project-card:nth-child(even) { direction: ltr; }
    .project-visual { aspect-ratio: 16/9; }
    .project-info .project-num { font-size: 3rem; }
    .project-info .project-name { font-size: 1.5rem; }
    
    .skills-bars { grid-template-columns: 1fr; gap: 1.5rem; }
    .skill-category-block { margin-bottom: 3rem; }
    
    .edu-timeline::before { left: 20px; }
    .edu-item { 
        flex-direction: column !important; 
        padding-left: 50px; 
        text-align: left !important;
        gap: 0;
    }
    .edu-marker { left: 20px; }
    .edu-content { margin-left: 0; }
    
    .interests-orbit { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem;
    }
    
    .glass-card { padding: 2rem; }
}

/* ── Large Phones & Small Tablets (576px - 768px) ── */
@media only screen and (max-width: 768px) {
    /* Navigation */
    .nav-links { display: none; }
    .nav-menu-toggle { display: flex; }
    .nav-glass { padding: 1rem 1.5rem; }
    .nav-logo { transform: scale(0.9); }
    
    /* Hero - MAJOR MOBILE FIX */
    .hero { 
        flex-direction: column;
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
        gap: 2rem;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
        order: 2;
    }
    
    .profile-card-wrapper {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        order: 1;
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .hero-title .title-word { 
        font-size: clamp(1.8rem, 8vw, 2.5rem); 
        white-space: normal; 
    }
    
    .hero-subtitle {
        justify-content: center;
    }
    
    .hero-description { 
        font-size: 0.95rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats { 
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stat-value { font-size: 1.8rem; }
    
    /* Sections */
    .section-container { padding: 0 1.5rem; }
    .section-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .section-subtitle { font-size: 0.7rem; }
    
    .section-header {
        text-align: center;
    }
    
    /* Cards & Components */
    .profile-card { width: 280px; height: 280px; }
    .profile-card-content { padding: 0; }
    .profile-image { 
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .profile-image-container {
        width: 100%;
        height: 100%;
    }
    
    .interests-orbit { grid-template-columns: 1fr; gap: 1rem; }
    .interest-card { padding: 1.5rem; }
    
    .glass-card { padding: 1.5rem; border-radius: 16px; }
    
    .featured-item { padding: 1.5rem; border-radius: 16px; }
    .featured-title { font-size: 1.1rem; }
    
    .social-cards { flex-direction: column; gap: 1rem; }
    .social-card { padding: 1.25rem; }
    
    /* Projects */
    .projects-grid { padding: 0 1.5rem 4rem; gap: 2rem; }
    .project-card { padding: 1.5rem; gap: 1.5rem; border-radius: 16px; }
    .project-visual { aspect-ratio: 16/9; border-radius: 12px; }
    .project-info .project-num { font-size: 2.5rem; }
    .project-info .project-name { font-size: 1.3rem; }
    .project-info .project-desc { font-size: 0.9rem; }
    
    /* Skills */
    .skills-showcase { padding: 0 1.5rem 4rem; }
    .skill-cat-header { gap: 0.75rem; }
    .skill-cat-icon { width: 40px; height: 40px; }
    .skill-cat-name { font-size: 1.1rem; }
    
    /* Education */
    .edu-timeline { padding: 0 1.5rem 4rem; }
    .edu-content { padding: 1.5rem; border-radius: 16px; }
    .edu-title { font-size: 1.1rem; }
    
    /* Certifications */
    .cert-grid { 
        padding: 0 1.5rem 4rem; 
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .cert-card-item { padding: 1.5rem; }
    
    /* Footer */
    .cosmic-footer { padding: 2rem 1.5rem; }
    .footer-content { 
        flex-direction: column; 
        text-align: center;
        gap: 1.5rem;
    }
    .footer-links { 
        justify-content: center; 
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .footer-name { font-size: 1rem; }
    
    /* Page Hero */
    .page-hero { padding: 7rem 1.5rem 3rem; }
    .page-hero-title { font-size: clamp(2rem, 7vw, 3rem); }
    
    /* Background effects */
    .morph-blob { filter: blur(60px); opacity: 0.08; }
    #trail-canvas { display: none; }
    
    /* Contact */
    .contact-form-wrap { padding: 1.5rem; }
    .info-card { padding: 1.25rem; gap: 1rem; }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Standard Phones (480px - 576px) ── */
@media only screen and (max-width: 576px) {
    .hero { 
        padding: 5.5rem 1.25rem 2.5rem; 
        gap: 1.5rem;
    }
    
    .profile-card-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .profile-card { width: 240px; height: 240px; }
    .profile-card-content { padding: 0; }
    .profile-image { 
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .profile-image-container { width: 100%; height: 100%; }
    
    .hero-title .title-word { 
        font-size: clamp(1.5rem, 9vw, 2rem); 
    }
    
    .hero-subtitle { 
        font-size: 0.65rem; 
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .subtitle-line {
        width: 40px;
    }
    
    .hero-description { 
        font-size: 0.9rem; 
        line-height: 1.6;
        padding: 0;
    }
    
    .hero-stats { 
        flex-direction: column; 
        gap: 1.25rem;
        align-items: center;
    }
    .stat-divider { width: 40px; height: 1px; }
    .stat-value { font-size: 1.6rem; }
    .stat-label { font-size: 0.6rem; }
    
    .hero-cta { 
        flex-direction: column; 
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    .btn-primary, .btn-secondary { 
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .section-container { padding: 0 1rem; }
    .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
    
    .glass-card { padding: 1.25rem; }
    .featured-item { padding: 1.25rem; }
    .interest-card { padding: 1.25rem; }
    
    .project-card { padding: 1.25rem; }
    .project-info .project-tags { gap: 0.4rem; }
    .project-info .project-tags span { 
        font-size: 0.55rem; 
        padding: 0.25rem 0.6rem;
    }
    
    .page-hero { padding: 6rem 1rem 2rem; }
    .page-hero-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    .page-hero-subtitle { font-size: 0.7rem; }
    
    .contact-form-wrap { padding: 1.25rem; }
    .form-group input, .form-group textarea { font-size: 0.9rem; }
}

/* ── Small Phones (320px - 480px) ── */
@media only screen and (max-width: 480px) {
    html { font-size: 14px; }
    
    .nav-glass { padding: 0.875rem 1rem; }
    .nav-logo { transform: scale(0.85); }
    
    .hero { 
        padding: 5rem 1rem 2rem;
        gap: 1rem;
    }
    
    .profile-card { width: 220px; height: 220px; }
    .profile-card-content { padding: 0; }
    .profile-image { 
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .hero-badge {
        padding: 0.4rem 1rem;
    }
    
    .badge-text {
        font-size: 0.55rem;
    }
    
    .hero-title .title-word { 
        font-size: clamp(1.3rem, 10vw, 1.8rem);
        letter-spacing: -0.02em;
    }
    
    .hero-subtitle { 
        font-size: 0.6rem;
        gap: 0.75rem;
    }
    
    .subtitle-line {
        width: 30px;
    }
    
    .hero-description { 
        font-size: 0.85rem; 
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        margin-bottom: 2rem;
    }
    
    .section-title { font-size: clamp(1.3rem, 8vw, 1.8rem); }
    .section-subtitle { font-size: 0.6rem; letter-spacing: 0.15em; }
    
    .glass-card { padding: 1rem; border-radius: 12px; }
    .featured-item { padding: 1rem; border-radius: 12px; }
    .featured-title { font-size: 1rem; }
    .featured-desc { font-size: 0.8rem; }
    .featured-tags span { font-size: 0.55rem; }
    
    .interest-card { padding: 1rem; }
    .interest-card h3 { font-size: 0.85rem; }
    
    .project-card { padding: 1rem; border-radius: 12px; }
    .project-info .project-num { font-size: 2rem; }
    .project-info .project-name { font-size: 1.1rem; }
    .project-info .project-desc { font-size: 0.85rem; }
    .project-info .project-link { 
        padding: 0.6rem 1rem; 
        font-size: 0.65rem;
    }
    
    .edu-content { padding: 1rem; }
    .edu-title { font-size: 1rem; }
    .edu-desc { font-size: 0.85rem; }
    
    .cert-card-item { padding: 1rem; }
    .cert-card-title { font-size: 0.9rem; }
    
    .cosmic-footer { padding: 1.5rem 1rem; }
    .footer-links { gap: 1rem; }
    .footer-links a { font-size: 0.65rem; }
    
    .page-hero { padding: 5.5rem 1rem 1.5rem; }
    
    .thankyou-section { padding: 2rem 1rem; }
    .thankyou-icon { width: 70px; height: 70px; }
    .thankyou-title { font-size: clamp(1.5rem, 7vw, 2.5rem); }
    .thankyou-text { font-size: 0.9rem; }
    
    /* Reduce animations for performance */
    .morph-blob { 
        filter: blur(50px); 
        opacity: 0.06;
        animation-duration: 30s;
    }
}

/* ── Very Small Phones (< 320px) ── */
@media only screen and (max-width: 320px) {
    html { font-size: 13px; }
    
    .hero { 
        padding: 4.5rem 0.75rem 1.5rem;
        gap: 1rem;
    }
    
    .hero-title .title-word { font-size: 1.2rem; }
    
    .profile-card { width: 200px; height: 200px; }
    .profile-image { 
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .section-container { padding: 0 0.75rem; }
    
    .btn-primary, .btn-secondary { 
        padding: 0.75rem 1.25rem;
        font-size: 0.65rem;
    }
}

/* ── Landscape Mode Adjustments ── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { 
        padding: 5rem 2rem 2rem;
        min-height: 0;
    }
    .hero-title .title-word { font-size: clamp(1.5rem, 5vw, 2rem); }
    .profile-card-wrapper { display: none; }
    .hero-stats { flex-direction: row; }
    
    .fullscreen-menu { 
        padding-top: 4rem;
        overflow-y: auto;
    }
    .menu-links { gap: 0.5rem; }
    .menu-link { font-size: 1.5rem; }
}

/* ── High DPI / Retina Displays ── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image { image-rendering: -webkit-optimize-contrast; }
    .project-visual img { image-rendering: -webkit-optimize-contrast; }
}

/* ── Reduced Motion Preference ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .morph-blob { animation: none; }
    html { scroll-behavior: auto; }
}

/* ── Touch Device Optimizations ── */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .featured-item:hover,
    .interest-card:hover,
    .project-card:hover,
    .social-card:hover {
        transform: none;
    }
    
    .featured-arrow { opacity: 1; transform: translate(0, 0); }
    
    /* Increase touch targets */
    .nav-menu-toggle { 
        width: 48px; 
        height: 48px;
    }
    .footer-links a { padding: 0.5rem; }
}

/* ========================================
   XXVIII. BUBBLE POP GAME - PROFESSIONAL
   ======================================== */

/* ── Game Trigger Button ── */
.game-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(0,212,255,0.25) 0%, rgba(20,184,166,0.2) 100%);
    border: 2px solid rgba(0,212,255,0.4);
    color: var(--aqua-primary);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-apple);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow:
        0 4px 25px rgba(0,212,255,0.3),
        inset 0 0 20px rgba(0,212,255,0.1);
    animation: triggerPulse 3s ease-in-out infinite;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.game-trigger::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, var(--aqua-primary) 50%, transparent 100%);
    opacity: 0;
    animation: triggerRotate 4s linear infinite;
    transition: opacity 0.3s;
}

.game-trigger:hover::before,
.game-trigger:active::before {
    opacity: 0.5;
}

.game-trigger:hover {
    transform: scale(1.15);
    box-shadow: 
        0 8px 40px rgba(0,212,255,0.5),
        inset 0 0 30px rgba(0,212,255,0.2);
    border-color: var(--aqua-primary);
}

.game-trigger:active {
    transform: scale(0.95);
}

.game-trigger svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
}

@keyframes triggerPulse {
    0%, 100% { 
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 25px rgba(0,212,255,0.3), inset 0 0 20px rgba(0,212,255,0.1);
    }
    50% { 
        transform: translateY(-6px) scale(1.05);
        box-shadow: 0 12px 35px rgba(0,212,255,0.4), inset 0 0 25px rgba(0,212,255,0.15);
    }
}

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

/* ── Game Container ── */
.bubble-game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: linear-gradient(180deg, 
        #020810 0%,
        #051525 20%,
        #0a2a45 40%,
        #0d3b5c 60%,
        #0f4a6e 80%,
        #105a80 100%
    );
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s var(--ease-apple);
    overflow: hidden;
}

.bubble-game::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0,212,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 30%, rgba(6,182,212,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(20,184,166,0.06) 0%, transparent 40%);
    pointer-events: none;
}

.bubble-game.active {
    display: flex;
    opacity: 1;
}

/* ── Game Header ── */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
    border-bottom: 1px solid rgba(0,212,255,0.15);
    position: relative;
    z-index: 5;
}

.game-score, .game-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 80px;
}

.score-label, .timer-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

.score-value, .timer-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #06b6d4 50%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.15s ease;
}

.score-value.score-pop {
    animation: scorePop 0.2s ease;
}

@keyframes scorePop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.timer-value {
    min-width: 60px;
    text-align: center;
}

.timer-value.urgent {
    -webkit-text-fill-color: #ffa500;
    animation: timerPulse 0.5s ease-in-out infinite;
}

.timer-value.critical {
    -webkit-text-fill-color: #ff4444;
    animation: timerPulse 0.25s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.game-close {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-apple);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.game-close:hover, .game-close:active {
    background: rgba(255,100,100,0.2);
    border-color: rgba(255,100,100,0.5);
    color: #ff6b6b;
    transform: rotate(90deg);
}

.game-close svg {
    width: 22px;
    height: 22px;
}

/* ── Game Arena ── */
.game-arena {
    flex: 1;
    position: relative;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Underwater light rays */
.game-arena::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 200%;
    height: 100%;
    transform: translateX(-50%);
    background: 
        linear-gradient(180deg, rgba(0,212,255,0.03) 0%, transparent 40%),
        repeating-linear-gradient(
            90deg,
            transparent 0%,
            rgba(0,212,255,0.02) 2%,
            transparent 4%
        );
    pointer-events: none;
    animation: lightRays 10s ease-in-out infinite alternate;
}

@keyframes lightRays {
    0% { transform: translateX(-50%) skewX(-5deg); }
    100% { transform: translateX(-50%) skewX(5deg); }
}

/* ── Bubbles ── */
.game-bubble {
    position: absolute;
    border-radius: 50%;
    cursor: crosshair;
    pointer-events: auto;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
    transition: filter 0.1s ease, transform 0.1s ease;
}

/* Normal bubble */
.game-bubble.bubble-normal {
    background: 
        radial-gradient(ellipse 60% 50% at 25% 25%, rgba(255,255,255,0.6) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(0,212,255,0.3) 0%, rgba(6,182,212,0.2) 50%, rgba(20,184,166,0.1) 100%);
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow: 
        0 0 30px rgba(0,212,255,0.25),
        inset 0 -15px 40px rgba(0,100,150,0.15),
        inset 0 15px 40px rgba(255,255,255,0.15);
}

.game-bubble.bubble-normal::before {
    content: '';
    position: absolute;
    top: 12%;
    left: 18%;
    width: 35%;
    height: 25%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.9) 0%, transparent 70%);
    border-radius: 50%;
    transform: rotate(-15deg);
}

.game-bubble.bubble-normal::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 20%;
    width: 12%;
    height: 12%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
}

/* Golden bubble */
.game-bubble.bubble-golden {
    background: 
        radial-gradient(ellipse 60% 50% at 25% 25%, rgba(255,255,255,0.7) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(255,215,0,0.5) 0%, rgba(255,183,0,0.4) 50%, rgba(255,165,0,0.3) 100%);
    border: 2px solid rgba(255,223,100,0.6);
    box-shadow: 
        0 0 40px rgba(255,200,0,0.4),
        0 0 80px rgba(255,200,0,0.2),
        inset 0 -15px 40px rgba(200,150,0,0.2),
        inset 0 15px 40px rgba(255,255,200,0.2);
    animation: goldenGlow 1s ease-in-out infinite alternate;
}

.game-bubble.bubble-golden::before {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: calc(var(--size, 60px) * 0.35);
    color: rgba(255,255,255,0.8);
    text-shadow: 0 0 10px rgba(255,200,0,0.8);
}

@keyframes goldenGlow {
    0% { box-shadow: 0 0 40px rgba(255,200,0,0.4), 0 0 80px rgba(255,200,0,0.2); }
    100% { box-shadow: 0 0 60px rgba(255,200,0,0.6), 0 0 100px rgba(255,200,0,0.3); }
}

/* Rainbow bubble */
.game-bubble.bubble-rainbow {
    background: 
        radial-gradient(ellipse 60% 50% at 25% 25%, rgba(255,255,255,0.7) 0%, transparent 50%),
        conic-gradient(from 0deg at 50% 50%, 
            rgba(255,0,128,0.4) 0deg,
            rgba(255,140,0,0.4) 60deg,
            rgba(255,239,0,0.4) 120deg,
            rgba(0,255,0,0.4) 180deg,
            rgba(0,191,255,0.4) 240deg,
            rgba(139,0,255,0.4) 300deg,
            rgba(255,0,128,0.4) 360deg
        );
    border: 3px solid rgba(255,255,255,0.5);
    box-shadow: 
        0 0 50px rgba(255,100,200,0.4),
        0 0 100px rgba(100,200,255,0.3);
    animation: rainbowRotate 2s linear infinite;
}

.game-bubble.bubble-rainbow::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: calc(var(--size, 60px) * 0.4);
    color: white;
    text-shadow: 
        0 0 10px #ff0080,
        0 0 20px #00bfff,
        0 0 30px #ffef00;
    animation: rainbowSpin 1s linear infinite reverse;
}

@keyframes rainbowRotate {
    to { filter: hue-rotate(360deg); }
}

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

/* Bubble hover/active states - ENHANCED FOR HOVER MODE */
.game-bubble:hover {
    filter: brightness(1.4) drop-shadow(0 0 20px currentColor);
    transform: scale(1.1) !important;
    transition: all 0.1s ease-out;
}

.game-bubble:active {
    filter: brightness(1.5);
    transform: scale(0.95) !important;
}

.game-bubble.popped {
    pointer-events: none !important;
    filter: brightness(2);
}

/* ── Pop Score Popup ── */
.pop-score {
    position: absolute;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-shadow: 
        0 0 10px var(--aqua-primary),
        0 0 20px var(--aqua-primary),
        0 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 100;
    transform: translate(-50%, -50%);
    opacity: 0;
    white-space: nowrap;
}

.pop-score.animate {
    animation: scoreFloat 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pop-score .combo-text {
    font-size: 0.7em;
    margin-left: 0.3em;
    color: #ffd700;
    text-shadow: 0 0 10px #ffa500;
}

.pop-score.combo-2 { font-size: 2rem; }
.pop-score.combo-3 { font-size: 2.2rem; color: #00ff88; }
.pop-score.combo-4 { font-size: 2.4rem; color: #ffcc00; }
.pop-score.combo-5 { font-size: 2.8rem; color: #ff6600; animation-name: scoreFloatBig; }

@keyframes scoreFloat {
    0% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(0.5); 
    }
    20% { 
        transform: translate(-50%, -70%) scale(1.2); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -150%) scale(1); 
    }
}

@keyframes scoreFloatBig {
    0% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(0.5) rotate(-10deg); 
    }
    20% { 
        transform: translate(-50%, -70%) scale(1.4) rotate(5deg); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -180%) scale(1.2) rotate(0deg); 
    }
}

/* ── Pop Particles ── */
.pop-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99;
    transform: translate(-50%, -50%);
    opacity: 1;
}

.pop-particle.animate {
    animation: particleBurst 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes particleBurst {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0) rotate(var(--rotate, 360deg));
        opacity: 0;
    }
}

/* ── Pop Ring Effect ── */
.pop-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 98;
    transform: translate(-50%, -50%) scale(0);
    animation: ringExpand 0.5s ease-out forwards;
}

.pop-ring-golden {
    border: 3px solid rgba(255,200,0,0.8);
    box-shadow: 0 0 20px rgba(255,200,0,0.5);
}

.pop-ring-rainbow {
    border: 4px solid;
    border-image: conic-gradient(#ff0080, #ff8c00, #ffef00, #00ff00, #00bfff, #8b00ff, #ff0080) 1;
    border-radius: 50%;
}

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

/* ── Confetti ── */
.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    background: hsl(var(--hue, 200), 80%, 60%);
    border-radius: 2px;
    bottom: 100%;
    pointer-events: none;
    z-index: 101;
    animation: confettiFall var(--duration, 2.5s) var(--delay, 0s) ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(var(--drift, 0px)) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

/* ── New Record Banner ── */
.new-record-banner {
    background: linear-gradient(90deg, transparent, rgba(255,200,0,0.3), transparent);
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    animation: bannerPulse 0.5s ease-in-out infinite alternate;
}

.new-record-banner span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255,200,0,0.8);
}

@keyframes bannerPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

/* ── Game Overlay ── */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2,8,16,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.game-overlay.hidden {
    display: none;
}

.game-message {
    text-align: center;
    padding: 3rem;
    max-width: 420px;
}

.game-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff 0%, #14b8a6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: none;
    animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.game-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.game-final-score {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: var(--aqua-light);
    margin-bottom: 2rem;
    display: none;
    text-shadow: 0 0 15px rgba(0,212,255,0.5);
}

.game-final-score.show {
    display: block;
    animation: scoreReveal 0.5s ease-out;
}

@keyframes scoreReveal {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media only screen and (min-width: 480px) {
    .game-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

.game-start-btn,
.game-exit-btn {
    padding: 1.2rem 3rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s var(--ease-apple);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.game-start-btn {
    color: #020810;
    background: linear-gradient(135deg, #00d4ff 0%, #14b8a6 100%);
    box-shadow: 
        0 4px 25px rgba(0,212,255,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.game-exit-btn {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: none; /* Hidden initially, shown after game ends */
}

.game-start-btn::before,
.game-exit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.game-start-btn:hover::before,
.game-exit-btn:hover::before {
    left: 100%;
}

.game-start-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0,212,255,0.5),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.game-exit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255,100,100,0.15);
    border-color: rgba(255,100,100,0.4);
    color: #ff6b6b;
    box-shadow: 0 12px 30px rgba(255,100,100,0.2);
}

.game-start-btn:active,
.game-exit-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ── Game Responsive Styles ── */
@media only screen and (max-width: 768px) {
    .game-trigger {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 54px;
        height: 54px;
    }
    
    .game-trigger svg {
        width: 26px;
        height: 26px;
    }
    
    .game-header {
        padding: 1rem 1.5rem;
    }
    
    .game-score, .game-timer {
        min-width: 70px;
    }
    
    .score-value, .timer-value {
        font-size: 2rem;
    }
    
    .game-close {
        width: 44px;
        height: 44px;
    }
    
    .game-message {
        padding: 2rem;
    }
    
    .game-title {
        font-size: 2.5rem;
    }
    
    .game-desc {
        font-size: 1rem;
    }
    
    .pop-score {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 480px) {
    .game-trigger {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .game-trigger svg {
        width: 22px;
        height: 22px;
    }
    
    .game-header {
        padding: 0.8rem 1rem;
    }
    
    .score-value, .timer-value {
        font-size: 1.6rem;
    }
    
    .score-label, .timer-label {
        font-size: 0.5rem;
    }
    
    .game-close {
        width: 40px;
        height: 40px;
    }
    
    .game-close svg {
        width: 18px;
        height: 18px;
    }
    
    .game-message {
        padding: 1.5rem;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .game-start-btn {
        padding: 1rem 2rem;
        font-size: 0.8rem;
    }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    .game-header {
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }
}

/* ========================================
   XXIX. ADVANCED SCROLL ANIMATIONS
   ======================================== */

/* ── Smooth Scroll Override ── */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ── Animation Base Classes ── */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
}

.animate-on-scroll.animated {
    opacity: 1;
}

/* ── Fade In ── */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}

.fade-in.animated {
    opacity: 1;
}

/* ── Fade In Up ── */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ── Fade In Down ── */
.fade-in-down {
    opacity: 0;
    transform: translateY(-60px);
    transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}

.fade-in-down.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ── Fade In Left ── */
.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}

.fade-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* ── Fade In Right ── */
.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}

.fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* ── Scale In ── */
.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}

.scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

/* ── Scale In Up ── */
.scale-in-up {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}

.scale-in-up.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Rotate In ── */
.rotate-in {
    opacity: 0;
    transform: rotate(-15deg) scale(0.9);
    transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
}

.rotate-in.animated {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ── Blur In ── */
.blur-in {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.8s var(--ease-apple), filter 0.8s var(--ease-apple);
}

.blur-in.animated {
    opacity: 1;
    filter: blur(0);
}

/* ── Slide In Bounce ── */
.slide-in-bounce {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.slide-in-bounce.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ── Stagger Animation Delays ── */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }
.stagger-9 { transition-delay: 0.9s; }
.stagger-10 { transition-delay: 1s; }

/* ── Parallax Elements ── */
.parallax {
    will-change: transform;
    transition: transform 0.1s linear;
}

.parallax-slow {
    will-change: transform;
}

.parallax-fast {
    will-change: transform;
}

/* ── 3D Tilt Effect ── */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s var(--ease-apple);
    will-change: transform;
}

.tilt-card:hover {
    transform: perspective(1000px);
}

/* ── Magnetic Effect ── */
.magnetic {
    position: relative;
    transition: transform 0.3s var(--ease-apple);
    will-change: transform;
}

/* ── Custom Cursor ── */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--aqua-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.2s var(--ease-apple), opacity 0.3s;
    opacity: 0;
    mix-blend-mode: difference;
    will-change: transform;
}

.custom-cursor.visible {
    opacity: 1;
}

.custom-cursor.hover {
    transform: scale(2);
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--aqua-light);
}

.custom-cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--aqua-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.15s ease-out, opacity 0.3s;
    opacity: 0;
    mix-blend-mode: screen;
    will-change: transform;
}

.custom-cursor-follower.visible {
    opacity: 0.8;
}

/* ── Text Split Animations ── */
.split-text {
    overflow: hidden;
}

.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s var(--ease-apple), transform 0.4s var(--ease-apple);
}

.split-text.animated .char {
    opacity: 1;
    transform: translateY(0);
}

.split-text .word {
    display: inline-block;
    white-space: nowrap;
}

/* ── Gradient Animation ── */
.gradient-animate {
    background: linear-gradient(
        90deg,
        var(--aqua-primary) 0%,
        var(--aqua-light) 25%,
        var(--aqua-secondary) 50%,
        var(--aqua-light) 75%,
        var(--aqua-primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    to {
        background-position: 200% center;
    }
}

/* ── Floating Animation ── */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* ── Pulse Glow Animation ── */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

/* ── Reveal Animation ── */
.reveal-element {
    position: relative;
    overflow: hidden;
}

.reveal-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--water-surface);
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.reveal-element.animated::before {
    transform: translateX(100%);
}

.reveal-element > * {
    position: relative;
    z-index: 0;
}

/* ── Loading Skeleton ── */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

/* ── Shimmer Effect ── */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmerSlide 2s infinite;
}

@keyframes shimmerSlide {
    to {
        left: 100%;
    }
}

/* ── Performance Optimizations ── */
@media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll,
    .fade-in,
    .fade-in-up,
    .fade-in-down,
    .fade-in-left,
    .fade-in-right,
    .scale-in,
    .scale-in-up,
    .rotate-in,
    .blur-in,
    .slide-in-bounce {
        will-change: transform, opacity;
    }
}

/* ── Mobile Touch Optimizations ── */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor,
    .custom-cursor-follower {
        display: none;
    }
    
    .tilt-card:hover {
        transform: none;
    }
    
    .magnetic {
        transition: transform 0.2s var(--ease-apple);
    }
}

/* ── High Performance Mode ── */
@media only screen and (max-width: 768px) {
    .parallax,
    .parallax-slow,
    .parallax-fast {
        transform: none !important;
    }
    
    .blur-in {
        filter: none;
        opacity: 0;
    }
    
    .blur-in.animated {
        opacity: 1;
    }
}

/* ========================================
   XXX. RIPPLE ANIMATION KEYFRAMES
   ======================================== */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========================================
   XXXI. ENHANCED CARD 3D TILT (Desktop Only)
   ======================================== */
@media (hover: hover) and (pointer: fine) {
    .tilt-3d {
        transform-style: preserve-3d;
        transition: transform 0.4s var(--ease-apple);
    }

    .tilt-3d .tilt-content {
        transform: translateZ(50px);
    }

    .tilt-3d .tilt-glow {
        position: absolute;
        inset: 0;
        background: radial-gradient(
            circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(0, 212, 255, 0.2) 0%,
            transparent 60%
        );
        opacity: 0;
        transition: opacity 0.4s;
        border-radius: inherit;
        pointer-events: none;
    }

    .tilt-3d:hover .tilt-glow {
        opacity: 1;
    }
}

/* ========================================
   XXXII. LOADING BUTTON STATES
   ======================================== */
.btn-primary.loading,
.btn-secondary.loading,
button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after,
.btn-secondary.loading::after,
button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: buttonSpin 0.6s linear infinite;
}

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

/* ========================================
   XXXIII. FORM INPUT FOCUS EFFECTS
   ======================================== */
.form-group {
    position: relative;
}

.form-group.focused input,
.form-group.focused textarea {
    border-color: var(--aqua-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group label {
    transition: all 0.3s var(--ease-apple);
}

.form-group.focused label {
    color: var(--aqua-primary);
    transform: translateY(-2px);
}

/* ========================================
   XXXIV. SCROLL REVEAL ANIMATIONS
   ======================================== */
.scroll-reveal {
    position: relative;
    overflow: hidden;
}

.scroll-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--aqua-primary),
        transparent
    );
    transition: left 0.8s var(--ease-apple);
}

.scroll-reveal.animated::before {
    left: 100%;
}

/* ========================================
   XXXV. ENHANCED HOVER STATES (Desktop Only)
   ======================================== */
@media (hover: hover) and (pointer: fine) {
    .hover-lift {
        transition: transform 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple);
    }

    .hover-lift:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    }

    .hover-glow {
        position: relative;
        transition: all 0.3s var(--ease-apple);
    }

    .hover-glow::before {
        content: '';
        position: absolute;
        inset: -2px;
        background: linear-gradient(
            45deg,
            var(--aqua-primary),
            var(--aqua-secondary),
            var(--aqua-primary)
        );
        border-radius: inherit;
        opacity: 0;
        transition: opacity 0.3s;
        z-index: -1;
        filter: blur(10px);
    }

    .hover-glow:hover::before {
        opacity: 0.8;
    }
}

/* ========================================
   XXXVI. PROGRESS INDICATORS
   ======================================== */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s var(--ease-apple);
}

.progress-ring.animated .progress-ring-circle {
    stroke-dashoffset: calc(283 - (283 * var(--progress, 0)) / 100);
}

/* ========================================
   XXXVII. SKELETON SCREENS
   ======================================== */
.skeleton-card {
    padding: 2rem;
    background: var(--grad-glass);
    border-radius: 16px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    width: 80%;
}

/* ========================================
   XXXVIII. NOTIFICATION TOAST
   ======================================== */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--grad-glass);
    -webkit-backdrop-filter: blur(var(--blur-glass));
    backdrop-filter: blur(var(--blur-glass));
    border: var(--border-glass);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    max-width: 350px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.4s var(--ease-apple);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    border-left: 4px solid #10b981;
}

.toast-notification.error {
    border-left: 4px solid #ef4444;
}

.toast-notification.info {
    border-left: 4px solid var(--aqua-primary);
}

/* ========================================
   XXXIX. ACCESSIBILITY ENHANCEMENTS
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.focus-visible:focus {
    outline: 2px solid var(--aqua-primary);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--aqua-primary);
    color: var(--water-deep);
    padding: 1rem 2rem;
    text-decoration: none;
    z-index: 100000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* ========================================
   📱 MOBILE-SPECIFIC ANIMATIONS & TOUCH INTERACTIONS
   ======================================== */

/* Floating animation for profile card on mobile */
@keyframes mobileFloating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse animation for card glow on mobile */
@keyframes mobilePulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Touch ripple effect */
@keyframes touchRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Mobile button press animation */
@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.96);
    }
    100% {
        transform: scale(1);
    }
}

/* Card breathing animation */
@keyframes cardBreathe {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0,212,255,0.2);
    }
    50% {
        box-shadow: 0 8px 40px rgba(0,212,255,0.35);
    }
}

/* Gentle rotate for mobile card borders */
@keyframes rotateGentle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ══════════════════════════════════════
   MOBILE TOUCH INTERACTIONS
   ══════════════════════════════════════ */

@media (hover: none) and (pointer: coarse) {
    /* ── COMPLETELY DISABLE HOVER/DRAG EFFECTS ── */
    
    /* Remove ALL hover transforms */
    .hover-lift:hover,
    .hover-glow:hover,
    .tilt-card:hover,
    .project-card:hover,
    .skill-card:hover,
    .interest-card:hover,
    .glass-card:hover,
    .circular-card:hover,
    .profile-card:hover,
    *[data-tilt]:hover,
    *[data-magnetic]:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
    
    /* Remove tilt 3D effects completely */
    *[data-tilt] {
        transform: none !important;
        perspective: none !important;
    }
    
    /* Remove magnetic drag effect */
    *[data-magnetic] {
        transform: none !important;
    }
    
    /* Remove all hover pseudo-elements */
    .tilt-3d:hover .tilt-glow,
    *:hover::before,
    .card-glow,
    .card-border-shine,
    .card-border-anim {
        opacity: 0 !important;
        animation: none !important;
    }
    
    /* Remove breathing/rotating animations on mobile */
    .project-card,
    .skill-card,
    .interest-card {
        animation: none !important;
    }
    
    /* ── SIMPLE TAP FEEDBACK ONLY ── */
    
    /* Simple button tap */
    .btn:active,
    .primary-btn:active,
    .secondary-btn:active,
    .liquid-btn:active {
        transform: scale(0.96) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* Simple card tap */
    .project-card:active,
    .skill-card:active,
    .interest-card:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* Navigation tap feedback */
    nav ul li a:active {
        transform: scale(0.92) !important;
        transition: all 0.1s ease !important;
    }
    
    /* Disable scroll snap (can feel jarring) */
    html {
        scroll-snap-type: none !important;
    }
    
    section {
        scroll-snap-align: none !important;
    }
    
    /* Remove magnetic transition */
    .magnetic {
        transform: none !important;
        transition: none !important;
    }
    
    .magnetic:active {
        transform: scale(0.95) !important;
    }
}

/* ══════════════════════════════════════
   DESKTOP HOVER EFFECTS (only on hover-capable devices)
   ══════════════════════════════════════ */

@media (hover: hover) and (pointer: fine) {
    .hover-lift:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,212,255,0.4);
    }
    
    .hover-glow:hover::before {
        opacity: 0.8;
    }
    
    .btn:hover,
    .primary-btn:hover,
    .secondary-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,212,255,0.4);
    }
    
    .project-card:hover,
    .skill-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0,212,255,0.4);
    }
    
    nav ul li a:hover {
        color: var(--aqua-primary);
        transform: translateY(-2px);
    }
}

/* ══════════════════════════════════════
   TABLET-SPECIFIC (iPad, etc.)
   ══════════════════════════════════════ */

@media only screen and (min-width: 768px) and (max-width: 1024px) and (hover: none) {
    /* Slightly larger touch targets for tablets */
    .btn,
    .primary-btn,
    .secondary-btn {
        min-height: 48px;
        padding: 0.875rem 2rem;
    }
    
    nav ul li a {
        padding: 0.75rem 1rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   🍎 iOS-STYLE MOBILE DESIGN SYSTEM
   Apple-inspired smooth, fluid, premium mobile experience
   Proper colors, spacing, and component structure
   Only applies to actual mobile devices and small screens
   ══════════════════════════════════════════════════════════════ */

@media only screen and (max-width: 768px) {
    
    /* ══════════════════════════════════════
       iOS ROOT VARIABLES (Mobile Override)
       ══════════════════════════════════════ */
    :root {
        /* Apple iOS Dark Mode Colors */
        --ios-bg-primary: #000000;
        --ios-bg-secondary: #1c1c1e;
        --ios-bg-tertiary: #2c2c2e;
        --ios-bg-elevated: #3a3a3c;
        
        /* iOS Glass Effects - Better matched */
        --ios-glass-bg: rgba(28, 28, 30, 0.85);
        --ios-glass-border: rgba(255, 255, 255, 0.08);
        --ios-glass-light: rgba(44, 44, 46, 0.9);
        
        /* iOS Text Colors */
        --ios-text-primary: #ffffff;
        --ios-text-secondary: rgba(235, 235, 245, 0.6);
        --ios-text-tertiary: rgba(235, 235, 245, 0.3);
        
        /* iOS Accent (System Blue) */
        --ios-accent: #0a84ff;
        --ios-accent-light: #64d2ff;
        
        /* iOS Separators */
        --ios-separator: rgba(84, 84, 88, 0.65);
        --ios-separator-opaque: #38383a;
    }
    
    /* ══════════════════════════════════════
       iOS BASE STYLES
       ══════════════════════════════════════ */
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        background: var(--ios-bg-primary) !important;
        color: var(--ios-text-primary) !important;
    }
    
    /* Hide scrollbar on iOS */
    ::-webkit-scrollbar {
        display: none;
    }
    
    /* ══════════════════════════════════════
       iOS NAVIGATION BAR
       ══════════════════════════════════════ */
    .nav-glass,
    nav {
        background: rgba(0, 0, 0, 0.72) !important;
        -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
        backdrop-filter: saturate(180%) blur(20px) !important;
        border-bottom: 0.5px solid var(--ios-separator) !important;
        padding: env(safe-area-inset-top) 16px 8px 16px !important;
    }
    
    .nav-logo {
        font-size: 1.25rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.02em !important;
    }
    
    /* iOS Menu Toggle */
    .nav-menu-toggle {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        background: var(--ios-bg-tertiary) !important;
        border: none !important;
    }
    
    .nav-menu-toggle:active {
        transform: scale(0.92) !important;
        background: var(--ios-bg-elevated) !important;
    }
    
    /* ══════════════════════════════════════
       iOS HERO SECTION
       ══════════════════════════════════════ */
    .hero {
        min-height: 100dvh !important;
        padding: 0 20px !important;
        padding-top: calc(env(safe-area-inset-top) + 80px) !important;
        padding-bottom: calc(env(safe-area-inset-bottom) + 24px) !important;
        background: linear-gradient(180deg, 
            rgba(0, 0, 0, 1) 0%,
            rgba(10, 25, 47, 1) 50%,
            rgba(0, 0, 0, 1) 100%) !important;
    }
    
    /* iOS Typography - FORCE VISIBILITY */
    .hero-title,
    .hero-title .title-word {
        font-size: clamp(2.25rem, 10vw, 3rem) !important;
        font-weight: 700 !important;
        letter-spacing: -0.03em !important;
        line-height: 1.1 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        text-shadow: 0 0 30px rgba(0, 212, 255, 0.3) !important;
    }
    
    .title-line {
        overflow: visible !important;
    }
    
    .hero-subtitle,
    .hero-subtitle .subtitle-line,
    .hero-subtitle .subtitle-text,
    .subtitle-text {
        font-size: 1rem !important;
        font-weight: 500 !important;
        letter-spacing: -0.01em !important;
        color: var(--aqua-primary) !important;
        -webkit-text-fill-color: var(--aqua-primary) !important;
        margin: 12px 0 !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .hero-description,
    .hero-description p,
    .reveal-text {
        font-size: 0.9375rem !important;
        line-height: 1.5 !important;
        color: rgba(235, 235, 245, 0.7) !important;
        -webkit-text-fill-color: rgba(235, 235, 245, 0.7) !important;
        letter-spacing: -0.01em !important;
        max-width: 100% !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* ══════════════════════════════════════
       iOS PROFILE CARD
       ══════════════════════════════════════ */
    .profile-card-wrapper {
        margin-bottom: 24px !important;
    }
    
    .profile-card,
    .circular-card {
        background: linear-gradient(145deg, 
            rgba(28, 28, 30, 0.9) 0%,
            rgba(44, 44, 46, 0.8) 100%) !important;
        border: 1px solid var(--ios-glass-border) !important;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 0 0.5px rgba(255, 255, 255, 0.05) inset !important;
    }
    
    .profile-card:active {
        transform: scale(0.97) !important;
        transition: transform 0.1s ease-out !important;
    }
    
    /* ══════════════════════════════════════
       iOS BUTTONS
       ══════════════════════════════════════ */
    .hero-cta {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        margin-top: 24px !important;
    }
    
    .liquid-btn,
    .btn {
        width: 100% !important;
        min-height: 50px !important;
        border-radius: 12px !important;
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.01em !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    .liquid-btn.primary {
        background: linear-gradient(180deg, 
            var(--aqua-primary) 0%,
            var(--aqua-secondary) 100%) !important;
        color: #000 !important;
        border: none !important;
        box-shadow: 
            0 4px 12px rgba(0, 212, 255, 0.3),
            0 0 0 0.5px rgba(255, 255, 255, 0.2) inset !important;
    }
    
    .liquid-btn.primary:active {
        transform: scale(0.97) !important;
        opacity: 0.9 !important;
        box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2) !important;
    }
    
    .liquid-btn.secondary {
        background: var(--ios-bg-tertiary) !important;
        color: var(--aqua-primary) !important;
        border: 1px solid var(--ios-separator) !important;
        box-shadow: none !important;
    }
    
    .liquid-btn.secondary:active {
        transform: scale(0.97) !important;
        background: var(--ios-bg-elevated) !important;
    }
    
    /* ══════════════════════════════════════
       iOS STATS SECTION
       ══════════════════════════════════════ */
    .hero-stats {
        display: flex !important;
        background: var(--ios-glass-light) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 16px !important;
        border: 1px solid var(--ios-glass-border) !important;
        padding: 16px !important;
        margin-top: 24px !important;
        gap: 0 !important;
        justify-content: space-around !important;
    }
    
    .stat-item {
        flex: 1 !important;
        text-align: center !important;
        padding: 8px 4px !important;
    }
    
    .stat-number {
        font-size: 1.75rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.02em !important;
        background: linear-gradient(135deg, var(--aqua-primary) 0%, var(--aqua-light) 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
    
    .stat-label {
        font-size: 0.6875rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        color: var(--ios-text-tertiary) !important;
        margin-top: 4px !important;
    }
    
    .stat-divider {
        width: 1px !important;
        height: 40px !important;
        background: var(--ios-separator) !important;
        margin: 0 !important;
    }
    
    /* ══════════════════════════════════════
       iOS SECTION STYLES
       ══════════════════════════════════════ */
    section {
        padding: 48px 20px !important;
        scroll-margin-top: 80px !important;
    }
    
    .section-header {
        margin-bottom: 24px !important;
    }
    
    .section-header h2,
    h2 {
        font-size: 1.75rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.02em !important;
        color: var(--ios-text-primary) !important;
    }
    
    .section-header p,
    .section-subtitle {
        font-size: 0.9375rem !important;
        color: var(--ios-text-secondary) !important;
        margin-top: 8px !important;
    }
    
    /* ══════════════════════════════════════
       iOS CARDS (Projects/Skills)
       ══════════════════════════════════════ */
    .project-card,
    .skill-card {
        background: var(--ios-glass-light) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        backdrop-filter: blur(20px) !important;
        border: 1px solid var(--ios-glass-border) !important;
        border-radius: 16px !important;
        padding: 16px !important;
        margin-bottom: 12px !important;
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.2),
            0 0 0 0.5px rgba(255, 255, 255, 0.05) inset !important;
        transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    .project-card:active,
    .skill-card:active {
        transform: scale(0.98) !important;
        background: var(--ios-bg-elevated) !important;
    }
    
    .project-card h3,
    .skill-card h3 {
        font-size: 1.0625rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.01em !important;
        color: var(--ios-text-primary) !important;
        margin-bottom: 8px !important;
    }
    
    .project-card p,
    .skill-card p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        color: var(--ios-text-secondary) !important;
    }
    
    /* ══════════════════════════════════════
       iOS FORM ELEMENTS
       ══════════════════════════════════════ */
    input,
    textarea,
    select {
        width: 100% !important;
        min-height: 44px !important;
        padding: 12px 16px !important;
        font-size: 1rem !important;
        background: var(--ios-bg-secondary) !important;
        border: 1px solid var(--ios-separator) !important;
        border-radius: 10px !important;
        color: var(--ios-text-primary) !important;
        transition: all 0.2s ease !important;
    }
    
    input::placeholder,
    textarea::placeholder {
        color: var(--ios-text-tertiary) !important;
    }
    
    input:focus,
    textarea:focus {
        outline: none !important;
        border-color: var(--ios-accent) !important;
        box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25) !important;
    }
    
    /* ══════════════════════════════════════
       iOS LIST STYLES
       ══════════════════════════════════════ */
    .ios-grouped-list {
        background: var(--ios-bg-secondary) !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        margin: 16px 0 !important;
    }
    
    .ios-list-item {
        display: flex !important;
        align-items: center !important;
        padding: 12px 16px !important;
        min-height: 44px !important;
        background: var(--ios-bg-secondary) !important;
        border-bottom: 0.5px solid var(--ios-separator) !important;
        transition: background 0.15s ease !important;
    }
    
    .ios-list-item:last-child {
        border-bottom: none !important;
    }
    
    .ios-list-item:active {
        background: var(--ios-bg-tertiary) !important;
    }
    
    /* ══════════════════════════════════════
       iOS TOUCH INTERACTIONS
       ══════════════════════════════════════ */
    button,
    a,
    [role="button"] {
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }
    
    /* iOS Spring Animation on Tap */
    button:active,
    a:active,
    .interactive:active {
        transform: scale(0.96) !important;
        transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    /* ══════════════════════════════════════
       iOS SAFE AREAS
       ══════════════════════════════════════ */
    .safe-area-top {
        padding-top: env(safe-area-inset-top) !important;
    }
    
    .safe-area-bottom {
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
    
    /* Fixed bottom elements need safe area */
    .game-trigger,
    .fixed-bottom {
        bottom: calc(env(safe-area-inset-bottom) + 16px) !important;
    }
    
    /* ══════════════════════════════════════
       iOS FULLSCREEN MENU
       ══════════════════════════════════════ */
    .fullscreen-menu,
    .dimensional-menu {
        background: rgba(0, 0, 0, 0.95) !important;
        -webkit-backdrop-filter: saturate(180%) blur(40px) !important;
        backdrop-filter: saturate(180%) blur(40px) !important;
        padding-top: calc(env(safe-area-inset-top) + 60px) !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
    
    .fullscreen-menu a,
    .dimensional-menu a {
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.02em !important;
        padding: 16px 24px !important;
        border-radius: 12px !important;
        transition: all 0.2s ease !important;
    }
    
    .fullscreen-menu a:active,
    .dimensional-menu a:active {
        background: var(--ios-bg-tertiary) !important;
        transform: scale(0.98) !important;
    }
    
    /* ══════════════════════════════════════
       iOS CONTACT SECTION
       ══════════════════════════════════════ */
    #contact {
        background: linear-gradient(180deg,
            transparent 0%,
            rgba(10, 25, 47, 0.5) 100%) !important;
    }
    
    .contact-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .contact-form button[type="submit"] {
        width: 100% !important;
        min-height: 50px !important;
        background: linear-gradient(180deg, var(--aqua-primary), var(--aqua-secondary)) !important;
        color: #000 !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin-top: 8px !important;
    }
    
    /* ══════════════════════════════════════
       iOS FOOTER
       ══════════════════════════════════════ */
    footer {
        background: var(--ios-bg-secondary) !important;
        border-top: 0.5px solid var(--ios-separator) !important;
        padding: 24px 20px !important;
        padding-bottom: calc(env(safe-area-inset-bottom) + 24px) !important;
    }
    
    footer p {
        font-size: 0.8125rem !important;
        color: var(--ios-text-tertiary) !important;
    }
    
    /* ══════════════════════════════════════
       iOS ANIMATIONS
       ══════════════════════════════════════ */
    @keyframes ios-spring-in {
        0% {
            opacity: 0;
            transform: scale(0.9) translateY(20px);
        }
        100% {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    @keyframes ios-fade-up {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .animate-ios {
        animation: ios-spring-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    /* ══════════════════════════════════════
       iOS GAME TRIGGER
       ══════════════════════════════════════ */
    .game-trigger {
        width: 50px !important;
        height: 50px !important;
        background: var(--ios-bg-tertiary) !important;
        border: 1px solid var(--ios-glass-border) !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    }
    
    .game-trigger:active {
        transform: scale(0.92) !important;
        background: var(--ios-bg-elevated) !important;
    }
}

/* ══════════════════════════════════════
   EXTRA SMALL PHONES (iPhone SE, etc.)
   ══════════════════════════════════════ */
@media only screen and (max-width: 375px) {
    .hero-title,
    .hero-title .title-word {
        font-size: 2rem !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .liquid-btn {
        min-height: 48px !important;
        font-size: 0.875rem !important;
    }
}

/* ══════════════════════════════════════
   TABLET (iPad)
   ══════════════════════════════════════ */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (hover: none) {
    .btn,
    .liquid-btn {
        min-height: 52px !important;
        font-size: 1rem !important;
        padding: 14px 28px !important;
    }
    
    .project-card,
    .skill-card {
        padding: 20px !important;
    }
    
    .hero-stats {
        padding: 20px !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   📱 MOBILE CONTENT FIXES - Clean Layout & Design
   Only applies to actual mobile devices
   ══════════════════════════════════════════════════════════════ */
@media only screen and (max-width: 768px) {
    
    /* ── INTEREST CARDS - Clean Mobile Layout ── */
    .interests-orbit {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 0 !important;
    }
    
    .interest-card,
    .interest-card.glass-card {
        padding: 16px !important;
        border-radius: 14px !important;
        background: rgba(28, 28, 30, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
        transition: transform 0.15s ease, background 0.15s ease !important;
    }
    
    .interest-card:active {
        transform: scale(0.98) !important;
        background: rgba(44, 44, 46, 0.95) !important;
    }
    
    /* Hide complex decorative elements */
    .interest-card .card-glow,
    .interest-card .card-border-anim,
    .interest-card .card-border-shine,
    .interest-card::before,
    .interest-card::after {
        display: none !important;
        opacity: 0 !important;
        animation: none !important;
    }
    
    .interest-card .card-icon-wrap {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 12px !important;
        background: rgba(0, 212, 255, 0.1) !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .interest-card .card-icon {
        width: 28px !important;
        height: 28px !important;
    }
    
    .interest-card .card-icon svg {
        width: 100% !important;
        height: 100% !important;
    }
    
    .interest-card .card-title,
    .interest-card h3 {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #fff !important;
        margin-bottom: 6px !important;
        letter-spacing: -0.01em !important;
    }
    
    .interest-card .card-desc,
    .interest-card p {
        font-size: 0.8125rem !important;
        line-height: 1.4 !important;
        color: rgba(235, 235, 245, 0.6) !important;
        margin: 0 !important;
    }
    
    /* ── SECTION HEADERS - Clean Mobile ── */
    .section-header {
        text-align: left !important;
        margin-bottom: 20px !important;
    }
    
    .section-number {
        font-size: 0.75rem !important;
        color: rgba(0, 212, 255, 0.8) !important;
        font-weight: 600 !important;
        letter-spacing: 0.05em !important;
        margin-bottom: 4px !important;
        display: block !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        letter-spacing: -0.02em !important;
    }
    
    .section-line {
        display: none !important;
    }
    
    /* ── FEATURED PROJECTS - Mobile Optimized ── */
    .featured-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 !important;
    }
    
    .featured-item {
        min-height: 280px !important;
        padding: 16px !important;
        border-radius: 14px !important;
        transform: none !important;
        background: rgba(28, 28, 30, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    
    /* Optimize images for mobile */
    .featured-image {
        opacity: 0.3 !important;
        filter: blur(0.5px) !important;
        will-change: auto !important;
    }
    
    .featured-gradient {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.3) 0%, 
            rgba(10, 22, 40, 0.85) 60%,
            rgba(10, 22, 40, 0.98) 100%
        ) !important;
    }
    
    .featured-content {
        padding: 16px !important;
    }
    
    .featured-title {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
    }
    
    .featured-desc {
        font-size: 0.8125rem !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
        color: rgba(235, 235, 245, 0.6) !important;
    }
    
    .featured-tags {
        gap: 6px !important;
    }
    
    .featured-tags span {
        font-size: 0.625rem !important;
        padding: 4px 8px !important;
    }
    
    .featured-arrow {
        opacity: 1 !important;
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
    }
    
    .featured-item:active {
        transform: scale(0.98) !important;
        background: rgba(44, 44, 46, 0.95) !important;
    }
    
    /* ── GLASS CARDS - Universal Fix ── */
    .glass-card {
        background: rgba(28, 28, 30, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 14px !important;
        padding: 16px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        backdrop-filter: blur(20px) !important;
    }
    
    /* ── PROJECT CARDS - Clean Mobile ── */
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .project-card {
        padding: 16px !important;
        border-radius: 14px !important;
        background: rgba(28, 28, 30, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        transform: none !important;
        animation: none !important;
    }
    
    .project-card:active {
        transform: scale(0.98) !important;
    }
    
    .project-card h3 {
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin-bottom: 8px !important;
    }
    
    .project-card p {
        font-size: 0.8125rem !important;
        line-height: 1.4 !important;
        color: rgba(235, 235, 245, 0.6) !important;
    }
    
    /* ── SKILL CARDS - Clean Mobile ── */
    .skills-grid,
    .skills-bars {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .skill-card {
        padding: 16px !important;
        border-radius: 14px !important;
        background: rgba(28, 28, 30, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        transform: none !important;
        animation: none !important;
    }
    
    .skill-card:active {
        transform: scale(0.98) !important;
    }
    
    /* ── FEATURED GRID - Mobile ── */
    .featured-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .featured-item {
        padding: 16px !important;
        border-radius: 14px !important;
        transform: none !important;
    }
    
    /* ── HERO BADGE - Mobile ── */
    .hero-badge {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 14px !important;
        background: rgba(0, 212, 255, 0.1) !important;
        border: 1px solid rgba(0, 212, 255, 0.2) !important;
        border-radius: 20px !important;
        margin-bottom: 16px !important;
    }
    
    .badge-dot {
        width: 8px !important;
        height: 8px !important;
        background: var(--aqua-primary) !important;
        border-radius: 50% !important;
        animation: pulse 2s ease-in-out infinite !important;
    }
    
    .badge-text {
        font-size: 0.6875rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.08em !important;
        color: var(--aqua-primary) !important;
    }
    
    /* ── CONTACT SECTION - Mobile ── */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 20px !important;
    }
    
    /* ── SOCIAL LINKS - Mobile ── */
    .social-links {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
    }
    
    .social-link {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        background: rgba(44, 44, 46, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .social-link:active {
        transform: scale(0.92) !important;
        background: rgba(58, 58, 60, 1) !important;
    }
    
    /* ── EDUCATION SECTION - Mobile ── */
    .education-timeline {
        padding-left: 0 !important;
    }
    
    .edu-item {
        padding: 16px !important;
        margin-bottom: 12px !important;
        border-radius: 14px !important;
        background: rgba(28, 28, 30, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    
    /* ── REMOVE ALL DECORATIVE ANIMATIONS ── */
    .morph-blobs,
    .aura-bg,
    .noise-overlay,
    .hero-depth-layer,
    .bg-grid,
    .floating-particles {
        display: none !important;
    }
    
    /* ── SMOOTH SCROLLING ── */
    html {
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* ── DISABLE PERSPECTIVE/3D TRANSFORMS ── */
    *[data-tilt],
    .tilt-card,
    .perspective-card {
        transform: none !important;
        transform-style: flat !important;
        perspective: none !important;
    }
    
    /* ── BUTTON FILL ELEMENT - Hide on Mobile ── */
    .btn-fill {
        display: none !important;
    }
    
    /* ── TEXT GRADIENT FIX ── */
    .gradient-text {
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }
    
    /* ── FORCE TITLE VISIBILITY - Remove animations ── */
    .title-word,
    .hero-title .title-word {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.4) !important;
    }
    
    .hero-subtitle,
    .hero-subtitle .subtitle-line,
    .hero-subtitle .subtitle-text {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .hero-description,
    .hero-description p {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .hero-cta,
    .hero-cta .liquid-btn {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .hero-stats {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* ── DISABLE ALL HEAVY ANIMATIONS FOR PERFORMANCE ── */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.15s !important;
        scroll-behavior: auto !important;
    }
    
    /* Keep only simple tap animations */
    button:active,
    a:active,
    .liquid-btn:active {
        transition-duration: 0.1s !important;
    }
}

/* ========================================
   XL. PRINT STYLES
   ======================================== */
@media print {
    .nav-glass,
    .nav-menu-toggle,
    .dimensional-menu,
    .scroll-progress,
    .morph-blobs,
    .aura-bg,
    .noise-overlay,
    .game-trigger,
    .bubble-game,
    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    section {
        page-break-inside: avoid;
    }
}
