/* =============== VARIABLES CSS =============== */
:root {
    --header-height: 3.5rem;

    /* Colors */
    --hue: 215;
    --first-color: #1a365d;
    --first-color-alt: #132a4a;
    --first-color-light: #e6f0fa;
    --second-color: #ff6b00;
    --second-color-alt: #e65c00;
    --title-color: #1a365d;
    --text-color: #4a5568;
    --text-color-light: #a0aec0;
    --body-color: #f7fafc;
    --container-color: #ffffff;
    --white-color: #ffffff;

    /* Font and Typography */
    --body-font: 'Inter', sans-serif;
    --big-font-size: 2.25rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;

    /* Font Weight */
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* Margins */
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /* Z Index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Responsive Typography */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 4rem;
        --h1-font-size: 2.5rem;
        --h2-font-size: 2rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1.125rem;
        --small-font-size: 0.938rem;
        --smaller-font-size: 0.875rem;
    }
}

/* =============== BASE =============== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============== REUSABLE CSS CLASSES =============== */
.section {
    padding: 4.5rem 0 2rem;
}

.section__title {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    text-align: center;
    margin-bottom: var(--mb-1);
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    text-align: center;
    margin-bottom: var(--mb-3);
}

.container {
    max-width: 968px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: var(--font-semi-bold);
    transition: 0.3s;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--second-color);
    color: var(--white-color);
}

.btn--primary:hover {
    background-color: var(--second-color-alt);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn--secondary {
    background-color: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
}

.btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn--white {
    background-color: var(--white-color);
    color: var(--second-color);
}

.btn--white:hover {
    background-color: var(--first-color-light);
}

/* =============== HEADER =============== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: .3s;
}

.scroll-header {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.header__container {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--first-color);
    font-weight: var(--font-bold);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo i {
    color: var(--second-color);
    font-size: 1.5rem;
}

.nav__toggle {
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    position: relative;
    cursor: pointer;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    margin-right: 0.5rem;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--title-color);
    padding: 0.25rem;
}

.lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    display: none;
    min-width: 120px;
    z-index: var(--z-modal);
}

.language-selector:hover .lang-list {
    display: block;
}

.lang-list li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-color);
}

.lang-list li:hover {
    background-color: var(--first-color-light);
    color: var(--first-color);
}

.lang-list li.active {
    color: var(--second-color);
    font-weight: var(--font-bold);
}

.header__btn {
    display: none;
    padding: 0.5rem 1rem;
    font-size: var(--small-font-size);
}

@media screen and (max-width: 767px) {
    .nav {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        padding: 4rem 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: .4s;
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        z-index: var(--z-fixed);
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2rem;
}

.nav__link {
    color: var(--title-color);
    font-weight: var(--font-medium);
    font-size: var(--h3-font-size);
    transition: .3s;
}

.nav__link:hover {
    color: var(--second-color);
}

.nav__cta {
    color: var(--second-color);
    font-weight: var(--font-bold);
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}

/* Show Menu */
.show-menu {
    top: 0;
}

/* =============== HERO =============== */
.home {
    position: relative;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.home__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.home__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(26, 54, 93, 0.95) 0%,
            rgba(26, 54, 93, 0.7) 60%,
            rgba(26, 54, 93, 0.2) 100%);
}

.home__container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4rem;
}

.home__data {
    max-width: 600px;
    animation: fadeInUp 1s ease backwards;
}

.home__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--second-color);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    font-size: var(--small-font-size);
    letter-spacing: 1px;
    margin-bottom: var(--mb-1);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
}

.home__title {
    color: var(--white-color);
    font-size: var(--big-font-size);
    margin-bottom: var(--mb-1);
    line-height: 1.1;
}

.home__description {
    color: #e2e8f0;
    margin-bottom: var(--mb-2);
    font-size: var(--normal-font-size);
}

.home__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.home__info {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    animation: fadeInUp 1s ease backwards 0.3s;
}

