@import 'variables.css';

:root {
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, var(--glow-1), transparent 40%),
        radial-gradient(circle at 90% 80%, var(--glow-2), transparent 40%),
        linear-gradient(135deg, var(--bg-deep) 0%, #0a0f1e 100%);
    background-attachment: fixed;
    animation: gentleGlow 20s ease-in-out infinite alternate;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light {
    background-image:
        radial-gradient(circle at 10% 40%, var(--glow-1), transparent 30%),
        radial-gradient(circle at 90% 20%, var(--glow-2), transparent 30%),
        radial-gradient(circle at 50% 80%, var(--glow-3), transparent 35%),
        radial-gradient(circle at 70% 60%, var(--glow-4), transparent 35%),
        linear-gradient(to bottom right, var(--primary-soft), var(--secondary-soft), transparent);
}

@keyframes gentleGlow {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }

    100% {
        background-position: 100% 100%, 20% 20%, -20% 20%, 20% -20%, -20% -20%;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-toggle {
    display: none;
}

.mobile-nav-toggle i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle i {
    width: 18px;
    height: 18px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-only,
.mobile-nav-links,
.mobile-nav-overlay {
    display: none;
}


/* Hero */
.hero {
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Products */
.products {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.product-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: flex;
        background: var(--primary);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    .auth-buttons {
        gap: 0.5rem;
        align-items: center;
    }

    .auth-buttons .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* Mobile Drawer */
    .mobile-nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        padding: 5rem 1.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 3000;
        border-left: 1px solid var(--border);
        list-style: none;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .mobile-nav-links.active {
        transform: translateX(0);
    }

    .mobile-nav-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .mobile-nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .mobile-nav-links a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        color: var(--text-dim);
        font-size: 1.1rem;
        font-weight: 500;
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .mobile-nav-links a i {
        width: 20px;
        height: 20px;
        color: var(--primary);
    }

    .mobile-nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: white;
        transform: translateX(5px);
    }

    /* Overlay */
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 2999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .mobile-nav-links.active+.mobile-nav-overlay,
    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}