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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(135deg, #113F67 0%, #34699A 50%, #58A0C8 100%);
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 63, 103, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-left .menu-items {
    display: flex;
    gap: 2rem;
}

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

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #58A0C8, #34699A);
    border-radius: 25px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 0.2;
    transform: scale(1);
}

.nav-link:hover {
    color: white;
    text-shadow: 0 0 10px #58A0C8;
}

.logo-abstract {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-shape {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #58A0C8, #34699A);
    border-radius: 50% 0 50% 0;
    animation: logoRotate 4s infinite ease-in-out;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #58A0C8;
    text-shadow: 0 0 10px rgba(88, 160, 200, 0.5);
}

@keyframes logoRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #065084 0%, #113F67 50%, #34699A 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #58A0C8, #34699A);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #34699A, #113F67);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #58A0C8, #065084);
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

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

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(88, 160, 200, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.accent-text {
    color: #58A0C8;
    background: linear-gradient(45deg, #58A0C8, #34699A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(88, 160, 200, 0.5); }
    100% { text-shadow: 0 0 30px rgba(88, 160, 200, 0.8); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-button {
    background: linear-gradient(45deg, #58A0C8, #34699A);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    width: 200px;
    height: 200px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 160, 200, 0.4);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: linear-gradient(135deg, #34699A 0%, #58A0C8 100%);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.feature-card:hover::before {
    animation: shimmer 1s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
}

.icon-1 {
    background: linear-gradient(45deg, #58A0C8, #34699A);
}

.icon-2 {
    background: linear-gradient(45deg, #34699A, #113F67);
}

.icon-3 {
    background: linear-gradient(45deg, #065084, #58A0C8);
}

.feature-icon::before {
    content: '⚡';
}

.icon-2::before {
    content: '🎨';
}

.icon-3::before {
    content: '🎮';
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, #113F67 0%, #065084 100%);
}

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

.manifesto-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}

.manifesto-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cartoon-character {
    position: relative;
    width: 200px;
    height: 250px;
}

.character-body {
    width: 100px;
    height: 150px;
    background: linear-gradient(45deg, #58A0C8, #34699A);
    border-radius: 50px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: characterBounce 2s ease-in-out infinite;
}

.character-head {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #34699A, #58A0C8);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.character-eyes {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
}

.character-eyes::before,
.character-eyes::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.character-eyes::before {
    left: 8px;
}

.character-eyes::after {
    right: 8px;
}

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

/* Games Section */
.games {
    padding: 5rem 0;
    background: linear-gradient(135deg, #58A0C8 0%, #34699A 50%, #113F67 100%);
}

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

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

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.game-info {
    padding: 1.5rem;
    text-align: center;
}

.game-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.play-button {
    background: linear-gradient(45deg, #58A0C8, #34699A);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

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

.play-button:hover::before {
    width: 150px;
    height: 150px;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(88, 160, 200, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 1200px;
    background: #113F67;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: #58A0C8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-button:hover {
    color: white;
    transform: scale(1.2);
}

.modal-game-container {
    margin-top: 1rem;
}

/* Disclaimer Section */
.disclaimer {
    padding: 3rem 0;
    background: #065084;
    text-align: center;
}

.disclaimer h3 {
    color: #58A0C8;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.disclaimer p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #113F67;
    padding: 2rem 0;
    text-align: center;
}

.copyright {
    color: #58A0C8;
    margin-bottom: 1rem;
    font-weight: bold;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-link {
    color: #58A0C8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-shadow: 0 0 10px #58A0C8;
}

/* Age Verification Popup */
#age-verification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup {
    background: linear-gradient(135deg, #113F67, #065084);
    border: 2px solid #58A0C8;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 25px #58A0C8;
}

.popup h1 {
    color: #58A0C8;
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #58A0C8;
}

.age-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #58A0C8, #34699A);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.popup p {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.popup button {
    background: linear-gradient(to right, #58A0C8, #34699A);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup button:hover {
    background: linear-gradient(to right, #34699A, #113F67);
    transform: translateY(-2px);
}

.popup small {
    display: block;
    color: #ccc;
    font-size: 12px;
    margin-top: 15px;
}

/* Cookie Consent */
#cookieConsent {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 300px;
    background: linear-gradient(135deg, #113F67, #065084);
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 1px solid #58A0C8;
    font-family: Arial, sans-serif;
    z-index: 9999;
}

#cookieConsent p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px;
}

#cookieConsent a {
    color: #58A0C8;
    text-decoration: underline;
}

#cookieConsent button {
    background: linear-gradient(45deg, #58A0C8, #34699A);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#cookieConsent button:hover {
    background: linear-gradient(45deg, #34699A, #113F67);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-left .menu-items {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #113F67;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #58A0C8, #34699A);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #34699A, #113F67);
}