:root {
    --bg-main: #020617;
    --bg-secondary: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.4);
    --bg-card-hover: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.5);
    --secondary: #818cf8;
    --accent: #f472b6;
    --border: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(148, 163, 184, 0.2);
    
    --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    
    --container-width: 1280px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

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(15, 23, 42, 0.8), rgba(2, 6, 23, 1)),
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* 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;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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);
    border: 1px solid transparent;
}

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

.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(2, 6, 23, 0.6), rgba(2, 6, 23, 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;
}

/* 3D Container Graphics Background - Hero Section */
.hero-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.12;
    z-index: 0;
    perspective: 1000px;
    overflow: visible;
}

.container-3d {
    position: absolute;
    width: 40px;
    height: 40px;
    transform-style: preserve-3d;
    animation: floatRotate 20s infinite linear;
    transition: transform 0.1s ease-out;
    will-change: transform, left, top;
}

/* Front face - main container view */
.container-3d::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(56, 189, 248, 0.3);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.04) 0%, rgba(56, 189, 248, 0.01) 100%);
    transform: translateZ(18px);
    box-shadow: 
        0 0 20px rgba(56, 189, 248, 0.12),
        inset 0 0 15px rgba(56, 189, 248, 0.05);
    border-radius: 2px;
}

/* Back face */
.container-3d::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.015);
    transform: translateZ(-18px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
    border-radius: 2px;
}

/* Add connecting edges using box-shadow for 3D wireframe effect */
.container-3d {
    background: transparent;
    box-shadow: 
        /* Top-right edge */
        18px -18px 0 -16px rgba(56, 189, 248, 0.15),
        /* Bottom-right edge */
        18px 18px 0 -16px rgba(56, 189, 248, 0.15),
        /* Top-left edge */
        -18px -18px 0 -16px rgba(56, 189, 248, 0.15),
        /* Bottom-left edge */
        -18px 18px 0 -16px rgba(56, 189, 248, 0.15);
}

/* Base container styling */
.container-3d {
    background: transparent;
}


/* 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.25;
}

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

.navbar.scrolled {
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.85));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.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.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    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 i {
    font-size: 1.75rem;
    color: var(--primary);
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo:hover i,
.logo:active i,
.logo:focus i {
    transform: none;
    filter: none;
}

.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: 3rem;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--gradient-glow);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.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.35rem 1rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 2rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.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: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-image-wrapper {
    perspective: 1000px;
    margin-top: 1rem;
    animation: fadeUp 1s ease-out 0.2s backwards;
    position: relative;
    z-index: 1;
}

.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 40px rgba(56, 189, 248, 0.1);
    transition: transform 0.5s ease;
    cursor: zoom-in;
    background: var(--bg-secondary);
}

.hero-image:hover {
    transform: scale(1.02);
}

/* 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: rgba(15, 23, 42, 0.3);
    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 {
    padding: 3rem 0;
    position: relative;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.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.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

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

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.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: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.5));
}

.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: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.3));
    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(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.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(2, 6, 23, 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: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

/* 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(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Mobile */
@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
    }
    
    .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(2, 6, 23, 0.98), rgba(15, 23, 42, 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;
    }
    
    .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;
    }
}
