/* ========================================
   recycle.cafe — Bleached Reef Swiss Aquarium
   ======================================== */

/* Color reference: #7fa8a0 #c8e6e0 #e8d5b7 #e8efe9 #ebe8f0 #f0ebe3 #f5eef0 */

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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    color: #2c3e50;
    background-color: #faf3eb;
    overflow-x: hidden;
}

/* ---- Panels ---- */
.panel {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

/* ---- Hero ---- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #faf3eb;
}

.bokeh-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    animation: bokeh-drift linear infinite;
}

@keyframes bokeh-drift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(30px, -20px); }
    50%  { transform: translate(-15px, 15px); }
    75%  { transform: translate(-30px, -10px); }
    100% { transform: translate(0, 0); }
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(5rem, 15vw, 12rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2c3e50;
    text-shadow: 0 0 40px rgba(200,230,224,0.3);
    z-index: 2;
    position: relative;
    text-align: center;
}

.hero-fish {
    position: absolute;
    bottom: 15%;
    z-index: 2;
    width: 80px;
    animation: swim 25s linear infinite, bob 4s ease-in-out infinite;
}

@keyframes swim {
    0%   { left: -10vw; }
    100% { left: 110vw; }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.hero-fish svg {
    width: 100%;
    height: auto;
}

/* ---- Transition Zones ---- */
.transition-zone {
    height: 8vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: none;
}

.transition-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #b8c9c3;
    z-index: 1;
}

.transition-line::after {
    content: '';
    position: absolute;
    top: -3.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #b8c9c3;
}

.current-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.current-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: none;
}

.current-path.animated {
    animation: draw-current 6s ease forwards;
}

.current-path.pulse {
    animation: current-pulse 4s ease-in-out infinite;
}

@keyframes draw-current {
    to { stroke-dashoffset: 0; }
}

@keyframes current-pulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.5; }
}

/* ---- Content Panels ---- */
.content-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-text {
    max-width: 48ch;
    padding: 2rem;
    z-index: 2;
    position: relative;
}

.panel-text.align-left {
    margin-right: auto;
    margin-left: 10%;
    text-align: left;
}

.panel-text.align-right {
    margin-left: auto;
    margin-right: 10%;
    text-align: right;
}

.section-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.12em;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.body-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: #6b7b7a;
    max-width: 48ch;
}

/* ---- Card Flip ---- */
.card-flip {
    position: absolute;
    width: 200px;
    height: 200px;
    perspective: 800px;
    cursor: pointer;
    z-index: 3;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-flip:hover .card-inner,
.card-flip.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.card-front svg {
    width: 60%;
    height: 60%;
}

.card-back {
    transform: rotateY(180deg);
    background-color: #2c3e50;
    padding: 1.2rem;
}

.card-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #faf3eb;
    text-align: center;
    line-height: 1.6;
}

/* ---- Micro Dots ---- */
.micro-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #b8c9c3;
    opacity: 0.3;
    animation: dot-rise 40s linear infinite;
}

@keyframes dot-rise {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

/* ---- Footer: The Deep ---- */
.footer-deep {
    background-color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5e6d3;
    margin-bottom: 1rem;
}

.footer-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #faf3eb;
    line-height: 1.75;
}

/* ---- Fish School (Footer) ---- */
.fish-school {
    position: absolute;
    bottom: 30%;
    left: 0;
    width: 100%;
    height: 40px;
    pointer-events: none;
}

.school-fish {
    position: absolute;
    width: 16px;
    animation: swim-school 28s linear infinite, bob 3.5s ease-in-out infinite;
}

.school-fish svg {
    width: 100%;
    height: auto;
}

@keyframes swim-school {
    0%   { left: -5vw; }
    100% { left: 105vw; }
}
