/* =============================================
   Topple Town - Main Stylesheet
   A cozy wooden toy aesthetic
   ============================================= */

/* CSS Variables */
:root {
    /* Colors */
    --color-wood-dark: #4A3728;
    --color-wood-medium: #B8956E;
    --color-wood-light: #D4A574;
    --color-cream: #F5E6D3;
    --color-cream-light: #FDF8F3;
    
    --color-sky-blue: #5DADE2;
    --color-grass-green: #7CB342;
    --color-golden: #F4B942;
    --color-cherry: #E74C3C;
    
    --color-text: #4A3728;
    --color-text-light: #6B5344;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(74, 55, 40, 0.1);
    --shadow-medium: 0 8px 30px rgba(74, 55, 40, 0.15);
    --shadow-strong: 0 12px 40px rgba(74, 55, 40, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-cream-light);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-wood-dark);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-golden) 0%, var(--color-cherry) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(244, 185, 66, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 185, 66, 0.5);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-nav {
    background-color: var(--color-golden);
    color: var(--color-wood-dark);
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

.btn-nav:hover {
    background-color: var(--color-cherry);
    color: var(--color-white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-medium);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-wood-dark);
    background: linear-gradient(135deg, var(--color-golden) 0%, var(--color-cherry) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-weight: 600;
    color: var(--color-text-light);
}

.nav-links a:hover {
    color: var(--color-wood-dark);
}

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

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-wood-dark);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #87CEEB; /* Fallback sky blue */
}

/* Parallax Container */
.parallax-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Background Layer */
.parallax-bg {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
}

/* Tower Layers */
.parallax-tower {
    position: absolute;
    height: 90%;
    width: auto;
    max-width: none;
    bottom: 0;
}

.parallax-tower-left {
    left: -5%;
}

.parallax-tower-right {
    right: -5%;
}

/* Character Layers */
.parallax-character {
    position: absolute;
    width: auto;
    max-width: none;
}

/* Characters BEHIND the title */
.parallax-triangle {
    top: 20%;
    left: 15%;
    height: 22%;
}

.parallax-cylinder {
    top: 18%;
    right: 12%;
    height: 22%;
}

/* Characters IN FRONT of the title */
.parallax-cube {
    bottom: 22%;
    left: 10%;
    height: 28%;
}

.parallax-bridge {
    bottom: 20%;
    right: 8%;
    height: 26%;
}

/* Title Layer */
.parallax-title {
    max-width: 70%;
    height: auto;
}

/* Gradient overlay for better text readability */
.parallax-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: var(--spacing-lg);
    margin-top: 55vh; /* Push content below the title image */
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--color-white);
    text-shadow: 
        3px 3px 0 var(--color-wood-dark),
        6px 6px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-sm);
    animation: bounceIn 0.8s ease-out;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--color-cream);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-shadow: 
        2px 2px 0 var(--color-wood-dark),
        4px 4px 15px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    color: var(--color-cream);
    font-size: 0.875rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out 1s both;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 0.5rem auto 0;
    border-right: 3px solid var(--color-cream);
    border-bottom: 3px solid var(--color-cream);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* Responsive adjustments for parallax */
@media (max-width: 768px) {
    .parallax-tower {
        display: none; /* Hide block towers on mobile */
    }
    
    .parallax-title {
        max-width: 90%;
        margin-top: -10%; /* Move title up slightly */
    }
    
    /* Characters behind title - shrunk 10% and positioned closer to title */
    .parallax-triangle {
        top: 22%;
        left: 5%;
        height: 14%;
    }
    
    .parallax-cylinder {
        top: 20%;
        right: 5%;
        height: 14%;
    }
    
    /* Characters in front of title - shrunk 10% and positioned closer to title */
    .parallax-cube {
        bottom: 28%;
        left: 3%;
        height: 18%;
    }
    
    .parallax-bridge {
        bottom: 26%;
        right: 3%;
        height: 16%;
    }
    
    .hero-content {
        margin-top: 62vh; /* Push tagline and button further down below characters */
    }
}

@media (min-width: 1400px) {
    .parallax-title {
        max-width: 50%;
    }
}

/* About Section */
.about {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-cream-light);
}

.about-description {
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-light);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    padding-top: var(--spacing-md);
    justify-items: center;
}

/* Composite feature cards with image background and text overlay */
.feature-card-composite {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    transition: transform var(--transition-medium);
}

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

.feature-bg-image {
    width: 100%;
    height: auto;
    display: block;
}

.feature-overlay-text {
    position: absolute;
    bottom: 12%;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 var(--spacing-lg);
    pointer-events: none;
}

.feature-overlay-text h3 {
    font-size: 1.375rem;
    color: var(--color-wood-dark);
    margin-bottom: 0.25rem;
    font-weight: 800;
}

