:root {
    --bg-color: #f0f4f8;
    --text-color: #2d3748;
    --primary-color: #a0c4ff;
    --secondary-color: #bdb2ff;
    --accent-color: #ffc6ff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Zen Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem 2rem;
    /* Increased top padding to fix overlap */
    position: relative;
    overflow: hidden;
}

nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    z-index: 1000;
    display: flex;
    gap: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

.logo-img {
    width: 140px;
    /* Slightly larger */
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

h1 {
    font-size: 4rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

p.subtitle {
    font-size: 1.4rem;
    color: #8fa3b7;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(160, 196, 255, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
}

section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Desktop Views Grid */
.desktop-views {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 4rem auto;
    max-width: 1000px;
}

.view-box {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--glass-bg);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    cursor: zoom-in;
}

.view-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.view-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(160, 196, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-box:hover .view-overlay {
    opacity: 1;
}

.view-overlay i {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox.active img {
    transform: scale(1);
}

/* Download Section Styles */
.download-section {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 6rem 2rem;
    margin: 4rem auto;
    max-width: 800px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
}

.download-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.download-card {
    padding: 4rem 3rem;
    background: white;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 500px;
    width: 100%;
    border: 1px solid #f0f4f8;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.download-card i {
    font-size: 4rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    display: block;
}

.download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.download-card p {
    color: #718096;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.download-card .btn {
    display: inline-block;
    width: 100%;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

footer {
    text-align: center;
    padding: 3rem;
    color: #718096;
    font-size: 0.9rem;
}

/* Docs Specific Styles */
.docs-layout {
    display: flex;
    gap: 3rem;
    padding-top: 10rem;
}

.docs-sidebar {
    width: 250px;
    height: fit-content;
    position: sticky;
    top: 8rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
}

.docs-sidebar h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar li {
    margin-bottom: 0.5rem;
}

.docs-sidebar a {
    text-decoration: none;
    color: #718096;
    transition: color 0.3s ease;
}

.docs-sidebar a:hover {
    color: var(--primary-color);
}

.docs-content {
    flex: 1;
}

.docs-content h2 {
    margin-bottom: 1.5rem;
}

.docs-content p {
    margin-bottom: 1rem;
}

.docs-content p i {
    margin-right: 0.8rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

pre {
    background: #2d3748;
    color: #edf2f7;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    overflow-x: auto;
}

/* Releases Page */
.releases-container {
    padding-top: 10rem;
}

.release-item {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    transition: transform 0.3s ease;
}

.release-item:hover {
    transform: translateY(-5px);
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.version-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.release-date {
    color: #8fa3b7;
    font-size: 0.9rem;
}

.changelog ul {
    list-style: none;
    padding-left: 0.5rem;
}

.changelog li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.changelog li i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

code {
    font-family: 'Fira Code', monospace;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    nav {
        width: 90%;
        padding: 0.8rem 1.5rem;
        gap: 1.2rem;
        top: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .btn-download {
        display: none;
        /* Hide download button in nav on small screens for space */
    }

    h1 {
        font-size: 2.5rem;
    }

    p.subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .desktop-views {
        grid-template-columns: 1fr;
    }

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

    .download-section {
        padding: 4rem 1.5rem;
        border-radius: 30px;
    }

    .download-card {
        padding: 3rem 1.5rem;
    }

    /* Docs Mobile */
    .docs-layout {
        flex-direction: column;
        padding-top: 8rem;
    }

    .docs-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .docs-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .docs-sidebar li {
        margin-bottom: 0;
    }

    .docs-content h2 {
        font-size: 1.8rem;
    }

    /* Releases Mobile */
    .release-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .releases-container {
        padding-top: 8rem;
    }
}

@media screen and (max-width: 480px) {
    nav {
        gap: 0.8rem;
    }

    nav a {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 2rem;
    }
}