/* Modern Organic Design System */
:root {
    --primary-color: #0ea5e9;
    --secondary-color: #6366f1;
    --accent-color: #f43f5e;
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;

    /* Glass & Glow Variables */
    --glass-bg: rgba(15, 23, 42, 0.60);
    --glass-border: rgba(255, 255, 255, 0.05);
    /* Softer border */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    --glow-primary: rgba(56, 189, 248, 0.4);
    --twilight-purple: rgba(168, 85, 247, 0.3);
    --baby-blue: #bae6fd;
    /* Baby Blue Accent */
    --neutral-blue: #64748b;
    /* Neutral Blue for mid-depth */

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;
    --transition: cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Super smooth easing */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    /* Dynamic Ocean Depth Gradient */
    background-image: linear-gradient(to bottom,
            #06b6d4 0%,
            /* Surface Cyan */
            #bae6fd 60vh,
            /* Baby Blue Surface */
            #3b82f6 120vh,
            /* Deep Blue */
            #64748b 220vh,
            /* Neutral Blue Zone (Mid-depth) */
            #1e1b4b 350vh,
            /* Transition to Midnight */
            #020617 500vh
            /* The Abyss */
        );
    background-attachment: scroll;
    /* Scroll moves the background */
    background-size: 100% 500vh;
    /* Taller gradient for more scroll */
    background-repeat: no-repeat;

    color: var(--text-color);
    line-height: 2.0;
    /* Increased line height */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    text-align: center;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Typography with "Human" Feel */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
    /* Slightly softer weight */
    letter-spacing: -0.02em;
}

h1 {
    font-size: 6rem;
    /* HUGE Title */
    /* High Contrast Ocean Gradient */
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 30%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
    /* Darker shadow for separation against light background */
    filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.6));
    animation: float 6s ease-in-out infinite;
}

h2 {
    font-size: 3.5rem;
    /* Larger Section Headers */
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    /* Subtle shadow to separate from potential light backgrounds */
    text-shadow: 0 2px 4px rgba(15, 23, 42, 0.2);
    color: #fff;
}

p {
    margin-bottom: 3rem;
    /* More space between paragraphs */
    color: #e2e8f0;
    /* Slightly brighter text */
    font-weight: 400;
    font-size: 1.5rem;
    /* Much larger body text */
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--transition);
}

/* Floating "Human" Navigation */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: var(--max-width);

    /* iOS Liquid Nav */
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Brighter border */
    border-radius: 100px;
    /* Fully rounded capsule */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    padding: 0.75rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.logo i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px var(--glow-primary));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.nav-link::after {
    /* Small dot instead of line */
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scale(1);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Main Content Area */
main {
    flex: 1;
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8rem 1.5rem 4rem;
    /* Added top padding for fixed nav */
}

/* Sections */
.page-section {
    display: none;
    animation: fadeIn 0.8s var(--transition);
    /* Slower, more peaceful fade */
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero Section & Buttons */
.hero {
    text-align: center;
    max-width: 900px;
    margin: 6rem auto;
    /* More space */
}

.hero-nav-buttons {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Organic Buttons */
.nav-btn {
    background: rgba(14, 165, 233, 0.1);
    /* Subtle tint */
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--primary-color);
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 25px var(--glow-primary);
    transform: translateY(-3px) scale(1.02);
}

/* Text Links */
.text-link {
    display: inline-flex;
    justify-content: center;
    /* Center content */
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s var(--transition);
}

.text-link:hover {
    background: rgba(14, 165, 233, 0.1);
    transform: scale(1.05);
    /* Gentle scale instead of X move */
}

/* Cards: Glass & Floating */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
}

/* iOS Liquid Glass Card */
.card {
    background: rgba(255, 255, 255, 0.03);
    /* Very subtle fill */
    backdrop-filter: blur(30px) saturate(180%);
    /* Heavy blur + Saturation for 'Liquid' feel */
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Clean, crisp border */
    padding: 3rem;
    border-radius: 32px;
    /* Smoother rounding */
    transition: all 0.5s var(--transition);
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    /* Soft shadow */
    animation: fadeIn 0.8s var(--transition) backwards;
}

/* Staggered Animation delays */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

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

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    /* More lift */
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(30, 41, 59, 0.3) 100%);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    /* Deeper shadow */
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    /* Soft glow behind icon */
    filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.3));
    transition: transform 0.5s var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.15) rotate(8deg);
    /* Smoother rotate */
    color: var(--secondary-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

/* Text Content - Readable & Clean with Glass Backing */
.text-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.8;

    /* Liquid Glass Container */
    background: rgba(15, 23, 42, 0.6);
    /* Darker glass for contrast */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 32px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.highlight-text {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    font-weight: 300;
}

.highlight-text strong {
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

/* Map Container - Porthole Style */
#map-container {
    width: 100%;
    height: 600px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    position: relative;
}

/* Legend Badge */
#map-legend {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 5;
    min-width: 140px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#map-legend h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.legend-item {
    font-weight: 500;
    color: #475569;
}

.color-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.color-box.water {
    background-color: #ef4444;
    /* Red Fill */
    border: 2px solid #22c55e;
    /* Green Outline */
}

.color-box.land {
    background-color: #ffffff;
}

/* Footer (Human Touch) */
footer {
    text-align: center;
    padding: 4rem 0;
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0));
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 0.5rem;
    font-size: 1.25rem;
    transition: all 0.3s var(--transition);
    border: 1px solid transparent;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Map Overlay (Work in Progress) */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 24px;
}

.map-overlay h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    transform: rotate(-5deg);
    border: 4px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.75rem;
    }

    .navbar {
        width: 95%;
        padding: 0.75rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 120%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-radius: 24px;
        border: 1px solid var(--glass-border);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        gap: 1.5rem;
    }

    .nav-links.mobile-open {
        display: flex;
        animation: fadeIn 0.3s ease-out;
    }

    .mobile-toggle {
        display: block;
    }

    main {
        padding-top: 7rem;
    }
}