/* ================= 1. CORE & NAVBAR ================= */
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; overflow-x: hidden; margin: 0; }

/* Navbar Base */
#mainNav { 
    transition: all 0.4s ease-in-out; 
    padding: 20px 0; 
    background: transparent; 
}

/* Navbar Default (Over Hero Images) */
#mainNav .nav-link, 
#mainNav .navbar-brand { 
    color: white !important; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); 
    font-weight: 500;
}

/* Navbar Scrolled State */
#mainNav.navbar-scrolled { 
    background: #ffffff !important; 
    padding: 10px 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

#mainNav.navbar-scrolled .nav-link { 
    color: #333 !important; 
    text-shadow: none; 
}

#mainNav.navbar-scrolled .navbar-brand { 
    color: #004a99 !important; 
    text-shadow: none; 
}

/* Navigation Quote Button */
.btn-nav-quote {
    background: #004a99 !important; 
    color: #fff !important; 
    height: 40px; 
    display: inline-flex; 
    align-items: center; 
    padding: 0 22px; 
    border-radius: 4px; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.8rem;
    text-decoration: none; 
    transition: 0.3s;
}
.btn-nav-quote:hover { background: #003366 !important; transform: translateY(-2px); color: #fff !important; }

/* ================= 2. HERO SECTIONS ================= */
#hero { 
    height: 90vh; 
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/hero-bg.jpg') center/cover no-repeat;
    background-color: #002850; /* Fallback for local servers */
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.hero-glass-card { 
    background: rgba(255,255,255,0.1); 
    backdrop-filter: blur(12px); 
    padding: 3.5rem; 
    border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.2);
    color: white; 
    text-align: center; 
    max-width: 800px;
}

.page-hero {
    background: linear-gradient(rgba(0, 40, 80, 0.85), rgba(0, 40, 80, 0.85)), url('images/hero-bg.jpg') center/cover;
    padding: 180px 0 100px 0; 
    text-align: center;
}

/* ================= 3. SERVICES (EXPANSION EFFECT) ================= */
.srv-flex-container { display: flex; width: 100%; min-height: 400px; }
.srv-card { 
    flex: 1; padding: 3rem; background: #fff; border-right: 1px solid #eee; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; 
}
.srv-card:hover { flex: 1.5; background: #004a99; color: #fff; }

.srv-icon-circle { 
    width: 60px; height: 60px; background: rgba(0,74,153,0.1); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #004a99; 
}
.srv-card:hover .srv-icon-circle { background: rgba(255,255,255,0.2); color: #fff; }
.srv-card:hover p, .srv-card:hover h4 { color: #fff !important; }

/* ================= 4. PARTNERS & CLIENTS ================= */
.partner-card, .client-card {
    background: #ffffff; padding: 15px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    height: 100px; transition: all 0.4s ease;
    border: 1px solid #eee; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.partner-logo, .client-logo {
    max-height: 55px; width: auto; max-width: 90%;
    filter: grayscale(100%); opacity: 0.6; transition: 0.4s;
    object-fit: contain;
}
.partner-card:hover, .client-card:hover {
    transform: translateY(-8px); border-color: #004a99;
    box-shadow: 0 12px 24px rgba(0, 74, 153, 0.15);
}
.partner-card:hover .partner-logo, .client-card:hover .client-logo {
    filter: grayscale(0%); opacity: 1; transform: scale(1.05);
}

/* ================= 5. PROJECT SECTION CORRECTIONS ================= */
.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-img-wrapper {
    height: 250px; /* Fixed height for uniformity */
    width: 100%;
    overflow: hidden;
    position: relative;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image to fill the frame without distortion */
    object-position: center;
}

.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #004a99;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    z-index: 2;
}

/* ================= 6. UTILITIES & RESPONSIVE ================= */
.whatsapp-float { 
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: #25d366; color: #fff; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 30px; z-index: 1000; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}
.whatsapp-float:hover { color: white; transform: scale(1.1); }

@media (max-width: 991px) {
    .srv-flex-container { flex-direction: column; }
    .srv-card { border-right: none; border-bottom: 1px solid #eee; padding: 2rem; }
    .page-hero { padding: 120px 0 60px 0; }
    .project-img-wrapper { height: 200px; } /* Slightly smaller for mobile */
}