/* ================ DESIGN SYSTEM ================ */
:root {
    --header-height: 4.5rem;

    /* Colors */
    --deep-blue: #0B3C6D;
    --secondary-blue: #1E5FAF;
    --accent-blue: #3B82F6;
    --text-color: #334155;
    --text-color-light: #64748b;
    --title-color: #0f172a;
    --body-color: #f8fafc;
    --container-color: #ffffff;
    --white: #ffffff;
    
    /* Gradients */
    --blue-gradient: linear-gradient(135deg, #1E5FAF 0%, #0B3C6D 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Typography */
    --body-font: 'Inter', sans-serif;
    --title-font: 'Poppins', sans-serif;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --tiny-font-size: .75rem;

    /* Font weight */
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Margins */
    --mb-0-5: .5rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --blue-glow: 0 0 20px rgba(30, 95, 175, 0.3);

    /* Z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 968px) {
    :root {
        --h1-font-size: 3.5rem;
        --h2-font-size: 2.25rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1.125rem;
    }
}

/* ================ 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;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: .3s;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

button, input, textarea {
    font-family: var(--body-font);
    outline: none;
    border: none;
}

/* ================ REUSABLE CLASSES ================ */
.container {
    max-width: 1200px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

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

.section {
    padding: 5rem 0 2rem;
    overflow: hidden; /* Clip absolute decorations */
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--secondary-blue);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--mb-0-5);
}

.section__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-3);
}

.text-center {
    text-align: center;
}

/* ================ BUTTONS ================ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: .4s;
}

.btn--primary {
    background: var(--blue-gradient);
    color: var(--white);
    box-shadow: var(--blue-glow);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(30, 95, 175, 0.4);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--deep-blue);
    color: var(--deep-blue);
}

.btn--outline:hover {
    background: var(--deep-blue);
    color: var(--white);
}

.btn--block {
    width: 100%;
}

/* ================ HEADER ================ */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: .4s;
    background: transparent;
}

.scroll-header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.nav__logo-img {
    height: 65px;
    width: auto;
    transition: .3s;
    mix-blend-mode: multiply; /* Removes white background for a transparent look */
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--deep-blue);
    line-height: 1;
}

.logo-tag {
    font-size: var(--tiny-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color-light);
    letter-spacing: 1px;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: var(--font-medium);
    color: var(--title-color);
    position: relative;
}

.nav__link:hover, .active-link {
    color: var(--secondary-blue);
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-blue);
    transition: 0.3s;
}

.nav__link:hover::after, .active-link::after {
    width: 100%;
}

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

.nav__toggle, .nav__close {
    display: none;
}

/* ================ HERO ================ */
.hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    padding-top: calc(var(--header-height) + 3rem);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 95, 175, 0.05) 0%, rgba(30, 95, 175, 0) 70%);
    border-radius: 50%;
}

.hero__container {
    align-items: center;
}

.hero__title {
    margin-bottom: var(--mb-1-5);
}

.hero__title span {
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__description {
    margin-bottom: var(--mb-2-5);
    font-size: var(--normal-font-size);
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 1rem;
}

.hero__img-container {
    position: relative;
    justify-self: center;
}

.hero__blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--blue-gradient);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    z-index: -1;
    animation: blobMove 10s infinite alternate;
}

@keyframes blobMove {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
}

.hero__img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(11, 60, 109, 0.2));
}

.hero__scroll {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
}

.hero__scroll-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

.hero__scroll-link i {
    font-size: 1.25rem;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(10px); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* ================ ABOUT ================ */
.about__container {
    align-items: center;
}

.about__img-wrapper {
    position: relative;
}

.about__badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--body-color);
}

.badge__title {
    font-family: var(--title-font);
    font-weight: var(--font-bold);
    color: var(--secondary-blue);
    text-transform: uppercase;
    font-size: var(--small-font-size);
}

.about__director {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--secondary-blue);
}

.director__label {
    font-size: var(--tiny-font-size);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color-light);
}

.director__name {
    font-size: 1.25rem;
    color: var(--deep-blue);
}

.about__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat__item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stat__number {
    font-size: 2rem;
    color: var(--secondary-blue);
}

/* ================ SERVICES ================ */
.services__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service__card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: .4s;
    position: relative;
    overflow: hidden;
}

.service__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--blue-gradient);
    transform: scaleX(0);
    transition: .4s;
    transform-origin: left;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service__card:hover::after {
    transform: scaleX(1);
}

.service__icon {
    width: 60px;
    height: 60px;
    background: rgba(30, 95, 175, 0.1);
    color: var(--secondary-blue);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--mb-1-5);
}

.service__icon i {
    font-size: 1.75rem;
}

.service__title {
    margin-bottom: var(--mb-1);
}

