/* Base Styles and Variables */
:root {
    /* Sprunki color palette based on game screenshot */
    --primary-color: #ff3e9d; /* Bright pink */
    --secondary-color: #4deeea; /* Bright cyan */
    --accent-color: #ffb800; /* Yellow/gold */
    --purple-accent: #b967ff; /* Purple */
    --dark-bg: #0e0429; /* Very dark blue/purple */
    --light-bg: #2d1b69; /* Medium blue/purple */
    --grid-color: #ff3e9d; /* Grid lines color */
    --text-light: #ffffff;
    --text-dark: #0e0429;
    
    /* Typography */
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Arial', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--dark-bg), var(--light-bg));
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--secondary-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

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

section {
    padding: var(--spacing-lg) 0;
}

/* Header Styles */
header {
    background-color: rgba(14, 4, 41, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 20px rgba(255, 62, 157, 0.4);
    border-bottom: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

/* Retro grid background for header */
header::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(to right, rgba(255, 62, 157, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 62, 157, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    transform: perspective(500px) rotateX(60deg);
    z-index: -1;
    animation: grid-movement 20s linear infinite;
}

@keyframes grid-movement {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(30px);
    }
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    position: relative;
    z-index: 2;
}

.logo h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color);
    position: relative;
}

.logo h1::after {
    content: 'RETROLIQUE';
    position: absolute;
    bottom: -15px;
    right: 0;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent-color);
    text-shadow: 
        0 0 5px var(--accent-color),
        0 0 10px var(--accent-color);
}

.logo h1 span {
    color: var(--secondary-color);
    text-shadow: 
        0 0 5px var(--secondary-color),
        0 0 10px var(--secondary-color),
        0 0 20px var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

nav a {
    color: var(--text-light);
    font-weight: bold;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--purple-accent), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

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

nav a:hover::before {
    transform: translateX(0);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: url('hero-bg.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
    background-color: rgba(18, 4, 88, 0.7);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
    color: var(--text-light);
}

/* Game Section */
.game-section {
    background-color: var(--dark-bg);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.game-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(to right, rgba(255, 62, 157, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 62, 157, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    z-index: 1;
    animation: grid-movement 20s linear infinite;
}

.game-section .container {
    position: relative;
    z-index: 2;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background-color: #000;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(185, 103, 255, 0.6);
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

#game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.control-btn {
    background-color: rgba(14, 4, 41, 0.7);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background-color: rgba(14, 4, 41, 0.9);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 62, 157, 0.5);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

/* Fullscreen styles */
.game-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    z-index: 9999;
    border-radius: 0;
    border: none;
}

/* Features Section */
.features {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 62, 157, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 62, 157, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 1;
    z-index: 1;
}

.features .container {
    position: relative;
    z-index: 2;
}

.features h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.feature-row {
    display: flex;
    margin-bottom: var(--spacing-xl);
    align-items: center;
    gap: var(--spacing-lg);
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(14, 4, 41, 0.5);
    border: 2px solid var(--primary-color);
    height: 300px;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 62, 157, 0.3), rgba(77, 238, 234, 0.3));
    z-index: 1;
    opacity: 0.7;
}

.feature-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 2px,
        transparent 2px,
        transparent 4px
    );
    z-index: 2;
    opacity: 0.3;
    pointer-events: none;
}

.feature-row:hover .feature-img {
    transform: scale(1.05);
}

.feature-content {
    flex: 1;
    padding: var(--spacing-md);
    background: rgba(14, 4, 41, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.feature-row.reverse .feature-content {
    border-left: none;
    border-right: 4px solid var(--purple-accent);
}

.feature-content h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.6rem;
    position: relative;
    display: inline-block;
}

.feature-row.reverse .feature-content h3 {
    color: var(--purple-accent);
}

.feature-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color), transparent);
}

