/* ==========================================================================
   CSS VARIABLES - PREMIUM 3-COLOR RULE
   ========================================================================== */
:root {
    /* 60% Dominant (Backgrounds / Base) */
    --clr-white: #ffffff;
    --clr-light: #f8f9fa;
    --clr-light-gray: #e2e8f0;
    
    /* 30% Secondary (Corporate/Premium base) */
    --clr-navy: #1A365D;
    --clr-navy-dark: #0f223d;
    --clr-navy-light: #2c5282;

    /* 10% Accent (Highlights, Buttons, Icons) */
    --clr-accent: #2b7bc4;
    --clr-accent-hover: #1e5c96;

    /* Text Colors */
    --clr-text-main: #334155;
    --clr-text-light: #64748b;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(26, 54, 93, 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--clr-text-main);
    background-color: var(--clr-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--clr-accent);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

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

.bg-light {
    background-color: var(--clr-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--clr-navy);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--clr-accent);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    color: var(--clr-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-navy);
    border-color: var(--clr-navy);
}

.btn-outline:hover {
    background-color: var(--clr-navy);
    color: var(--clr-white);
}

/* White outline button for transparent header */
header:not(.scrolled) .btn-outline {
    color: var(--clr-white);
    border-color: var(--clr-white);
}

header:not(.scrolled) .btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-navy);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--clr-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: var(--clr-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
    padding: 1.5rem 0;
}

header.scrolled {
    background-color: var(--clr-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 40px;
}

#nav-menu ul {
    display: flex;
    gap: 2rem;
}

#nav-menu a {
    color: var(--clr-white);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

header.scrolled #nav-menu a {
    color: var(--clr-navy);
}

#nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--clr-accent);
    transition: var(--transition);
}

#nav-menu a:hover::after {
    width: 100%;
}

#nav-menu a:hover {
    color: var(--clr-accent);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-white);
    cursor: pointer;
}

header.scrolled .mobile-menu-btn {
    color: var(--clr-navy);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=1920&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--clr-white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 34, 61, 0.95) 0%, rgba(15, 34, 61, 0.7) 50%, rgba(15, 34, 61, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    color: var(--clr-white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--clr-light-gray);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   SECTION TITLES
   ========================================================================== */
.section-subtitle {
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.text-center .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--clr-accent);
    margin: 1rem auto 0;
}

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

.image-wrapper {
    position: relative;
}

.about-placeholder {
    background: linear-gradient(45deg, var(--clr-navy), var(--clr-navy-light));
    border-radius: 20px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--clr-accent);
    color: var(--clr-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.vision-mission {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vm-box {
    display: flex;
    gap: 1.5rem;
}

.vm-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(43, 123, 196, 0.1);
    color: var(--clr-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.vm-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--clr-white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--clr-light-gray);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--clr-navy);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-navy);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(43, 123, 196, 0.1);
    color: var(--clr-accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card p {
    color: var(--clr-text-light);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--clr-white);
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--clr-white);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--clr-navy);
    color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.info-item p, .info-item a {
    color: var(--clr-text-light);
}

.info-item a:hover {
    color: var(--clr-accent);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.contact-form {
    background-color: var(--clr-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--clr-navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--clr-light-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--clr-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    background-color: var(--clr-white);
    box-shadow: 0 0 0 4px rgba(43, 123, 196, 0.1);
}

/* Form Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--clr-navy-dark);
    color: var(--clr-light-gray);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1.5rem;
    /* Optional: filter to make logo entirely white if needed */
}

.footer-logo p {
    max-width: 300px;
}

.footer-links h3,
.footer-social h3 {
    color: var(--clr-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--clr-light-gray);
}

.footer-links a:hover {
    color: var(--clr-accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--clr-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--clr-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* ==========================================================================
   ANIMATIONS (JS Triggered)
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-contact {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    #nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--clr-white);
        box-shadow: var(--shadow-sm);
        padding: 1.5rem 0;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    #nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    #nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    #nav-menu a {
        color: var(--clr-navy);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}
