:root {
    --bg-main: #0c0c0c;
    --bg-secondary: #161616;
    --bg-card: rgba(22, 22, 22, 0.6);
    --bg-card-hover: rgba(22, 22, 22, 0.8);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.4);
    --secondary: #fbbf24;
    --accent: #10b981;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(56, 189, 248, 0.3);

    --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #06b6d4 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    --gradient-hero: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;

    --container-width: 1200px;
    --header-height: 100px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 2rem);
}

/* Ensure sections have proper scroll margin for anchor links */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 2rem);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(12, 12, 12, 0.95), rgba(12, 12, 12, 1)),
        linear-gradient(to right, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn i {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px -5px var(--primary-glow), 0 0 40px rgba(56, 189, 248, 0.2);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary::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 ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px -5px var(--primary-glow), 0 0 60px rgba(56, 189, 248, 0.4);
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 200px;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-main);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.btn-outline:hover i {
    transform: scale(1.1);
}

/* Navbar */
.navbar {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    background: linear-gradient(to bottom, rgba(12, 12, 12, 0.6), rgba(12, 12, 12, 0.3));
    backdrop-filter: blur(8px);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Neural Net Background Animation - Hero Section */
.hero-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.7;
    z-index: 0;
    overflow: hidden;
}

#neural-net-canvas {
    display: block;
    width: 100%;
    height: 100%;
}


/* Individual container positions and animations - Hero Section */
/* Positions, sizes, and speeds are randomized via JavaScript */

@keyframes floatRotate {
    0% {
        transform: rotateY(0deg) rotateX(0deg) translateY(0px);
    }

    25% {
        transform: rotateY(90deg) rotateX(10deg) translateY(-5px);
    }

    50% {
        transform: rotateY(180deg) rotateX(0deg) translateY(0px);
    }

    75% {
        transform: rotateY(270deg) rotateX(-10deg) translateY(-5px);
    }

    100% {
        transform: rotateY(360deg) rotateX(0deg) translateY(0px);
    }
}

/* Enhanced 3D effect - containers become more visible */
.hero-3d-bg {
    opacity: 0.6;
}

.hero:hover .hero-3d-bg {
    opacity: 0.8;
}

.navbar.scrolled {
    background: linear-gradient(to bottom, rgba(12, 12, 12, 0.98), rgba(12, 12, 12, 0.9));
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled::after {
    opacity: 0.6;
}

.navbar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding: 0.5rem 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    background: transparent;
}

.logo:hover,
.logo:active,
.logo:focus {
    color: var(--text-main);
    transform: none;
    outline: none;
    background: transparent;
    box-shadow: none;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo:hover .logo-icon {
    transform: translateZ(0) scale(1.05);
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.8));
}

