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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e6e6f2;
    background: linear-gradient(135deg, #0b1020 0%, #2a1b4d 50%, #120224 100%);
    min-height: 100vh;
}

/* Navigation Styles */
.navbar {
    background: rgba(15, 12, 30, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(91, 59, 166, 0.18);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(91, 59, 166, 0.22);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 2px 4px rgba(135, 206, 235, 0.3));
}

.nav-logo a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #7B68EE, #5B3BA6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #bfb3ff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(45deg, #7B68EE, #5B3BA6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(91, 59, 166, 0.28);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.02) 0%, rgba(90,48,130,0.22) 50%, rgba(30,12,60,0.5) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.3"/><circle cx="80" cy="40" r="1.5" fill="white" opacity="0.4"/><circle cx="40" cy="70" r="1" fill="white" opacity="0.5"/><circle cx="70" cy="80" r="1.8" fill="white" opacity="0.3"/><circle cx="10" cy="60" r="1.2" fill="white" opacity="0.4"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #7B68EE, #5B3BA6, #8A56FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 18px rgba(91, 59, 166, 0.28);
}

.hero p {
    font-size: 1.3rem;
    color: #d6caff;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #7B68EE, #5B3BA6);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 26px rgba(91, 59, 166, 0.26);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(91, 59, 166, 0.36);
}

/* Game Section */
.game-section {
    /* padding: 4rem 2rem; */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.game-frame-wrapper {
    width: 100%;
    max-width: 900px; /* requirement: 900px max */
    margin: 2rem auto;
    position: relative; /* required for padding-top fallback and absolute children */
}

.game-frame {
    width: 100%;
    aspect-ratio: 16 / 9; /* modern browsers */
    height: auto;
    display: block;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(135, 206, 235, 0.3);
    background: white;
}

/* Fallback for older browsers: maintain 16:9 using padding trick on wrapper */
.game-frame-wrapper::before {
    content: '';
    display: block;
    /* padding-top: calc(100% * 9 / 16); 56.25% */
    height: 0;
    pointer-events: none;
}

/* Position iframe/content absolutely inside wrapper when fallback is used */
.game-frame--absolute {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

/* Contact Form */
.contact-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(18,8,36,0.85) 0%, rgba(50,20,90,0.5) 100%);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(135, 206, 235, 0.2);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4682B4;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(91,59,166,0.18);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.03);
    color: #e6e6f2;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7B68EE;
    box-shadow: 0 0 18px rgba(91,59,166,0.22);
}

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

/* Legal Sections */
.legal-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    color: #4682B4;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(135, 206, 235, 0.2);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(135, 206, 235, 0.2);
}

.legal-content h2 {
    color: #4682B4;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(135, 206, 235, 0.3);
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.legal-content a {
    color: #c9bbff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #7B68EE;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2a1b4d 0%, #3b2a6a 100%);
    color: #efeaff;
    padding: 3rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

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

.footer-logo-img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

/* Increase logo sizes for navbar and footer (desktop) */
.logo-image {
    width: 140px; /* bigger for desktop navbar */
    height: 100px;
    filter: drop-shadow(0 6px 20px rgba(91, 59, 166, 0.32));
}

.footer-logo-img {
    width: 160px; /* bigger for desktop footer */
    height: 160px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}

.footer-nav a {
    color: #efeaff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    background: rgba(191,179,255,0.08);
    transform: translateY(-2px);
}

.disclaimer-card {
    background: rgba(255,255,255,0.02);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(125,100,200,0.08);
    text-align: center;
}

.disclaimer-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #efeaff;
}

.disclaimer-card a {
    color: #c9bbff;
    text-decoration: none;
    font-weight: 600;
}

.disclaimer-card a:hover {
    text-decoration: underline;
}

/* Footer bottom copyright bar */
.footer-bottom {
    padding: 1rem 0 ;
    border-top: 1px solid rgba(191,179,255,0.06);
    color: #efeaff;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.95;
}

/* small screens: slightly smaller copyright text */
@media (max-width: 480px) {
    .footer-bottom {
        font-size: 0.9rem;
        padding-top: 0.75rem;
    }
}

/* Age Verification Modal */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(70, 130, 180, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-modal-content {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    max-width: 500px;
    margin: 2rem;
    box-shadow: 0 20px 60px rgba(135, 206, 235, 0.4);
    animation: modalSlideIn 0.5s ease-out;
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(240,248,255,0.7));
}

.h2,
h2 {
    color: #1b1433; /* dark indigo/charcoal for strong contrast */
    text-shadow: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.15);
    object-fit: cover;
}

.about-text h2 {
    font-size: 2rem;
    color: inherit;
    margin-bottom: 1rem;
}

.about-text p {
    color: #455a64;
    line-height: 1.8;
}

/* Features Section */
.features-section {
    padding: 4rem 2rem;
    background: rgba(255,255,255,0.92);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(135, 206, 235, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(135,206,235,0.08);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(135, 206, 235, 0.18);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem auto;
    display: block;
}

.feature-card h3 {
    color: #2f6b8a;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #556f7f;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(240,248,255,0.9), rgba(255,255,255,0.95));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(135, 206, 235, 0.08);
    border: 1px solid rgba(135,206,235,0.06);
}

.testimonial-quote {
    font-style: italic;
    color: #334a57;
    margin-bottom: 1rem;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(135,206,235,0.15);
}

.testimonial-name {
    font-weight: 700;
    color: #2f6b8a;
}

.testimonial-title {
    font-size: 0.85rem;
    color: #6b8b99;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.age-modal h2 {
    color: #4682B4;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.age-modal p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.age-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.age-btn-yes {
    background: linear-gradient(45deg, #87CEEB, #4682B4);
    color: white;
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.4);
}

.age-btn-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.6);
}

.age-btn-no {
    background: linear-gradient(45deg, #DDA0DD, #9370DB);
    color: white;
    box-shadow: 0 6px 20px rgba(221, 160, 221, 0.4);
}

.age-btn-no:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(221, 160, 221, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-frame {
        height: 400px;
    }

    /* scale logos down on tablet */
    .logo-image {
        width: 96px;
        height: 96px;
    }

    .footer-logo-img {
        width: 96px;
        height: 96px;
    }
    
    .age-modal-content {
        margin: 1rem;
        padding: 2rem;
    }
    
    .age-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .contact-form,
    .legal-content {
        padding: 2rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    /* small screen logo sizes */
    .logo-image {
        width: 96px;
        height: 96px;
    }

    .footer-logo-img {
        width: 96px;
        height: 96px;
    }
}