/* ================ FEATURES ================ */
.features {
    background: var(--deep-blue);
    color: var(--white);
    border-radius: 3rem;
    margin: 4rem var(--mb-1-5);
    padding: 4rem 2rem;
}

.features__container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.feature__item {
    text-align: center;
}

.feature__icon-box {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mb-1-5);
    transition: .4s;
}

.feature__item:hover .feature__icon-box {
    background: var(--white);
    color: var(--deep-blue);
}

.feature__title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--mb-0-5);
}

.feature__text {
    font-size: var(--small-font-size);
    opacity: 0.8;
}

/* ================ COVERAGE ================ */
.map__container {
    margin-top: 3rem;
    background: var(--white);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.map__svg {
    width: 100%;
    max-height: 400px;
}

/* ================ CONTACT ================ */
.contact__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact__item i {
    width: 50px;
    height: 50px;
    background: var(--body-color);
    color: var(--secondary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact__item span {
    font-size: var(--tiny-font-size);
    text-transform: uppercase;
    color: var(--text-color-light);
}

.contact__item p {
    font-weight: var(--font-bold);
    color: var(--title-color);
}

.contact__form {
    background: var(--white);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
}

/* ================ DECORATIONS ================ */
.section {
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50px;
    width: 200px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-blue) 0%, transparent 70%);
    opacity: 0.05;
    z-index: -1;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    opacity: 0.05;
    z-index: -1;
}

/* Base pipe curve decoration */
.pipe-curve {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.form__group {
    margin-bottom: var(--mb-1-5);
}

.form__input {
    width: 100%;
    background: #f1f5f9;
    padding: 1rem 1.5rem;
    border-radius: .75rem;
    font-size: var(--normal-font-size);
    transition: .3s;
}

.form__input:focus {
    background: var(--white);
    box-shadow: 0 0 0 2px var(--secondary-blue);
}

/* ================ FOOTER ================ */
.footer {
    background: #0f172a;
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.footer__logo {
    font-family: var(--title-font);
    font-size: 2rem;
    font-weight: var(--font-bold);
    margin-bottom: var(--mb-1);
    display: inline-block;
}

.footer__tagline {
    font-size: var(--small-font-size);
    opacity: 0.7;
    margin-bottom: var(--mb-2);
}

.footer__social {
    display: flex;
    gap: 1.5rem;
}

.footer__social a i {
    font-size: 1.5rem;
    opacity: 0.7;
    transition: .3s;
}

.footer__social a:hover i {
    opacity: 1;
    color: var(--accent-blue);
}

.footer__title {
    font-size: 1.25rem;
    margin-bottom: var(--mb-2);
}

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

.footer__links a {
    opacity: 0.7;
}

.footer__links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: .75rem;
    opacity: 0.7;
}

.footer__copy {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--tiny-font-size);
    opacity: 0.5;
}

/* ================ MEDIA QUERIES ================ */
@media screen and (max-width: 968px) {
    .section {
        padding: 4rem 0 1rem;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        padding: 5rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        transition: .5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: var(--z-fixed);
        display: flex;
        flex-direction: column;
        visibility: hidden;
        opacity: 0;
    }

    .nav__menu.show-menu {
        right: 0;
        visibility: visible;
        opacity: 1;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
        margin-top: 2rem;
    }

    .nav__link {
        font-size: 1.25rem;
        font-weight: var(--font-semibold);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .nav__toggle, .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        background: rgba(30, 95, 175, 0.1);
        color: var(--secondary-blue);
        border-radius: 0.5rem;
        transition: 0.3s;
    }

    .nav__toggle:hover {
        background: rgba(30, 95, 175, 0.2);
    }

    .nav__btns .btn {
        padding: 0.6rem 1.25rem;
        font-size: var(--small-font-size);
    }

    .nav__logo-img {
        height: 50px;
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .hero__content {
        text-align: center;
        margin-bottom: var(--mb-3);
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .about__img-wrapper {
        margin-bottom: 2rem;
    }

    .about__data {
        text-align: center;
    }

    .about__director {
        border-left: none;
        border-top: 4px solid var(--secondary-blue);
        padding-left: 0;
        padding-top: 1rem;
    }

    .contact__container {
        gap: 3rem;
    }

    .contact__form {
        padding: 2rem;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --h1-font-size: 1.75rem;
        --h2-font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .nav__btns .btn {
        width: auto;
        padding: 0.5rem 1rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .services__container {
        grid-template-columns: 1fr;
    }

    .stat__item {
        padding: 1rem;
    }
}

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

    .hero__container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 5rem;
    }

    .hero__description {
        font-size: 1.25rem;
    }

    .about__container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 5rem;
    }

    .features {
        margin: 5rem auto;
        padding: 5rem;
    }

/* ================ FLOATING WHATSAPP ================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsappPulse 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: var(--deep-blue);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: var(--small-font-size);
    font-weight: var(--font-semibold);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid var(--deep-blue);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    right: 80px;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
