:root {
    --white: #ffffff;
    --sand: #fdfcf0;
    --cyan-light: #e0faff;
    --cyan-mid: #48d1cc;
    --blue-deep: #001f3f;
    --blue-abyss: #000a12;
    --text-dark: #1a202c;
    --text-mid: #2d3748;
    --text-light: #e2e8f0;

    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    /* The continuous gradient background for the dive effect */
    background: linear-gradient(180deg,
            var(--white) 0%,
            var(--cyan-light) 25%,
            var(--cyan-mid) 60%,
            var(--blue-deep) 90%,
            var(--blue-abyss) 100%);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- Fixed Nav --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* When in deep section, nav text turns white */
body.in-deep .navbar.scrolled {
    background: rgba(0, 31, 63, 0.9);
}

body.in-deep .logo-text,
body.in-deep .nav-links a,
body.in-deep .hamburger {
    color: var(--white);
}

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

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

.logo-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--blue-deep);
    transition: color 0.5s;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-mid);
    font-weight: 500;
    transition: color 0.3s;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* --- LAYERS --- */
.layer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 100px 0;
}

/* LAYER 1: SURFACE */
.surface {
    /* Blend the hero image into the white top */
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 60%, var(--cyan-light) 100%), url('hero-surface.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    align-items: flex-start;
}

.surface-content {
    margin-top: -100px;
    /* Pull text up a bit */
}

.hero-text {
    max-width: 700px;
    padding: 0;
    /* Removed background/box-shadow for immersion */
}

.tagline {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 20px;
    display: block;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

h1 {
    font-family: var(--font-head);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--blue-deep);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.highlight {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 31, 63, 0.5);
    /* Deep blue shadow for visibility */
    background: linear-gradient(to right, transparent 0%, rgba(72, 209, 204, 0.2) 100%);
}

.manifesto-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-mid);
}

.scroll-prompt {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--blue-deep);
    font-weight: 500;
    font-size: 0.9rem;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: var(--blue-deep);
    margin: 10px auto 0;
    animation: growLine 2s infinite;
    transform-origin: top;
}

@keyframes growLine {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        opacity: 0;
        transform-origin: bottom;
    }
}

/* LAYER 2: DIVE */
.dive {
    /* Transparent bg allows body gradient to show */
    overflow: hidden;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-intro h2 {
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--blue-deep);
    margin-bottom: 20px;
}

.lead {
    font-size: 1.25rem;
    color: var(--blue-deep);
    /* Darker for contrast on mid-blue bg */
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: transparent;
    padding: 20px;
    text-align: center;
    border: none;
    transition: transform 0.4s ease;
    cursor: default;
    /* Text "appears" effect managed by JS opacity/transform */
}

.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    /* Removed background change on hover */
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.8);
    /* Keep icon visible */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--cyan-mid);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--blue-deep);
    margin-bottom: 16px;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
}

.service-card p {
    color: var(--blue-deep);
    font-size: 1.1rem;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* LAYER 3: DEEP OCEAN */
.deep {
    color: var(--white);
    text-align: center;
    /* Body gradient creates the dark blue here */
}

.commitment-box {
    max-width: 800px;
    margin: 0 auto;
}

.deep h2 {
    font-family: var(--font-head);
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.deep p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.deep-divider {
    width: 100px;
    height: 4px;
    background: var(--cyan-mid);
    margin: 50px auto;
    border-radius: 2px;
}

.contact-area h3 {
    font-family: var(--font-head);
    color: var(--cyan-mid);
    font-size: 2rem;
    margin-bottom: 30px;
}

.contacts {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-pill:hover {
    background: var(--cyan-mid);
    border-color: var(--cyan-mid);
    color: var(--blue-deep);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    width: 100%;
}

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

    .hero-text {
        margin-top: 0;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* --- Bubble Animation (Simple) --- */
.bubble-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}