:root {
    --primary-color: #6C63FF;
    --secondary-color: #FF6B6B;
    --accent-color: #4ECDC4;
    --dark-color: #2D3436;
    --light-color: #F8F9FA;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand img.logo {
    height: 40px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.join-now-btn {
    background: var(--gradient);
    color: white !important;
    border-radius: 25px;
    padding: 8px 24px !important;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.join-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: url('../img/back.jpg') no-repeat center center;
    background-size: cover;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 60px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-right: 15px;
    border: none;
    background: var(--gradient);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.hero-btn-secondary {
    background: transparent;
    border: 2px solid white !important;
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background: white;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 20px 0;
    }
    
    .join-now-btn {
        margin: 10px 16px;
        text-align: center;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons .btn {
        margin-bottom: 15px;
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about-image {
    position: relative;
    margin-bottom: 30px;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.3);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 500;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.feature-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-text p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.about-stats {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    margin-bottom: 20px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-item p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

@media (max-width: 991.98px) {
    .about-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .experience-badge {
        bottom: -10px;
        right: -10px;
        padding: 15px;
    }

    .experience-badge .number {
        font-size: 2rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-content {
    margin-top: 40px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.email-container {
    padding: 30px;
    background: var(--light-color);
    border-radius: 15px;
    margin-top: 20px;
}

.email-container h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-email {
    font-size: 1.4rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.response-time {
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-content {
        padding: 30px 20px;
    }

    .contact-email {
        font-size: 1.2rem;
    }
}

/* Games Section */
.games-section {
    padding: 100px 0;
    background-color: white;
}

.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.2);
}

.game-image {
    position: relative;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-content {
    padding: 25px;
    text-align: center;
}

.game-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.game-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gradient);
    border: none;
    transition: all 0.3s ease;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

@media (max-width: 768px) {
    .games-section {
        padding: 60px 0;
    }

    .game-card {
        margin-bottom: 30px;
    }

    .game-image img {
        height: 220px;
    }
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    margin-top: 50px;
}

/* Disclaimer Row */
.footer-disclaimer {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 0;
}

.disclaimer-content {
    padding: 20px;
}

.age-disclaimer {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFC107;
}

.play-disclaimer {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* Policy Links Row */
.footer-links {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.policy-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.policy-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Images Row */
.footer-images {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cert-img {
    height: 40px;
    margin: 0 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-cert-img:hover {
    opacity: 1;
}

/* Copyright Row */
.footer-copyright {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
}

.copyright-text {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

@media (max-width: 768px) {
    .policy-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .footer-cert-img {
        height: 35px;
        margin: 10px;
    }

    .age-disclaimer {
        font-size: 1rem;
    }

    .play-disclaimer {
        font-size: 0.9rem;
    }
}

/* Game Pages */
.game-page {
    padding-top: 30px;
    min-height: 100vh;
    background: var(--light-color);
}

.game-header {
    margin-bottom: 20px;
}

.game-page-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.game-disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #FFC107;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.game-disclaimer p {
    color: var(--dark-color);
    margin: 0;
    font-size: 0.95rem;
}

.game-frame-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    margin-bottom: 30px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-footer {
    margin-bottom: 50px;
}

.back-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gradient);
    border: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

@media (max-width: 768px) {
    .game-page {
        padding-top: 20px;
    }

    .game-page-title {
        font-size: 2rem;
    }

    .game-frame-container {
        padding-bottom: 100%; /* 1:1 Aspect Ratio for mobile */
    }
}

/* Policy Pages */
.policy-page {
    padding: 120px 0 60px;
    background-color: var(--light-color);
    min-height: 100vh;
}

.policy-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.policy-content h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.policy-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 20px 0 15px;
}

.policy-section p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.policy-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.policy-section ul li {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.policy-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .policy-page {
        padding: 100px 0 40px;
    }

    .policy-content {
        padding: 30px 20px;
    }

    .policy-content h1 {
        font-size: 2rem;
    }

    .policy-section h2 {
        font-size: 1.5rem;
    }

    .policy-section h3 {
        font-size: 1.2rem;
    }
}