
/* ==========================================================
   TURN ON LEARNING
   HOMEPAGE — SECTION ONE
   ========================================================== */


/* ==========================================================
   1. ΚΕΝΤΡΙΚΟ SECTION
   ========================================================== */

.first-section {
    --section-image: none;
    --section-position-x: 50%;
    --section-position-y: 50%;
    --section-blur: 16px;
    --section-overlay: 75;

    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 100svh;

    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);

    overflow: hidden;

    background-color: #142b43;
    color: #ffffff;
}


/* ==========================================================
   2. ΦΩΤΟΓΡΑΦΙΑ ΠΛΗΡΟΥΣ ΦΟΝΤΟΥ
   ========================================================== */

.first-section__background {
    position: absolute;
    inset: -5px;
    z-index: -3;

    background-image: var(--section-image);
    background-size: cover;

    background-position:
        var(--section-position-x)
        var(--section-position-y);

    background-repeat: no-repeat;
}


/* ==========================================================
   3. ΣΤΑΔΙΑΚΗ ΘΟΛΩΣΗ
   ========================================================== */

.first-section__blur {
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image: var(--section-image);
    background-size: cover;

    background-position:
        var(--section-position-x)
        var(--section-position-y);

    background-repeat: no-repeat;

    filter: blur(var(--section-blur));

    -webkit-mask-image: linear-gradient(
        to right,
        #000000 0%,
        #000000 18%,
        transparent 65%
    );

    mask-image: linear-gradient(
        to right,
        #000000 0%,
        #000000 18%,
        transparent 65%
    );
}


/* ==========================================================
   4. ΣΚΙΑΣΗ ΠΙΣΩ ΑΠΟ ΤΟΥΣ ΤΙΤΛΟΥΣ
   ========================================================== */

.first-section__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        90deg,
        rgb(
            9 24 44 /
            calc(var(--section-overlay) / 100)
        ) 0%,
        rgba(9, 24, 44, 0.62) 30%,
        rgba(9, 24, 44, 0.24) 58%,
        transparent 82%
    );
}


/* ==========================================================
   5. ΚΕΝΤΡΙΚΟ ΠΛΑΙΣΙΟ
   ========================================================== */

.first-section__container {
    position: relative;
    z-index: 1;

    width: min(100% - 80px, 1280px);
    margin-inline: auto;

    padding-block: 100px;
}

.first-section__content {
    width: min(100%, 660px);
}


/* ==========================================================
   6. ΜΙΚΡΟΣ ΤΙΤΛΟΣ
   ========================================================== */

.first-section__small-title {
    margin: 0 0 22px;

    color: #b9e5ff;

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}


/* ==========================================================
   7. ΚΕΝΤΡΙΚΟΣ ΤΙΤΛΟΣ
   ========================================================== */

.first-section__title {
    margin: 0;

    color: #ffffff;

    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;

    letter-spacing: -0.035em;
    text-wrap: balance;

    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.15);
}

.first-section__title span {
    display: block;
    color: #a8ddff;
}


/* ==========================================================
   8. ΠΕΡΙΓΡΑΦΗ
   ========================================================== */

.first-section__description {
    max-width: 560px;

    margin: 28px 0 0;

    color: #f0f5fc;

    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 400;
    line-height: 1.8;
}


/* ==========================================================
   9. ΚΟΥΜΠΙΑ
   ========================================================== */

.first-section__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 16px;
    margin-top: 36px;
}

.first-section__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 54px;
    padding: 14px 25px;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.3;

    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.first-section__button:hover {
    transform: translateY(-2px);
}

.first-section__button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}


/* ==========================================================
   10. ΠΡΩΤΟ ΚΟΥΜΠΙ
   ========================================================== */

.first-section__button--primary {
    background-color: #2563eb;
    color: #ffffff;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.15);
}

.first-section__button--primary:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}


/* ==========================================================
   11. ΔΕΥΤΕΡΟ ΚΟΥΜΠΙ
   ========================================================== */

.first-section__button--secondary {
    background-color: rgba(255, 255, 255, 0.1);

    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.first-section__button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}


/* ==========================================================
   12. ΜΙΚΡΗ ΣΗΜΕΙΩΣΗ
   ========================================================== */

.first-section__note {
    margin: 26px 0 0;

    color: #dbeafe;

    font-size: 0.9rem;
    line-height: 1.6;
}


/* ==========================================================
   13. TABLETS
   ========================================================== */

@media (max-width: 900px) {

    .first-section__container {
        width: min(100% - 48px, 1280px);
        padding-block: 90px;
    }

    .first-section__content {
        max-width: 580px;
    }

    .first-section__overlay {
        background: linear-gradient(
            90deg,
            rgba(9, 24, 44, 0.9) 0%,
            rgba(9, 24, 44, 0.65) 55%,
            rgba(9, 24, 44, 0.12) 100%
        );
    }
}


/* ==========================================================
   14. ΚΙΝΗΤΑ
   ========================================================== */

@media (max-width: 600px) {

    .first-section__container {
        width: calc(100% - 36px);
        padding-block: 76px;
    }

    .first-section__title {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
    }

    .first-section__description {
        margin-top: 22px;

        font-size: 1rem;
        line-height: 1.7;
    }

    .first-section__actions {
        gap: 12px;
        margin-top: 28px;
    }

    .first-section__button {
        min-height: 50px;
        padding: 12px 19px;
    }

    .first-section__blur {
        -webkit-mask-image: linear-gradient(
            to right,
            #000000 0%,
            #000000 40%,
            transparent 100%
        );

        mask-image: linear-gradient(
            to right,
            #000000 0%,
            #000000 40%,
            transparent 100%
        );
    }

    .first-section__overlay {
        background: linear-gradient(
            90deg,
            rgba(9, 24, 44, 0.92),
            rgba(9, 24, 44, 0.65)
        );
    }
}


/* ==========================================================
   15. ΜΕΙΩΜΕΝΗ ΚΙΝΗΣΗ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .first-section__button {
        transition: none;
    }

    .first-section__button:hover {
        transform: none;
    }
}
