/* ==========================================================================
   ONLINE24 AVAILABILITY - Official Brand Theme & Custom Stylesheet
   Logo Color Scheme: Logo Blue (#2585C8), Deep Charcoal (#111827), Soft Sky (#F0F9FF)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-blue: #2585C8;
    --primary-blue-hover: #1D74B3;
    --primary-dark: #111827;
    --secondary-dark: #1F2937;
    --accent-cyan: #38BDF8;
    --accent-light: #F0F9FF;
    --accent-glow: rgba(37, 133, 200, 0.25);
    --text-heading: #111827;
    --text-body: #4B5563;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.08);
    --shadow-hover: 0 20px 40px rgba(37, 133, 200, 0.18);
}

/* ==========================================================================
   Premium Visual Polish & Performance Base
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: #F8FAFC;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-heading);
}

a {
    transition: all 0.2s ease;
}

*:focus-visible {
    outline: 3px solid rgba(37,133,200,0.3);
    outline-offset: 2px;
}

img, video {
    content-visibility: auto;
}

.img-fluid {
    will-change: auto;
    image-rendering: auto;
    max-width: 100%;
    height: auto;
}

video {
    background: #0B132B;
}

.card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    contain: layout style;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    will-change: transform;
}

.card-img-top {
    background: #f1f5f9;
}

.btn:active, button:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Global Bootstrap Color Overrides (Matching ONLINE24 Logo Theme)
   ========================================================================== */
.text-primary { color: #2585C8 !important; }
.bg-primary { background-color: #2585C8 !important; }
.border-primary { border-color: #2585C8 !important; }

.btn-primary {
    background-color: #2585C8 !important;
    border-color: #2585C8 !important;
    color: #FFFFFF !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #1D74B3 !important;
    border-color: #1D74B3 !important;
    box-shadow: 0 6px 20px rgba(37, 133, 200, 0.4) !important;
}

.btn-outline-primary {
    color: #2585C8 !important;
    border-color: #2585C8 !important;
}

.btn-outline-primary:hover {
    background-color: #2585C8 !important;
    border-color: #2585C8 !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   Topbar & Brand Header
   ========================================================================== */
.topbar-24 {
    background: #0B132B;
    color: #FFFFFF;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-24 a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.topbar-24 a:hover {
    color: var(--accent-cyan);
}

.status-pill-24 {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 3px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    background-color: #34D399;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Prominent White Topbar Social Buttons */
.btn-topbar-social {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-topbar-social.whatsapp-btn:hover {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #FFFFFF !important;
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.6);
}

.btn-topbar-social.facebook-btn:hover {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
    color: #FFFFFF !important;
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(24, 119, 242, 0.6);
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid rgba(37, 133, 200, 0.15);
}

.navbar-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand-logo img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand-logo:hover img {
    transform: scale(1.02);
}

.nav-link-custom {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-dark) !important;
    padding: 10px 16px !important;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--primary-blue) !important;
    background: var(--accent-light);
}

.btn-emergency-24 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #155E96 100%);
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(37, 133, 200, 0.35);
    border: none;
    transition: all 0.3s ease;
}

.btn-emergency-24:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 133, 200, 0.5);
    background: linear-gradient(135deg, #1D74B3 0%, #0E4470 100%);
}

/* ==========================================================================
   Hero Slider Carousel
   ========================================================================== */
.hero-slider-section {
    position: relative;
    background: var(--primary-dark);
}

.hero-carousel-item {
    min-height: 540px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 60%, rgba(17, 24, 39, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 133, 200, 0.25);
    border: 1px solid rgba(37, 133, 200, 0.45);
    color: #38BDF8;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.1rem;
    line-height: 1.15;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary-blue);
    background: linear-gradient(135deg, #38BDF8 0%, #2585C8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #CBD5E1;
    margin-bottom: 30px;
    max-width: 620px;
}

/* ==========================================================================
   Partners Infinite Left Slider (Uniform Image Logos)
   ========================================================================== */
.partners-section {
    background: #FFFFFF;
    padding: 30px 0;
    border-bottom: 1px solid #E2E8F0;
    overflow: hidden;
}

.partners-slider-wrapper {
    display: flex;
    width: 200%;
    animation: slideLeft 30s linear infinite;
}

.partners-slider-wrapper:hover {
    animation-play-state: paused;
}

.partner-card {
    flex: 0 0 175px;
    height: 115px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    margin: 0 10px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.partner-card img.partner-logo-img {
    max-height: 50px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
    transition: all 0.3s ease;
}

.partner-brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-top: auto;
}

.partner-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(37, 133, 200, 0.18);
    background: #F0F9FF;
}

