/* ===== VARIABLES CSS ===== */
:root {
    --header-height: 3.5rem;
    
    /* Colors */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #10b981;
    --dark-color: #0f172a;
    --dark-alt: #1e293b;
    --text-color: #334155;
    --text-light: #64748b;
    --white-color: #ffffff;
    --body-color: #f8fafc;
    --container-color: #ffffff;
    --border-color: #e2e8f0;
    
    /* Typography */
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 3rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --h4-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
    
    /* Font Weight */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    
    /* Spacing */
    --mb-0-25: 0.25rem;
    --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;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Responsive Typography */
@media screen and (max-width: 992px) {
    :root {
        --biggest-font-size: 2.5rem;
        --h1-font-size: 2rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 0.938rem;
        --small-font-size: 0.813rem;
        --smaller-font-size: 0.75rem;
    }
}

/* ===== 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(--dark-color);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--body-font);
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section {
    padding: 5rem 0 2rem;
}

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

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

.center {
    text-align: center;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

/* ===== BUTTONS ===== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: var(--font-semi-bold);
    transition: var(--transition);
    font-size: var(--normal-font-size);
}

.button__primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.button__primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.button__secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.button__secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.button__block {
    width: 100%;
}

/* ===== HEADER & NAV ===== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--white-color);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.nav__logo {
    color: var(--dark-color);
    font-weight: var(--font-bold);
    font-size: var(--h4-font-size);
    transition: var(--transition);
}

.nav__logo:hover {
    color: var(--primary-color);
}

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

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

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

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

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

.nav__cta {
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 0.5rem;
}

.nav__cta::after {
    display: none;
}

.nav__cta:hover {
    background-color: var(--primary-hover);
    color: var(--white-color);
}

.nav__toggle,
.nav__close {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: calc(var(--header-height) + 3rem);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #DAEAF0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.hero__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero__data {
    color: var(--dark-color);
}

.hero__title {
    font-size: var(--biggest-font-size);
    margin-bottom: var(--mb-1);
    color: var(--dark-color);
}

.hero__title .highlight {
    color: var(--primary-color);
}

.hero__description {
    font-size: var(--h4-font-size);
    margin-bottom: var(--mb-2);
    color: var(--text-color);
}

.hero__services {
    margin-bottom: var(--mb-2-5);
}

.hero__services li {
    margin-bottom: var(--mb-0-75);
    font-size: var(--normal-font-size);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

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

.hero__buttons .button__secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero__buttons .button__secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__blob {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== ABOUT SECTION ===== */
.about__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__blob {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 50%;
}

.about__credential {
    color: var(--primary-color);
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
}

.about__description {
    margin-bottom: var(--mb-1);
    color: var(--text-color);
}

.about__description:last-of-type {
    margin-bottom: var(--mb-2);
}

/* ===== WHY BIM SECTION ===== */
.why-bim {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.why-bim .section__title {
    color: var(--white-color);
}

.why-bim__text {
    max-width: 900px;
    margin: 0 auto var(--mb-2);
    text-align: center;
    font-size: var(--normal-font-size);
    color: rgba(255, 255, 255, 0.9);
}

.why-bim__benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: var(--mb-3);
}

.benefit__card {
    background-color: var(--dark-alt);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
}

.benefit__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.benefit__icon {
    font-size: 3rem;
    margin-bottom: var(--mb-1);
}

.benefit__card h3 {
    color: var(--white-color);
    margin-bottom: var(--mb-0-5);
    font-size: var(--h4-font-size);
}

.benefit__card p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== SERVICES SECTION ===== */
.services__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--mb-2-5);
}

.service__card {
    background-color: var(--container-color);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

.service__icon {
    font-size: 3rem;
    margin-bottom: var(--mb-1);
    color: var(--primary-color);
}

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

.service__description {
    color: var(--text-light);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background-color: var(--body-color);
}

.projects__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: var(--mb-2-5);
}

.project__card {
    background-color: var(--container-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.project__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.project__image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.project__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project__card:hover .project__image img {
    transform: scale(1.1);
}

.project__title {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--dark-color);
}

.project__description {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* ===== RECONSTRUCTION SECTION ===== */
.reconstruction {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.reconstruction__text {
    max-width: 900px;
    margin: 0 auto var(--mb-2);
    text-align: center;
}

.reconstruction .button {
    display: block;
    margin: var(--mb-2) auto 0;
    max-width: 300px;
}

/* ===== CONTACT SECTION ===== */
.contact__description {
    max-width: 700px;
    margin: 0 auto var(--mb-2-5);
    color: var(--text-light);
    font-size: var(--normal-font-size);
}

.contact__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--mb-2-5);
}

.contact__card {
    background-color: var(--container-color);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: var(--mb-1);
}

.contact__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.contact__icon {
    font-size: 3rem;
    margin-bottom: var(--mb-0-5);
}

.contact__card h3 {
    margin-bottom: var(--mb-0-5);
    font-size: var(--h4-font-size);
}

.contact__card p {
    color: var(--text-light);
    margin-bottom: var(--mb-1);
    word-break: break-word;
}

.contact__card .button {
    margin-top: auto;
}

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

.footer__logo img {
    height: 50px;
    width: auto;
    margin-bottom: var(--mb-1);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: var(--mb-3);
}

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

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--mb-1-5);
}

.footer__title {
    font-size: var(--h4-font-size);
    margin-bottom: var(--mb-1);
    color: var(--white-color);
}

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

.footer__links a,
.footer__contact li {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
    margin-top: var(--mb-1);
}

.footer__social a {
    width: 40px;
    height: 40px;
    background-color: var(--dark-alt);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer__social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer__bottom {
    padding-top: var(--mb-2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== SCROLL UP ===== */
.scrollup {
    position: fixed;
    right: 2rem;
    bottom: -20%;
    background-color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    z-index: var(--z-tooltip);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.scrollup:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

.show-scroll {
    bottom: 3rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    right: 2rem;
    bottom: 5rem;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    z-index: var(--z-tooltip);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
}

/* ===== BREAKPOINTS ===== */
/* Large devices */
@media screen and (max-width: 992px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero__container,
    .about__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero__image,
    .about__image {
        order: -1;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Medium devices */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100%;
        background-color: var(--white-color);
        padding: 4.5rem 2rem 3rem;
        box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav__toggle,
    .nav__close {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .nav__close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .services__content,
    .projects__content,
    .contact__cards {
        grid-template-columns: 1fr;
    }
    
    .scrollup,
    .whatsapp-float {
        right: 1rem;
    }
}

/* Small devices */
@media screen and (max-width: 576px) {
    .hero__blob,
    .about__blob {
        width: 250px;
        height: 250px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .contact__form {
        padding: 1.5rem;
    }
}

