/* ================== GOOGLE FONTS ================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ================== CSS VARIABLES ================== */
:root {
    --header-height: 5rem;

    /* Colors */
    --primary-color: #4A90E2; /* A vibrant, professional blue */
    --primary-color-alt: #357ABD;
    --secondary-color: #50E3C2; /* A modern teal/mint for accents */
    --dark-color: #1A2035; /* Deep navy for header/footer */
    --dark-color-light: #2C344B;
    --text-color: #333333;
    --text-color-light: #F0F4F8;
    --body-color: #F9FAFB;
    --container-color: #FFFFFF;
    --border-color: #E5E7EB;

    /* Font & Typography */
    --body-font: 'Poppins', sans-serif;
    --h1-font-size: 3rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.5rem;
    --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;

    /* Z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* ================== BASE ================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 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(--dark-color);
    font-weight: var(--font-semi-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================== REUSABLE CSS CLASSES ================== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 6rem 0 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--primary-color);
    font-weight: var(--font-semi-bold);
    margin-bottom: var(--mb-0-5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-1);
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: #6B7280;
}

/* ================== BUTTONS ================== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 5px;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: var(--normal-font-size);
}

.btn--primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--primary:hover {
    background-color: var(--primary-color-alt);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn--white {
    background-color: #fff;
    color: var(--primary-color);
}

.btn--white:hover {
    background-color: var(--body-color);
    transform: translateY(-3px);
}

.btn--large {
    padding: 1rem 2.5rem;
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* ================== HEADER ================== */
.header {
    width: 100%;
    background-color: var(--dark-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: background-color 0.4s, box-shadow 0.4s;
}

.header.scrolled {
    background-color: rgba(26, 32, 53, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.header__nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    color: var(--text-color-light);
    font-weight: var(--font-bold);
    font-size: 1.25rem;
}

.header__logo img {
    height: 40px;
    margin-right: 0.5rem;
}

.header__menu-list {
    display: flex;
    gap: 2.5rem;
}

.header__menu-link {
    color: var(--text-color-light);
    font-weight: var(--font-medium);
    position: relative;
    transition: color 0.3s;
}

.header__menu-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.header__menu-link:hover,
.header__menu-link.active {
    color: var(--secondary-color);
}

.header__menu-link:hover::after,
.header__menu-link.active::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__toggle {
    display: none;
    cursor: pointer;
    width: 24px;
    height: 20px;
    position: relative;
}

.header__toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color-light);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.header__toggle .bar:nth-child(1) { top: 0; }
.header__toggle .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__toggle .bar:nth-child(3) { bottom: 0; }

.header__toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.header__toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}
.header__toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ================== HERO SECTION ================== */
.hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-color-light) 100%);
    color: var(--text-color-light);
    padding-top: calc(var(--header-height) + 8rem);
    padding-bottom: 12rem;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: var(--h1-font-size);
    color: #fff;
    margin-bottom: var(--mb-1-5);
}

.hero__description {
    font-size: 1.125rem;
    margin-bottom: var(--mb-2-5);
    opacity: 0.9;
    max-width: 550px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}
.hero__image-container:hover {
    transform: perspective(1000px) rotateY(0);
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(50px);
}
.hero__shape--1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    top: -50px;
    left: -50px;
}
.hero__shape--2 {
    width: 400px;
    height: 400px;
    background-color: var(--secondary-color);
    bottom: -100px;
    right: -100px;
}
.hero__shape--3 {
    width: 200px;
    height: 200px;
    background-color: var(--primary-color-alt);
    top: 50%;
    right: 30%;
}


/* ================== SERVICES SECTION ================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--container-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--mb-1-5);
}

.service-card__icon svg {
    width: 30px;
    height: 30px;
}

.service-card__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
}

.service-card__description {
    color: #6B7280;
    margin-bottom: var(--mb-1-5);
}

.service-card__link {
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    transition: color 0.3s;
}

.service-card__link:hover {
    color: var(--primary-color-alt);
}


/* ================== WHY CHOOSE US SECTION ================== */
.why-choose-us {
    background-color: var(--container-color);
}