.feature-row.reverse .feature-content h3::after {
    background: linear-gradient(to right, var(--purple-accent), transparent);
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* About Section */
.about {
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%, rgba(185, 103, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.about-text {
    max-width: 900px;
    text-align: center;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    background: rgba(14, 4, 41, 0.6);
    border-radius: 10px;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--primary-color);
}

.about-feature:nth-child(2) {
    border-bottom-color: var(--secondary-color);
}

.about-feature:nth-child(3) {
    border-bottom-color: var(--accent-color);
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-feature-icon {
    margin-right: var(--spacing-sm);
    color: var(--secondary-color);
    flex-shrink: 0;
}

.about-feature:nth-child(2) .about-feature-icon {
    color: var(--primary-color);
}

.about-feature:nth-child(3) .about-feature-icon {
    color: var(--accent-color);
}

.about-feature-text h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.about-feature:nth-child(2) .about-feature-text h3 {
    color: var(--primary-color);
}

.about-feature:nth-child(3) .about-feature-text h3 {
    color: var(--accent-color);
}

.about-feature-text p {
    margin-bottom: 0;
    font-size: 1rem;
}

.about-conclusion {
    font-size: 1.2rem !important;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
}

/* How to Play Section */
.how-to-play {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.how-to-play::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 184, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 184, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.how-to-play .container {
    position: relative;
    z-index: 2;
}

.how-to-play h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.how-to-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

.how-to-intro p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.instructions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    background: rgba(14, 4, 41, 0.7);
    border-radius: 12px;
    padding: var(--spacing-md);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.instruction-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.instruction-step:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: rgba(14, 4, 41, 0.8);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-right: var(--spacing-md);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 184, 0, 0.3);
}

.step-content {
    flex: 1;
}

.instruction-step h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.3rem;
}

.instruction-step p {
    margin: 0;
    line-height: 1.6;
}

.how-to-tips {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
    background: rgba(14, 4, 41, 0.6);
    border-radius: 12px;
    padding: var(--spacing-md);
    border-top: 2px solid var(--purple-accent);
}

.how-to-tips h3 {
    color: var(--purple-accent);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
    text-align: center;
}

.how-to-tips ul {
    list-style-type: none;
    padding: 0;
}

.how-to-tips li {
    position: relative;
    padding-left: 25px;
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.how-to-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* FAQ Section */
.faq {
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 25%, rgba(255, 62, 157, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.faq .container {
    position: relative;
    z-index: 2;
}

.faq h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) calc(var(--spacing-md) + 5px);
    background: rgba(14, 4, 41, 0.7);
    border-radius: 12px;
    border-left: 4px solid;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item:nth-child(1) {
    border-color: var(--primary-color);
}

.faq-item:nth-child(2) {
    border-color: var(--secondary-color);
}

.faq-item:nth-child(3) {
    border-color: var(--accent-color);
}

.faq-item:nth-child(4) {
    border-color: var(--purple-accent);
}

.faq-item:nth-child(5) {
    border-color: var(--primary-color);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-item h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    position: relative;
    font-weight: 600;
}

.faq-item:nth-child(1) h3 {
    color: var(--primary-color);
}

.faq-item:nth-child(2) h3 {
    color: var(--secondary-color);
}

.faq-item:nth-child(3) h3 {
    color: var(--accent-color);
}

.faq-item:nth-child(4) h3 {
    color: var(--purple-accent);
}

.faq-item:nth-child(5) h3 {
    color: var(--primary-color);
}

.faq-item p {
    line-height: 1.7;
    margin-top: var(--spacing-sm);
}

/* Footer */
footer {
    background-color: rgba(18, 4, 88, 0.9);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo h2 {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    font-size: 1.8rem;
}

.footer-links h3,
.footer-social h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation Styles */
.menu-toggle {
    display: none;
}

.mobile-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.mobile-nav.active {
    max-height: 300px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: var(--spacing-sm);
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .mobile-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .mobile-nav ul li {
        width: 100%;
        text-align: center;
        padding: var(--spacing-xs) 0;
    }
    
    .mobile-nav ul li a {
        display: block;
        width: 100%;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        margin-bottom: var(--spacing-lg);
    }
    
    .feature-image {
        width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .feature-content {
        width: 100%;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .instruction-step {
        padding: var(--spacing-sm);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .feature-item,
    .instruction-step,
    .faq-item {
        padding: var(--spacing-sm);
    }
} 