/* ================== GOOGLE FONTS ================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ================== CSS VARIABLES ================== */
:root {
    /* Colors */
    --primary-color: #00A79D;
    /* A vibrant teal/turquoise */
    --primary-color-alt: #00897b;
    --secondary-color: #0D263B;
    /* A deep, professional blue */
    --title-color: #EBF2FA;
    /* Off-white for titles on dark backgrounds */
    --text-color: #BCC8D4;
    /* Light grey for body text on dark backgrounds */
    --text-color-dark: #333;
    --body-color: #051421;
    /* Very dark blue for main background */
    --container-color: #0D263B;
    /* Slightly lighter for cards/sections */
    --border-color: #1A3E5C;
    --white-color: #FFFFFF;

    /* Font and Typography */
    --body-font: 'Poppins', sans-serif;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --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 & Padding */
    --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;

    /* z-index */
    --z-tooltip: 10;
    --z-fixed: 100;

    /* Header Height */
    --header-height: 4.5rem;
}

/* ================== 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;
    color: var(--primary-color);
    transition: color .3s;
}

a:hover {
    color: var(--primary-color-alt);
}

img {
    max-width: 100%;
    height: auto;
}

/* ================== REUSABLE CSS CLASSES ================== */
.container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding: 6rem 0 2rem;
}

.section__title,
.section__subtitle {
    text-align: left;
}

.section__title {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    margin-bottom: var(--mb-2);
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-0-75);
    color: var(--primary-color);
    font-weight: var(--font-medium);
}

.text-center {
    text-align: center;
}

/* ================== BUTTONS ================== */
.button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.button:hover {
    background: var(--primary-color-alt);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 167, 157, 0.4);
}

.button--ghost {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.button--ghost:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.button--white {
    background-color: var(--white-color);
    color: var(--secondary-color);
    border: 2px solid var(--white-color);
}

.button--white:hover {
    background-color: transparent;
    color: var(--white-color);
}

.button--full {
    width: 100%;
    text-align: center;
}

/* ================== HEADER ================== */
.header {
    width: 100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: background-color .4s, box-shadow .4s;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    color: var(--white-color);
    font-weight: var(--font-bold);
    transition: color .3s;
}

.nav__logo img {
    height: 32px;
    margin-right: 0.5rem;
    transition: transform .3s;
    filter: brightness(1) invert(1);
}

.nav__logo:hover img {
    transform: rotate(-10deg);
}

.nav__menu {
    display: flex;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    position: relative;
    transition: color .3s;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width .3s ease;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--white-color);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__close,
.nav__toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white-color);
}

.nav__close svg,
.nav__toggle svg {
    width: 24px;
    height: 24px;
}

/* Change header on scroll */
.scroll-header {
    background-color: var(--container-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ================== HERO SECTION ================== */
.hero {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 38, 59, 0.8), var(--body-color) 70%);
    z-index: 0;
}

.hero__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero__data {
    max-width: 500px;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: var(--mb-1-5);
    font-weight: var(--font-bold);
}

.hero__title-highlight {
    color: var(--primary-color);
    position: relative;
}

.hero__title-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    opacity: 0.5;
    z-index: -1;
}

.hero__description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--mb-2-5);
    max-width: 450px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
}

.hero__image-container {
    position: relative;
    justify-self: center;
}

.hero__image-bg {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 1rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    transition: all .3s ease-out;
}

.hero__image {
    position: relative;
    z-index: 2;
    border-radius: 1rem;
    max-width: 450px;
    filter: saturate(0.2);
    transition: transform .3s ease-out;
}

.hero__image-container:hover .hero__image {
    transform: translate(-10px, -10px);
}

.hero__image-container:hover .hero__image-bg {
    transform: translate(10px, 10px);
}


/* ================== 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 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service__card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(0, 167, 157, 0.1);
}

.service__icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--mb-1-5);
    transition: background-color .3s;
}

.service__icon svg {
    width: 32px;
    height: 32px;
    color: var(--white-color);
}

.service__card:hover .service__icon {
    background-color: var(--white-color);
}

.service__card:hover .service__icon svg {
    color: var(--primary-color);
}

.service__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
}

.service__description {
    font-size: var(--normal-font-size);
    line-height: 1.6;
}

/* ================== ABOUT US / WHY CHOOSE US ================== */
.about {
    background-color: var(--container-color);
}

