/* ============================================
   GlobalToneCare - Ocean Deep Design System
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    color: #C5D5E0;
    background: #0B1D3A;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Scroll-linked background gradient --- */
body {
    background: linear-gradient(
        to bottom,
        #0B1D3A 0%,
        #091729 30%,
        #060F1E 65%,
        #050D1A 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    color: #A8DADC;
    letter-spacing: 0.01em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 2vh;
}

p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.65;
    margin-bottom: 0.8em;
}

/* --- Bioluminescent Background Organisms --- */
.bio-organisms {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bio-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #2EC4B6, transparent);
    animation: drift ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes drift {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-20px) translateX(5px);
    }
}

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* --- Depth Navigation --- */
.depth-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.depth-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2EC4B6;
    opacity: 0.2;
    border: none;
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.5s ease;
    padding: 0;
}

.depth-dot.active {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(46, 196, 182, 0.5);
}

.depth-dot:hover {
    opacity: 0.7;
    transform: scale(1.2);
}

/* --- Zone: Surface (Hero) --- */
.zone {
    position: relative;
    z-index: 2;
}

.zone-surface {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5vw;
}

.surface-content {
    transform: translateY(-8vh);
}

.logotype {
    font-family: 'Source Serif 4', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #A8DADC;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.tagline {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #8BA4B8;
    letter-spacing: 0.03em;
}

/* Breathing animation */
.breathing {
    animation: breathe 6s ease-in-out infinite;
}

.breathing-delayed {
    animation: breathe 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(0.98);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

/* Scroll chevron */
.scroll-chevron {
    position: absolute;
    bottom: 4vh;
    left: 50%;
    transform: translateX(-50%);
    animation: chevronPulse 2.5s ease-in-out infinite;
    cursor: pointer;
}

@keyframes chevronPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(8px);
    }
}

/* --- Wave Dividers --- */
.wave-divider {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
}

/* --- Zone: Twilight --- */
.zone-twilight {
    padding: 8vh 0;
}

/* --- Zone: Deep --- */
.zone-deep {
    padding: 8vh 0;
}

/* --- Zone: Abyss --- */
.zone-abyss {
    padding: 8vh 0 4vh 0;
}

/* --- Specimen Cards --- */
.specimen-card {
    max-width: 720px;
    margin: 0 auto 12vh auto;
    padding: clamp(2rem, 4vw, 3.5rem);
    background: rgba(11, 29, 58, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(168, 218, 220, 0.08);
    position: relative;
    margin-left: max(15vw, calc((100% - 720px) / 2));
    margin-right: max(15vw, calc((100% - 720px) / 2));
}

.specimen-card-deep {
    border-color: rgba(46, 196, 182, 0.4);
}

/* Card label */
.card-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2EC4B6;
    display: block;
    margin-bottom: 1.5rem;
}

/* Card heading */
.card-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-top: 4vh;
    margin-bottom: 2vh;
    color: #A8DADC;
}

/* Card body text */
.card-body {
    color: #C5D5E0;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.65;
    margin-bottom: 0.8em;
}

.card-body:last-of-type {
    margin-bottom: 0;
}

/* Card image container */
.card-image-container {
    margin-top: 2rem;
    padding: 24px;
}

.oceanic-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    border: 1px solid rgba(168, 218, 220, 0.15);
    position: relative;
    overflow: hidden;
}

.oceanic-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 13, 26, 0.5) 100%);
}

/* Card accent line */
.card-accent-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2EC4B6, #1B8A7A);
    margin-top: 2rem;
    border-radius: 1px;
    animation: accentBreathe 8s ease-in-out infinite;
}

@keyframes accentBreathe {
    0%, 100% {
        opacity: 0.5;
        width: 60px;
    }
    50% {
        opacity: 1;
        width: 80px;
    }
}

/* Warm accent */
.warm-accent {
    color: #E8B86D;
}

/* --- Fade Reveal Animation --- */
.fade-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms ease-out, transform 800ms ease-out;
}

.fade-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children within cards */
.specimen-card .card-heading.fade-reveal {
    transition-delay: 200ms;
}

.specimen-card .card-body.fade-reveal {
    transition-delay: 400ms;
}

.specimen-card .card-image-container.fade-reveal {
    transition-delay: 600ms;
}

/* --- Jellyfish --- */
.jellyfish-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8vh 0;
}

.jellyfish {
    animation: jellyPulse 4s ease-in-out infinite;
}

@keyframes jellyPulse {
    0%, 100% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Tentacle drift animations */
.tentacle.t1 {
    animation: tentacleDrift1 5s ease-in-out infinite alternate;
}

.tentacle.t2 {
    animation: tentacleDrift2 6s ease-in-out infinite alternate;
    animation-delay: 0.5s;
}

.tentacle.t3 {
    animation: tentacleDrift1 5.5s ease-in-out infinite alternate;
    animation-delay: 1s;
}

.tentacle.t4 {
    animation: tentacleDrift2 7s ease-in-out infinite alternate;
    animation-delay: 1.5s;
}

.tentacle.t5 {
    animation: tentacleDrift1 6.5s ease-in-out infinite alternate;
    animation-delay: 0.8s;
}

@keyframes tentacleDrift1 {
    0% {
        transform: translateX(-3px) rotate(-2deg);
    }
    100% {
        transform: translateX(3px) rotate(2deg);
    }
}

@keyframes tentacleDrift2 {
    0% {
        transform: translateX(2px) rotate(1deg);
    }
    100% {
        transform: translateX(-2px) rotate(-1deg);
    }
}

/* --- Footer --- */
.abyss-footer {
    text-align: center;
    padding: 6vh 5vw 4vh;
}

.footer-content {
    max-width: 720px;
    margin: 0 auto;
}

.footer-company {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #A8DADC;
    margin-bottom: 0.5rem;
}

.footer-text {
    font-family: 'Libre Franklin', sans-serif;
    color: #6B8FA3;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: #1B8A7A;
    margin: 0 auto 2rem;
}

.footer-contact {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #6B8FA3;
    margin-bottom: 1rem;
}

.footer-legal {
    font-family: 'Libre Franklin', sans-serif;
    color: #6B8FA3;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .specimen-card {
        margin-left: 5vw;
        margin-right: 5vw;
    }

    .depth-nav {
        right: 1rem;
    }

    .logotype {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 480px) {
    .specimen-card {
        padding: 1.5rem;
        margin-left: 4vw;
        margin-right: 4vw;
    }

    .depth-nav {
        right: 0.75rem;
        gap: 12px;
    }

    .depth-dot {
        width: 8px;
        height: 8px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .fade-reveal {
        transform: none;
        transition: opacity 200ms ease-out;
    }

    .breathing,
    .breathing-delayed {
        animation: none;
    }

    .jellyfish {
        animation: none;
    }

    .tentacle {
        animation: none;
    }

    .bio-orb {
        animation: none;
    }

    .scroll-chevron {
        animation: none;
        opacity: 0.6;
    }

    .card-accent-line {
        animation: none;
    }
}
