/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(200, 76%, 50%);
    --first-color-alt: hsl(200, 60%, 45%);
    --first-color-light: hsl(200, 70%, 85%);
    --title-color: hsl(210, 24%, 88%);
    --text-color: hsl(210, 16%, 75%);
    --text-color-light: hsl(210, 12%, 65%);
    --white-color: #FFF;
    --body-color: hsl(210, 32%, 12%);
    --container-color: hsl(210, 32%, 16%);
    --dark-blue: hsl(210, 32%, 8%);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: 'Poppins', sans-serif;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;

    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;

    /*========== Transitions ==========*/
    --transition-fast: 0.3s;
    --transition-slow: 0.6s;
}

/*=============== RESPONSIVE TYPOGRAPHY ===============*/
@media screen and (min-width: 1024px) {
    :root {
        --h1-font-size: 4rem;
        --h2-font-size: 2rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1.125rem;
        --small-font-size: .938rem;
        --smaller-font-size: .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);
}

h1,
h2,
h3 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1120px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding: 6rem 0 2rem;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--first-color);
    font-weight: var(--font-medium);
    margin-bottom: 0.5rem;
}

.section__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.section__description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color-light);
}

.main {
    overflow: hidden;
    /* For animations */
}

/*=============== HEADER & NAV ===============*/
.header {
    width: 100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: background-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo img {
    height: 35px;
    /* Adjust logo height */
    filter: brightness(0) invert(1);
    /* Ensure logo is white */
}

.nav__toggle,
.nav__close {
    font-size: 1.5rem;
    color: var(--white-color);
    cursor: pointer;
    display: inline-flex;
}

.nav__toggle svg,
.nav__close svg {
    width: 24px;
    height: 24px;
}

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        background-color: hsla(210, 32%, 12%, .8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        padding: 6rem 2rem 0;
        transition: right var(--transition-fast) ease-in-out;
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--first-color);
    transition: width var(--transition-fast) ease;
}

.nav__link:hover,
.active-link {
    color: var(--first-color);
}

.nav__link:hover::after,
.active-link::after {
    width: 100%;
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

/* Show menu */
.show-menu {
    right: 0;
}

/* Change background header */
.scroll-header {
    background-color: var(--dark-blue);
    box-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.1);
}

.button--header {
    display: none;
}

/*=============== BUTTONS ===============*/
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 1rem 1.75rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-3px);
}

.button--flex {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.button--flex svg {
    width: 20px;
    height: 20px;
}

/*=============== HERO SECTION ===============*/
.hero {
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--dark-blue) 0%, var(--body-color) 100%);
}

.hero__container {
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__data {
    text-align: center;
}

.hero__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: var(--h3-font-size);
    color: var(--text-color-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__image-container {
    position: relative;
    justify-self: center;
}

.hero__img {
    width: 280px;
    border-radius: 1rem;
    position: relative;
    z-index: 2;
}

.hero__image-blob {
    position: absolute;
    width: 120%;
    height: 120%;
    background-color: var(--first-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: 1;
}

.hero__background-shape {
    position: absolute;
    bottom: -10%;
    right: -20%;
    width: 400px;
    height: 400px;
    background-color: hsla(200, 76%, 50%, 0.05);
    border-radius: 50%;
    z-index: 0;
}

/* Hero Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*=============== SERVICES SECTION ===============*/
.services__container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service__card {
    background-color: var(--container-color);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid transparent;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px hsla(200, 76%, 20%, 0.1);
    border-color: var(--first-color);
}

.service__icon {
    margin-bottom: 1.5rem;
}

.service__icon svg {
    width: 50px;
    height: 50px;
    fill: var(--first-color);
    transition: transform var(--transition-fast);
}

.service__card:hover .service__icon svg {
    transform: rotate(10deg) scale(1.1);
}

.service__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}

.service__description {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/*=============== ABOUT SECTION ===============*/
.about {
    background-color: var(--dark-blue);
}

.about__container {
    align-items: center;
    gap: 4rem;
}

.about__image-container {
    position: relative;
}

.about__img {
    border-radius: 1rem;
    position: relative;
    z-index: 2;
}

.about__image-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--first-color);
    border-radius: 1rem;
    top: -20px;
    left: 20px;
    z-index: 1;
    transition: all var(--transition-slow) ease;
}

.about__image-container:hover .about__image-overlay {
    top: 20px;
    left: -20px;
}

.about__description {
    margin-bottom: 2rem;
}

.about__features {
    display: grid;
    gap: 1.5rem;
}

.about__feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about__feature-icon {
    color: var(--first-color);
}

.about__feature-icon svg {
    width: 24px;
    height: 24px;
}

.about__feature-title {
    font-size: var(--normal-font-size);
    margin-bottom: 0.25rem;
}

.about__feature-text {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/*=============== INTERACTIVE CALCULATOR SECTION ===============*/
.calculator {
    background-color: var(--body-color);
}

.calculator__container {
    grid-template-columns: 1fr;
    gap: 3rem;
    background-color: var(--container-color);
    padding: 3rem;
    border-radius: 1rem;
}

.calculator__form {
    display: grid;
    gap: 1.5rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__label {
    font-weight: var(--font-medium);
    color: var(--title-color);
    font-size: var(--small-font-size);
}

.form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(210, 32%, 25%);
    background-color: var(--body-color);
    color: var(--text-color);
    border-radius: .5rem;
    font-size: var(--normal-font-size);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input:focus {
    outline: none;
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px hsla(200, 76%, 50%, 0.3);
}

.calculator__results {
    display: grid;
    gap: 1.5rem;
    text-align: center;
}

.results__card {
    background-color: var(--body-color);
    padding: 2rem;
    border-radius: .75rem;
}

.results__title {
    font-size: var(--normal-font-size);
    margin-bottom: 0.5rem;
    color: var(--text-color-light);
}

.results__number {
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    color: var(--first-color);
    line-height: 1;
}

.results__disclaimer {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    grid-column: 1 / -1;
}


/*=============== INDUSTRY FOCUS SECTION ===============*/
.industry {
    background-color: var(--dark-blue);
}

.industry__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.industry__card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    height: 350px;
}

.industry__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) ease;
}

