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

:root {
    --primary-purple: #2D1B69;
    --magical-gold: #FFD700;
    --carnival-red: #DC143C;
    --ethereal-blue: #4169E1;
    --mystic-pink: #FF69B4;
    --enchanted-green: #32CD32;
    --starlight-white: #F8F8FF;
    --shadow-black: #1A0B2E;
    --gradient-primary: linear-gradient(135deg, #2D1B69 0%, #4169E1 50%, #FF69B4 100%);
    --gradient-secondary: linear-gradient(45deg, #FFD700 0%, #FF69B4 50%, #4169E1 100%);
    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Raleway', sans-serif;
}

html{
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--starlight-white);
    background: var(--gradient-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

.age-popup {
    background: var(--gradient-primary);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid var(--magical-gold);
    box-shadow: 0 0 30px var(--magical-gold), 0 0 60px rgba(255, 217, 4, 0.829);
    animation: pulse-glow 2s infinite;
    max-width: 400px;
    width: 90%;
    color: #FFA500;
}

.age-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--magical-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: wheat;
}

.age-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 30px var(--magical-gold), 0 0 60px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 40px var(--magical-gold), 0 0 80px rgba(255, 215, 0, 0.5); }
}

/* Header */
.header {
    /* position: fixed; */
    top: 0;
    width: 100%;
    background: rgba(45, 27, 105, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--magical-gold);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--magical-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--starlight-white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-link:hover {
    color: var(--magical-gold);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.nav-link::after {
    content: '✨';
    position: absolute;
    right: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    animation: sparkle 1.5s ease-in-out infinite;
}

.nav-link:hover::after {
    opacity: 1;
    right: -20px;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
    background-image: linear-gradient(to bottom, rgb(0 0 0 / 0.8) , rgb(0 0 0 / 0.9)) , url('/assets/banner.jpg');
    background-size: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 105, 180, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(65, 105, 225, 0.1) 0%, transparent 50%);
    animation: aurora 20s ease-in-out infinite;
}

@keyframes aurora {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
} */

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #d4f1ff, #ffe9f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 12px rgba(13, 123, 160, 0.4);
    animation: title-glow 4s ease-in-out infinite;
}

@keyframes title-glow {
    0% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 12px rgba(173, 216, 230, 0.4);
    }
    50% {
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 18px rgba(135, 206, 250, 0.6);
    }
    100% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 12px rgba(173, 216, 230, 0.4);
    }
}


.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-btn {
    font-size: 1.3rem;
    padding: 15px 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-image {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 0.3s;
}

/* Hover effect */
.about-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    animation: float-around 15s linear infinite;
    opacity: 0.7;
}

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

@keyframes float-around {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Golden Ticket Button */
.golden-ticket-btn {
    background: linear-gradient(45deg, var(--magical-gold), #FFA500);
    color: var(--shadow-black);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.golden-ticket-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

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

.golden-ticket-btn:hover::before {
    left: 100%;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Vision Section */
.vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.vision-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.carnival-blueprint {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    border: 2px dashed var(--magical-gold);
}

.blueprint-element {
    font-size: 3rem;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    animation: blueprint-pulse 4s ease-in-out infinite;
}

@keyframes blueprint-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    border-color: var(--magical-gold);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: bounce-in 2s ease-out infinite;
}

@keyframes bounce-in {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--magical-gold);
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--magical-gold);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

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

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

.game-info {
    padding: 20px;
    text-align: center;
}

.game-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--magical-gold);
}

.spin-btn {
    background: var(--gradient-secondary);
    color: var(--starlight-white);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.spin-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.spin-btn:hover::after {
    width: 200px;
    height: 200px;
}

/* Community Section */
.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.community-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: var(--magical-gold);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.community-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--magical-gold);
}

/* Disclaimer Section */
.disclaimer-section {
    background: rgba(220, 20, 60, 0.1);
    border-top: 3px solid var(--carnival-red);
    /* border-bottom: 3px solid var(--carnival-red); */
}

.carnival-sign {
    background: rgba(255, 255, 255, 0.1);
    border: 3px dashed var(--carnival-red);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.carnival-sign h3 {
    font-family: var(--font-heading);
    color: var(--carnival-red);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.carnival-sign p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--starlight-white);
}

/* Footer */
.footer {
    background: var(--shadow-black);
    padding: 40px 0;
    border-top: 2px solid var(--magical-gold);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--magical-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 10px;
}

.footer-links a:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

/* Game Page Styles */
.game-page {
    min-height: 100vh;
    padding-top: 100px;
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

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

.game-frame {
    width: 100%;
    height: 600px;
    border: 3px solid var(--magical-gold);
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
}

.back-btn {
    background: var(--gradient-primary);
    color: var(--starlight-white);
    border: 2px solid var(--magical-gold);
    padding: 12px 25px;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: var(--gradient-secondary);
}

/* Contact/Privacy/Terms Page Styles */
.content-page {
    min-height: 100vh;
    padding-top: 100px;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content h3 {
    font-family: var(--font-heading);
    color: var(--magical-gold);
    margin: 30px 0 15px 0;
    font-size: 1.4rem;
}

.page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 8px;
}

.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--magical-gold);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--starlight-white);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--magical-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .carnival-blueprint {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .blueprint-element {
        font-size: 2rem;
        padding: 15px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .game-frame {
        height: 400px;
    }
    
    .floating-element {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .carnival-blueprint {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .community-features {
        grid-template-columns: 1fr;
    }
    
    .age-popup {
        padding: 30px 20px;
    }
    
    .age-content h2 {
        font-size: 1.5rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--shadow-black);
}

::-webkit-scrollbar-thumb {
    background: var(--magical-gold);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}


.age-badge {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #ff4d4d, #f3b440);
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 0 10px #ff4d4d, 0 0 20px #ffcc70;
    animation: pulse-glow 2s infinite ease-in-out;
    text-align: center;
    display: inline-block;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    margin-top: 20px;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px #ff4d4d, 0 0 20px #ffcc70;
    }
    50% {
        box-shadow: 0 0 20px #ff4d4d, 0 0 30px #ffcc70;
    }
    100% {
        box-shadow: 0 0 10px #ff4d4d, 0 0 20px #ffcc70;
    }
}