.feature-overlay-text p {
    color: var(--color-text-light);
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

/* Placeholder cards for missing images */
.feature-placeholder {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-placeholder-content {
    text-align: center;
    padding: var(--spacing-lg);
}

.feature-placeholder-content h3 {
    font-size: 1.375rem;
    color: var(--color-wood-dark);
    margin-bottom: var(--spacing-xs);
    font-weight: 800;
}

.feature-placeholder-content p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
}

.placeholder-note {
    display: inline-block;
    background-color: var(--color-cream);
    color: var(--color-text-light);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
}

/* Responsive adjustments for composite feature cards */
@media (max-width: 768px) {
    .feature-card-composite {
        max-width: 320px;
    }
    
    .feature-overlay-text {
        bottom: 12%;
    }
    
    .feature-overlay-text h3 {
        font-size: 1.25rem;
    }
    
    .feature-overlay-text p {
        font-size: 0.8125rem;
    }
}

/* Trailer Section */
.trailer {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--color-wood-medium) 0%, var(--color-wood-dark) 100%);
}

.trailer .section-title,
.trailer .section-subtitle {
    color: var(--color-cream);
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Screenshots Section */
.screenshots {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-cream);
}

.screenshots-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.screenshots-track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--spacing-sm) 0;
}

.screenshots-track::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    transition: transform var(--transition-medium);
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background-color: var(--color-white);
    color: var(--color-wood-dark);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--color-golden);
    transform: scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-dots {
    display: none; /* Hidden by default on desktop */
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-wood-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dots .dot.active {
    background-color: var(--color-golden);
    transform: scale(1.2);
}

/* Only show dots on mobile when scrolling is needed */
@media (max-width: 768px) {
    .carousel-dots {
        display: flex;
    }
}

/* Download Section */
.download {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--color-sky-blue) 0%, var(--color-grass-green) 100%);
}

.download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-icon {
    margin-bottom: var(--spacing-lg);
}

.download-icon img {
    width: 160px;
    height: 160px;
    border-radius: 32px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transition: transform var(--transition-medium);
}

.download-icon img:hover {
    transform: scale(1.05);
}

.download-info {
    text-align: center;
}

.download-info .section-title {
    text-align: center;
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
}

.download-info .section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

/* Responsive for download section */
@media (max-width: 768px) {
    .download-icon img {
        width: 120px;
        height: 120px;
        border-radius: 24px;
    }
}

.store-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background-color: var(--color-white);
    color: var(--color-wood-dark);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-medium);
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.store-button:hover {
    background-color: var(--color-white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.store-icon {
    width: 32px;
    height: 32px;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.store-name {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Contact Section */
.contact {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-cream-light);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--color-wood-dark);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    border: 2px solid var(--color-cream);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
    background-color: var(--color-cream-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-golden);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    margin-top: var(--spacing-sm);
}

.form-status {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
}

/* Legal Pages (Privacy Policy, Terms of Service) */
.legal-page {
    padding: calc(80px + var(--spacing-xxl)) 0 var(--spacing-xxl);
    background-color: var(--color-cream-light);
    min-height: 100vh;
}

.legal-page .section-title {
    margin-bottom: var(--spacing-xl);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.legal-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background-color: var(--color-cream);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
}

.legal-icon {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.legal-meta-text p {
    margin: 0 !important;
    margin-bottom: 0 !important;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text);
}

.legal-meta a {
    color: var(--color-sky-blue);
}

.legal-meta a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .legal-icon {
        width: 70px;
        height: 70px;
        border-radius: 14px;
    }
    
    .legal-meta-text p {
        font-size: 0.875rem;
    }
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--color-wood-dark);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--color-cream);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.125rem;
    color: var(--color-wood-dark);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.legal-content p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.legal-content li {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
    list-style-type: disc;
}

.legal-content a {
    color: var(--color-sky-blue);
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-back {
    text-align: center;
    margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
    .legal-content {
        padding: var(--spacing-lg);
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
    }
}

/* Footer */
.footer {
    background-color: var(--color-wood-dark);
    color: var(--color-cream);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.studio-credit {
    font-size: 1.125rem;
}

.studio-credit strong {
    color: var(--color-golden);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    transform: scale(0.9);
    transition: transform var(--transition-medium);
}

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

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 24px;
    height: 24px;
}

/* Animations */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-lg);
        box-shadow: var(--shadow-strong);
        transition: right var(--transition-medium);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .screenshot-item {
        width: 160px;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .store-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .store-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
}

@media (min-width: 1024px) {
    .screenshot-item {
        width: 220px;
    }
    
    .screenshots-track {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .carousel-btn {
        display: none; /* Hide arrows when all images visible */
    }
}
