/* assets/css/pages/home.css */

/* ===================================================== */
/* BACKGROUND */
/* ===================================================== */

.background-pattern {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background-image:
        url('../../svg/patterns/background-pattern.svg');

    background-size: cover;
    background-position: center;

    opacity: 1;

    z-index: -1;

}

.home-container {

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

    padding:
        3rem 2rem;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    position: relative;

}

/* ===================================================== */
/* HERO SECTION */
/* ===================================================== */

.hero-section {

    width: 100%;

    min-height: 75vh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding-top: 7rem;

}

/* ===================================================== */
/* MASCOTS */
/* ===================================================== */

.mascot {

    display: flex;
    justify-content: center;
    align-items: center;

}

.mascot img {

    width: 100%;

    max-width: clamp(240px, 26vw, 500px);

    object-fit: contain;

    filter:
        drop-shadow(0 20px 35px rgba(0, 0, 0, 0.25));

    animation:
        floating 5s ease-in-out infinite;

    transition:
        transform 0.3s ease;

}

.mascot img:hover {

    transform:
        scale(1.03);

}

/* ===================================================== */
/* MASCOT POSITIONS */
/* ===================================================== */

.mascot-left {

    justify-content: flex-end;

}

.mascot-right {

    justify-content: flex-start;

}

/* ===================================================== */
/* MASCOTS ROW */
/* ===================================================== */

.mascots-row {

    width: 100%;

    max-width: 1800px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(220px, 1fr) minmax(420px, 700px) minmax(220px, 1fr);

    align-items: center;

    gap: 1rem;

}

/* ===================================================== */
/* CENTER */
/* ===================================================== */

.hero-center {

    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 2rem;

    z-index: 5;

}

/* ===================================================== */
/* LOGO */
/* ===================================================== */

.logo-container {

    position: relative;

    background:
        rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(18px);

    padding:
        1.2rem 5rem;

    border-radius: 32px;

    border:
        2px solid rgba(255, 255, 255, 0.2);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.18),
        inset 0 0 10px rgba(255, 255, 255, 0.08);

    animation:
        pulseGlow 5s ease-in-out infinite;

}

.app-title {

    color: white;

    font-size: clamp(3rem, 6vw, 6rem);

    font-weight: 900;

    letter-spacing: 2px;

    text-shadow:
        0 6px 18px rgba(0, 0, 0, 0.25);

}

/* ===================================================== */
/* SHIELD */
/* ===================================================== */

.shield-container img {

    width: clamp(180px, 20vw, 320px);

    filter:
        drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));

}

/* ===================================================== */
/* SHIELD GLOW */
/* ===================================================== */

.shield-container {

    position: relative;

}

.shield-container::before {

    content: '';

    position: absolute;

    inset: -30px;

    background:
        radial-gradient(circle,
            rgba(255, 255, 255, 0.22),
            transparent 70%);

    filter: blur(25px);

    z-index: -1;

}

/* ===================================================== */
/* INSTITUTIONAL */
/* ===================================================== */

.institutional-info {

    text-align: center;

    color: white;

    background:
        rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(14px);

    padding:
        1.5rem 2rem;

    border-radius: 24px;

    border:
        2px solid rgba(255, 255, 255, 0.15);

    max-width: 700px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15);

}

.institutional-info p {

    margin-top: 0.8rem;

    font-size: clamp(1rem, 2vw, 1.4rem);

    opacity: 0.95;

}

.hero-cta {

    display: flex;

    gap: 1rem;

    flex-wrap: wrap;

    justify-content: center;

}

.cta-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: none;

    cursor: pointer;

    min-width: 220px;

    min-height: 68px;

    border-radius: 22px;

    font-size: 1.1rem;

    font-weight: 800;

    text-decoration: none;

    transition:
        all 0.25s ease;

}

.primary-cta {

    background: white;

    color:
        var(--color-primary-dark);

    box-shadow:
        0 12px 30px rgba(0,0,0,0.18);

}

