/* =========================================
   1. VARIABLES & GLOBAL SETTINGS
   ========================================= */
:root {
    --primary-color: #0A2463;
    --secondary-color: #1d3b8e;
    --accent-color: #ffc107;
    --text-dark: #333333;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --whatsapp-green: #25D366;
    --navbar-height: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--navbar-height); 
    background-color: #fff;
}

/* Typography Helpers */
.text-dark-blue { color: var(--primary-color) !important; }
.bg-dark-blue { background-color: var(--primary-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.ls-1 { letter-spacing: 1px; }
.z-index-1 { z-index: 1; }
.max-w-600 { max-width: 600px; }

html { scroll-behavior: smooth; }

/* =========================================
   2. BUTTONS
   ========================================= */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 36, 99, 0.3);
}

/* =========================================
   3. NAVIGATION BAR
   ========================================= */
.navbar {
    padding: 10px 0;
    transition: all 0.3s ease;
    background-color: white;
    min-height: var(--navbar-height);
}
.logo-img { height: 60px; width: auto; display: block; }
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 5px;
    position: relative;
    transition: color 0.3s ease;
    padding: 10px 5px !important;
}
.nav-link:hover { color: var(--primary-color) !important; }

/* Active State with Border */
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-link.active:hover::after { width: 100%; }

.separator {
    width: 1px;
    height: 20px;
    background-color: #e0e0e0;
    margin: 0 10px;
    display: block;
}

/* Dropdown */
.dropdown-menu {
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 8px 8px;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
}
.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--text-dark);
}
.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.lang-switcher .nav-link { padding: 0.2rem 0.5rem; font-size: 1.2rem; line-height: 1; }
.lang-flag { font-size: 1.2rem; cursor: pointer; transition: transform 0.2s; }
.lang-flag:hover { transform: scale(1.1); }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    background-color: var(--primary-color);
    min-height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 120px;
}
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.95) 0%, rgba(10, 36, 99, 0.85) 100%);
}
.text-accent { color: var(--accent-color); }

/* =========================================
   5. STATS CARD
   ========================================= */
.stats-card {
    margin-top: -80px;
    z-index: 10;
    border: none;
}
.stats-card .display-6 { font-size: 2rem; line-height: 1.2; }
.stats-card small { font-size: 0.75rem; }
.stats-card .icon-box i { font-size: 1.5rem; }

/* =========================================
   6. SECTIONS & LAYOUT
   ========================================= */
.section-padding { padding: 100px 0; }
.divider {
    height: 4px;
    width: 70px;
    background-color: var(--accent-color);
    margin-top: 15px;
    border-radius: 2px;
}

.image-stack { position: relative; padding-right: 30px; padding-bottom: 30px; }
.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    border-left: 5px solid var(--primary-color);
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   7. SERVICE CARDS
   ========================================= */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    border-color: transparent;
}

.bg-light-primary {
    background-color: rgba(10, 36, 99, 0.05);
    transition: background-color 0.3s ease;
    flex-shrink: 0; 
}
.service-card:hover .bg-light-primary {
    background-color: rgba(10, 36, 99, 0.1);
}

.icon-box-lg { width: 60px !important; height: 60px !important; }
.icon-box-sm { width: 50px !important; height: 50px !important; }

/* Read More Link Styling */
.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centers content horizontally */
    transition: gap 0.3s ease;
    margin-top: auto;
    width: 100%; /* Ensures it takes full width for centering */
}
.read-more:hover { 
    color: var(--secondary-color); 
    gap: 5px; 
}

/* =========================================
   8. CTA SECTION
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* =========================================
   9. CONTACT FORM
   ========================================= */
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(10, 36, 99, 0.15);
    border-color: var(--primary-color);
    background-color: #fff;
}
.ci-icon { transition: transform 0.3s ease; }
.contact-info-item:hover .ci-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer-bg { background-color: var(--primary-color); color: white; }
.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }

.social-icons a {
    color: white;
    margin-right: 15px;
    font-size: 1.1rem;
    transition: 0.3s;
    opacity: 0.8;
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.social-icons a:hover { 
    color: white; 
    background: var(--accent-color); 
    opacity: 1; 
    transform: translateY(-3px);
}

/* =========================================
   11. WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* =========================================
   12. ANIMATIONS
   ========================================= */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   13. RESPONSIVE ADJUSTMENTS (MOBILE FIXES)
   ========================================= */
@media (max-width: 991px) {
    .separator { display: none; }
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border: 1px solid #eee;
    }
    .nav-link.active::after { display: none; }
    .nav-link.active {
        background-color: rgba(10, 36, 99, 0.05);
        border-radius: 5px;
        color: var(--primary-color) !important;
        padding-left: 15px !important;
        border-left: 3px solid var(--primary-color);
    }
    .hero-title { font-size: 2.5rem; }
    
    /* Stats Card Mobile Fix */
    .stats-card { 
        margin-top: 30px; 
        position: relative !important; 
        transform: none !important; 
        width: 100% !important; 
        margin-bottom: 0 !important;
        padding: 20px 10px !important;
    }
    .stats-card .display-6 { font-size: 1.5rem; }
    
    /* HERO MOBILE FIX: Prevent overlap with navbar */
    .hero-section {
        padding-top: 100px !important; /* Increased top padding specifically for mobile */
        min-height: auto;
        padding-bottom: 80px;
        text-align: center;
    }
    
    body { padding-top: 70px; }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    .section-padding { padding: 60px 0; }
}