/* Global Styles */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --dark-color: #292f36;
    --light-color: #f7fff7;
    --text-color: #292f36;
    --border-radius: 16px;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../images/background-pattern.png');
    background-repeat: repeat;
    background-size: 300px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bubblegum Sans', cursive;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

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

.text-primary {
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo a {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 2.2rem;
    text-decoration: none;
    color: var(--dark-color);
    transition: transform 0.3s ease;
    display: inline-block;
}

.logo a:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.large-btn {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 5%;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,230,109,0.2) 0%, rgba(78,205,196,0.1) 50%, rgba(255,107,107,0.2) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 50%;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-image {
    position: relative;
    z-index: 1;
    animation: fadeInRight 1s ease;
}

.game-preview {
    position: relative;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.game-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.cute-bomb, .cute-flag, .cute-number {
    position: absolute;
    width: 80px;
    height: 80px;
}

.cute-bomb {
    top: -20px;
    right: -20px;
}

.cute-flag {
    bottom: -20px;
    left: 50px;
}

.cute-number {
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
}

.cute-bomb img, .cute-flag img, .cute-number img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Features Section */
.features {
    padding: 5rem 5%;
    background-color: white;
    border-radius: var(--border-radius);
    margin: 3rem auto;
    max-width: 1400px;
    box-shadow: var(--shadow);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

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

.feature-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
    border: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* How to Play Section */
.how-to-play {
    padding: 5rem 5%;
    background-color: var(--accent-color);
    background-image: url('../images/pattern-yellow.png');
    background-repeat: repeat;
    background-size: 200px;
    position: relative;
    overflow: hidden;
}

.gameplay-steps {
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateX(10px);
}

.step-number {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 3rem;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 2rem;
    box-shadow: var(--shadow);
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 5%;
    background-color: white;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
}

.testimonial::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -20px;
    left: 10px;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: 'Bubblegum Sans', cursive;
}

.testimonial-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

/* Game Statistics Section */
.game-stats {
    background-color: #f8f9fa;
    padding: 3rem 5%;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Bubblegum Sans', cursive;
}

.stat-label {
    font-size: 1rem;
    color: #666;
}

/* Game Demo Section */
.game-demo {
    padding: 3rem 5%;
    text-align: center;
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.demo-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.mini-board {
    display: grid;
    grid-template-columns: repeat(3, 50px);
    grid-gap: 5px;
    justify-content: center;
    margin: 2rem auto;
}

.demo-tile {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.demo-tile:hover {
    background-color: #3fb167;
    transform: scale(1.05);
}

.demo-tile[data-value="0"] {
    background-color: var(--accent-color);
}

.demo-tile[data-value="1"]::before {
    content: '1';
    color: var(--primary-color);
}

.demo-tile[data-value="2"]::before {
    content: '2';
    color: var(--secondary-color);
}

.demo-tile[data-value="flag"]::before {
    content: '🚩';
    font-size: 24px;
}

.demo-tile[data-value="bomb"]::before {
    content: '💣';
    font-size: 24px;
}

.demo-note {
    font-size: 0.9rem;
    color: #888;
    margin-top: 1rem;
    font-style: italic;
}

/* CTA Section */
.cta {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 3rem auto;
    max-width: 1400px;
    box-shadow: var(--shadow);
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.cta .primary-btn {
    background-color: white;
    color: var(--primary-color);
}

.cta .primary-btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-logo a {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 2.2rem;
    text-decoration: none;
    color: white;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 1rem 1rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .game-preview {
        width: 300px;
        height: 300px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .game-preview {
        width: 250px;
        height: 250px;
    }
}