/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6b35;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 30px rgba(0, 0, 0, 0.15);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.section__subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 100;
    transition: all 0.3s;
}

.header.scroll-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s;
}

.nav__logo img:hover {
    transform: scale(1.05);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* ===== HOME/HERO SECTION ===== */
.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d99 100%);
    color: var(--white);
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.home__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

.hero__title-line {
    display: block;
    text-align: center;
}

.home__description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== BUTTONS ===== */
.button {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.button--primary {
    background: var(--secondary-color);
    color: var(--white);
}

.button--primary:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.button--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.button--secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--white);
}

.about__content {
    display: grid;
    gap: 50px;
}

.about__text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about__motto {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    font-weight: 600 !important;
    font-size: 1.15em !important;
    color: var(--primary-color) !important;
    line-height: 1.8;
}

.about__motto strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat__card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.stat__card h3 {
    margin: 0;
    padding: 0;
}

.stat__number {
    font-size: 3.5rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1;
}

.stat__label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* ===== BUSINESS SECTION ===== */
.business {
    background: var(--bg-light);
}

.business__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.business__card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.business__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.business__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #004d99);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
}

.business__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.business__description {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.business__features {
    list-style: none;
    padding: 0;
}

.business__features li {
    padding: 12px 0;
    color: var(--text-color);
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.business__features li:last-child {
    border-bottom: none;
}

.business__features li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--white);
}

.projects__map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects__map {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    background: linear-gradient(135deg, #0066cc 0%, #005099 100%);
    background-image: url('../images/world-map-final.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    border-radius: 20px;
    overflow: visible;
    box-shadow: var(--shadow);
    margin: 0 auto 40px;
}

.world-map {
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

/* Project Markers */
.project-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.marker-dot {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(255, 255, 255, 0.6);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.project-marker:hover .marker-dot {
    width: 14px;
    height: 14px;
    background: var(--secondary-color);
    border: 2px solid var(--white);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.8);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(255, 255, 255, 0.6), 0 0 0 0 rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 255, 255, 0.6), 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.marker-tooltip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 3px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid var(--primary-color);
    font-size: 0.55rem;
    line-height: 1.2;
}

.marker-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--white);
}

.project-marker:hover .marker-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 25px;
}

.marker-tooltip strong {
    display: inline;
    color: var(--primary-color);
    font-size: 0.55rem;
    font-weight: 600;
    margin-right: 3px;
}

.marker-tooltip .year {
    display: inline;
    color: var(--text-light);
    font-size: 0.5rem;
    margin-right: 3px;
}

.marker-tooltip .amount {
    display: inline;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.5rem;
}

/* Projects Summary */
.projects__summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.summary__item {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: transform 0.3s;
}

.summary__item:hover {
    transform: translateY(-5px);
}

.summary__number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.summary__label {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project__card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.project__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project__image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color), #004d99);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4.5rem;
}

.project__content {
    padding: 30px;
}

.project__category {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project__title {
    font-size: 1.4rem;
    margin: 12px 0;
    color: var(--primary-color);
    font-weight: 600;
}

.project__description {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-light);
}

.contact__offices {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 50px;
}

.office__card {
    background: var(--white);
    padding: 15px 10px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.office__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.office__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
}

.office__icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color), #004d99);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.office__title {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 3px;
    font-weight: 600;
    line-height: 1.2;
}

.office__badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.office__badge.china {
    background: var(--primary-color);
}

.office__badge.usa {
    background: var(--primary-color);
}

.office__badge.mexico {
    background: #006847;  /* Mexico green */
}

.office__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info__item {
    display: flex;
    gap: 8px;
}

.info__item i {
    color: var(--primary-color);
    font-size: 0.75rem;
    width: 16px;
    flex-shrink: 0;
}

.info__item strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.75rem;
}

.info__item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
    font-size: 0.7rem;
}

/* ===== CONTACT FORM ===== */
.contact__form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form__title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.form__group {
    margin-bottom: 20px;
}

.form__input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.3s;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form__textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer__text {
    margin: 0;
    font-size: 0.95rem;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #e55a2b;
    transform: translateY(-5px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1200px) {
    .contact__offices {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 968px) {
    .business__grid,
    .contact__offices {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        padding: 80px 40px;
        transition: right 0.3s;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 30px;
    }

    .nav__toggle,
    .nav__close {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero__title {
        font-size: 2rem;
    }
    
    .hero__title-line {
        white-space: normal;
    }

    .home__description {
        font-size: 1.1rem;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .section__title {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .projects__grid {
        grid-template-columns: 1fr;
    }
    
    .projects__map {
        height: 400px;
    }
    
    .projects__summary {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 50px 0;
    }

    .home {
        min-height: 90vh;
    }

    .nav__logo img {
        height: 40px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .home__description {
        font-size: 1rem;
    }

    .button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .business__card,
    .office__card {
        padding: 25px;
    }

    .contact__form-container {
        padding: 25px;
    }
    
    .projects__map {
        height: 300px;
    }
    
    .marker-dot {
        width: 8px;
        height: 8px;
    }
    
    .marker-tooltip {
        font-size: 0.55rem;
        padding: 3px 6px;
        min-width: 60px;
    }
}