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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
.carnival-text {
    font-family: 'Freckle Face', cursive;
    color: #f24182;
    text-shadow: 0 0 10px rgba(242, 65, 130, 0.5);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
}

.page-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #cccccc;
    margin-bottom: 3rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(242, 65, 130, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-family: 'Freckle Face', cursive;
    color: #f24182;
    text-shadow: 0 0 10px rgba(242, 65, 130, 0.5);
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #f24182;
    background: rgba(242, 65, 130, 0.1);
    box-shadow: 0 0 15px rgba(242, 65, 130, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #f24182;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b3d 50%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
}

.cta-button {
    background: linear-gradient(45deg, #f24182, #ffd93d);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(242, 65, 130, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(242, 65, 130, 0.6);
}

.button-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.floating-element:nth-child(2) {
    animation-delay: -2s;
}

.floating-element:nth-child(3) {
    animation-delay: -4s;
}

/* Games Section */
.games-section {
    padding: 6rem 0;
    background: #1a1a1a;
}

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

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(242, 65, 130, 0.2);
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(242, 65, 130, 0.3);
    border-color: #f24182;
}

.game-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    height: 200px;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(242, 65, 130, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 95%;
    max-width: 1200px;
    background: #1a1a1a;
    border-radius: 15px;
    border: 2px solid #f24182;
    box-shadow: 0 0 30px rgba(242, 65, 130, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(242, 65, 130, 0.3);
}

.modal-header h3 {
    color: #f24182;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-button {
    color: #f24182;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #ffd93d;
}

.modal-body {
    padding: 0;
}

.modal-body iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 0 0 15px 15px;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2d1b3d 0%, #1a1a1a 50%, #2d1b3d 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #cccccc;
}

.carnival-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f24182;
    text-shadow: 0 0 10px rgba(242, 65, 130, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: #cccccc;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carnival-tent {
    font-size: 8rem;
    animation: float 4s ease-in-out infinite;
}

.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.sparkles span {
    position: absolute;
    font-size: 2rem;
    animation: sparkle 3s ease-in-out infinite;
}

.sparkles span:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.sparkles span:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.5s; }
.sparkles span:nth-child(3) { bottom: 30%; left: 10%; animation-delay: 1s; }
.sparkles span:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 1.5s; }

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: #1a1a1a;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(41, 216, 163, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(41, 216, 163, 0.3);
    border-color: #29d8a3;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #29d8a3;
}

.feature-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b3d 50%, #1a1a1a 100%);
}

.contact-header {
    margin-bottom: 4rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(242, 65, 130, 0.2);
}

.form-container h2 {
    color: #f24182;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f24182;
    box-shadow: 0 0 10px rgba(242, 65, 130, 0.3);
}

.submit-button {
    width: 100%;
    background: linear-gradient(45deg, #f24182, #ffd93d);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 65, 130, 0.4);
}

.contact-info h2 {
    color: #29d8a3;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(41, 216, 163, 0.2);
}

.info-icon {
    font-size: 2rem;
    color: #29d8a3;
    min-width: 3rem;
}

.info-content h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-content p {
    color: #f24182;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.info-content small {
    color: #cccccc;
}

.contact-visual {
    position: relative;
    height: 300px;
    margin-top: 2rem;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-elements .floating-element {
    position: absolute;
    font-size: 2.5rem;
    animation: float 5s ease-in-out infinite;
    opacity: 0.7;
}

.floating-elements .floating-element:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.floating-elements .floating-element:nth-child(2) { top: 60%; left: 10%; animation-delay: 1s; }
.floating-elements .floating-element:nth-child(3) { top: 20%; right: 20%; animation-delay: 2s; }
.floating-elements .floating-element:nth-child(4) { bottom: 20%; right: 30%; animation-delay: 3s; }
.floating-elements .floating-element:nth-child(5) { top: 70%; left: 60%; animation-delay: 4s; }

/* Legal Sections */
.legal-section {
    padding: 8rem 0 6rem;
    background: #1a1a1a;
}

.legal-header {
    margin-bottom: 4rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.terms-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #f24182;
}

.terms-section h2 {
    color: #f24182;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.terms-section h3 {
    color: #29d8a3;
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.terms-section p {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.terms-section ul {
    margin: 1rem 0 1rem 2rem;
}

.terms-section li {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.last-updated {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    background: rgba(41, 216, 163, 0.1);
    border-radius: 8px;
}

.last-updated p {
    color: #29d8a3;
    font-weight: 600;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 3rem 0;
    background: rgba(242, 65, 130, 0.1);
    border-top: 1px solid rgba(242, 65, 130, 0.3);
}

.disclaimer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-content h3 {
    color: #f24182;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.disclaimer-content p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #0f0f0f;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h4 {
    color: #f24182;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f24182;
}

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

.footer-bottom p {
    color: #999999;
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 26, 26, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carnival-stats {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .modal-body iframe {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .carnival-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .floating-element {
        font-size: 2rem;
    }
    
    .carnival-tent {
        font-size: 6rem;
    }
}