/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F8F9FA;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Override container width for game sections */
.hero-game .container,
.how-to-play .container {
    max-width: 1200px;
}

/* Force game sections to use full width */
.hero-game .container {
    padding: 0 20px;
}

.how-to-play .container {
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Game Section */
.hero-game {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #FFE66D, #FF6B6B);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.game-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.game-header p {
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.game-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    display: block;
    min-height: 650px;
}

/* Game Preview Card */
.game-preview {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    background-image: url('images/bloons.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.game-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/bloons.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    opacity: 0.3;
    z-index: 1;
    border-radius: 15px;
}

.game-thumbnail {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.thumbnail-content {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 2s ease-in-out infinite;
}

.thumbnail-content h3 {
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.thumbnail-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

/* PLAY NOW Button */
.play-now-btn {
    background: linear-gradient(135deg, #1A1A1A, #2C2C2C);
    border: none;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    color: #FFD700;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,215,0,0.3);
    z-index: 2;
}

.play-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #2C2C2C, #1A1A1A);
}

.play-now-btn:active {
    transform: translateY(-1px);
}

.btn-text {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #FFD700;
    border-radius: 2px;
    opacity: 0.7;
}

.play-now-btn:hover .btn-indicator {
    opacity: 1;
    width: 40px;
    transition: all 0.3s ease;
}

.game-iframe-wrapper {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    height: 600px;
}

.iframe-background {
    position: relative;
    border-radius: 15px;
    overflow: visible;
    height: 100%;
    width: 100%;
    background-image: url('images/bloons.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.iframe-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/bloons.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    opacity: 0.3;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.iframe-background.hide-background {
    background-image: none !important;
}

.iframe-background.hide-background::before {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

.iframe-background iframe {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background: linear-gradient(135deg, #FFE66D, #FF6B6B);
    border-radius: 15px;
    height: 100%;
    width: 100%;
    border: none;
    transition: background 0.5s ease;
    display: block;
}

.iframe-background.hide-background iframe {
    background: transparent !important;
    z-index: 20 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.game-instructions {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    padding: 2rem;
    border-radius: 15px;
    color: white;
    max-width: 1080px;
    margin: 2rem auto 0;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.game-instructions h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.instruction-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.step-number {
    background: #FFE66D;
    color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* What is Bloons Section */
.what-is-bloons {
    padding: 4rem 0;
    background: white;
}

.what-is-bloons h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #FF6B6B;
    text-align: center;
    margin-bottom: 3rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.text-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}


.balloon, .monkey, .dart {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.balloon-1 { top: 20%; left: 20%; animation-delay: 0s; }
.balloon-2 { top: 30%; right: 20%; animation-delay: 1s; }
.balloon-3 { bottom: 30%; left: 30%; animation-delay: 2s; }
.monkey { bottom: 20%; right: 30%; animation-delay: 0.5s; }
.dart { top: 50%; left: 50%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Game Features Section */
.game-features {
    padding: 4rem 0;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
}

.game-features h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #FFE66D;
}

/* How to Play Section */
.how-to-play {
    padding: 4rem 0;
    background: white;
}

.how-to-play h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #FF6B6B;
    text-align: center;
    margin-bottom: 3rem;
}

.play-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.play-step {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #FFE66D, #FF6B6B);
    border-radius: 15px;
    color: white;
    transition: transform 0.3s ease;
}

.play-step:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.play-step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Why Choose Section */
.why-choose {
    padding: 4rem 0;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
}

.why-choose h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #FFE66D;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: white;
}

.faq h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #FF6B6B;
    text-align: center;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.faq-question {
    padding: 1.5rem;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #44A08D, #4ECDC4);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, #FFE66D, #FF6B6B);
    color: white;
}

.contact h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #FFE66D;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

.submit-btn {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #FFE66D;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFE66D;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

.footer-bottom a {
    color: #FFE66D;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255,107,107,0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .game-header h2 {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .instruction-steps {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .play-steps,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .game-header h2 {
        font-size: 1.8rem;
    }
    
    .game-container {
        padding: 1rem;
    }
    
    .game-iframe-wrapper iframe {
        height: 400px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* About Page Specific Styles */
.about-hero {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    text-align: center;
}

.about-hero h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.about-hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.mission, .team, .history, .values, .partners, .privacy {
    padding: 4rem 0;
}

.mission {
    background: white;
}

.mission h2, .team h2, .history h2, .values h2, .partners h2, .privacy h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #FF6B6B;
    text-align: center;
    margin-bottom: 3rem;
}

.mission-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-visual {
    text-align: center;
}

.mission-icon {
    font-size: 8rem;
    animation: float 3s ease-in-out infinite;
}

.team {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
}

.team h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-member h3 {
    color: #FFE66D;
    margin-bottom: 1rem;
}

.history {
    background: white;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.timeline-year {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 120px;
    text-align: center;
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    color: #FF6B6B;
    margin-bottom: 0.5rem;
}

.values {
    background: linear-gradient(135deg, #FFE66D, #FF6B6B);
    color: white;
}

.values h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-item h3 {
    color: #FFE66D;
    margin-bottom: 1rem;
}

.partners {
    background: white;
}

.partners-content {
    text-align: center;
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.partner-logo {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
}

.privacy {
    background: #f8f9fa;
}

.privacy-content h3 {
    color: #FF6B6B;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content a {
    color: #FF6B6B;
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for about page */
@media (max-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-year {
        min-width: auto;
    }
    
    .partner-logos {
        flex-direction: column;
        align-items: center;
    }
}