.home__info-title {
    display: block;
    color: var(--second-color);
    font-size: var(--smaller-font-size);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.home__info-subtitle {
    display: block;
    color: var(--white-color);
    font-size: var(--small-font-size);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============== FEATURES =============== */
.features {
    background-color: var(--container-color);
    margin-top: -4rem;
    /* Overlap hero */
    position: relative;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #edf2f7;
}

.features__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature__icon {
    font-size: 2.5rem;
    color: var(--first-color);
    margin-bottom: 1rem;
}

.feature__title {
    font-size: var(--normal-font-size);
    margin-bottom: 0.5rem;
}

.feature__description {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/* =============== ABOUT =============== */
.about__container {
    display: grid;
    gap: 2rem;
}

.about__image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about__list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.about__item i {
    color: var(--second-color);
    font-size: 1.25rem;
}

/* =============== SERVICES =============== */
.services {
    background-color: var(--first-color-light);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service__card {
    background-color: var(--white-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.service__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service__img {
    height: 200px;
    width: 100%;
}

.service__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service__content {
    padding: 1.5rem;
}

.service__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.75rem;
}

.service__description {
    font-size: var(--small-font-size);
    margin-bottom: 1.5rem;
}

.service__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--second-color);
    font-weight: var(--font-semi-bold);
    font-size: var(--small-font-size);
    transition: 0.3s;
}

.service__button:hover {
    transform: translateX(4px);
}

/* =============== GALLERY =============== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery__item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-semi-bold);
    text-transform: uppercase;
    color: var(--white-color);
}

.gallery__tag--before {
    background-color: rgba(0, 0, 0, 0.6);
}

.gallery__tag--after {
    background-color: var(--second-color);
}

/* =============== REVIEWS =============== */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.review__card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.review__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review__stars {
    color: #ffd700;
    display: flex;
    gap: 0.1rem;
}

.review__date {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

.review__text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: var(--small-font-size);
}

.review__author {
    font-size: var(--normal-font-size);
    color: var(--title-color);
}

/* =============== CTA =============== */
.cta {
    background-color: var(--second-color);
    color: var(--white-color);
    text-align: center;
}

.cta__content {
    margin-bottom: 2rem;
}

.cta__title {
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.cta__description {
    color: rgba(255, 255, 255, 0.9);
}

/* =============== FOOTER =============== */
.footer {
    background-color: var(--first-color);
    color: #e2e8f0;
    padding-bottom: 1rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    row-gap: 3rem;
}

.footer__logo {
    font-size: 1.5rem;
    color: var(--white-color);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
    display: block;
}

.footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer__social-link {
    font-size: 1.5rem;
    color: var(--white-color);
    transition: 0.3s;
}

.footer__social-link:hover {
    color: var(--second-color);
}

.footer__title {
    font-size: var(--h3-font-size);
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__links li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: var(--small-font-size);
}

.footer__links li i {
    font-size: 1.25rem;
    color: var(--second-color);
    margin-top: 0.1rem;
}

.footer__links a {
    color: #e2e8f0;
    transition: 0.3s;
}

.footer__links a:hover {
    color: var(--second-color);
}

.footer__copy {
    text-align: center;
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--smaller-font-size);
}

/* =============== SCROLL UP =============== */
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    background-color: var(--second-color);
    padding: 0.5rem;
    border-radius: 0.25rem;
    z-index: var(--z-tooltip);
    transition: .4s;
    display: inline-flex;
    color: var(--white-color);
}

.scrollup:hover {
    background-color: var(--second-color-alt);
    transform: translateY(-5px);
}

.show-scroll {
    bottom: 3rem;
}


/* =============== MEDIA QUERIES =============== */
@media screen and (min-width: 576px) {
    .home__buttons {
        flex-direction: row;
    }
}

@media screen and (min-width: 767px) {
    .section {
        padding: 7rem 0 2rem;
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
        display: flex;
        align-items: center;
    }

    .nav__list {
        flex-direction: row;
        column-gap: 3rem;
    }

    .nav__link {
        font-size: var(--normal-font-size);
        text-transform: initial;
        color: var(--text-color);
    }

    .nav__link:hover {
        color: var(--second-color);
    }

    .nav__toggle,
    .nav__close {
        display: none;
    }

    .nav__item.desktop-hidden {
        display: none;
    }

    .header__btn {
        display: inline-flex;
    }

    .home__container {
        height: 100vh;
        padding-top: 6rem;
    }

    .cta__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cta__content {
        margin-bottom: 0;
        text-align: left;
    }

    .features {
        border-radius: 1rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 1024px;
    }

    .about__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .about__data {
        text-align: left;
    }
}

@media screen and (min-width: 968px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
}