/* ===== ROOT & GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #2A2118;
    --bg-warm: #3D2E1F;
    --surface-main: #C45D2C;
    --surface-alt: #D47A4A;
    --accent-ember: #E8973F;
    --accent-cream: #F2DCC2;
    --text-primary: #F5EDE3;
    --text-secondary: #BFA88E;
    --shadow-deep: #1A1510;
    --marble-vein: #8A7560;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.72;
    font-size: 1.05rem;
}

h1, h2, h3 {
    font-family: 'EB Garamond', serif;
    letter-spacing: 0.02em;
}

h1 {
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 5.5rem);
}

h2 {
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.72;
}

/* ===== NAVIGATION ===== */
.nav-bar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(42, 33, 24, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 1rem 2rem;
}

.nav-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover {
    transform: scale(1.08);
}

/* ===== SECTIONS - GENERAL ===== */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6vh 0;
    overflow: hidden;
}

.section-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== HERO SECTION ===== */
.section-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-warm) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120vh;
}

.hero-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 30% 40%, #C45D2C, #D47A4A);
    border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
    opacity: 0.15;
    animation: inflate 8s ease-in-out infinite alternate;
    box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.3), 5px 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-title {
    position: relative;
    z-index: 3;
    text-shadow:
        1px 1px 0 #D47A4A,
        2px 2px 0 #C45D2C,
        3px 3px 0 #A34E26,
        4px 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    position: relative;
    z-index: 3;
    max-width: 600px;
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===== BLOB ANIMATIONS ===== */
@keyframes inflate {
    0% {
        border-radius: 30% 70% 60% 40% / 50% 40% 70% 30%;
        box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.3), 5px 5px 20px rgba(0, 0, 0, 0.2);
    }
    50% {
        border-radius: 70% 30% 40% 60% / 30% 60% 40% 70%;
        box-shadow: inset -12px -12px 35px rgba(0, 0, 0, 0.35), 6px 6px 25px rgba(0, 0, 0, 0.25);
    }
    100% {
        border-radius: 30% 70% 60% 40% / 50% 40% 70% 30%;
        box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.3), 5px 5px 20px rgba(0, 0, 0, 0.2);
    }
}

.blob-form {
    width: 400px;
    height: 400px;
    border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
    background: radial-gradient(circle at 35% 45%, #C45D2C, #D47A4A);
    animation: inflate 8s ease-in-out infinite alternate;
    box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.3), 5px 5px 20px rgba(0, 0, 0, 0.2);
    margin: 0 auto 1.5rem;
}

.blob-1 { --animation-delay: 0s; }
.blob-2 { --animation-delay: 1s; }
.blob-3 { --animation-delay: 2s; }
.blob-4 { --animation-delay: 3s; }
.blob-5 { --animation-delay: 4s; }

.blob-form {
    animation-delay: var(--animation-delay);
}

/* ===== MARBLE TEXTURE ===== */
.marble-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

.marble-bg {
    background:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(138, 117, 96, 0.05) 10px, rgba(138, 117, 96, 0.05) 11px),
        repeating-linear-gradient(15deg, transparent, transparent 8px, rgba(138, 117, 96, 0.04) 8px, rgba(138, 117, 96, 0.04) 9px),
        repeating-linear-gradient(75deg, transparent, transparent 12px, rgba(138, 117, 96, 0.03) 12px, rgba(138, 117, 96, 0.03) 13px),
        radial-gradient(ellipse at 30% 40%, rgba(138, 117, 96, 0.08), transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(138, 117, 96, 0.06), transparent 50%);
}

/* ===== DIAGONAL SECTIONS ===== */
.section-1, .section-3, .section-5 {
    background: var(--bg-dark);
    border-bottom: 4vh solid transparent;
}

.section-2, .section-4 {
    background: rgba(196, 93, 44, 0.08);
    border-bottom: 4vh solid transparent;
}

.section-final {
    background: var(--bg-dark);
    border-top: 4vh solid transparent;
    padding: 8vh 0;
}

/* Diagonal clip paths */
.diagonal-clip-1 {
    width: 100%;
    clip-path: polygon(0 4vh, 100% 0, 100% calc(100% - 4vh), 0 100%);
    position: relative;
    z-index: 1;
}

.diagonal-clip-2 {
    width: 100%;
    clip-path: polygon(0 0, 100% 4vh, 100% 100%, 0 calc(100% - 4vh));
    position: relative;
    z-index: 1;
}

/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.content-text {
    position: relative;
    z-index: 3;
}

.content-visual {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.visual-label {
    font-family: 'EB Garamond', serif;
    font-size: 12rem;
    font-weight: 700;
    opacity: 0.06;
    color: var(--text-primary);
    margin: -2rem 0 0 0;
    line-height: 0.8;
    transform: rotate(-5deg);
}

/* ===== BLUR-FOCUS EFFECT SETUP ===== */
.section {
    transition: filter 800ms ease-out, opacity 600ms ease-out, transform 600ms ease-out;
}

.section[data-blur-state="entering"] {
    filter: blur(8px);
    opacity: 0.6;
    transform: scale(0.98);
}

.section[data-blur-state="active"] {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

.section[data-blur-state="exiting"] {
    filter: blur(4px);
    opacity: 0.85;
    transform: scale(0.99);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-bar {
        top: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .nav-container {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .section {
        min-height: auto;
        padding: 4vh 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-blob {
        width: 300px;
        height: 300px;
    }

    .blob-form {
        width: 250px;
        height: 250px;
    }

    .visual-label {
        font-size: 6rem;
    }

    .diagonal-clip-1,
    .diagonal-clip-2 {
        clip-path: none;
    }

    .section-1, .section-3, .section-5 {
        border-bottom: none;
    }

    .section-2, .section-4 {
        border-bottom: none;
    }

    .section-final {
        border-top: none;
    }

    h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    h2 {
        font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    }

    .section-content {
        width: 95%;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-main);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--surface-alt);
}
