/* --- 1. Imports & NEW Corporate Theme Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #004a99; /* Deep, trustworthy corporate blue */
    --primary-hover: #003366; /* Darker blue for hover */
    --secondary-color: #007bff; /* A brighter blue for accents */
    
    --text-dark: #222222; /* For headings */
    --text-muted: #555555; /* For body text */
    --bg-light: #ffffff;
    --bg-alt: #f4f7fa; /* Light gray for alternating sections */
    
    --border-color: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- 2. Global Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 400;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-hover);
}

h1, h2, h3 {
    color: var(--text-dark);
    font-weight: 600;
}

/* --- 3. Header & Navigation --- */
.header {
    background: var(--bg-light);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-desktop a {
    margin-left: 25px;
    font-weight: 500;
    color: var(--text-muted);
}
.nav-desktop a:hover {
    color: var(--primary-color);
}

/* --- FIX 1: Made selector more specific (a.nav-contact-btn) --- */
a.nav-contact-btn {
    background: var(--primary-color);
    color: #fff !important; /* Force white text */
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}
a.nav-contact-btn:hover {
    background: var(--primary-hover);
    color: #fff !important;
    transform: translateY(-2px);
}

/* --- 4. Mobile Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}
.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 5px;
    transition: all 0.3s ease;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.nav-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 81px;
    left: 0;
    width: 100%;
    height: calc(100vh - 81px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 99;
}
.nav-mobile.is-active {
    transform: translateX(0);
}
.nav-mobile a {
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0;
    color: var(--text-dark);
}
.nav-mobile .nav-contact-btn {
    font-size: 20px;
    padding: 12px 25px;
}


/* --- 5. Hero Section --- */
.hero {
    background: var(--bg-alt);
    padding: 80px 0;
}
.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-content {
    flex-basis: 60%; /* Take 60% of the width */
}
.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* --- FIX 2: Made selector more specific (a.cta-button) --- */
a.cta-button {
    background-color: var(--primary-color);
    color: #fff !important; /* Force white text */
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.2);
}
a.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 74, 153, 0.3);
}

/* --- 6. Reusable Section Styling & Cards --- */
.section {
    padding: 80px 0;
    /* Animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.alt-bg {
    background: var(--bg-alt);
}
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}
.text-center {
    text-align: center;
}

/* --- 7. Service Grids & Cards --- */
.card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-grid-special {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* --- 8. About Section --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 17px;
}
.about-content p {
    margin-bottom: 15px;
}

/* --- FIX 3: Added specific rule for #contact p tag --- */
#contact p {
    color: var(--text-dark); /* Use dark text, not muted gray */
    max-width: 600px;
    margin: 0 auto 30px; /* Center and add space */
}

/* --- 9. Footer --- */
.footer {
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    color: #999;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

/* --- 10. Responsiveness --- */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: 1fr; /* Stack on tablet */
    }
    .service-grid-special {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablet */
    }
    .hero-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero-layout {
        flex-direction: column;
    }
    .hero-content {
        flex-basis: 100%;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto 30px;
    }
    .service-grid-special {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .section-title {
        font-size: 30px;
    }
}


/* --- 11. Splash Screen (Corporate Theme) --- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-color); /* Solid corporate blue background */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1000;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}
.splash-content {
    animation: fadeIn 1s ease-in-out;
}
.splash-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff; /* White text */
}
.splash-subtitle {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #fff; /* White text */
}

.launch-button {
    background-color: var(--bg-light); /* White button */
    color: var(--primary-color) !important; /* Blue text */
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}
.launch-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* --- 12. Utility Classes (Unchanged) --- */
#main-site-wrapper {
    opacity: 0;
    transition: opacity 1s ease-in 0.4s;
}
.splash-fade-out {
    opacity: 0;
    visibility: hidden;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}