.logo span {
    white-space: nowrap;
    display: inline-block;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 101;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
    color: var(--text-main);
    outline: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

.mobile-menu-toggle i {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links>a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links>a i {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-links>a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links>a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-links>a:hover i {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

.nav-links>a:hover::before {
    width: 100%;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    gap: 0.5rem;
}

.nav-dropdown-toggle i:first-child {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-dropdown-toggle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-dropdown-toggle:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-dropdown-toggle:hover i:first-child {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

.nav-dropdown-toggle:hover::before {
    width: 100%;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.nav-dropdown-item i {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    filter: blur(100px);
    z-index: -1;
    opacity: 0.8;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translateX(-50%) scale(1.1);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 2rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    }
}

.badge:hover {
    transform: scale(1.05);
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    animation: fadeUp 1s ease-out 0.4s backwards;
}

.hero-image-wrapper {
    perspective: 1000px;
    margin-top: 2rem;
    animation: fadeUp 1s ease-out 0.6s backwards;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-areas: "stack";
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(56, 189, 248, 0.2);
    transition: transform 0.5s ease, opacity 1s ease-in-out, box-shadow 0.5s ease;
    cursor: zoom-in;
    background: var(--bg-secondary);
    grid-area: stack;
    opacity: 0;
}

.hero-image.active {
    opacity: 1;
    z-index: 2;
}

.hero-image:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 30px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(56, 189, 248, 0.4);
}

.slide-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.slide-control:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-50%) scale(1.1);
}

.slide-control.prev {
    left: 1rem;
}

.slide-control.next {
    right: 1rem;
}

.slide-control i {
    font-size: 1.25rem;
}

/* Screenshot Browser */
.screenshot-browser {
    margin-top: 2rem;
    animation: fadeUp 1s ease-out 0.4s backwards;
    position: relative;
    z-index: 1;
}

.screenshot-thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.screenshot-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.screenshot-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.screenshot-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.thumbnail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 70px;
}

.thumbnail-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.thumbnail-item.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.thumbnail-item img {
    width: 70px;
    height: 44px;
    object-fit: cover;
    border-radius: calc(var(--radius-sm) * 0.75);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.thumbnail-item:hover img {
    border-color: var(--primary);
}

.thumbnail-item.active img {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.thumbnail-item span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.thumbnail-item:hover span,
.thumbnail-item.active span {
    color: var(--primary);
}

/* Stats Section */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: transparent;
    margin: 2rem 0 4rem;
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Features Grid */
.features,
.characters-section,
.coded-with-love {
    padding: 5rem 0;
    position: relative;
    scroll-margin-top: calc(var(--header-height) + 2rem);
}

@media (max-width: 768px) {
    .characters-section {
        padding-top: 2rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    box-shadow: 0 0 20px var(--primary-glow);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 40px rgba(56, 189, 248, 0.2);
}

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

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.feature-icon i {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.feature-card:hover .feature-icon::before {
    width: 200%;
    height: 200%;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tech Stack / How it Works */
.tech-section {
    padding: 6rem 0;
    background: transparent;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tech-item i {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

/* Terminal / Install Section */
.install-section {
    padding: 3rem 0;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.terminal-window {
    background: #0f172a;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
}

.terminal-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #334155;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #eab308;
}

.dot.green {
    background: #22c55e;
}

.terminal-body {
    padding: 1.5rem;
    color: #e2e8f0;
}

.cmd-line {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.prompt {
    color: var(--primary);
    user-select: none;
}

.cmd {
    color: #f8fafc;
}

.comment {
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}

.copy-wrapper {
    position: relative;
    margin-top: 1rem;
}

.copy-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Coded with Love Section */
.coded-with-love {
    padding: 3rem 0;
    background: transparent;
    position: relative;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.coded-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.coded-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.coded-header h2 {
    font-size: 2.5rem;
    margin: 0;
}

.coded-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.coded-description strong {
    color: var(--text-main);
    font-weight: 600;
}

.coded-description a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.coded-description a:hover {
    color: var(--primary);
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 0;
}

.tech-stack-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tech-stack-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 40px rgba(56, 189, 248, 0.2);
}

.tech-stack-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-weight: 600;
}

.tech-stack-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-stack-item li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.tech-stack-item li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.875rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 5rem 0 2.5rem;
    background: linear-gradient(to bottom, transparent, rgba(12, 12, 12, 0.6));
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 4rem;
}

.footer-brand {
    flex: 0 0 auto;
    max-width: 320px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 3rem;
    flex: 1;
}

.footer-link-column {
    display: flex;
    flex-direction: column;
}

.footer-link-column h4 {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-link-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    position: relative;
}

.footer-links a i {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
    transform: translateX(4px);
}

.footer-links a:hover i {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

.footer-links a:hover::before {
    height: 60%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
}

.modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .modal-close {
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Privacy Modal Specifics */
.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--primary);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: left;
}

.modal-body h4 {
    color: var(--text-main);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body h5 {
    color: var(--text-main);
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.last-updated {
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.02);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* Cube Physics Controls (Desktop Only) */
.cube-controls {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5625rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 135px;
    font-size: 0.5625rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.cube-controls:hover {
    opacity: 1;
}

.cube-controls.collapsed {
    padding: 0.25rem;
    min-width: auto;
    width: auto;
}

.cube-controls.collapsed .controls-header {
    margin-bottom: 0;
}

.controls-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.375rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.6rem;
}

.controls-title {
    display: none;
}

.cube-controls:not(.collapsed) .controls-header {
    justify-content: space-between;
}

.cube-controls:not(.collapsed) .controls-title {
    display: block;
}

.controls-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 15px;
    height: 15px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.675rem;
    line-height: 1;
    transition: all 0.2s;
}

.controls-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
    border-color: var(--border-hover);
}

.controls-content {
    display: block;
}

.control-item {
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.control-item label {
    color: var(--text-muted);
    font-size: 0.525rem;
    min-width: 52.5px;
    flex-shrink: 0;
}

.control-item input[type="range"] {
    flex: 1;
    height: 3px;
    background: var(--bg-secondary);
    border-radius: 1.5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.control-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 9px;
    height: 9px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.control-item input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--secondary);
    transform: scale(1.2);
}

.control-item input[type="range"]::-moz-range-thumb {
    width: 9px;
    height: 9px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.control-item input[type="range"]::-moz-range-thumb:hover {
    background: var(--secondary);
    transform: scale(1.2);
}

.control-value {
    color: var(--primary);
    font-size: 0.525rem;
    min-width: 26.25px;
    text-align: right;
    font-weight: 500;
    font-family: 'Fira Code', monospace;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }
.reveal:nth-child(6) { transition-delay: 0.6s; }

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 50px;
    }

    .logo {
        font-size: 1.25rem;
        gap: 0.25rem;
    }

    .logo-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(to bottom, rgba(12, 12, 12, 0.98), rgba(22, 22, 22, 0.98));
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: calc(var(--header-height) + 1rem) 2rem 2rem;
        overflow-y: auto;
        overflow-x: hidden;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .navbar .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--primary), transparent);
        opacity: 0.3;
    }

    .navbar .nav-links.active {
        right: 0;
    }

    .navbar .nav-links>a,
    .navbar .nav-dropdown {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        justify-content: flex-start;
        font-size: 1rem;
    }

    .navbar .nav-links>a::before {
        display: none;
    }

    .navbar .nav-links>a:hover {
        transform: translateX(8px);
        padding-left: 0.5rem;
    }

    .navbar .nav-links>a i {
        font-size: 1.25rem;
        width: 1.25rem;
    }

    .nav-dropdown {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-muted);
        transform: none;
        -webkit-tap-highlight-color: transparent;
        background: transparent;
    }

    .nav-dropdown-toggle::before {
        display: none;
    }

    .nav-dropdown-toggle,
    .nav-dropdown-toggle:hover,
    .nav-dropdown-toggle:active,
    .nav-dropdown-toggle:focus,
    .nav-dropdown-toggle:visited {
        color: var(--text-muted) !important;
        transform: none;
        padding-left: 0;
        background: transparent !important;
        outline: none;
        box-shadow: none;
    }

    .nav-dropdown:not(.active) .nav-dropdown-toggle,
    .nav-dropdown:not(.active) .nav-dropdown-toggle:hover,
    .nav-dropdown:not(.active) .nav-dropdown-toggle:active,
    .nav-dropdown:not(.active) .nav-dropdown-toggle:focus {
        color: var(--text-muted) !important;
    }

    .nav-dropdown-toggle .ph-caret-down {
        color: var(--text-muted) !important;
    }

    .nav-dropdown-toggle i:first-child {
        font-size: 1.25rem;
        width: 1.25rem;
        height: 1.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        opacity: 0.7;
        color: var(--text-muted) !important;
    }

    .nav-dropdown-toggle:hover i:first-child,
    .nav-dropdown:not(.active) .nav-dropdown-toggle i:first-child {
        color: var(--text-muted) !important;
        opacity: 0.7 !important;
        transform: none !important;
    }

    .nav-dropdown.active .nav-dropdown-toggle i:first-child {
        color: var(--text-muted) !important;
        opacity: 0.7 !important;
        transform: none !important;
    }

    .nav-dropdown-toggle .ph-caret-down {
        transition: transform 0.3s ease;
        margin-left: auto;
        margin-right: 0;
        font-size: 0.75rem;
    }

    .nav-dropdown.active .nav-dropdown-toggle {
        color: var(--text-muted) !important;
        transform: none;
        padding-left: 0;
    }

    .nav-dropdown.active .nav-dropdown-toggle i:first-child {
        color: var(--primary) !important;
        opacity: 0.7 !important;
        transform: none !important;
    }

    .nav-dropdown.active .nav-dropdown-toggle .ph-caret-down {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-top: 0;
        margin-left: 1.5rem;
        width: calc(100% - 1.5rem);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-dropdown-menu.active {
        max-height: 500px;
        padding: 0;
        margin-top: 0;
    }

    .nav-dropdown-item {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.2s ease;
        color: var(--text-muted);
        margin: 0;
    }

    .nav-dropdown-item:first-child {
        padding-top: 1rem;
        margin-top: 0;
    }

    .nav-dropdown-item:hover {
        padding-left: 0.5rem;
        color: var(--primary);
    }

    .nav-dropdown-item:last-child {
        border-bottom: none;
    }

    /* Mobile menu backdrop */
    .mobile-menu-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 99;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .mobile-menu-backdrop.active {
        display: block;
        opacity: 1;
    }

    footer .nav-links {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-hero {
        width: 100%;
        min-width: auto;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    .copy-btn {
        display: none;
    }

    .footer-bottom .desktop-text {
        display: none;
    }

    .coded-header h2 {
        font-size: 2rem;
    }

    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

    .coded-description {
        font-size: 1rem;
    }

    .screenshot-thumbnails {
        gap: 0.4rem;
        padding: 0.75rem 0;
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .thumbnail-item {
        min-width: 60px;
        padding: 0.4rem;
    }

    .thumbnail-item img {
        width: 60px;
        height: 38px;
    }

    .thumbnail-item span {
        font-size: 0.65rem;
    }

    /* Hide controls on mobile - no mouse interaction */
    .cube-controls {
        display: none;
    }

}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 0.7rem;
    display: block;
    pointer-events: none;
    visibility: hidden;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.cookie-banner p {
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    line-height: 1.4;
    font-size: 0.7rem;
}

.cookie-banner a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-banner-btn {
    flex: 1;
    min-width: 65px;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.cookie-banner-btn-accept {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.cookie-banner-btn-accept:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: var(--border-hover);
}

.cookie-banner-btn-reject {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.cookie-banner-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: var(--border-hover);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.character-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.character-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.character-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px var(--primary-glow), 0 0 60px rgba(56, 189, 248, 0.3);
}

.character-card:hover::after {
    opacity: 1;
}

.card-image {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.character-card:hover .card-image img {
    transform: scale(1.05);
}

.card-info {
    padding: 1rem;
    text-align: center;
    background: linear-gradient(to top, rgba(12, 12, 12, 0.9), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.card-info h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.card-info p {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .character-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .character-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Disclaimer Section */
.disclaimer {
    padding: 6rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.disclaimer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.disclaimer-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.disclaimer-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.disclaimer-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.disclaimer-icon i {
    font-size: 1.5rem;
    color: white;
}

.disclaimer-item h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.disclaimer-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.disclaimer-footer {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(56, 189, 248, 0.05);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 800px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .disclaimer-grid {
        grid-template-columns: 1fr;
    }
}

/* Podcast Modal */
.podcast-modal-card {
    max-width: 600px;
}

.podcast-modal-body {
    padding: 2rem;
    text-align: center;
}

.podcast-player {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.podcast-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.podcast-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.podcast-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.podcast-btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 20px -5px var(--primary-glow);
}

.podcast-btn-primary:hover {
    background: var(--gradient-primary);
    transform: scale(1.1);
    box-shadow: 0 6px 25px -5px var(--primary-glow);
}

.podcast-progress-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.podcast-progress {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.podcast-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

.podcast-progress::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--primary-glow);
}

.podcast-progress::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

.podcast-progress::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--primary-glow);
}

.podcast-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
}

.podcast-volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.podcast-volume-container i {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.podcast-volume {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.podcast-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.podcast-volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.podcast-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.podcast-volume::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.podcast-credit {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .podcast-modal-card {
        max-width: 95vw;
        margin: 1rem;
    }

    .podcast-modal-body {
        padding: 1.5rem 1rem;
    }

    .podcast-player {
        gap: 2rem;
    }

    .podcast-controls {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .podcast-btn {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        min-width: 56px;
        min-height: 56px;
    }

    .podcast-btn-primary {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
        min-width: 64px;
        min-height: 64px;
    }

    .podcast-progress-container {
        width: 100%;
        gap: 0.75rem;
    }

    .podcast-progress {
        height: 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .podcast-progress::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .podcast-progress::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    .podcast-time {
        font-size: 1rem;
    }

    .podcast-volume-container {
        width: 100%;
        min-width: auto;
        gap: 0.75rem;
    }

    .podcast-volume-container i {
        font-size: 1.5rem;
    }

    .podcast-volume {
        height: 8px;
        -webkit-tap-highlight-color: transparent;
    }

    .podcast-volume::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }

    .podcast-volume::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }

    .podcast-credit {
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }
}

/* About Section & Story */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text h3 span {
    color: var(--primary);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-text .highlight {
    color: var(--secondary);
}

.about-text a {
    color: var(--primary);
    position: relative;
    text-decoration: none;
}

.about-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.about-text a:hover::after {
    width: 100%;
}



/* Terminal Card (whoami) */
.about-visual {
    position: relative;
    perspective: 1000px;
}

.terminal-card {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 30px var(--primary-glow);
    position: relative;
    transition: transform 0.5s ease;
}

.terminal-card:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

.terminal-content {
    z-index: 1;
    width: 80%;
}

.terminal-command {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-right: 2px solid var(--accent);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-right: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.terminal-output {
    font-family: 'Fira Code', monospace;
    color: var(--text-main);
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.terminal-line {
    display: flex;
    gap: 0.5rem;
}

.terminal-line .key {
    color: var(--primary);
    min-width: 60px;
}

/* Terminal Card (whoami) - Bash Style */
.about-visual {
    position: relative;
    perspective: 1000px;
}

.terminal-card {
    aspect-ratio: 1;
    background: #000000;
    /* Pure black terminal bg */
    border: 1px solid #333;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    /* Stack header and body */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 0.5s ease;
    font-family: 'Fira Code', monospace;
}

.terminal-card:hover {
    transform: rotateY(5deg) rotateX(5deg);
}



.terminal-body {
    padding: 1.5rem;
    flex-grow: 1;
    color: #d4d4d4;
    font-size: 0.95rem;
    text-align: left;
}

.command-line {
    margin-bottom: 1rem;
}

.prompt-user {
    color: #4ade80;
    /* bright green */
}

.prompt-host {
    color: #38bdf8;
    /* bright blue */
}

.prompt-path {
    color: #facc15;
    /* yellow */
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: #d4d4d4;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

.terminal-response {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.json-key {
    color: #9cdcfe;
}

.json-string {
    color: #ce9178;
}