:root {
    --bg-color: #050510;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #00f3ff;
    --accent-secondary: #bc13fe;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

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

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Let clicks pass through */
}

/* Layout */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    margin-top: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    font-size: 0.7rem;
    background: var(--accent-primary);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
}

h1.glitch-text {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, var(--accent-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    position: relative;
}

.sub-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 3rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn-glow {
    position: relative;
    padding: 1rem 2rem;
    background: var(--accent-primary);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.btn-outline {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(0, 243, 255, 0.1);
}

/* Feature Cards (Grid at the bottom) */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 4rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s, background 0.3s;
    backdrop-filter: blur(5px);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-secondary);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.glass-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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


/* Code Preview Section */
.code-preview-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-top: 6rem;
    margin-bottom: 4rem;
    width: 100%;
}

.code-info {
    flex: 1;
    max-width: 450px;
}

.code-info h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.code-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tech-stack-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-stack-icons span {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
    transition: all 0.3s;
}

.tech-stack-icons span:hover {
    background: rgba(0, 243, 255, 0.1);
    transform: translateY(-2px);
}

.code-window {
    flex: 1;
    background: #0d0d16;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    min-width: 0;
    /* Prevent flex overflow */
}

.window-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.dots {
    display: flex;
    gap: 6px;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.filename {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.code-window pre {
    padding: 1.5rem;
    overflow-x: auto;
    color: #f8f8f2;
    font-size: 0.9rem;
    line-height: 1.5;
}

.keyword {
    color: #ff79c6;
}

.string {
    color: #f1fa8c;
}

.comment {
    color: #6272a4;
}

.arg {
    color: #ffb86c;
}

.function {
    color: #50fa7b;
}

.tag {
    color: #ff79c6;
}

.export {
    color: #bd93f9;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 5px #00ff88;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 0 1.5rem;
    }

    h1.glitch-text {
        font-size: 2.5rem;
        word-break: break-word;
        /* Prevent overflow */
    }

    .sub-heading {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 2rem 0;
        align-items: center;
        /* Center align on mobile */
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
        flex-wrap: wrap;
        /* Allow buttons to stack if screen is very narrow */
    }

    .glass-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .code-preview-section {
        flex-direction: column;
        gap: 3rem;
        margin-top: 4rem;
    }

    .code-info {
        text-align: center;
        max-width: 100%;
    }

    .code-window {
        width: 100%;
        /* Ensure full width */
    }

    .tech-stack-icons {
        justify-content: center;
    }

    footer {
        justify-content: center;
        text-align: center;
    }
}

/* Very Small Mobile */
@media (max-width: 480px) {
    h1.glitch-text {
        font-size: 2rem;
    }

    .glass-header {
        padding: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }
}

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

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