/* Contact Section - Clouds reveal text */
.contact_section {
    position: relative;
    width: 100%;
    height: 300vh; /* 3x viewport height for scroll room */
    background-color: var(--light-bg);
    isolation: isolate;
}

.contact_container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* Cloud styles - start in center, cover text */
.contact_cloud {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    will-change: transform;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.contact_cloud img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Left clouds - spread vertically and horizontally, move left */
.contact-cloud-left-1 {
    width: 370px;
    height: 330px;
    /* Top left position - more spread out */
    transform: translate(-91%, -113%);
    z-index: 11;
}

.contact-cloud-left-2 {
    width: 510px;
    height: 420px;
    /* Bottom left position - more spread out */
    transform: translate(-74%, -49%);
    z-index: 12;
}

.contact-cloud-left-3 {
    width: 400px;
    height: 415px;
    /* Middle left position - more spread out */
    transform: translate(-127%, -69%);
    z-index: 11;
}

/* Right clouds - spread vertically and horizontally, move right */
.contact-cloud-right-1 {
    width: 500px;
    height: 330px;
    /* Top right position - more spread out */
    transform: translate(-17%, -87%);
    z-index: 12;
}

.contact-cloud-right-2 {
    width: 400px;
    height: 265px;
    /* Middle right position - more spread out */
    transform: translate(20%, -62%);
    z-index: 12;
}

.contact-cloud-right-3 {
    width: 450px;
    height: 350px;
    /* Bottom right position - more spread out */
    transform: translate(0%, -57%);
}

/* Text container - centered, behind clouds initially */
.contact_text_container {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 700px;
    padding: 2rem;
}

.contact_title {
    font-family: var(--heading-font);
    font-size: 68px;
    color: var(--dark-text);
    margin: 0 0 1.5rem 0;
    opacity: 0.3;
    transition: opacity 0.6s ease;
}

.contact_description {
    font-family: var(--base-font);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--dark-text);
    line-height: 1.6;
    margin: 0 0 2rem 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact_button {
    padding: 1rem 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact_button .button {
    margin: auto;
}

/* Revealed state - when clouds move away */
.contact_text_container.revealed .contact_title {
    opacity: 1;
}

.contact_text_container.revealed .contact_description {
    opacity: 0.9;
}

.contact_text_container.revealed .contact_button {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact_title {
        font-size: 2.5rem;
    }

    .contact_description {
        font-size: 0.95rem;
        margin: 0 0 1rem 0;
    }

    .contact_button {
        padding: 0rem 2.5rem;
    }

    .contact_section {
        height: 250vh;
    }

    .contact-cloud-left-1 {
        width: 170px;
        height: 160px;
        transform: translate(-110%, -115%);
    }

    .contact-cloud-left-2 {
        width: 200px;
        height: 230px;
        transform: translate(-63%, -54%);
    }

    .contact-cloud-left-3 {
        width: 200px;
        height: 180px;
        transform: translate(-105%, -75%);
    }

    .contact-cloud-right-1 {
        width: 220px;
        height: 180px;
        transform: translate(-2%, -97%);
    }

    .contact-cloud-right-2 {
        width: 180px;
        height: 200px;
        transform: translate(25%, -70%);
    }

    .contact-cloud-right-3 {
        width: 240px;
        height: 190px;
        transform: translate(20%, -40%);
    }

    .contact_text_container {
        padding: 1rem;
    }
}