.why-choose-us__container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.why-choose-us__image-container {
    border-radius: 10px;
    overflow: hidden;
}

.why-choose-us__content .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.why-choose-us__content .section-description,
.why-choose-us__content .section-title {
    margin-left: 0;
    margin-right: 0;
}

.why-choose-us__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.why-choose-us__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.why-choose-us__icon {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.why-choose-us__item h3 {
    margin-bottom: var(--mb-0-5);
}

.why-choose-us__item p {
    color: #6B7280;
}

/* ================== PROCESS SECTION ================== */
.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process__timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 1;
}

.process__item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.process__item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
}

.process__item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}

.process__step-number {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    z-index: 2;
    border: 4px solid var(--body-color);
}

.process__item:nth-child(even) .process__step-number {
    left: -25px;
}

.process__content {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    position: relative;
}

.process__item:nth-child(odd) .process__content {
    text-align: right;
}

.process__title {
    margin-bottom: var(--mb-0-75);
}

.process__description {
    color: #6B7280;
}

/* ================== STATS COUNTER SECTION ================== */
.stats {
    background: linear-gradient(rgba(26, 32, 53, 0.9), rgba(26, 32, 53, 0.9)), url('https://images.pexels.com/photos/1181406/pexels-photo-1181406.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 0;
}
.stats__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    color: var(--text-color-light);
}
.stat-item__number {
    font-size: 3rem;
    font-weight: var(--font-bold);
    color: var(--secondary-color);
    margin-bottom: var(--mb-0-5);
}
.stat-item__label {
    font-size: var(--normal-font-size);
    opacity: 0.9;
}


/* ================== TESTIMONIALS SECTION ================== */
.testimonials {
    background-color: var(--container-color);
}
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}
.testimonial-slider__wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.testimonial-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    transition: opacity 0.5s ease-in-out;
    padding: 2rem;
    text-align: center;
}
.testimonial-slide.active {
    opacity: 1;
    position: relative;
}
.testimonial-slide__text {
    font-size: 1.25rem;
    font-style: italic;
    color: #555;
    margin-bottom: var(--mb-2);
}
.testimonial-slide__author {
    margin-top: 1rem;
}
.author__name {
    font-weight: var(--font-semi-bold);
}
.author__company {
    color: #777;
    font-size: var(--small-font-size);
}

.testimonial-slider__controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}
.slider-btn {
    background-color: rgba(0,0,0,0.1);
    border: none;
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.slider-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}


/* ================== CTA SECTION ================== */
.cta {
    background-color: var(--primary-color);
    padding: 5rem 0;
}
.cta__container {
    text-align: center;
    color: var(--text-color-light);
}
.cta__title {
    font-size: var(--h2-font-size);
    color: #fff;
    margin-bottom: var(--mb-1);
}
.cta__description {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}


/* ================== FOOTER ================== */
.footer {
    background-color: var(--dark-color);
    color: var(--text-color-light);
    padding: 5rem 0 2rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer__logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    color: #fff;
    margin-bottom: var(--mb-1);
}
.footer__logo img {
    height: 40px;
    margin-right: 0.5rem;
}
.footer__about-text {
    opacity: 0.8;
    margin-bottom: var(--mb-1-5);
}
.footer__socials {
    display: flex;
    gap: 1rem;
}
.footer__social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--dark-color-light);
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
    font-family: sans-serif; /* For simple F, T, L, I */
    font-weight: bold;
}
.footer__social-link:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}
.footer__heading {
    color: #fff;
    margin-bottom: var(--mb-1-5);
    font-size: 1.1rem;
}
.footer__links li {
    margin-bottom: var(--mb-0-75);
}
.footer__links a {
    color: var(--text-color-light);
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}
.footer__links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}
.footer__contact-info p {
    margin-bottom: var(--mb-0-75);
    opacity: 0.8;
}
.footer__contact-info strong {
    font-weight: var(--font-medium);
}
.footer__bottom {
    border-top: 1px solid var(--dark-color-light);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

/* ================== CONTACT PAGE ================== */
.contact-page {
    padding-top: calc(var(--header-height) + 4rem);
}
.contact-page__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: var(--mb-0-5);
    font-weight: var(--font-medium);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}
