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

:root {
    --ocean-blue: #1B4F72;
    --seafoam-green: #45B39D;
    --coral-red: #E74C3C;
    --sand-beige: #FDEBD0;
    --pearl-white: #F4F6F7;
    --deep-ocean: #0B2F4A;
    --bioluminescent: #00FFD4;
    
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--pearl-white);
    background: linear-gradient(135deg, var(--deep-ocean) 0%, var(--ocean-blue) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 47, 74, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 255, 212, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bioluminescent);
    text-shadow: 0 0 20px rgba(0, 255, 212, 0.6);
    animation: glow-pulse 2s infinite;
}

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

.nav-link {
    color: var(--pearl-white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bioluminescent);
    background: rgba(0, 255, 212, 0.1);
    transform: translateY(-2px);
}

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

.nav-link:hover::before {
    left: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--bioluminescent);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--deep-ocean) 0%, var(--ocean-blue) 50%, var(--seafoam-green) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(69, 179, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(231, 76, 60, 0.05) 0%, transparent 50%);
}

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

.jellyfish,
.coral {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.jellyfish-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.jellyfish-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.coral-1 {
    top: 70%;
    left: 20%;
    animation-delay: 1s;
}

.coral-2 {
    top: 30%;
    right: 25%;
    animation-delay: 3s;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--bioluminescent), var(--seafoam-green), var(--coral-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wave-text 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--sand-beige);
    font-weight: 300;
}

.cta-button {
    background: linear-gradient(45deg, var(--seafoam-green), var(--bioluminescent));
    color: var(--deep-ocean);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0, 255, 212, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 212, 0.5);
}

/* Section Styles */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--bioluminescent);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--seafoam-green), var(--coral-red));
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 6rem 0;
    position: relative;
}

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

.about-text {
    font-size: 1.2rem;
    color: var(--sand-beige);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.wave-animation {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: linear-gradient(90deg, var(--seafoam-green), var(--bioluminescent));
    border-radius: 50%;
    animation: wave-move 6s ease-in-out infinite;
    opacity: 0.3;
}

.wave:nth-child(2) {
    animation-delay: 2s;
    opacity: 0.2;
}

.wave:nth-child(3) {
    animation-delay: 4s;
    opacity: 0.1;
}

/* Games Section */
.games {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

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

.game-card {
    background: rgba(11, 47, 74, 0.6);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--seafoam-green), var(--bioluminescent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--bioluminescent);
    box-shadow: 0 20px 40px rgba(0, 255, 212, 0.3);
}

.game-card:hover::before {
    opacity: 0.1;
}

.game-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

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

.game-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bioluminescent);
    margin-bottom: 0.5rem;
}

.game-info p {
    color: var(--sand-beige);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.play-button {
    background: linear-gradient(45deg, var(--coral-red), var(--seafoam-green));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

/* Community Section */
.community {
    padding: 6rem 0;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: rgba(69, 179, 157, 0.1);
    border: 2px solid var(--seafoam-green);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(69, 179, 157, 0.2);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--bioluminescent);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--sand-beige);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-players h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--bioluminescent);
    text-align: center;
    margin-bottom: 2rem;
}

.player-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.player-card {
    background: rgba(11, 47, 74, 0.4);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(0, 255, 212, 0.2);
    transition: all 0.3s ease;
}

.player-card:hover {
    transform: translateX(10px);
    border-color: var(--bioluminescent);
    box-shadow: 0 10px 20px rgba(0, 255, 212, 0.2);
}

.player-avatar {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--seafoam-green), var(--bioluminescent));
}

.player-name {
    font-weight: 600;
    color: var(--bioluminescent);
    font-size: 1.1rem;
}

.player-score {
    color: var(--sand-beige);
    font-size: 0.9rem;
}

/* Events Section */
.events {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.2);
}

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

.event-card {
    background: rgba(11, 47, 74, 0.6);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--seafoam-green);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(69, 179, 157, 0.3);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.countdown-item {
    text-align: center;
    background: rgba(0, 255, 212, 0.1);
    border-radius: 10px;
    padding: 1rem;
    min-width: 80px;
}

.countdown-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--bioluminescent);
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--sand-beige);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--bioluminescent);
    margin-bottom: 0.5rem;
}

.event-info p {
    color: var(--sand-beige);
}

/* Disclaimer */
.disclaimer {
    padding: 3rem 0;
    background: rgba(231, 76, 60, 0.1);
    border-top: 2px solid var(--coral-red);
    border-bottom: 2px solid var(--coral-red);
}

.disclaimer-text {
    text-align: center;
    color: var(--sand-beige);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-text strong {
    color: var(--coral-red);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--deep-ocean) 0%, var(--ocean-blue) 100%);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
}

.wave-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: linear-gradient(90deg, var(--seafoam-green), var(--bioluminescent));
    border-radius: 50%;
    animation: wave-move 8s ease-in-out infinite;
    opacity: 0.1;
}

.wave-footer:nth-child(2) {
    animation-delay: 2s;
    opacity: 0.05;
}

.wave-footer:nth-child(3) {
    animation-delay: 4s;
    opacity: 0.03;
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--bioluminescent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

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

.seashell-divider {
    font-size: 1.2rem;
    color: var(--seafoam-green);
}

.footer-text {
    color: var(--sand-beige);
    font-size: 0.9rem;
}

.footer-text p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 47, 74, 0.98);
        flex-direction: column;
        text-align: center;
        transition: top 0.3s ease;
        padding: 2rem 0;
        backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        top: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

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

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

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

    .community-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .player-list {
        grid-template-columns: 1fr;
    }

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

    .countdown {
        gap: 0.5rem;
    }

    .countdown-item {
        padding: 0.5rem;
        min-width: 60px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

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

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }

    .nav-brand .logo {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .game-card {
        padding: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .event-card {
        padding: 1.5rem;
    }
}