/* ===================================================
   monopole.cloud - Ethereal Translucent Frost Design
   =================================================== */

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

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

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.8;
    color: #4A5060;
    background: #F0F4FA;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Typography --- */
.logotype {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(32px, 5vw, 64px);
    color: #4A5060;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: logotypeFadeIn 1500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 300ms forwards;
}

.hero-tagline {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(11px, 0.8vw, 13px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8A90A0;
    margin-top: 12px;
    opacity: 0;
    animation: logotypeFadeIn 1500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 600ms forwards;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(24px, 3vw, 42px);
    color: #4A5060;
    margin-bottom: 16px;
}

.section-body {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.8;
    color: #4A5060;
}

.frost-panel__label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(11px, 0.8vw, 13px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8A90A0;
    display: block;
    margin-bottom: 12px;
}

.frost-panel__text {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    color: #4A5060;
}

/* --- Sky Gradient Background --- */
#sky-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #F0F4FA 0%, #E8E4F0 50%, #F0E8F0 100%);
    z-index: 0;
    pointer-events: none;
}

/* --- Particle Container --- */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    will-change: transform;
}

/* --- Depth Container --- */
#depth-container {
    position: relative;
    perspective: 1200px;
    z-index: 5;
    min-height: 100vh;
}

/* --- Depth Layers --- */
.depth-layer {
    position: relative;
    transform-style: preserve-3d;
}

.depth-layer--back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(-80px) scale(1.067);
    z-index: 1;
    pointer-events: none;
}

.depth-layer--mid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(-20px) scale(1.017);
    z-index: 2;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 0 5vw;
}

.depth-layer--front {
    position: relative;
    transform: translateZ(0);
    z-index: 3;
}

/* --- Atmospheric Gradients (Background Layer) --- */
.atmospheric-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: atmosphereFadeIn 2000ms ease-out 600ms forwards;
}

.atmospheric-gradient--blue {
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, rgba(180, 200, 230, 0.3) 0%, transparent 70%);
    top: 10%;
    left: 10%;
}

.atmospheric-gradient--lavender {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(200, 190, 220, 0.25) 0%, transparent 70%);
    top: 30%;
    right: 5%;
}

.atmospheric-gradient--pink {
    width: 45vw;
    height: 45vw;
    max-width: 550px;
    max-height: 550px;
    background: radial-gradient(circle, rgba(230, 200, 210, 0.2) 0%, transparent 70%);
    bottom: 10%;
    left: 30%;
}

/* --- Frost Panels --- */
.frost-panel {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(180, 200, 230, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(74, 80, 96, 0.06);
    padding: 32px;
    animation: gentleFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--float-offset, 0) * 1s);
    opacity: 0;
}

.frost-panel--large {
    width: 300px;
    max-width: 90vw;
    padding: 40px;
    animation: gentleFloat 6s ease-in-out infinite, panelMaterialize 1000ms ease-out 800ms forwards;
    animation-delay: calc(var(--float-offset, 0) * 1s), 800ms;
}

.frost-panel--medium {
    width: 260px;
    max-width: 90vw;
    animation: gentleFloat 6s ease-in-out infinite, panelMaterialize 1000ms ease-out 1000ms forwards;
    animation-delay: calc(var(--float-offset, 0) * 1s), 1000ms;
}

.frost-panel--content {
    max-width: 640px;
    width: 90%;
    margin: 0 auto 40px;
    opacity: 0;
}

.frost-panel--content.visible {
    animation: gentleFloat 6s ease-in-out infinite, panelMaterialize 800ms ease-out forwards;
    animation-delay: calc(var(--float-offset, 0) * 1s), 0ms;
}

.frost-panel--footer {
    max-width: 480px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
}

.frost-panel--footer.visible {
    animation: gentleFloat 6s ease-in-out infinite, panelMaterialize 800ms ease-out forwards;
    animation-delay: calc(var(--float-offset, 0) * 1s), 0ms;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 5;
    padding: 20px;
}

/* --- Content Sections --- */
#content-sections {
    position: relative;
    z-index: 5;
    padding: 60px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Footer --- */
#footer {
    position: relative;
    z-index: 5;
    padding: 40px 20px 80px;
    display: flex;
    justify-content: center;
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(18px, 2vw, 28px);
    color: #4A5060;
    margin-bottom: 8px;
}

.footer-subtext {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(11px, 0.8vw, 13px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8A90A0;
}

/* --- Animations --- */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes logotypeFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes panelMaterialize {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes atmosphereFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes particleDrift {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--drift-x), var(--drift-y));
        opacity: 0;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .depth-layer--mid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20vh 5vw 0;
    }

    .frost-panel--large,
    .frost-panel--medium {
        width: 90vw;
    }

    .frost-panel--content {
        width: 95%;
        padding: 24px;
    }

    #content-sections {
        padding: 40px 12px 20px;
    }
}

@media (max-width: 480px) {
    .logotype {
        font-size: clamp(28px, 8vw, 48px);
    }

    .frost-panel {
        padding: 20px;
        border-radius: 16px;
    }
}
