/* simulai.net - Undersea Research Station */

:root {
    --abyss-dark: #0A0A14;
    --ice-blue: #A8D8EA;
    --bio-cyan: #00E5C7;
    --coral-ember: #FF6B6B;
    --frost-white: #D0DCE4;
    --deep-indigo: #12121E;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--abyss-dark);
    color: var(--frost-white);
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

/* Particle system */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Fish */
.fish {
    position: fixed;
    width: 30px;
    height: 20px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.fish-1 {
    top: 45vh;
    animation: swim-lr 28s linear infinite;
}

.fish-2 {
    top: 60vh;
    transform: scaleX(-1);
    animation: swim-rl 32s linear 12s infinite;
}

.fish-3 {
    bottom: 20vh;
    animation: swim-lr 35s linear 5s infinite;
}

@keyframes swim-lr {
    0% { left: -5vw; transform: translateY(0); }
    25% { left: 25vw; transform: translateY(-15px); }
    50% { left: 55vw; transform: translateY(0); }
    75% { left: 85vw; transform: translateY(15px); }
    100% { left: 105vw; transform: translateY(0); }
}

@keyframes swim-rl {
    0% { right: -5vw; transform: scaleX(-1) translateY(0); }
    25% { right: 25vw; transform: scaleX(-1) translateY(-12px); }
    50% { right: 55vw; transform: scaleX(-1) translateY(0); }
    75% { right: 85vw; transform: scaleX(-1) translateY(12px); }
    100% { right: 105vw; transform: scaleX(-1) translateY(0); }
}

/* Frost surface */
.frost-surface {
    background: rgba(200, 220, 230, var(--frost-opacity, 0.03));
    border: 1px solid rgba(200, 220, 230, 0.08);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 2px;
    transition: background 0.5s ease;
}

.frost-surface:hover {
    background: rgba(200, 220, 230, 0.06);
}

.frost-text {
    opacity: 0.8;
}

/* Sections */
.section {
    position: relative;
    z-index: 2;
}

/* Hero */
.section-hero {
    min-height: 150vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40vh;
}

.hero-domain-wrap {
    padding: 2rem 4rem;
}

.hero-domain {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.15em;
    color: var(--frost-white);
    text-align: center;
}

.hero-spacer {
    height: 20vh;
}

.hero-desc {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.85;
    color: var(--frost-white);
    opacity: 0.8;
    text-align: center;
    max-width: 500px;
    padding: 0 5vw;
}

/* Station */
.section-station {
    padding: 25vh 0;
    display: flex;
    justify-content: center;
}

.station-card {
    width: 60vw;
    max-width: 700px;
    padding: 3rem 4rem;
}

.station-text {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.85;
    color: var(--frost-white);
    opacity: 0.8;
}

/* Specimens */
.section-specimens {
    padding: 15vh 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.specimen {
    width: 40vw;
    max-width: 500px;
    padding: 2.5rem 3rem;
}

.specimen-spacer {
    height: 20vh;
}

.specimen-title {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: var(--ice-blue);
    margin-bottom: 1rem;
}

.specimen-desc {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.85;
    color: var(--frost-white);
    opacity: 0.8;
}

/* Reef */
.section-reef {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 10vw;
}

.reef-svg {
    width: 60%;
    max-width: 800px;
    height: 80%;
}

.reef-branch {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 4s ease-in-out;
}

.reef-branch.secondary {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 2s ease-in-out;
    transition-delay: 2s;
}

.section-reef.visible .reef-branch {
    stroke-dashoffset: 0;
}

/* Bounce enter */
.bounce-item {
    opacity: 0;
    transform: scale(0.92);
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.5s ease;
}

.bounce-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* Ascent */
.section-ascent {
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 15vh;
    background: linear-gradient(to bottom, var(--abyss-dark), var(--deep-indigo));
}

.ascent-spacer {
    flex: 1;
}

.ascent-domain {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.15em;
    color: var(--frost-white);
    opacity: 0.6;
}
