@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&family=Roboto:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ocean-blue: #006994;
    --deep-sea: #003d5b;
    --teal: #30cfd0;
    --sand: #f4e7d7;
    --navy: #001f3f;
    --seafoam: #9ad3de;
    --anchor-gray: #4a5568;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #001f3f 0%, #003d5b 50%, #006994 100%);
    color: var(--sand);
    min-height: 100vh;
    background-attachment: fixed;
}

/* Animated Waves Background */
.waves-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(48, 207, 208, 0.2), transparent);
    pointer-events: none;
    z-index: 0;
}

/* Top Bar with Logo */
.top-bar {
    background: linear-gradient(135deg, var(--navy), var(--deep-sea));
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--teal);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.anchor-logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 3px 10px rgba(48, 207, 208, 0.5));
}

.brand-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand-text p {
    font-size: 0.9rem;
    color: var(--seafoam);
    font-style: italic;
}

/* Horizontal Navigation */
.horizontal-nav {
    background: rgba(0, 61, 91, 0.9);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--ocean-blue);
    backdrop-filter: blur(10px);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    font-family: 'Montserrat', sans-serif;
    display: block;
    padding: 1.3rem 2.5rem;
    color: var(--sand);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(48, 207, 208, 0.2);
    border-bottom-color: var(--teal);
    color: var(--teal);
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    background: var(--teal);
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--navy);
    margin: 4px 0;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

/* Title Banner */
.title-banner {
    background: linear-gradient(135deg, rgba(0, 105, 148, 0.4), rgba(0, 61, 91, 0.4));
    border: 3px solid var(--teal);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.title-banner h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.8rem;
    color: var(--teal);
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.title-banner p {
    font-size: 1.5rem;
    color: var(--seafoam);
}

/* Card Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.port-card {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.6), rgba(0, 61, 91, 0.6));
    border: 2px solid var(--ocean-blue);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.port-card:hover {
    transform: translateY(-5px);
    border-color: var(--teal);
    box-shadow: 0 12px 40px rgba(48, 207, 208, 0.3);
}

.port-card h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--teal);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.port-card h3 {
    color: var(--seafoam);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.port-card p {
    line-height: 1.9;
    margin-bottom: 1rem;
    color: var(--sand);
}

.port-card ul {
    margin-left: 1.5rem;
}

.port-card li {
    margin: 0.7rem 0;
}

/* Notice Banner */
.notice-banner {
    background: linear-gradient(135deg, rgba(48, 207, 208, 0.2), rgba(154, 211, 222, 0.2));
    border: 3px solid var(--teal);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.notice-banner h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--teal);
    margin-top: 0;
    font-size: 1.7rem;
}

.notice-banner ul {
    list-style-position: inside;
    margin-top: 1rem;
}

.notice-banner li {
    margin: 0.8rem 0;
}

/* Game Harbor */
.game-harbor {
    background: rgba(0, 31, 63, 0.9);
    border: 4px solid var(--teal);
    border-radius: 25px;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 0 60px rgba(48, 207, 208, 0.4);
}

.game-harbor h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--teal);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.game-display {
    width: 100%;
    max-width: 900px;
    height: 600px;
    border: 3px solid var(--ocean-blue);
    border-radius: 15px;
    margin: 0 auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}

/* Harbor Footer */
.harbor-footer {
    background: linear-gradient(135deg, var(--navy), var(--deep-sea));
    border-top: 4px solid var(--teal);
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.harbor-footer h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--teal);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.anchor-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.anchor-links a {
    font-family: 'Montserrat', sans-serif;
    color: var(--sand);
    text-decoration: none;
    padding: 1rem 2rem;
    background: rgba(74, 85, 104, 0.7);
    border: 2px solid var(--ocean-blue);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.anchor-links a:hover {
    background: var(--ocean-blue);
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(48, 207, 208, 0.4);
}

/* Age Gate */
.age-gate {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.98);
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.age-gate.active {
    display: flex;
}

.gate-panel {
    background: linear-gradient(135deg, var(--deep-sea), var(--navy));
    border: 4px solid var(--teal);
    border-radius: 25px;
    padding: 3.5rem;
    max-width: 650px;
    text-align: center;
    box-shadow: 0 0 100px rgba(48, 207, 208, 0.8);
}

.gate-panel h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--teal);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.gate-panel p {
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 1rem;
    color: var(--seafoam);
}

.gate-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.gate-btn {
    font-family: 'Montserrat', sans-serif;
    padding: 1.3rem 4rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.gate-btn.proceed {
    background: linear-gradient(135deg, var(--ocean-blue), var(--teal));
    color: white;
    border: 2px solid var(--teal);
}

.gate-btn.proceed:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 40px rgba(48, 207, 208, 0.6);
}

.gate-btn.exit {
    background: var(--anchor-gray);
    color: var(--sand);
}

.gate-btn.exit:hover {
    background: #2d3748;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .brand-text h1 {
        font-size: 2rem;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
    }
    
    .nav-list.open {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .title-banner h1 {
        font-size: 2.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .game-display {
        height: 400px;
    }
    
    .anchor-links {
        flex-direction: column;
    }
    
    .gate-panel {
        margin: 1rem;
        padding: 2rem;
    }
    
    .gate-buttons {
        flex-direction: column;
    }
}
