/* 가능성.com — Ocean Deep Calming Spa */

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

/* === Base === */
html {
    scroll-behavior: smooth;
}

body {
    background: #0A1628;
    color: #FFFFFF;
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.8;
    overflow-x: hidden;
}

/* === Hero Zone === */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #0A1628 0%, #0E1F38 40%, #1A3A5C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 72px;
    color: #FFFFFF;
    letter-spacing: 0.08em;
    text-shadow: 0 0 30px rgba(200,230,240,0.5), 0 0 60px rgba(200,230,240,0.2);
    margin-bottom: 0.25rem;
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 30px rgba(200,230,240,0.5), 0 0 60px rgba(200,230,240,0.2); }
    50% { text-shadow: 0 0 40px rgba(200,230,240,0.7), 0 0 80px rgba(200,230,240,0.3); }
}

.hero-sub {
    font-family: 'Cormorant', serif;
    font-weight: 500;
    font-size: 28px;
    color: #C8E6F0;
    letter-spacing: 0.12em;
    margin-bottom: 2.5rem;
    opacity: 0.85;
}

.hero-cta {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    background: rgba(255,215,0,0.12);
    border: 1px solid rgba(255,215,0,0.35);
    padding: 0.75rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    letter-spacing: 0.04em;
    /* Possibility Gold: #FFD700 */
}

.hero-cta:hover {
    background: rgba(255,215,0,0.22);
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255,215,0,0.15);
}

/* === Breathing Ring (Hero) === */
.breathing-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breathing-ring-inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(200,230,240,0.3);
    animation: breatheRing 6s ease-in-out infinite;
}

@keyframes breatheRing {
    0%, 100% { transform: scale(1); opacity: 0.4; border-color: rgba(200,230,240,0.3); }
    50% { transform: scale(1.6); opacity: 0.8; border-color: rgba(200,230,240,0.6); }
}

/* === Scroll Hint === */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #C8E6F0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

.scroll-hint-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
    transform: rotate(180deg);
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(180deg) translateY(0); }
    50% { transform: rotate(180deg) translateY(-6px); }
}

/* === Caustic Light Patterns === */
.caustic-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    mix-blend-mode: screen;
}

.caustic {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,230,240,0.08), transparent 70%);
    pointer-events: none;
}

.caustic-1 {
    width: 400px;
    height: 400px;
    top: 8%;
    left: 15%;
    animation: causticDrift1 10s ease-in-out infinite;
}

.caustic-2 {
    width: 280px;
    height: 280px;
    bottom: 20%;
    right: 12%;
    animation: causticDrift2 12s ease-in-out infinite;
}

.caustic-3 {
    width: 200px;
    height: 200px;
    top: 45%;
    left: 55%;
    animation: causticDrift3 8s ease-in-out infinite;
}

.caustic-4 {
    width: 320px;
    height: 320px;
    top: 15%;
    right: 30%;
    animation: causticDrift1 14s ease-in-out infinite reverse;
    opacity: 0.5;
}

.caustic-5 {
    width: 150px;
    height: 150px;
    bottom: 35%;
    left: 40%;
    animation: causticDrift2 9s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes causticDrift1 {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    33% { transform: scale(1.2) translate(20px, -15px); opacity: 0.9; }
    66% { transform: scale(0.9) translate(-10px, 10px); opacity: 0.6; }
}

@keyframes causticDrift2 {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    50% { transform: scale(1.15) translate(-15px, 12px); opacity: 1; }
}

@keyframes causticDrift3 {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.4; }
    40% { transform: scale(1.3) translate(10px, -20px); opacity: 0.8; }
    70% { transform: scale(0.95) translate(-8px, 5px); opacity: 0.5; }
}

/* === Wave Dividers === */
.wave-divider {
    line-height: 0;
    position: relative;
    z-index: 1;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
    display: block;
}

.wave-div-1 {
    background: #0A1628;
}

.wave-div-1 svg path {
    fill: #1A3A5C;
}

.wave-div-2 {
    background: #1A3A5C;
}

.wave-div-2 svg path {
    fill: #3A7CA5;
}

.wave-div-3 {
    background: #3A7CA5;
}

.wave-div-3 svg path {
    fill: #E0F0F8;
}