.industry__card:hover .industry__img {
    transform: scale(1.1);
}

.industry__data {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, hsla(210, 32%, 8%, 0.9), transparent);
    color: var(--white-color);
}

.industry__title {
    color: var(--white-color);
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}

.industry__text {
    font-size: var(--small-font-size);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity var(--transition-fast) ease, max-height var(--transition-fast) ease;
}

.industry__card:hover .industry__text {
    opacity: 1;
    max-height: 100px;
}


/*=============== TESTIMONIALS SECTION ===============*/
.testimonial {
    padding: 0;
}

.testimonial__bg {
    background: url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    padding: 8rem 0;
}

.testimonial__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(210, 32%, 8%, 0.8);
}

.testimonial__container {
    position: relative;
    z-index: 2;
}

.section__title--light,
.section__subtitle--light {
    color: var(--white-color);
}

.section__subtitle--light {
    color: var(--first-color-light);
}


.testimonial__slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial__slider {
    display: flex;
    overflow: hidden;
}

.testimonial__slide {
    flex: 0 0 100%;
    padding: 2rem;
    text-align: center;
    transition: transform 0.5s ease-in-out;
}

.testimonial__quote {
    font-size: var(--h3-font-size);
    font-style: italic;
    color: var(--title-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial__author {
    font-weight: var(--font-semi-bold);
    color: var(--white-color);
}

.testimonial__author-title {
    font-size: var(--small-font-size);
    color: var(--text-color);
}

.testimonial__navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.testimonial__button--prev,
.testimonial__button--next {
    background: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial__button--prev svg,
.testimonial__button--next svg {
    width: 20px;
    height: 20px;
}

.testimonial__button--prev:hover,
.testimonial__button--next:hover {
    background: var(--first-color);
    border-color: var(--first-color);
}

.testimonial__dots {
    display: flex;
    gap: 0.5rem;
}

.testimonial__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-color-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial__dot.active {
    background-color: var(--first-color);
    transform: scale(1.2);
}


/*=============== CTA SECTION ===============*/
.cta {
    background-color: var(--container-color);
}

.cta__container {
    text-align: center;
    align-items: center;
}

.cta__description {
    color: var(--text-color-light);
    margin-bottom: 2.5rem;
}

.button--cta {
    padding: 1.25rem 2.5rem;
    font-size: var(--normal-font-size);
}

/*=============== FOOTER ===============*/
.footer {
    background-color: var(--dark-blue);
    padding-top: 6rem;
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer__logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer__description {
    font-size: var(--small-font-size);
    margin-bottom: 1.5rem;
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.footer__links {
    display: grid;
    gap: .75rem;
}

.footer__link {
    color: var(--text-color);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--first-color);
}

.footer__contact {
    display: grid;
    gap: .5rem;
    font-size: var(--small-font-size);
}

.footer__socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer__social-link {
    font-size: 1.25rem;
    color: var(--text-color);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer__social-link svg {
    width: 24px;
    height: 24px;
}

.footer__social-link:hover {
    color: var(--first-color);
    transform: translateY(-2px);
}

.footer__copy {
    text-align: center;
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    margin-top: 5rem;
    padding-bottom: 2rem;
}

/*=============== SCROLL UP ===============*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -30%;
    background-color: var(--first-color);
    padding: .5rem;
    border-radius: .5rem;
    display: inline-flex;
    z-index: var(--z-tooltip);
    opacity: 0.8;
    transition: bottom var(--transition-fast), transform var(--transition-fast);
}

.scrollup svg {
    width: 24px;
    height: 24px;
    fill: var(--white-color);
}

.scrollup:hover {
    transform: translateY(-4px);
    opacity: 1;
}

/* Show Scroll Up*/
.show-scroll {
    bottom: 3rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
    width: .6rem;
    background-color: hsl(210, 32%, 20%);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
    background-color: hsl(210, 32%, 30%);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(210, 32%, 40%);
}

/*=============== CONTACT PAGE ===============*/
.contact-page {
    padding-top: 8rem;
}

.contact-page__container {
    align-items: flex-start;
}

.contact-page__info-title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.contact-page__info-text {
    margin-bottom: 2rem;
    color: var(--text-color-light);
}

.contact-page__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-page__item-icon {
    color: var(--first-color);
    font-size: 1.5rem;
}

.contact-page__item-icon svg {
    width: 28px;
    height: 28px;
}

.contact-page__item h4 {
    margin-bottom: .25rem;
    color: var(--title-color);
}

.contact-page__item p {
    color: var(--text-color);
    font-size: var(--small-font-size);
}

.contact-page__form .form {
    background: var(--container-color);
    padding: 2.5rem;
    border-radius: 1rem;
    display: grid;
    gap: 1.5rem;
}

.form__group-half {
    grid-column: span 2;
}

.button--form {
    width: 100%;
    justify-content: center;
}

/*=============== LEGAL PAGES ===============*/
.legal {
    padding-top: 8rem;
}

.legal__container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.legal__title {
    font-size: var(--h1-font-size);
    text-align: center;
    margin-bottom: 2rem;
}

.legal__container h2 {
    font-size: var(--h2-font-size);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--first-color);
    padding-bottom: 0.5rem;
}

.legal__container p,
.legal__container li {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal__container ul {
    list-style-type: disc;
    padding-left: 2rem;
}

/*=============== ON SCROLL ANIMATIONS ===============*/
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add delays for staggered effect */
.reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal:nth-child(5) {
    transition-delay: 0.5s;
}

.reveal:nth-child(6) {
    transition-delay: 0.6s;
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
    .container {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .footer__container {
        grid-template-columns: 1fr;
    }
}

/* For medium devices */
@media screen and (min-width: 576px) {
    .about__container {
        grid-template-columns: 0.8fr;
        justify-content: center;
    }

    .calculator__results {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-page__form .form {
        grid-template-columns: 1fr 1fr;
    }

    .form__group:not(.form__group-half) {
        grid-column: 1 / -1;
    }

    .form__group-half {
        grid-column: span 1;
    }
}

@media screen and (min-width: 768px) {
    body {
        font-size: var(--normal-font-size);
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav__toggle,
    .nav__close {
        display: none;
    }

    .nav__list {
        flex-direction: row;
        gap: 3rem;
    }

    .button--header {
        display: inline-block;
    }

    .hero__container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero__data {
        text-align: left;
    }

    .hero__subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .section {
        padding: 8rem 0 2rem;
    }

    .services__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__container {
        grid-template-columns: 1fr 1fr;
    }

    .calculator__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .cta__container {
        grid-template-columns: 2fr 1fr;
        text-align: left;
    }

    .cta__description {
        margin-bottom: 0;
    }

    .contact-page__container {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
    }
}

/* For large devices */
@media screen and (min-width: 1024px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__img {
        width: 400px;
    }

    .services__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1200px) {
    .section {
        padding: 10rem 0 2rem;
    }

    .hero {
        padding: 12rem 0 6rem;
    }
}