/* ============================================
   MiniMix Games - Marketing Website Styles
   Modern, Minimalist, Playful Design
   ============================================ */

/* CSS Variables */
:root {
    --primary: #18375d;
    --primary-light: #2a4a73;
    --primary-dark: #0f2440;
    --accent: #6366F1;
    --accent-secondary: #FF6B6B;

    --bg-primary: #e3e8ff;
    --bg-secondary: #cdd6ff;
    --bg-tertiary: #f0f4f8;

    --text-primary: #1a2b3c;
    --text-secondary: #4a5e73;
    --text-muted: #7a8fa3;

    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(24, 55, 93, 0.08);
    --shadow-md: 0 4px 12px rgba(24, 55, 93, 0.1);
    --shadow-lg: 0 8px 30px rgba(24, 55, 93, 0.12);
    --shadow-xl: 0 20px 50px rgba(24, 55, 93, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(24, 55, 93, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 55, 93, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(24, 55, 93, 0.05);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 251, 252, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
}

.logo-icon {
    font-size: 28px;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(24, 55, 93, 0.05);
}

.nav-link.nav-cta {
    background: var(--primary);
    color: white;
    margin-left: 8px;
}

.nav-link.nav-cta:hover {
    background: var(--primary-light);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 8px;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.language-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.language-toggle .globe-icon {
    width: 16px;
    height: 16px;
}

.language-toggle .chevron-icon {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown.active + .language-toggle .chevron-icon {
    transform: rotate(180deg);
}

.language-option {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.language-option:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.language-option:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.language-option:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.language-option.active {
    background: var(--accent);
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #6366F1, #818CF8);
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #FF6B6B, #FFA07A);
    bottom: -50px;
    left: -100px;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #10B981, #6EE7B7);
    top: 40%;
    left: 30%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(129, 140, 248, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(42px, 6vw, 64px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-appstore {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero-appstore .apple-icon {
    margin-left: 4px;
    margin-right: 2px;
    vertical-align: middle;
}

.coming-soon-badge {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: var(--primary);
    border-radius: 44px;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1) inset;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-15px); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 34px;
    overflow: hidden;
}

.app-preview {
    height: 100%;
    padding: 20px 16px;
}

.app-header {
    text-align: center;
    padding: 16px 0 24px;
}

.app-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.app-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.app-game-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--card-color), color-mix(in srgb, var(--card-color) 70%, black));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.app-game-card .material-symbols-outlined {
    font-size: 32px;
    color: white;
}

/* Floating Emojis */
.floating-emoji {
    position: absolute;
    font-size: 40px;
    animation: bounce 3s ease-in-out infinite;
}

.floating-emoji-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-emoji-2 {
    bottom: 20%;
    right: 5%;
    animation-delay: 0.5s;
}

.floating-emoji-3 {
    top: 30%;
    left: 5%;
    animation-delay: 1s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 0.5; }
}

/* ============================================
   Games Section
   ============================================ */

.games {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-items: center;
}

/* Center the last row with 2 items for 5 cards */
.games-grid .game-card:nth-child(4) {
    grid-column: 1 / 2;
    justify-self: end;
    margin-right: 12px;
}

.games-grid .game-card:nth-child(5) {
    grid-column: 2 / 3;
    justify-self: start;
    margin-left: 12px;
}

.game-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    gap: 24px;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.game-card:hover::before {
    transform: scaleY(1);
}

.game-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, black));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.game-icon .material-symbols-outlined {
    font-size: 32px;
    color: white;
}

.game-content {
    flex: 1;
}

.game-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary);
}

.game-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.game-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}


/* ============================================
   Features Section
   ============================================ */

.features {
    padding: 100px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Changelog Section
   ============================================ */

.changelog {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.changelog-timeline {
    max-width: 700px;
    margin: 0 auto;
}

.changelog-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    position: relative;
}

.changelog-item::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(15px);
}

.changelog-item::after {
    content: '';
    position: absolute;
    left: 80px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(10px);
    box-shadow: 0 0 0 4px var(--bg-secondary);
}

.changelog-date {
    text-align: right;
    padding-top: 4px;
}

.date-month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.date-year {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.changelog-content {
    padding-bottom: 48px;
    padding-left: 24px;
}

.changelog-version {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: white;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.changelog-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 16px;
}

.changelog-list {
    list-style: none;
}

.changelog-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.changelog-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* ============================================
   Download Section
   ============================================ */

.download {
    padding: 100px 0;
    background: var(--bg-primary);
}

.download-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-xl);
    padding: 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-title {
    font-size: clamp(32px, 5vw, 44px);
    color: white;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Store Badges - Common Styles */
.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    height: 48px;
    width: 162px;
}

.store-badge img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

/* Google Play Badge - has built-in padding, so we adjust */
.google-play-badge {
    height: 48px;
    width: 162px;
}

.google-play-badge img {
    height: auto;
    width: 100%;
}

.google-play-badge:hover {
    transform: scale(1.05);
}

/* App Store Badge */
.app-store-badge {
    position: relative;
    height: 48px;
    width: 162px;
}

.app-store-badge.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.app-store-badge.disabled img {
    opacity: 0.4;
    filter: grayscale(100%);
}

.download-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.deco-emoji {
    position: absolute;
    font-size: 60px;
    opacity: 0.15;
}

.deco-1 { top: 10%; left: 5%; }
.deco-2 { top: 20%; right: 10%; }
.deco-3 { bottom: 15%; left: 15%; }
.deco-4 { bottom: 10%; right: 5%; }

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .hero-appstore {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 20px;
    }

    .phone-mockup {
        width: 240px;
        height: 500px;
        transform: none;
        animation: floatMobile 6s ease-in-out infinite;
    }

    @keyframes floatMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }

    .floating-emoji {
        display: none;
    }

    /* Tablet: 2 columns, with 5th card centered */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid .game-card:nth-child(4),
    .games-grid .game-card:nth-child(5) {
        grid-column: auto;
        justify-self: center;
        margin: 0;
    }

    .games-grid .game-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .nav-link.nav-cta {
        margin-left: 0;
        margin-top: 8px;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }

    .language-toggle {
        width: 100%;
        justify-content: center;
    }

    .language-dropdown {
        left: 0;
        right: 0;
        min-width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .scroll-indicator {
        display: none;
    }

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

    .games-grid .game-card:nth-child(4),
    .games-grid .game-card:nth-child(5) {
        grid-column: auto;
        justify-self: center;
        margin: 0;
    }

    .game-card {
        flex-direction: column;
        text-align: center;
    }

    .game-tags {
        justify-content: center;
    }

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

    .changelog-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .changelog-item::before,
    .changelog-item::after {
        display: none;
    }

    .changelog-date {
        text-align: left;
        display: flex;
        gap: 8px;
    }

    .changelog-content {
        padding-left: 0;
    }

    .download-card {
        padding: 40px 24px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .phone-mockup {
        width: 200px;
        height: 420px;
    }

    .app-game-card {
        font-size: 24px;
    }

    .app-game-card .material-symbols-outlined {
        font-size: 24px;
    }
}

/* ============================================
   Animations on Scroll
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grids */
.games-grid .game-card,
.features-grid .feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.games-grid .game-card.visible,
.features-grid .feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   Back to Top Button
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 0.7;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top.visible:hover {
    opacity: 1;
}

.back-to-top:hover {
    background: color-mix(in srgb, var(--accent) 85%, black);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
