/* completengine.com - Aqua-Vapor Deep Sea Design */

/* ================================
   CSS Custom Properties (Palette)
   ================================ */
:root {
    --abyss-indigo: #1a0e2e;
    --vapor-lavender: #e8d5f5;
    --neon-magenta: #ff71ce;
    --aqua-shimmer: #01cdfe;
    --twilight-grape: #3d2157;
    --muted-orchid: #c4b8d6;
    --bioluminescent-teal: #05ffa1;
    --sunset-coral: #ff6b6b;
    --deep-indigo: #2a1f3d;
    --deep-violet: #3d2e5c;
}

/* ================================
   Base Styles
   ================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Varela Round', sans-serif;
    background: var(--abyss-indigo);
    color: var(--muted-orchid);
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 113, 206, 0.3);
    color: var(--vapor-lavender);
}

/* Additional design palette references */
/* Dark heading: #2a1f3d (used on light surfaces) */
/* Deep prose: #3d2e5c (used on light surfaces) */
.zone-surface-content .hero-title {
    text-shadow:
        0 0 40px rgba(1, 205, 254, 0.2),
        0 0 80px rgba(255, 113, 206, 0.1),
        0 2px 0 #2a1f3d;
}

.midwater-prose::first-letter {
    color: #3d2e5c;
    font-size: 1.1em;
}

/* ================================
   Zone Base Styles
   ================================ */
.zone {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.zone-content {
    position: relative;
    z-index: 2;
}

/* ================================
   Zone 1 - Surface (Hero)
   ================================ */
.zone-surface {
    background:
        linear-gradient(
            180deg,
            #2a1a4a 0%,
            #1f1340 30%,
            var(--twilight-grape) 70%,
            #2d1845 100%
        );
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Caustic light effect */
.caustics-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(1, 205, 254, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(1, 205, 254, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 30%, rgba(255, 113, 206, 0.04) 0%, transparent 55%);
    background-size: 120% 120%, 130% 130%, 110% 110%;
    animation: caustic-shift 15s ease-in-out infinite;
}

@keyframes caustic-shift {
    0%, 100% {
        background-position: 0% 0%, 10% 10%, 5% 5%;
    }
    33% {
        background-position: -10% 5%, 15% -5%, -5% 10%;
    }
    66% {
        background-position: 5% -10%, -5% 15%, 10% -5%;
    }
}

.zone-surface-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.02em;
    color: var(--vapor-lavender);
    text-shadow:
        0 0 40px rgba(1, 205, 254, 0.2),
        0 0 80px rgba(255, 113, 206, 0.1);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: 'Varela Round', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    color: var(--muted-orchid);
    letter-spacing: 0.01em;
    line-height: 2.0;
    opacity: 0.85;
}

/* ================================
   Zone 2 - Reef
   ================================ */
.zone-reef {
    background:
        linear-gradient(
            180deg,
            #2d1845 0%,
            var(--twilight-grape) 15%,
            #3a1e55 50%,
            #2f1648 85%,
            #251340 100%
        );
    padding: clamp(4rem, 8vh, 8rem) 0;
}

.zone-reef-content {
    display: grid;
    grid-template-columns: 65% 35%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 4rem);
    gap: clamp(1.5rem, 3vw, 4rem);
    align-items: start;
}

.reef-text {
    padding-top: 0;
}

.reef-illustration {
    padding-top: 8vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.zone-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--vapor-lavender);
    margin-bottom: clamp(1.5rem, 3vh, 3rem);
}

.zone-heading-light {
    color: var(--vapor-lavender);
}

.reef-prose {
    /* Light bg text color: var(--deep-violet) #3d2e5c */
    font-family: 'Varela Round', sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 2.0;
    letter-spacing: 0.01em;
    color: var(--muted-orchid);
    margin-bottom: 1.5rem;
}

.fish-angel {
    width: 200px;
    height: auto;
    animation: drift 12s ease-in-out infinite;
}

/* ================================
   Zone 3 - Mid-water
   ================================ */
.zone-midwater {
    background:
        linear-gradient(
            180deg,
            #251340 0%,
            #1f0f35 20%,
            #1a0c2e 60%,
            var(--abyss-indigo) 100%
        );
    padding: clamp(4rem, 8vh, 8rem) 0;
}

.zone-midwater-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 4rem);
    transform: translateX(-5vw);
}

.midwater-prose {
    font-family: 'Varela Round', sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 2.0;
    letter-spacing: 0.01em;
    color: var(--muted-orchid);
    margin-bottom: 2rem;
}

/* ================================
   Zone 4 - Deep
   ================================ */
.zone-deep {
    background:
        linear-gradient(
            180deg,
            var(--abyss-indigo) 0%,
            #150a24 40%,
            #10071c 100%
        );
    padding: clamp(4rem, 8vh, 8rem) 0;
}

.zone-deep-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 4rem);
}

.specimen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2rem, 4vh, 4rem);
}

