:root {
    --zl-deep: #0D1B2A;
    --zl-electric: #1E90FF;
    --zl-accent: #FFA500;
    --zl-deep-mid: #0a2540;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #333;
}

/* Page Loader */
.zl-page-loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0D1B2A 0%, #0a2540 60%, #0D1B2A 100%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.zl-page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.zl-loader-inner {
    color: #fff;
}
.zl-loader-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 0.65rem;
    background: #fff;
    padding: 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.zl-loader-logo-fallback {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 0.65rem;
    background: var(--zl-electric);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(30, 144, 255, 0.3);
}
.zl-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--zl-accent);
    border-right-color: var(--zl-electric);
    border-radius: 50%;
    animation: zl-spin 0.8s linear infinite;
}
.zl-loader-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.03em;
}
@keyframes zl-spin {
    to { transform: rotate(360deg); }
}

h1, h2, h3, h4, h5, .font-display {
    font-family: 'Poppins', system-ui, sans-serif;
}

.bg-zl-deep { background-color: var(--zl-deep) !important; }
.bg-zl-electric { background-color: var(--zl-electric) !important; }
.bg-zl-accent { background-color: var(--zl-accent) !important; }
.text-zl-deep { color: var(--zl-deep) !important; }
.text-zl-electric { color: var(--zl-electric) !important; }
.text-zl-accent { color: var(--zl-accent) !important; }
.border-zl-electric { border-color: var(--zl-electric) !important; }

.btn-zl-primary {
    background-color: var(--zl-electric);
    border-color: var(--zl-electric);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.btn-zl-primary:hover {
    background-color: #1873cc;
    border-color: #1873cc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.35);
}

.btn-zl-outline-light {
    border: 2px solid rgba(255,255,255,0.35);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
}
.btn-zl-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--zl-electric);
    color: #fff;
}

.btn-zl-white {
    background: #fff;
    color: var(--zl-deep);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
}
.btn-zl-white:hover {
    background: var(--zl-accent);
    color: #fff;
}

/* Navbar */
#mainNav {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
#mainNav.nav-transparent {
    background: transparent !important;
    box-shadow: none !important;
}
#mainNav.nav-solid {
    background: rgba(13, 27, 42, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
#mainNav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem !important;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--zl-accent) !important;
}
#mainNav .navbar-brand .brand-sub {
    color: var(--zl-electric);
    font-size: 0.65rem;
    font-weight: 500;
}
.logo-box {
    width: 42px;
    height: 42px;
    background: var(--zl-electric);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}
.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #fff;
    padding: 2px;
}
.footer-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #fff;
    padding: 2px;
}

.lang-pill {
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 3px;
}
.lang-pill a {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.lang-pill a.active {
    background: var(--zl-electric);
    color: #fff;
}

/* Hero */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--zl-deep) 0%, var(--zl-deep-mid) 50%, var(--zl-deep) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}
.hero-banner-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(30,144,255,0.15) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.5;
}
.hero-glow-1 {
    position: absolute;
    top: 20%;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(30,144,255,0.15);
    border-radius: 50%;
    filter: blur(80px);
}
.hero-glow-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: rgba(255,165,0,0.08);
    border-radius: 50%;
    filter: blur(60px);
}
.hero-highlight {
    background: linear-gradient(90deg, var(--zl-electric), var(--zl-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
}
.hero-banner-card-image {
    max-height: 180px;
    width: 100%;
    object-fit: cover;
}
.hero-mini-card {
    background: rgba(255,255,255,0.05);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: background 0.3s;
}
.hero-mini-card:hover { background: rgba(255,255,255,0.1); }

/* Page headers */
.page-header {
    background: var(--zl-deep);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(30,144,255,0.2) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Cards */
.service-card {
    border: 1px solid #eee;
    border-radius: 1rem;
    transition: all 0.3s ease;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(30,144,255,0.15);
    border-color: var(--zl-electric);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(30,144,255,0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all 0.3s;
}
.service-card:hover .service-icon {
    background: var(--zl-electric);
    transform: scale(1.05);
}

.stat-section {
    background: var(--zl-deep);
    position: relative;
}
.stat-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(30,144,255,0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

.cta-banner {
    background: linear-gradient(135deg, var(--zl-deep), var(--zl-electric), var(--zl-accent));
    border-radius: 1.5rem;
}

.testimonial-card {
    border: 1px solid #eee;
    border-radius: 1rem;
    position: relative;
    height: 100%;
}
.testimonial-quote {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3rem;
    color: rgba(30,144,255,0.1);
    line-height: 1;
}

.portfolio-card {
    border: 1px solid #eee;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}
.portfolio-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.portfolio-card img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}
.portfolio-card:hover img { transform: scale(1.05); }

.filter-btn.active {
    background: var(--zl-electric) !important;
    border-color: var(--zl-electric) !important;
    color: #fff !important;
}

.team-card img {
    height: 280px;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

.years-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1rem;
    background: var(--zl-electric);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(30,144,255,0.3);
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform 0.3s;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    background: #20BD5A;
}

footer a { text-decoration: none; }
footer a:hover { color: var(--zl-electric) !important; }
.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.3s;
}
.social-icon:hover {
    background: var(--zl-electric);
    color: #fff;
}

.section-label {
    color: var(--zl-electric);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 991.98px) {
    #mainNav .navbar-collapse {
        background: rgba(13, 27, 42, 0.98);
        margin-top: 0.75rem;
        border-radius: 0.5rem;
        padding: 0.75rem;
    }

    #mainNav .navbar-nav {
        margin-bottom: 0.75rem !important;
    }

    #mainNav .navbar-brand span .d-block {
        font-size: 0.95rem;
    }

    .hero-section {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 70px;
    }

    .years-badge {
        left: 0.5rem;
        bottom: 0.5rem;
        padding: 0.85rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .brand-logo,
    .footer-brand-logo {
        width: 36px;
        height: 36px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .zl-loader-logo,
    .zl-loader-logo-fallback {
        width: 56px;
        height: 56px;
    }
}
