/**
 * @author @hopsyder
 * @organization Nexus Partners
 * @description Feuille de style principale — Sam Le Leader DS
 * @created 2026-02-25
 * @updated 2026-03-15
 * 🌐 nexuspartners.xyz | 📧 daoudaabassichristian@gmail.com
 */
/* ─────────────────────────────────────────────── */

/*** Variables Palette Brand — Bleu Principal / Noir Secondaire ***/
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-pale: rgba(37, 99, 235, 0.1);

    --secondary: #111827;
    --secondary-soft: #1f2937;
    --secondary-muted: #374151;

    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-dark: #111827;
    --bs-dark-rgb: 17, 24, 39;

    --accent-purple: #a855f7;
    --accent-green: #10b981;
    --accent-gold: #f59e0b;

    --bg-dark: #111827;
    --bg-secondary: #1f2937;

    --font-main: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: .4s ease;
}

/*** Base ***/
body {
    font-family: var(--font-body);
    color: #374151;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
}

h4.text-white.lh-base.mb-0 {
    font-size: 14px;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Buttons ***/
.btn {
    transition: var(--transition);
    font-family: var(--font-main);
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 15px 0;
    font-family: var(--font-main);
}

.brand-logo {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    margin: 0;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    color: var(--bs-dark);
    font-weight: 500;
    transition: var(--transition);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

/*** Hero Header ***/
.hero-header {
    margin-top: -60px;
    padding-top: 90px;
    background: url(../img/hero-bg.jpg) top center no-repeat;
    background-size: cover;
}

.hero-header h1.display-1 {
    text-align: left;
    font-weight: 500;
    font-size: 35px;
}

.hero-header h5.d-inline-block {
    border-width: 1px;
    border-color: transparent;
    border-image: none;
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.mini-service-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.mini-service-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/*** Project ***/
.project-item img { transition: .5s; }
.project-item:hover img { transform: scale(1.1); }

.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .0) 40%, rgba(15, 23, 42, 0.85));
    z-index: 1;
    transition: var(--transition);
}

/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover { background: var(--bs-light) !important; }

/*** Forms ***/
.form-control, .form-select {
    color: #111827 !important;
    background-color: #fff !important;
    border-color: #d1d5db;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/*** Newsletter ***/
.newsletter {
    background: url(../img/hero-bg.jpg) bottom right no-repeat;
    background-size: cover;
}

/*** Footer ***/
.footer { background-color: var(--bg-dark); }
.footer .btn.btn-link {
    display: block;
    color: rgba(255, 255, 255, .5);
    text-align: left;
    transition: .3s;
}
.footer .btn.btn-link:hover { color: var(--bs-white); letter-spacing: 1px; }

/*** WhatsApp Float ***/
.whatsapp-float {
    position: fixed;
    bottom: 110px;
    right: 45px;
    width: 48px;
    height: 48px;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/*** Responsive Tweaks ***/
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 15px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .navbar .navbar-nav .btn-primary {
        margin: 10px 15px !important;
        display: inline-block;
        width: fit-content;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        right: 20px;
    }

    .back-to-top { right: 20px; bottom: 20px; }

    .brand-logo { font-size: 1.1rem; }

    .hero-header {
        margin-top: -60px;
        padding-top: 100px;
        text-align: center;
    }
    
    .header-carousel { padding: 20px 0; }
    .header-carousel::before { display: none; }

    .container-fluid.py-4 .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-lg-square { margin: 0 auto 15px auto !important; }
}

@media (max-width: 576px) {
    .display-1 { font-size: 2.5rem; }
    .brand-logo { display: none; }
    .navbar-brand img { max-height: 40px !important; }
}

/*** Ad Popup ***/
.ad-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ad-popup-overlay.show { display: flex; opacity: 1; }

.ad-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    background: white;
    padding: 10px;
    border-radius: 12px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ad-popup-overlay.show .ad-popup-content { transform: scale(1); }

.ad-popup-image {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    object-fit: contain;
}

.ad-popup-close {
    position: absolute;
    top: -15px; right: -15px;
    width: 35px; height: 35px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid white;
}

/* Responsive Table Fix for Mobile */
@media (max-width: 768px) {
    .table-responsive table {
        min-width: 600px; /* Force scrollable horizontally if too narrow */
    }
    
    .table thead th {
        font-size: 0.8rem !important;
    }
    
    .table tbody td {
        font-size: 0.75rem !important;
    }
}
