:root {
    --primary-blue: #0041B2;
    --primary-gradient: linear-gradient(135deg, #0041B2 0%, #8E9AFE 100%);
    --secondary-teal: #26D7C7;
    --secondary-teal-hover: #1ebba8;
    --accent-lavender: #C2B7FF;
    --navy-footer: #002D72;
    --text-dark: #002D72;
    --text-light: #5A6D88;
    --bg-light: #F4F6F8;
    --white: #FFFFFF;
    --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff; /* Solid white by default */
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.3); /* 70% transparent (30% opaque) on scroll */
    backdrop-filter: blur(10px);
}

header.scrolled .logo img {
    opacity: 0.3; /* Matched logo transparency */
    width: 150px;
    height: 150px;
    transform: translateY(-20%); /* Centering smaller logo relative to header */
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    height: 80px;
    width: 240px; /* Space for the large floating logo */
}

.logo img {
    height: 300px; 
    width: 300px;
    position: absolute;
    top: 50%;
    left: -110px; 
    transform: translateY(-5%); /* Lowering it slightly more for better balance */
    z-index: 1100;
    filter: drop-shadow(0 15px 45px rgba(0, 0, 0, 0.3));
    border-radius: 50%; /* Crops out the checkerboard corners for a clean circle */
    transition: var(--transition);
    object-fit: cover;
}

.logo img:hover {
    transform: translateY(-15%) scale(1.02);
}



.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.cta-button {
    background-color: var(--secondary-teal);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(38, 215, 199, 0.3);
}

.cta-button:hover {
    background-color: var(--secondary-teal-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 215, 199, 0.4);
}

.btn-whatsapp {
    background-color: #25D366 !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background-color: #128C7E !important;
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.4) !important;
}

/* Hero Section */
.hero {
    padding: 12rem 2rem 10rem;
    background: linear-gradient(rgba(0, 45, 114, 0.7), rgba(0, 45, 114, 0.7)), url('images/hero.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--white);
    transform: skewY(-2deg);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.hero-btns .btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
}

.hero-btns .btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

/* Stats Section */
.stats {
    padding: 8rem 2rem 4rem;
    background: var(--white);
}

.stats-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Services */
.services {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: var(--soft-shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-bottom: 4px solid var(--secondary-teal);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

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

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-teal);
    margin-top: 5px;
}

.contact-item .content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-item .content p {
    color: var(--text-light);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--hover-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
}

/* Footer */
footer {
    background: var(--navy-footer);
    color: var(--white);
    padding: 6rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-teal);
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    opacity: 0.7;
}

.footer-links ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 992px) {
    .contact {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .logo {
        width: 120px;
        height: 60px;
    }

    .logo img {
        height: 150px;
        width: 150px;
        left: -10px;
        transform: translateY(-30%);
    }
}