/* ===================================================== */
/* TEAM SECTION */
/* ===================================================== */

.team-section {

    width: 100%;

    max-width: 1400px;

    margin:
        1.5rem auto 1rem auto;

    padding:
        0 1.5rem;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 2rem;

    padding-bottom: 1rem;

}

.team-card {

    position: relative;

    background:
        rgba(255, 255, 255, 0.10);

    backdrop-filter: blur(15px);

    border-radius: 28px;

    padding:
        2rem 1.5rem;

    color: white;

    text-align: center;

    border:
        2px solid rgba(255, 255, 255, 0.12);

    transition:
        transform 0.3s ease,
        background 0.3s ease;

    overflow: hidden;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12);

}

.team-card:hover {

    transform:
        translateY(-8px);

    background:
        rgba(255, 255, 255, 0.16);

}

.team-card::before {

    content: '';

    position: absolute;

    top: -50%;
    left: -50%;

    width: 200%;
    height: 200%;

    background:
        radial-gradient(circle,
            rgba(255, 255, 255, 0.08),
            transparent 60%);

    transform:
        rotate(25deg);

}

.team-card span {

    position: relative;

    font-size: 1.1rem;

    font-weight: 700;

    line-height: 1.5;

}

/* ===================================================== */
/* AMBIENT LIGHTS */
/* ===================================================== */

.home-container::before {

    content: '';

    position: absolute;

    top: -200px;
    left: -200px;

    width: 500px;
    height: 500px;

    background:
        radial-gradient(circle,
            rgba(255, 255, 255, 0.18),
            transparent 70%);

    filter: blur(50px);

    z-index: -1;

}

.home-container::after {

    content: '';

    position: absolute;

    right: -150px;
    bottom: -150px;

    width: 450px;
    height: 450px;

    background:
        radial-gradient(circle,
            rgba(255, 255, 255, 0.12),
            transparent 70%);

    filter: blur(60px);

    z-index: -1;

}

/* ===================================================== */
/* FOOTER */
/* ===================================================== */

.main-footer {

    width: 100%;

    padding:
        2rem;

    text-align: center;

    color:
        rgba(255, 255, 255, 0.85);

    font-size: 1rem;

}

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

@media (max-width: 1100px) {

    .hero-section {

        grid-template-columns: 1fr;

    }

    .mascot img {

        max-width: 250px;

    }

    .app-title {

        font-size: 3rem;

    }

}

@media (max-width: 900px) {

    .mascots-row {

        grid-template-columns:
            1fr 1fr;

        align-items: end;

        gap: 0;

    }

    .hero-center {

        grid-column:
            1 / span 2;

        order: 2;

        margin-top: -1rem;

    }

    .mascot-left,
    .mascot-right {

        justify-content: center;

        transform: none;

    }

    .mascot img {

        max-width:
            clamp(170px, 34vw, 260px);

    }

}

@media (max-width: 600px) {

    .home-container {

        padding:
            2rem 1rem;

    }

    .logo-container {

        padding:
            1rem 2rem;

    }

    .accessibility-btn {

        width: 100%;

    }

    .team-section {

        grid-template-columns: 1fr;

    }

}

@media (max-width: 500px) {

    .hero-section {

        min-height: auto;

    }

    .mascot img {

        max-width: 140px;

    }

    .logo-container {

        padding:
            1rem 1.8rem;

    }

    .institutional-info {

        padding:
            1rem;

    }

    .app-title {

        font-size:
            clamp(2.5rem, 10vw, 4rem);

    }

}

/* ===================================================== */
/* DESKTOP CINEMATIC OFFSET */
/* ===================================================== */

@media (min-width: 1400px) {

    .mascot-left img {

        transform:
            translateX(40px);

    }

    .mascot-right img {

        transform:
            translateX(-40px);

    }

}

@media (max-width: 1399px) {

    .mascot-left img,
    .mascot-right img {

        transform: none;

    }

}