/* === Horizontal Wave Animation === */
.horizontal-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 40px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.horizontal-wave svg {
    width: 100%;
    height: 40px;
    display: block;
}

.hw-1 {
    animation: waveScroll 20s linear infinite;
}

.hw-2 {
    animation: waveScroll 25s linear infinite reverse;
    top: auto;
    bottom: 0;
}

@keyframes waveScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Depth Sections === */
.depth-mid {
    background: #1A3A5C;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.depth-light {
    background: #3A7CA5;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.depth-surface {
    background: #E0F0F8;
    color: #0A1628;
    padding: 5rem 0;
    position: relative;
}

.depth-surface-2 {
    background: #E0F0F8;
    color: #0A1628;
    padding: 5rem 0 6rem;
    position: relative;
}

.section-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section-heading {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 36px;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.depth-surface .section-heading,
.depth-surface-2 .section-heading {
    color: #0A1628;
}

/* === Category Cards === */
.category-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.cat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.4s ease, background 0.4s ease;
}

.cat-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.14);
}

.pearl {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #C8E6F0;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    box-shadow: 0 0 8px rgba(200,230,240,0.4);
}

.cat-name {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 22px;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.cat-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

/* === Story Cards === */
.stories-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-2px);
}

.story-quote {
    font-family: 'Lora', serif;
    font-size: 17px;
    color: #FFFFFF;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.story-author {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #B0D0E0;
}

/* === Possibility Generator === */
.generator-box {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(26,58,92,0.08);
    border-radius: 24px;
    border: 1px solid rgba(26,58,92,0.1);
}

.generator-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #3A7CA5;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
}

.generator-question {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 28px;
    color: #0A1628;
    line-height: 1.4;
    margin-bottom: 2rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.generator-question.fading {
    opacity: 0;
}

.generator-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    background: #3A7CA5;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    letter-spacing: 0.03em;
}

.generator-btn:hover {
    background: #1A3A5C;
    transform: scale(1.03);
}

.generator-btn:active {
    transform: scale(0.98);
}

.generator-btn-pearl {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #C8E6F0;
    border-radius: 50%;
}

/* === Breathing Container === */
.breathing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.breathing-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58,124,165,0.15), rgba(58,124,165,0.05));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 4s ease-in-out;
}

.breathing-circle.inhale {
    transform: scale(1.3);
}

.breathing-circle.exhale {
    transform: scale(1);
}

.breathing-circle-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #3A7CA5;
    opacity: 0.4;
    transition: transform 4s ease-in-out, opacity 4s ease-in-out;
}

.breathing-circle.inhale .breathing-circle-inner {
    transform: scale(1.4);
    opacity: 0.8;
}

.breathing-circle.exhale .breathing-circle-inner {
    transform: scale(1);
    opacity: 0.4;
}

.breathing-text {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #3A7CA5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    bottom: -2rem;
}

.breathing-instruction {
    font-family: 'Lora', serif;
    font-size: 16px;
    color: #1A3A5C;
    text-align: center;
    max-width: 400px;
    margin-top: 1rem;
    opacity: 0.75;
}

/* === Footer === */
.footer {
    background: #E0F0F8;
    padding: 3rem 2rem;
    text-align: center;
    color: #1A3A5C;
    border-top: 1px solid rgba(176,208,224,0.3);
}

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

.proverb {
    font-family: 'Cormorant', serif;
    font-weight: 500;
    font-size: 20px;
    color: #0A1628;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.flink {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #3A7CA5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.flink:hover {
    color: #0A1628;
}

.footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #3A7CA5;
    opacity: 0.7;
}

/* === Fade-in Animation === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* === Responsive === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 52px;
    }

    .hero-sub {
        font-size: 22px;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }

    .section-heading {
        font-size: 30px;
    }

    .generator-question {
        font-size: 24px;
    }

    .breathing-circle {
        width: 120px;
        height: 120px;
    }

    .breathing-circle-inner {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-sub {
        font-size: 18px;
    }

    .section-heading {
        font-size: 26px;
    }

    .cat-card {
        padding: 1.5rem;
    }

    .story-card {
        padding: 1.5rem;
    }

    .generator-box {
        padding: 2rem 1rem;
    }

    .generator-question {
        font-size: 22px;
    }
}
