/* ------------------------------------ */
/*               OWN CODE               */
/* ------------------------------------ */
body {
    background: var(--main-alt-bg);
    transition: filter 0.25s ease, opacity 0.25s ease;
}

body.lang-blur {
    filter: blur(6px);
    opacity: 0;
}

/* ------------------------------------ */
/*             HERO SECTION             */
/* ------------------------------------ */
.hero-section {
    width: 100%;
    padding: 2rem 0 0;
    text-align: center;

    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-section h1 {
    font-size: 3.2rem;

    opacity: 0;
    transform: translateY(20px);
    animation: heroItemIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-section img {
    margin-top: 3rem;
    width: 70%;
    border-radius: 1rem;

    animation:
        heroImageIn 1s ease-out 0.8s forwards,
        appear linear;

    animation-timeline:
        auto,
        view();

    animation-range:
        normal,
        entry 0% cover 35%;
}

/* ------------------------------------ */
/*             OUR SERVICES             */
/* ------------------------------------ */
.services {
    width: 100%;
    height: auto;
    padding: 7rem 0 0;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.services h2 {
    margin: 0;
}

.services ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;

    display: flex;
    gap: 1rem;
}

.service-card {
    margin-top: 2rem;
    width: 70%;
    height: 25rem;

    display: none;
    justify-content: center;
    align-items: center;

    border-radius: 10px;
    background-color: var(--sec-bg);
}

.service-card.active {
    display: flex;
}

.service-card-text {
    flex: 1;
    padding: 3rem;
}

.service-card-text span {
    color: var(--info-color);
    font-size: 0.9rem;
}

.service-card-text h4 {
    font-size: 2.5rem;
    margin: 1rem 0 2.5rem;
}

.service-card-text p {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.service-card img {
    width: 45%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.btn.active,
.btn.active:hover {
    border-color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.2);
}

/* ------------------------------------ */
/*                ABOUT                 */
/* ------------------------------------ */
.about {
    width: 100%;
    padding: 7rem 0 0;

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.about h2 {
    margin: 0;
}

.about p {
    margin: 2rem 0;
}

.stats-table {
    margin-top: 1rem;
    width: 70%;

    border-collapse: collapse;
    color: var(--logo-color);
    background: transparent;
}

.stats-table td {
    width: 25rem;
    text-align: center;

    font-size: 1rem;
    line-height: 1.4;
}

.stats-table td strong {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-table td:not(:last-child) {
    border-right: 1px solid var(--text-alt-color);
}

.stats-table-mobile {
    display: none;
}

.about img {
    width: 70%;
    height: 500px;

    margin-top: 2rem;

    object-fit: cover;
    object-position: center;

    border-radius: 1rem;

    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
}

/* ------------------------------------ */
/*               CONTACT                */
/* ------------------------------------ */
.contact {
    width: 100%;
    padding: 7rem 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    width: 70%;
    border-radius: 1rem;

    padding: 2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: linear-gradient(135deg,
            var(--sec-bg),
            transparent,
            var(--sec-bg));
    background-size: 300% 300%;
    animation: gradientMove 8s ease infinite;
}

.contact-container h3 {
    font-size: 1.5rem;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ------------------------------------ */
/*                FOOTER                */
/* ------------------------------------ */
footer {
    width: calc(100% - 40px);
    height: 50vh;
    background: var(--sec-bg);
    border-radius: 10px;
    margin: 20px;
    padding: 3rem 5%;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left-side {
    flex: 1 1 800px;
}

.footer-left-side h2 {
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    -webkit-tap-highlight-color: transparent;

    font-size: 1.2rem;
    font-weight: normal;
    color: var(--text-color);
}

.footer-left-side h2 span {
    font-family: "GonzalesSans", sans-serif;
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--logo-color);
}

.footer-left-side p {
    line-height: 1.6;
}

.footer-left-side p:last-child {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.footer-right-side {
    display: flex;
    flex: 2 1 200px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-right-side ol {
    list-style: none;
    padding: 0;
}

.footer-right-side ol li:first-child {
    font-weight: bold;
    color: var(--logo-color);
    margin-bottom: 1rem;
}

.footer-right-side ol li a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1.5;
    transition: color 0.3s;
}

.footer-right-side ol li a:hover {
    color: var(--logo-color);
}

/* ===================================================== */
/*                RESPONSIVE DESIGN                      */
/* ===================================================== */
/* -------------- 1024px -------------- */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        margin-right: 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        margin: 10px;
    }
    .hero-section p {
        margin: 20px;
    }

    .hero-section img {
        width: 90%;
    }

    .services ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-card {
        width: 90%;
        height: auto;
        flex-direction: column;
    }

    .service-card img {
        width: 100%;
        height: 250px;
    }

    .service-card-text {
        padding: 2rem;
    }

    .stats-table {
        width: 90%;
    }

    .about img {
        width: 90%;
        height: 400px;
    }

    .contact-container {
        width: 90%;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* -------------- 768px -------------- */
@media (max-width: 768px) {

    h2 {
        font-size: 1.6rem;
    }

    p {
        font-size: 1rem;
    }

    .btn-primary {
        width: 70%;
        text-align: center;
    }

    header {
        gap: 0;
    }

    header h2 span {
        margin-left: 0;
    }

    .nav-links a {
        display: none;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .services {
        padding-top: 4rem;
    }

    .service-card-text h4 {
        font-size: 1.8rem;
    }

    .stats-table,
    .stats-table tr,
    .stats-table td {
        display: none;
    }

    .contact {
        padding: 4rem 0;
    }
}

/* -------------- 480px -------------- */
@media (max-width: 480px) {

    .hero-section img {
        margin-top: 2rem;
    }

    .service-card-text {
        padding: 1.5rem;
    }
}

/* ---------- Tablet (max 900px) ---------- */
@media (max-width: 900px) {
    footer {
        width: calc(100% - 20px);
        height: auto;
        padding: 2.5rem 5%;
    }
}

/* ---------- Mobile (max 600px) ---------- */
@media (max-width: 600px) {
    footer {
        margin: 10px;
        gap: 3rem;
    }

    .footer-right-side {
        flex-direction: column;
    }
}