
:root {
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --accent: #58A6FF;
    --accent-hover: #79B8FF;
    --text-main: #E6EDF3;
    --text-muted: #8B949E;
    --glass-bg: rgba(22, 27, 34, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);

    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Ambient Background Blobs */
.ambient-blob {
    position: fixed;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.08) 0%, rgba(13, 17, 23, 0) 70%);
    top: -25vw;
    right: -15vw;
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
    animation: spin 20s linear infinite;
}

.ambient-blob-2 {
    position: fixed;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.05) 0%, rgba(13, 17, 23, 0) 70%);
    bottom: -20vw;
    left: -20vw;
    z-index: -1;
    pointer-events: none;
    filter: blur(120px);
    animation: spin-reverse 25s linear infinite;
}

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

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.github-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.github-link:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
}

/* Main Content */
main {
    padding-top: 80px; /* Header height */
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-try-online {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-try-online a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.hero-try-online a:hover {
    color: var(--accent-hover);
    border-bottom-color: currentColor;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-primary);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(88, 166, 255, 0.3);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 166, 255, 0.5);
}

.cta-button-outline {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: none;
}

.cta-button-outline:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.hero-image-container {
    opacity: 0;
    transform: translateX(30px);
    animation: slideUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.4));
}

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


/* Section General */
.features-section, .gallery-section, .download-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-container {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Features Section */
.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-item.reverse .feature-image-wrapper {
    order: 2;
}

.feature-image-wrapper {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-image-wrapper img {
    width: 100%;
    border-radius: 12px;
}

.feature-text-wrapper h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

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


/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

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

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

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: white;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-family: var(--font-body);
    font-weight: 600;
}

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


/* Download Section */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.download-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.platform-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.platform-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    min-height: 40px; /* Keep cards aligned */
}

.download-button {
    display: inline-block;
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-button:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.platform-note {
    margin-top: 20px;
}

.platform-note-link {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.platform-note-link:hover {
    color: var(--accent-hover);
}


/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInFromTop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content h2 {
    font-family: var(--font-display);
    color: var(--accent);
    margin-bottom: 20px;
}

.modal-content h4 {
    color: var(--text-main);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.modal-content pre {
    background-color: var(--bg-primary);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 10px;
}

.modal-content code {
    font-family: monospace;
    font-size: 0.9rem;
    color: #c9d1d9;
}

.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close-button:hover {
    color: var(--text-main);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromTop {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}



/* Footer */
footer {
    text-align: center;
    padding: 40px;
    margin-top: 100px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle, .hero-cta {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    .hero-image-container {
        order: -1;
        margin-bottom: 40px;
    }
    .feature-item, .feature-item.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .feature-item.reverse .feature-image-wrapper {
        order: 1;
    }
}

@media (max-width: 576px) {
    .main-header {
        padding: 15px 20px;
    }
    .logo { font-size: 1.5rem; }
    .github-link { font-size: 0.8rem; padding: 6px 12px; }
    
    .hero-section, .features-section, .gallery-section, .download-section {
        padding: 60px 20px;
    }
    .section-title { font-size: 2.5rem; }
    .modal-content { padding: 30px 20px; }
}
