/* ================= FLOATING WORDS ================= */
#floating-words {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
    overflow: hidden;
}

.fw-word {
    position: absolute;
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 700;
    white-space: nowrap;
    user-select: none;
    opacity: 1;
    color: rgba(0, 0, 0, 1);
    filter: blur(0px);
    animation: fw-float linear forwards;
    will-change: transform, opacity;
}

@keyframes fw-float {
    0%   { opacity: 1; transform: translateY(0) scale(1); }
    90%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-60px) scale(1.05); }
}

@keyframes floatDrift {
    0%   { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.95); }
    15%  { opacity: 0.8; transform: translate(calc(var(--dirX) * 0.15), calc(var(--dirY) * 40px)) rotate(calc(var(--rotDir) * 3deg)) scale(1); }
    30%  { opacity: 1; transform: translate(calc(var(--dirX) * 0.3), calc(var(--dirY) * 80px)) rotate(calc(var(--rotDir) * -2deg)) scale(1.02); }
    50%  { opacity: 0.4; transform: translate(calc(var(--dirX) * 0.5), calc(var(--dirY) * 120px)) rotate(calc(var(--rotDir) * 1deg)) scale(1); }
    65%  { opacity: 0.1; transform: translate(calc(var(--dirX) * 0.65), calc(var(--dirY) * 160px)) rotate(calc(var(--rotDir) * -1deg)) scale(0.98); }
    75%  { opacity: 0; transform: translate(calc(var(--dirX) * 0.75), calc(var(--dirY) * 180px)) rotate(0deg) scale(0.95); }
    85%  { opacity: 0.6; transform: translate(calc(var(--dirX) * 0.85), calc(var(--dirY) * 200px)) rotate(calc(var(--rotDir) * 2deg)) scale(1); }
    100% { opacity: 0; transform: translate(var(--dirX), calc(var(--dirY) * 240px)) rotate(0deg) scale(0.95); }
}

/* ================= SUMMARY SECTION ================= */
.summary {
    background: #4f7680;
    color: white;
    padding: 90px 20px;
    text-align: center;
}

.summary h2 {
    font-size: 48px;
    font-weight: 300;
}

.gold-line {
    width: 120px;
    height: 4px;
    background: #d1a64a;
    margin: 25px auto;
}

.summary p {
    max-width: 900px;
    margin: 20px auto;
    font-size: 20px;
    line-height: 1.8;
}

/* ================= SECOND SECTION ================= */
.section-two {
    display: flex;
    align-items: center;
}

.section-two img {
    width: 50%;
    display: block;
}

.section-two .text {
    width: 50%;
    padding: 80px;
}

.section-two h2 {
    font-size: 40px;
    color: #3f5f67;
    margin-bottom: 20px;
}

.section-two .text p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

/* ================= FOOTER ================= */
.footer {
    background: #4f7680;
    color: white;
    text-align: center;
    padding: 30px;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 900px) {
    /* Keep floating words but optimize for mobile */
    #floating-words {
        /* Reduce opacity slightly on mobile for less distraction */
        opacity: 0.7;
    }

    /* Summary section */
    .summary {
        padding: 60px 20px;
    }

    .summary h2 {
        font-size: 32px;
    }

    .summary p {
        font-size: 17px;
    }

    /* Section two - stack vertically */
    .section-two {
        flex-direction: column;
    }

    .section-two img,
    .section-two .text {
        width: 100%;
    }

    .section-two .text {
        padding: 40px 30px;
    }

    .section-two h2 {
        font-size: 32px;
    }

    .section-two .text p {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    /* Further optimize floating words for small screens */
    #floating-words {
        opacity: 0.5; /* More subtle on small screens */
    }
    
    .summary {
        padding: 50px 15px;
    }

    .summary h2 {
        font-size: 26px;
    }

    .summary p {
        font-size: 16px;
        line-height: 1.7;
    }

    .gold-line {
        width: 80px;
        height: 3px;
        margin: 20px auto;
    }

    .section-two h2 {
        font-size: 26px;
    }

    .section-two .text {
        padding: 30px 20px;
    }

    .section-two .text p {
        font-size: 15px;
    }
}
