/* =========================================================
   glolos.com — Styles
   Ocean-deep palette, single-column narrative descent
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    line-height: 1.72;
    color: #8BA4B8;
    background: linear-gradient(
        to bottom,
        #0A1628 0%,
        #0D1F3C 25%,
        #112240 55%,
        #0B2B3A 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #3AAFA9;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.3s ease;
}

a:hover {
    color: #4ECDC4;
}

/* --- Particle Drift (CSS-only) --- */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #3AAFA9;
    opacity: 0.12;
    animation: particleDrift linear infinite;
}

.particle:nth-child(odd) {
    width: 2px;
    height: 2px;
    opacity: 0.1;
}

.particle:nth-child(3n) {
    width: 4px;
    height: 4px;
    opacity: 0.08;
}

@keyframes particleDrift {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.12;
    }
    90% {
        opacity: 0.12;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

/* --- Depth Line (vertical center ornament) --- */
#depth-line {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-0.5px);
    width: 1px;
    height: 100%;
    background: #2A4A6B;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

/* --- Depth Gauge (scroll progress) --- */
#depth-gauge {
    position: fixed;
    top: 10%;
    right: 24px;
    width: 3px;
    height: 80%;
    background: #2A4A6B;
    opacity: 0.25;
    border-radius: 2px;
    z-index: 100;
    pointer-events: none;
}

#depth-gauge-fill {
    width: 100%;
    height: 0%;
    background: #3AAFA9;
    opacity: 0.6;
    border-radius: 2px;
    transition: height 0.1s linear;
}

/* --- Section Base --- */
.section {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* --- Content Column --- */
.content-column {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    z-index: 2;
}

/* --- Section Labels --- */
.section-label {
    display: block;
    font-family: 'Source Serif 4', serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5A7A8F;
    margin-bottom: 16px;
}

/* --- Section Titles --- */
.section-title {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #C8E6EC;
    margin-bottom: 48px;
}

/* --- Text Cards --- */
.text-card {
    margin-bottom: 48px;
}

.text-card p {
    color: #8BA4B8;
    line-height: 1.72;
}

/* --- Pull Quotes --- */
.pull-quote {
    margin: 48px 0;
}

.quote-rule {
    border: none;
    width: 40px;
    height: 1px;
    background: #2A4A6B;
    opacity: 0.5;
    margin-bottom: 24px;
}

.pull-quote blockquote {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.45;
    color: #3AAFA9;
}

/* --- Image Cards --- */
.image-card {
    margin-bottom: 48px;
    width: 100%;
}

.section-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    display: block;
    filter: brightness(0.85) contrast(1.1) saturate(0.9);
    border-radius: 2px;
}

.image-caption {
    display: block;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 300;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5A7A8F;
    margin-top: 16px;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px;
}

.hero-title {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: clamp(3rem, 7vw, 5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #C8E6EC;
    margin-bottom: 24px;
}

.hero-tagline {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.6;
    color: #8BA4B8;
    margin-bottom: 60px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll Chevron */
.scroll-chevron {
    animation: chevronBounce 2s ease-in-out infinite;
    opacity: 0.6;
}

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

/* =========================================================
   WAVE BAND DIVIDERS
   ========================================================= */
.wave-band {
    width: 100%;
    height: 120px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

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

/* =========================================================
   SONAR RINGS (About Section)
   ========================================================= */
.sonar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 880px;
    height: 880px;
    pointer-events: none;
    z-index: 0;
}

.sonar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid #3AAFA9;
    animation: sonarPulse 8s ease-out infinite;
}

.sonar-ring-1 {
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    opacity: 0.3;
    animation-delay: 0s;
}

.sonar-ring-2 {
    width: 640px;
    height: 640px;
    margin-top: -320px;
    margin-left: -320px;
    opacity: 0.2;
    animation-delay: 1.5s;
}

.sonar-ring-3 {
    width: 880px;
    height: 880px;
    margin-top: -440px;
    margin-left: -440px;
    opacity: 0.1;
    animation-delay: 3s;
}

@keyframes sonarPulse {
    0% {
        transform: scale(0.7);
        opacity: 0.3;
    }
    50% {
        opacity: 0.15;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.sonar-ring-2 {
    animation-name: sonarPulse;
}

.sonar-ring-3 {
    animation-name: sonarPulse;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
#about {
    position: relative;
    overflow: hidden;
}

#about .content-column {
    position: relative;
    z-index: 2;
}

/* =========================================================
   FOOTER
   ========================================================= */
#footer {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 80px 24px;
    overflow: hidden;
}

.footer-contours {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.footer-name {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #C8E6EC;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.footer-text {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-size: 0.9375rem;
    color: #5A7A8F;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.footer-links a {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 300;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5A7A8F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3AAFA9;
}

/* =========================================================
   FADE-REVEAL ANIMATION
   ========================================================= */
.fade-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Stagger delays for cascading reveal within sections */
.fade-reveal:nth-child(2) {
    transition-delay: 120ms;
}

.fade-reveal:nth-child(3) {
    transition-delay: 240ms;
}

.fade-reveal:nth-child(4) {
    transition-delay: 360ms;
}

.fade-reveal:nth-child(5) {
    transition-delay: 480ms;
}

.fade-reveal:nth-child(6) {
    transition-delay: 600ms;
}

/* =========================================================
   RESPONSIVE: Tablet (640-1024px)
   ========================================================= */
@media (min-width: 640px) and (max-width: 1024px) {
    .content-column {
        max-width: 580px;
        padding: 60px 24px;
    }
}

/* =========================================================
   RESPONSIVE: Mobile (< 640px)
   ========================================================= */
@media (max-width: 639px) {
    .content-column {
        max-width: 100%;
        padding: 48px 24px;
    }

    #depth-line {
        display: none;
    }

    .sonar-container {
        width: 400px;
        height: 400px;
    }

    .sonar-ring-1 {
        width: 200px;
        height: 200px;
        margin-top: -100px;
        margin-left: -100px;
    }

    .sonar-ring-2 {
        width: 320px;
        height: 320px;
        margin-top: -160px;
        margin-left: -160px;
    }

    .sonar-ring-3 {
        width: 400px;
        height: 400px;
        margin-top: -200px;
        margin-left: -200px;
    }

    .section {
        min-height: 70vh;
    }

    #hero {
        min-height: 100vh;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    #depth-gauge {
        right: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}
