html {
    scroll-behavior: smooth;
}

:root {
    --color-blue: #0080ff;
    --color-indigo: #6971ec;
    --color-purple: #8d62d5;
    --color-orchid: #a254bc;
    --color-fuchsia: #ae47a3;
    --color-magenta: #b43c89;
    --text-white: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, 
        var(--color-blue),
        var(--color-indigo),
        var(--color-purple),
        var(--color-orchid),
        var(--color-fuchsia),
        var(--color-magenta)
    );
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.navbar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-white);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero__text {
    animation: slideUp 0.8s ease-out;
}

.hero__headline {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero__subheadline {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-dim);
    max-width: 90%;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #000;
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background: #f0f0f0;
}

.app-store-btn svg {
    width: 28px;
    height: 28px;
    margin-right: 12px;
}

.app-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.app-store-text span:first-child {
    font-size: 0.7rem;
    font-weight: 300;
}

.app-store-text span:last-child {
    font-size: 1.2rem;
    font-weight: 600;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;

    @media (min-width: 1024px) {
      animation: float 6s ease-in-out infinite;
    }
}

.game-icon-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.15);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.game-icon-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
section, header[id] {
    padding: 30px 0;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 60px;
    text-align: center;
    position: relative;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #fff;
    margin: 20px auto 0;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}


/* About */

.about {
  padding-top: 0;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.developer-info {
    margin-top: 20px;
    font-weight: 600;
    opacity: 0.9;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    color: #000;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.1), rgba(105, 113, 236, 0.1));
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--color-blue);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.2), rgba(105, 113, 236, 0.2));
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #000;
    font-weight: 700;
}

.feature-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Screenshots */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.screenshot-item {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    border: 2px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: transparent;
    border: none;
    color: #000;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(0,0,0,0.02);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    background: transparent;
    color: #555;
    opacity: 0;
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    /* max-height is handled via JS */
    opacity: 1;
}

.chevron {
    transition: transform 0.3s ease;
    color: #888;
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero__headline {
        font-size: 2.5rem;
    }

    .hero__subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__visual {
        margin-top: 30px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(141, 98, 213, 0.9);
        backdrop-filter: blur(10px);
        padding-top: 100px;
        text-align: center;
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
    }
}