/*
   freeaiporngame.love - Modern CSS
   Mobile-first responsive design with optimized performance
*/

:root {
    /* Color Palette - Purple/Orange theme (different from previous pink/purple) */
    --primary: #6200EA;
    --secondary: #FF9E80;
    --dark: #212121;
    --light: #F5F5F5;
    --gray: #757575;
    --white: #FFFFFF;
    --gradient: linear-gradient(120deg, #6200EA, #9D46FF);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

section {
    padding: 4rem 0;
}

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

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: 0.8rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    display: none;
}

.main-nav ul.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.main-nav ul li {
    margin: 0.5rem 0;
    text-align: center;
}

.main-nav a {
    color: var(--dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    display: block;
}

.main-nav a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 4rem 0 2rem;
    text-align: center;
}

.hero-text {
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero h2::after {
    background-color: var(--secondary);
}

.hero span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.primary-btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: var(--dark);
}

.game-console {
    max-width: 300px;
    margin: 0 auto;
}

/* Game Section */
.game-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.game-card {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.game-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.game-link {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 1rem;
}

.game-link:hover {
    background-color: #7c4dff;
    color: var(--white);
}

/* Features Section */
.features-section {
    background-color: var(--light);
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
}

/* Reviews Section */
.reviews-section {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 0;
}

.reviews-section h2 {
    color: var(--white);
}

.reviews-section h2::after {
    background-color: var(--secondary);
}

.review-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.review-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.reviewer {
    text-align: right;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section h2::after {
    background-color: var(--secondary);
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo .logo {
    margin-bottom: 1rem;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.link-column h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.link-column h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
}

.link-column li {
    margin-bottom: 0.5rem;
}

.link-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.link-column a:hover {
    color: var(--secondary);
}

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

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

/* Media Queries */
@media (min-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: row;
    }
    
    .main-nav ul li {
        margin: 0 0 0 1.5rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
        text-align: left;
    }
    
    .hero .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
    
    .hero-text {
        flex: 1;
        margin-bottom: 0;
    }
    
    .hero-visual {
        flex: 1;
    }
    
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-logo {
        align-items: flex-start;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
    
    .link-column h4 {
        display: block;
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero h2 {
        font-size: 3rem;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.game-card, .feature-item, .review-card {
    animation: fadeIn 0.8s ease forwards;
}
