/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a5f;
    --dark-blue: #0f1f3a;
    --light-blue: #4a90e2;
    --accent-gold: #ffd700;
    --accent-coral: #ff6b6b;
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    --bg-dark: #0a1628;
    --bg-teal: #1a4d5e;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Age Verification Popup */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-popup.hidden {
    display: none;
}

.age-popup-content {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-gold);
    max-width: 500px;
    animation: popupFadeIn 0.5s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.age-icon {
    font-size: 72px;
    font-weight: bold;
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.age-popup-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-white);
}

.age-popup-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.age-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--dark-blue);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-teal);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 250px;
    color: var(--text-light);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-link {
    color: var(--accent-gold);
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-link:hover {
    color: #ffed4e;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-gold);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gold);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #0a2540 0%, #1a4d5e 50%, #2d6b7f 100%);
    z-index: -1;
}

.underwater-scene {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.light-rays {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 60%
    );
    animation: lightMove 10s ease-in-out infinite;
}

@keyframes lightMove {
    0%, 100% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
}

/* Sea Creatures */
.sea-creatures {
    position: absolute;
    width: 100%;
    height: 100%;
}

.fish {
    position: absolute;
    width: 60px;
    height: 40px;
    background: var(--accent-gold);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: swim 20s infinite;
}

.fish::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid var(--accent-gold);
}

.fish-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.fish-2 {
    top: 25%;
    left: 20%;
    background: #c0c0c0;
    animation-delay: 2s;
}

.fish-3 {
    top: 35%;
    left: 15%;
    animation-delay: 4s;
}

.turtle {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 80px;
    height: 60px;
    background: #4a7c59;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: swim 25s infinite reverse;
}

.turtle::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 20px;
    width: 20px;
    height: 15px;
    background: #4a7c59;
    border-radius: 50%;
}

.octopus {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 70px;
    height: 70px;
    background: #ff6b35;
    border-radius: 50%;
    animation: float 15s infinite;
}

.octopus::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
    background: #ff6b35;
    border-radius: 50% 50% 0 0;
}

@keyframes swim {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(100px) translateY(-20px); }
    50% { transform: translateX(200px) translateY(20px); }
    75% { transform: translateX(100px) translateY(-10px); }
    100% { transform: translateX(0) translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* Ruins */
.ruins {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
}

.ruin-column {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 150px;
    background: rgba(139, 139, 139, 0.6);
    border-radius: 5px 5px 0 0;
}

.ruin-1 {
    left: 20%;
}

.ruin-2 {
    left: 60%;
    height: 120px;
}

.ruin-stone {
    position: absolute;
    bottom: 0;
    left: 40%;
    width: 80px;
    height: 60px;
    background: rgba(100, 100, 100, 0.5);
    border-radius: 10px;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-light);
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 25px;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-card-image {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.hero-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.hero-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Games Section */
.games-section {
    background: linear-gradient(180deg, #2d6b7f 0%, #1a4d5e 100%);
    padding: 80px 0;
    min-height: 100vh;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.section-description {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    color: var(--text-light);
    line-height: 1.8;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.game-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-gold);
}

.game-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-game-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-placeholder-text {
    font-size: 32px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.game-content {
    padding: 25px;
}

.game-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.game-description {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.game-play-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    color: var(--dark-blue);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.game-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffed4e 0%, var(--accent-gold) 100%);
    color: var(--dark-blue);
}

.game-play-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--bg-teal);
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 14px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.progress-icon {
    font-size: 24px;
}

.footer-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.badge {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.age-badge {
    background: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
    font-weight: bold;
}

.badge-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.badge-link:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.badge-logo {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .nav-menu {
        gap: 15px;
        font-size: 14px;
    }

    .section-title {
        font-size: 32px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

