/* =============================================
   yongzoon.xyz - Cinematic Ocean Manuscript
   ============================================= */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #0A1828;
    color: #E8EAF0;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.85;
    overflow-x: hidden;
}

/* --- SVG Filters (hidden) --- */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Letterbox Bars --- */
.letterbox-bar {
    width: 100vw;
    height: 2px;
    background: #2A6A8A;
    opacity: 0.3;
    position: relative;
    z-index: 5;
}

/* --- Candle-Light Pools --- */
.candle-light {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
}

/* --- Shake Animation --- */
@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    75% { transform: translate(2px, -1px); }
}

.shaking {
    animation: shake 200ms ease-in-out;
}

/* --- Candle Pulse Animation --- */
@keyframes candlePulse {
    0%, 100% { opacity: 0.04; }
    50% { opacity: 0.08; }
}

/* --- Bioluminescent Glow Pulse --- */
@keyframes bioGlow {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 20px rgba(72, 184, 168, 0.3); }
    50% { opacity: 1; box-shadow: 0 0 40px rgba(72, 184, 168, 0.6); }
}

/* --- Beacon Pulse --- */
@keyframes beaconPulse {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 15px rgba(72, 184, 168, 0.2), 0 0 30px rgba(72, 184, 168, 0.1);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 30px rgba(72, 184, 168, 0.5), 0 0 60px rgba(72, 184, 168, 0.25);
    }
}

/* =============================================
   HERO SECTION
   ============================================= */
.section-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0A1828;
    overflow: hidden;
}

.hero-marble-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: url(#marble-hero);
    opacity: 0.6;
    z-index: 0;
}

.letterbox-top {
    position: absolute;
    top: 0;
    left: 0;
}

.letterbox-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
}

.candle-light-hero {
    width: 600px;
    height: 400px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 50%, rgba(200, 160, 96, 0.06) 0%, transparent 60%);
    animation: candlePulse 5s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #E8EAF0;
    margin-bottom: 2rem;
    text-shadow: 0 0 60px rgba(200, 160, 96, 0.15);
}

.bioluminescent-line {
    width: 120px;
    height: 2px;
    background: #48B8A8;
    margin: 0 auto;
    animation: bioGlow 4s ease-in-out infinite;
    border-radius: 1px;
}

/* =============================================
   SECTION 2: EDITORIAL
   ============================================= */
.section-editorial {
    position: relative;
    padding: clamp(3rem, 8vh, 6rem) 1.5rem;
    background-color: #122A3A;
    overflow: hidden;
}

.candle-light-left {
    width: 400px;
    height: 500px;
    top: 5%;
    left: -5%;
    background: radial-gradient(ellipse at 50% 20%, rgba(200, 160, 96, 0.06) 0%, transparent 50%);
    animation: candlePulse 5s ease-in-out infinite;
}

.candle-light-right {
    width: 350px;
    height: 450px;
    top: 15%;
    right: -3%;
    background: radial-gradient(ellipse at 50% 20%, rgba(200, 160, 96, 0.06) 0%, transparent 50%);
    animation: candlePulse 5s ease-in-out infinite 1.5s;
}

.editorial-column {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #E8EAF0;
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.body-text {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    font-weight: 400;
    color: #E8EAF0;
    margin-bottom: 1.75rem;
}

.pull-quote {
    max-width: 900px;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 4rem;
    border-left: 3px solid #2A6A8A;
    margin-bottom: 2rem;
    position: relative;
}

.pull-quote p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    color: #C8A060;
    line-height: 1.6;
}

.marble-panel-full {
    width: 100vw;
    height: 120px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    filter: url(#marble);
    margin-top: clamp(2rem, 5vh, 4rem);
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* =============================================
   SECTION 3: DEPTHS (MORE AMBER)
   ============================================= */
.section-depths {
    position: relative;
    padding: clamp(3rem, 8vh, 6rem) 1.5rem;
    background-color: #0A1828;
    overflow: hidden;
}

.candle-light-deep-left {
    width: 500px;
    height: 600px;
    top: 0;
    left: -8%;
    background: radial-gradient(ellipse at 50% 20%, rgba(200, 160, 96, 0.08) 0%, transparent 50%);
    animation: candlePulse 5s ease-in-out infinite 0.5s;
}

.candle-light-deep-right {
    width: 450px;
    height: 550px;
    top: 10%;
    right: -5%;
    background: radial-gradient(ellipse at 50% 20%, rgba(200, 160, 96, 0.08) 0%, transparent 50%);
    animation: candlePulse 5s ease-in-out infinite 2s;
}

.candle-light-deep-center {
    width: 600px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at 50% 50%, rgba(200, 160, 96, 0.06) 0%, transparent 45%);
    animation: candlePulse 5s ease-in-out infinite 3s;
}

.coral-highlight {
    color: #E8EAF0;
    border-left: 3px solid #A06858;
    padding-left: 1.5rem;
}

.marble-panel-deep {
    height: 150px;
    opacity: 0.9;
}

/* =============================================
   SECTION 4: CLOSING
   ============================================= */
.section-closing {
    position: relative;
    padding: clamp(4rem, 10vh, 8rem) 1.5rem;
    background-color: #0A1828;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.marble-panel-closing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: url(#marble);
    opacity: 0.4;
    margin: 0;
    transform: none;
    z-index: 0;
}

.candle-light-closing {
    width: 500px;
    height: 350px;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 50%, rgba(200, 160, 96, 0.04) 0%, transparent 50%);
    animation: candlePulse 5s ease-in-out infinite;
}

.closing-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.closing-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #C8A060;
    letter-spacing: 0.01em;
    text-shadow: 0 0 40px rgba(200, 160, 96, 0.25);
    margin-bottom: 2rem;
}

.bioluminescent-beacon {
    width: 8px;
    height: 8px;
    background: #48B8A8;
    border-radius: 50%;
    margin: 0 auto;
    animation: beaconPulse 3s ease-in-out infinite;
}

.letterbox-final {
    position: absolute;
    bottom: 0;
    left: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .pull-quote {
        margin-left: 0;
        margin-right: 0;
        padding-left: 2rem;
    }

    .editorial-column {
        padding: 0 0.5rem;
    }

    .candle-light-hero {
        width: 350px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .pull-quote {
        padding-left: 1.5rem;
    }

    .pull-quote p {
        font-size: 1.15rem;
    }
}