.about__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.about__image-container {
    position: relative;
}

.about__image {
    border-radius: 1rem;
}

.about__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 167, 157, 0.2), transparent);
    border-radius: 1rem;
    pointer-events: none;
}

.about__data {
    max-width: 500px;
}

.about__description {
    margin-bottom: var(--mb-2);
    line-height: 1.7;
}

.about__metrics {
    display: flex;
    gap: 2.5rem;
    margin-bottom: var(--mb-2-5);
}

.about__metric-item {
    text-align: center;
}

.about__metric-number {
    font-size: 2.5rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
    display: block;
}

.about__metric-label {
    font-size: var(--small-font-size);
    color: var(--text-color);
}

/* ================== INDUSTRIES SERVED ================== */
.industries__container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.industry__item {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all .3s ease;
}

.industry__item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.industry__item svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: var(--mb-1);
    transition: transform .3s;
}

.industry__item:hover svg {
    transform: scale(1.1);
}

.industry__item span {
    font-weight: var(--font-medium);
    color: var(--title-color);
}

/* ================== INTERACTIVE REPORT ================== */
.report {
    background-color: var(--container-color);
}

.report__container {
    grid-template-columns: 1fr 1.25fr;
    align-items: center;
    gap: 3rem;
}

.report__description {
    line-height: 1.7;
    margin-bottom: var(--mb-2);
}

.report__tabs {
    display: flex;
    gap: 1rem;
    background-color: var(--body-color);
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-top: var(--mb-2);
}

.report__tab-button {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: var(--font-medium);
    transition: all .3s ease;
    width: 100%;
}

.report__tab-button.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 167, 157, 0.3);
}

.report__content-container {
    background-color: var(--body-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.report__content {
    display: none;
    animation: fadeIn .5s;
}

.report__content.active {
    display: block;
}

.report__content-title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1-5);
    color: var(--title-color);
}

.report__content p {
    font-size: 1.1rem;
    margin-bottom: var(--mb-0-75);
    display: flex;
    justify-content: space-between;
}

.report__metric {
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.report__graph {
    margin-top: 1rem;
    border-radius: 0.5rem;
    opacity: 0.9;
}


/* ================== TESTIMONIALS ================== */
.testimonial__container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background-color: var(--container-color);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.testimonial__slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial__slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 2rem;
    text-align: center;
}

.testimonial__text {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--mb-2);
    color: var(--title-color);
}

.testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial__author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.testimonial__author-name {
    font-size: var(--h3-font-size);
    margin: 0;
}

.testimonial__author-title {
    font-size: var(--small-font-size);
    color: var(--text-color);
}

.testimonial__navigation {
    position: absolute;
    top: 50%;
    width: calc(100% - 2rem);
    left: 1rem;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.testimonial__nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--white-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all .3s;
}

.testimonial__nav-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ================== CTA ================== */
.cta {
    padding: 20px ;
}

.cta__container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-alt) 100%),
        url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    padding: 5rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    color: var(--white-color);
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: var(--mb-1-5);
    color: var(--white-color);
}

.cta__description {
    max-width: 600px;
    margin: 0 auto var(--mb-2-5);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ================== FOOTER ================== */
.footer {
    background-color: var(--container-color);
    padding-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer__section {
    margin-bottom: var(--mb-2);
}

.footer__logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    color: var(--white-color);
    margin-bottom: var(--mb-1);
}

.footer__logo img {
    height: 30px;
    margin-right: 0.5rem;
    filter: brightness(1) invert(1);
}

.footer__description {
    font-size: var(--small-font-size);
    line-height: 1.6;
    max-width: 250px;
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1-5);
    color: var(--white-color);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: var(--text-color);
    transition: color .3s, padding-left .3s;
}

.footer__link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__contact p {
    margin-bottom: 0.5rem;
    font-size: var(--small-font-size);
}

.footer__socials {
    display: flex;
    gap: 1rem;
    margin-top: var(--mb-1-5);
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--body-color);
    border-radius: 50%;
    color: var(--white-color);
    font-size: 1.2rem;
    transition: background-color .3s, transform .3s;
}