.partner-card:hover .partner-brand-name {
    color: var(--primary-blue);
}

@keyframes slideLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Service Cards & Badges
   ========================================================================== */
.section-badge {
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.88rem;
    margin-bottom: 10px;
    display: block;
}

.service-card-24 {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-24:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 133, 200, 0.5);
    box-shadow: var(--shadow-hover);
}

.service-card-24.primary-focus {
    border: 2px solid var(--primary-blue);
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%);
}

.service-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(37, 133, 200, 0.18) 100%);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.service-card-24.primary-focus .service-icon-box {
    background: var(--primary-blue);
    color: #FFFFFF;
}

.badge-priority {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}

/* ==========================================================================
   Back to Top & WhatsApp Floating Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 8px 20px rgba(37, 133, 200, 0.35);
}

.back-to-top:hover {
    background: var(--primary-blue-hover) !important;
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-24 {
    background: #0B132B;
    color: #94A3B8;
    padding-top: 65px;
    border-top: 3px solid var(--primary-blue);
}

.footer-24 h5 {
    color: #FFFFFF;
    margin-bottom: 24px;
    font-size: 1.15rem;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    display: block;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 6px;
}

.footer-bottom {
    background: #070D1E;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* ==========================================================================
   Mobile Responsiveness & Responsive Image Scaling
   ========================================================================== */

/* Tablets & Desktop Laptops */
@media (max-width: 991px) {
    .navbar-custom {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .nav-link-custom {
        font-size: 1rem;
        padding: 12px 16px !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-carousel-item {
        min-height: 480px;
    }
}

/* Mobile Landscape & Tablets */
@media (max-width: 768px) {
    .navbar-brand-logo img {
        max-height: 42px;
    }

    .hero-carousel-item {
        min-height: 420px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 1.85rem !important;
        line-height: 1.25;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-badge-tag {
        font-size: 0.78rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }
    
    .hero-content .btn, .btn-outline-light {
        width: 100%;
        margin-bottom: 10px;
        display: block;
    }

    .partner-card {
        flex: 0 0 130px;
        height: 100px;
        padding: 10px 12px;
        margin: 0 8px;
    }

    .partner-card img.partner-logo-img {
        max-height: 40px;
        max-width: 105px;
    }
    
    .partner-brand-name {
        font-size: 0.75rem;
    }

    .footer-24 {
        padding-top: 45px;
    }

    .btn-emergency-24 {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
    }

    .display-5 { font-size: 2.2rem; }
    .display-6 { font-size: 1.8rem; }
}

/* Mobile Portrait - MOST CRITICAL */
@media (max-width: 576px) {
    .navbar-brand-logo img {
        max-height: 42px;
    }
    
    .nav-link-custom {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .hero-carousel-item {
        min-height: 380px;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .partner-card {
        flex: 0 0 120px;
        height: 90px;
    }
    
    .partner-card img.partner-logo-img {
        max-height: 35px;
    }
    
    .partner-brand-name {
        font-size: 0.7rem;
    }
    
    .service-card-24 {
        padding: 24px 20px;
    }
    
    .service-icon-box {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    /* Pages Specific */
    .about-team-img-small {
        width: 80px !important;
        height: 80px !important;
    }
    
    .about-team-img-large {
        width: 100px !important;
        height: 100px !important;
    }
    
    .services-hero-img {
        max-height: 260px;
        object-fit: cover;
    }
    
    .services-gallery-img {
        max-height: 90px;
        object-fit: cover;
    }
    
    .projects-video-container {
        height: 200px;
    }
    
    .projects-filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-bottom: 8px;
    }
    
    .contact-map-iframe {
        height: 300px !important;
    }
    
    .contact-info-card {
        width: 100%;
        margin-bottom: 16px;
    }
    
    /* Footer */
    .footer-24 {
        padding-top: 30px;
        text-align: center;
    }
    
    .footer-links a {
        display: inline-block;
        padding: 8px 0;
    }
    
    .footer-links a:hover {
        padding-left: 0;
        transform: translateY(-2px);
    }
    
    /* Forms & Globals */
    input.form-control, select.form-select, button.btn {
        min-height: 48px;
    }
    
    .card-img-top {
        height: 180px;
        object-fit: cover;
    }
    
    /* Keep Box Shadow lighter on mobile for performance */
    .service-card-24, .card {
        box-shadow: 0 4px 12px rgba(17, 24, 39, 0.05);
    }
}

/* Small Phones */
@media (max-width: 400px) {
    .hero-carousel-item {
        min-height: 320px;
    }
    
    .hero-title {
        font-size: 1.4rem !important;
    }
    
    .service-card-24 {
        padding: 20px 16px;
    }
}