.contact-page__info-container {
    padding-left: 2rem;
}
.contact-info-card {
    background: var(--container-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.contact-info-card h3 {
    margin-bottom: var(--mb-1);
}
.contact-info-card p {
    color: #6B7280;
    margin-bottom: var(--mb-2);
}
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-info-list li {
    display: flex;
    flex-direction: column;
}
.contact-info-list strong {
    margin-bottom: 0.25rem;
}
.contact-info-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.contact-info-socials .footer__social-link {
    border-color: var(--border-color);
    color: var(--dark-color);
}
.contact-info-socials .footer__social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ================== LEGAL PAGES ================== */
.legal-page {
    padding-top: calc(var(--header-height) + 4rem);
    background-color: var(--container-color);
}
.legal-page__container {
    max-width: 800px;
    padding-bottom: 4rem;
}
.legal-page__container h1 {
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
}
.legal-page__container h2 {
    font-size: var(--h3-font-size);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.legal-page__container p,
.legal-page__container li {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}
.legal-page__container ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}
.legal-page__container ul li {
    margin-bottom: 0.5rem;
}


/* ================== SCROLL ON ANIMATIONS ================== */
[data-animation] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
[data-animation].fade-in-up { transform: translateY(50px); }
[data-animation].fade-in-down { transform: translateY(-50px); }
[data-animation].fade-in-left { transform: translateX(-50px); }
[data-animation].fade-in-right { transform: translateX(50px); }

[data-animation].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ================== RESPONSIVENESS ================== */
@media screen and (max-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero__container { grid-template-columns: 1fr; text-align: center; }
    .hero__content { order: 2; }
    .hero__image-container { order: 1; margin-bottom: 3rem; transform: none; }
    .hero__image-container:hover { transform: none; }
    .hero__description { margin: 0 auto 2rem; }
    .hero__buttons { justify-content: center; }
    .why-choose-us__container { grid-template-columns: 1fr; }
    .why-choose-us__image-container { order: 1; }
    .why-choose-us__content { order: 2; }
    .why-choose-us__content .section-header { text-align: center; }
    .why-choose-us__content .section-description,
    .why-choose-us__content .section-title {
        margin-left: auto;
        margin-right: auto;
    }
    .contact-page__grid { grid-template-columns: 1fr; }
    .contact-page__info-container { padding-left: 0; }
}

@media screen and (max-width: 768px) {
    :root {
        --h1-font-size: 2.5rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.25rem;
    }
    body { font-size: 0.938rem; }
    .section { padding: 4rem 0 2rem; }
    .header__nav { height: calc(var(--header-height) - 1.5rem); }
    .header__menu {
        position: fixed;
        background-color: var(--dark-color);
        top: calc(var(--header-height) - 1.5rem);
        right: -100%;
        width: 100%;
        height: 100%;
        padding: 2rem;
        transition: right 0.4s ease;
    }
    .header__menu.show-menu {
        right: 0;
    }
    .header__menu-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .header__menu-link { font-size: 1.25rem; }
    .header__toggle { display: block; }
    .header__actions .btn { display: none; } /* Hide quote button */

    .process__timeline::after { left: 25px; margin-left: 0; }
    .process__item { width: 100%; padding-left: 4rem; padding-right: 1rem; }
    .process__item:nth-child(odd),
    .process__item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .process__item:nth-child(odd) .process__content,
    .process__item:nth-child(even) .process__content {
        text-align: left;
    }
    .process__step-number { right: auto; left: 0; }
    .stats__container { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__about, .footer__column { text-align: center; }
    .footer__socials { justify-content: center; }
}

@media screen and (max-width: 480px) {
    :root {
        --h1-font-size: 2rem;
        --h2-font-size: 1.5rem;
    }
    .hero { padding-top: calc(var(--header-height)); }
    .hero__buttons { flex-direction: column; gap: 1rem; }
    .stats__container { grid-template-columns: 1fr; }
}