.footer__social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer__copy {
    margin-top: 4rem;
    padding: 1.5rem 0;
    text-align: center;
    font-size: var(--smaller-font-size);
    border-top: 1px solid var(--border-color);
}

/* ================== CONTACT PAGE ================== */
.contact__description {
    max-width: 700px;
    margin: 0 auto var(--mb-2-5);
}

.contact__container {
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--container-color);
    padding: 3rem;
    border-radius: 1rem;
}

.contact__info-title {
    font-size: 1.5rem;
    margin-bottom: var(--mb-1);
}

.contact__info-text {
    margin-bottom: var(--mb-2);
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--mb-1-5);
}

.contact__info-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact__form {
    background-color: var(--body-color);
    padding: 2.5rem;
    border-radius: 0.75rem;
}

.contact__form-title {
    font-size: 1.5rem;
    margin-bottom: var(--mb-2);
    text-align: center;
}

.contact__form-group {
    margin-bottom: 1.5rem;
}

.contact__form-label {
    display: block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-5);
    color: var(--text-color);
}

.contact__form-input {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--container-color);
    color: var(--title-color);
    font-size: var(--normal-font-size);
    transition: border-color .3s, box-shadow .3s;
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 167, 157, 0.2);
}

textarea.contact__form-input {
    resize: vertical;
    min-height: 120px;
}


/* ================== LEGAL PAGES ================== */
.legal {
    padding-top: calc(var(--header-height) + 2rem);
}

.legal__container {
    max-width: 800px;
    background-color: var(--container-color);
    padding: 3rem;
    border-radius: 1rem;
    color: var(--text-color);
}

.legal__title {
    font-size: 2.5rem;
    margin-bottom: var(--mb-2);
    text-align: center;
    color: var(--title-color);
}

.legal__subtitle {
    font-size: 1.5rem;
    margin-top: var(--mb-2);
    margin-bottom: var(--mb-1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.legal__container p {
    line-height: 1.8;
    margin-bottom: var(--mb-1-5);
}

.legal__container ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: var(--mb-1-5);
}

.legal__container li {
    margin-bottom: var(--mb-0-75);
    line-height: 1.8;
}

/* ================== SCROLL UP ================== */
/* Will add if requested, keeping pure for now */

/* ================== ANIMATIONS ================== */
.animate-fade-in {
    animation: fadeIn .7s ease-out forwards;
}

.animate-fade-in-delay1 {
    animation: fadeIn .7s ease-out .2s forwards;
    opacity: 0;
}

.animate-fade-in-delay2 {
    animation: fadeIn .7s ease-out .4s forwards;
    opacity: 0;
}

.animate-fade-in-delay3 {
    animation: fadeIn .7s ease-out .6s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================== MEDIA QUERIES ================== */
/* For large devices */
@media screen and (min-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
}

/* For medium devices */
@media screen and (max-width: 992px) {
    :root {
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.15rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav__list {
        gap: 1.5rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__data {
        max-width: 100%;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__image-container {
        order: -1;
        margin-bottom: var(--mb-2);
    }

    .about__container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about__image-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .about__metrics {
        justify-content: center;
    }

    .report__container {
        grid-template-columns: 1fr;
    }

    .contact__container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 0 2rem;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: var(--container-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        padding: 6rem 2rem 0;
        transition: right .4s ease;
        z-index: var(--z-fixed);
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .button--header {
        display: none;
    }

    .nav__close,
    .nav__toggle {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .show-menu {
        right: 0;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .testimonial__navigation {
        display: none;
    }

    .testimonial__slide {
        padding: 0 0.5rem;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__description,
    .footer__logo {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .footer__links,
    .footer__socials,
    .footer__contact {
        align-items: center;
        justify-content: center;
    }

    .footer__contact {
        display: flex;
        flex-direction: column;
    }

    .legal__container {
        padding: 2rem 1.5rem;
    }
}

/* For small devices */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__buttons .button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .report__tabs {
        flex-direction: column;
    }

    .cta__title {
        font-size: 2rem;
    }

    .contact__container,
    .contact__form {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 350px) {
    :root {
        --h1-font-size: 1.75rem;
        --h2-font-size: 1.5rem;
    }
}