.specimen-card {
    background: rgba(61, 33, 87, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: clamp(1.5rem, 2vw, 2rem);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.specimen-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(1, 205, 254, 0.15);
}

.specimen-icon {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.specimen-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neon-magenta);
    display: block;
    margin-bottom: 0.75rem;
}

.specimen-text {
    font-family: 'Varela Round', sans-serif;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.8;
    color: var(--muted-orchid);
}

/* ================================
   Zone 5 - Abyss (Footer)
   ================================ */
.zone-abyss {
    background:
        linear-gradient(
            180deg,
            #10071c 0%,
            #0a0514 40%,
            #050210 100%
        );
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.bioluminescent-dots {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.glow-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bioluminescent-teal);
    box-shadow:
        0 0 8px var(--bioluminescent-teal),
        0 0 20px rgba(5, 255, 161, 0.3);
    animation: pulse-glow 4s ease-in-out infinite;
}

.glow-dot:nth-child(1)  { animation-delay: 0s;    animation-duration: 3.5s; }
.glow-dot:nth-child(2)  { animation-delay: 1.2s;  animation-duration: 4.2s; }
.glow-dot:nth-child(3)  { animation-delay: 2.7s;  animation-duration: 3.8s; }
.glow-dot:nth-child(4)  { animation-delay: 4.1s;  animation-duration: 5.0s; }
.glow-dot:nth-child(5)  { animation-delay: 0.5s;  animation-duration: 3.2s; }
.glow-dot:nth-child(6)  { animation-delay: 1.8s;  animation-duration: 4.5s; }
.glow-dot:nth-child(7)  { animation-delay: 3.3s;  animation-duration: 3.6s; }
.glow-dot:nth-child(8)  { animation-delay: 0.8s;  animation-duration: 4.8s; }
.glow-dot:nth-child(9)  { animation-delay: 2.2s;  animation-duration: 3.4s; }
.glow-dot:nth-child(10) { animation-delay: 3.6s;  animation-duration: 4.1s; }
.glow-dot:nth-child(11) { animation-delay: 1.5s;  animation-duration: 5.2s; }
.glow-dot:nth-child(12) { animation-delay: 4.4s;  animation-duration: 3.9s; }

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.zone-abyss-content {
    text-align: center;
    z-index: 2;
}

.abyss-text {
    font-family: 'Varela Round', sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    line-height: 2.0;
    color: var(--muted-orchid);
    opacity: 0.7;
    margin-bottom: 2rem;
}

.abyss-domain {
    /* Dark variant: var(--deep-indigo) #2a1f3d for light bg contexts */
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    letter-spacing: 0.02em;
    color: var(--vapor-lavender);
    opacity: 0.5;
}

/* ================================
   Fish - Background Decorative SVGs
   ================================ */
.fish-bg {
    position: absolute;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

.fish-bg-1 {
    width: 150px;
    bottom: 12%;
    left: 8%;
    animation: drift 12s ease-in-out infinite;
    opacity: 0.5;
}

.fish-bg-2 {
    width: 180px;
    top: 15%;
    right: 5%;
    animation: drift-reverse 14s ease-in-out infinite;
    opacity: 0.45;
}

.fish-bg-3 {
    width: 120px;
    bottom: 20%;
    left: 60%;
    animation: drift 10s ease-in-out infinite;
    animation-delay: -3s;
    opacity: 0.5;
}

.fish-bg-4 {
    width: 160px;
    bottom: 10%;
    right: 8%;
    animation: drift-reverse 13s ease-in-out infinite;
    animation-delay: -5s;
    opacity: 0.35;
}

/* ================================
   Fish Animations
   ================================ */
@keyframes drift {
    0%, 100% {
        transform: translate(0px, 0px);
    }
    25% {
        transform: translate(20px, -10px);
    }
    50% {
        transform: translate(-10px, 8px);
    }
    75% {
        transform: translate(15px, -5px);
    }
}

@keyframes drift-reverse {
    0%, 100% {
        transform: translate(0px, 0px);
    }
    25% {
        transform: translate(-18px, 8px);
    }
    50% {
        transform: translate(12px, -6px);
    }
    75% {
        transform: translate(-8px, 10px);
    }
}

/* ================================
   Responsive - Mobile
   ================================ */
@media (max-width: 768px) {
    .zone-reef-content {
        grid-template-columns: 1fr;
    }

    .reef-illustration {
        padding-top: 2rem;
        justify-content: center;
    }

    .zone-midwater-content {
        transform: translateX(0);
    }

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

    .caustics-layer {
        animation: none;
    }

    .fish-bg {
        transform: scale(0.6);
    }

    .fish-angel {
        width: 150px;
    }

    .hero-title {
        text-shadow:
            0 0 20px rgba(1, 205, 254, 0.15),
            0 0 40px rgba(255, 113, 206, 0.08);
    }
}

@media (max-width: 480px) {
    .zone {
        min-height: auto;
        padding: 3rem 0;
    }

    .zone-surface {
        min-height: 100vh;
    }

    .zone-abyss {
        min-height: 50vh;
    }
}