/* ==========================================================================
   1. CUSTOM VARIABLES & RESET
   ========================================================================== */
:root {
    /* Bootstrap Overrides */
    --bs-primary: #0ea5e9;
    --bs-primary-rgb: 14, 165, 233;
    --bs-secondary: #0f172a;
    --bs-info: #38bdf8;
    --bs-body-font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --bs-body-bg: #ffffff;
    --bs-body-color: #31475A;
    --bs-link-color: #0B3A6F;

    /* Custom Brand Colors */
    --ink: #0B2239;
    --deep: #0B3A6F;
    --signal: #00A6C8;
    --amber: #FF7A1A;
    --mist: #F2F6F9;
    --line: #D9E3EA;
    --navy-dark: #0f172a;
    --navy-card: #1e293b;
    --electric-blue: #2563eb;
    --electric-blue-hover: #1d4ed8;
    --accent-cyan: #06b6d4;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--bs-body-font-family);
    color: var(--text-dark);
    background-color: var(--bs-body-bg);
    overflow-x: hidden;
}

a {
    color: var(--bs-link-color);
    text-decoration: none;
}

/* ==========================================================================
   2. UTILITIES & TYPOGRAPHY
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-tag,
.section-label {
    color: var(--electric-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-title span {
    color: var(--bs-primary);
}

.section-description {
    max-width: 650px;
    color: var(--text-muted);
}

.text-primary { color: var(--bs-primary) !important; }
.text-secondary-custom { color: var(--bs-secondary) !important; }
.bg-primary { background-color: var(--bs-primary) !important; }
.bg-secondary-custom { background-color: var(--bs-secondary) !important; }

.btn-primary { 
    background-color: var(--bs-primary); 
    border-color: var(--bs-primary); 
    color: #ffffff;
}

.btn-primary:hover { 
    background-color: #0284c7; 
    border-color: #0284c7; 
    color: #ffffff;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.icon-box {
    width: 56px;
    height: 56px;
    background-color: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1);
}

.gradient-text {
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   3. TOPBAR & NAVBAR
   ========================================================================== */
.topbar {
    background-color: var(--navy-dark);
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem 0;
}

.navbar-scrolled {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0.25rem;
    transition: color 0.25s ease;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--accent-cyan) !important;
}

.brand-logo-icon {
    background: linear-gradient(135deg, var(--electric-blue), var(--accent-cyan));
    color: white;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* ==========================================================================
   4. PAGE HEADER & HERO SLIDER
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #1c2541 60%, #0d1b2a 100%);
    padding: 200px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 202, 240, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

.hero-pattern {
    background-image: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8)), 
                      url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-slide {
    min-height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.carousel-indicators { z-index: 5; }
.carousel-control-prev, .carousel-control-next { width: 8%; }

/* ==========================================================================
   5. ABOUT & VISION MISSION
   ========================================================================== */
.about-image {
    min-height: 430px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13,110,253,.85), rgba(7,18,37,.95));
}

.about-image::before,
.about-image::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
}

.about-image::before { width: 350px; height: 350px; right: -120px; top: -100px; }
.about-image::after { width: 250px; height: 250px; left: -100px; bottom: -100px; }

.about-card {
    position: absolute;
    left: 40px;
    bottom: 40px;
    background: rgba(255,255,255,.95);
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.about-card i { font-size: 40px; color: var(--bs-primary); }
.about-card h5 { margin-top: 10px; margin-bottom: 5px; }

.vm-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    height: 100%;
    transition: transform 0.3s ease;
}

.vm-card:hover { transform: translateY(-5px); }

.value-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    border-color: var(--electric-blue);
}

/* ==========================================================================
   6. SERVICES & FEATURES
   ========================================================================== */
.services { background: var(--mist); }

.service-item { 
    display: flex; 
    gap: 1rem; 
    padding: 1.25rem 0; 
    border-top: 1px solid var(--line); 
}

.service-item i { 
    font-size: 1.6rem; 
    color: var(--signal); 
    flex: none; 
    width: 2rem; 
}

.service-card {
    height: 100%;
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
}

.service-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(13,110,253,.1);
    color: var(--bs-primary);
    font-size: 28px;
    margin-bottom: 25px;
}

.service-card h4 { font-weight: 700; }
.service-card p { color: var(--text-muted); line-height: 1.7; }
.service-card a { text-decoration: none; font-weight: 600; color: var(--bs-primary); }

.feature-item { display: flex; gap: 18px; margin-top: 25px; }
.feature-icon {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    background: var(--bs-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h5 { margin-bottom: 5px; }
.feature-item p { color: var(--text-muted); margin: 0; }

/* ==========================================================================
   7. STATS & TIMELINE
   ========================================================================== */
.stats-box { padding: 20px; }

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.3);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--electric-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 10px;
}

.stat-card h3 { font-weight: 700; margin-top: 15px; margin-bottom: 5px; }
.stat-card p { color: var(--text-muted); margin: 0; }

.timeline-container { position: relative; padding: 2rem 0; }
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(180deg, var(--electric-blue), var(--accent-cyan));
    transform: translateX(-50%);
}

.timeline-item { margin-bottom: 3rem; position: relative; }
.timeline-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy-dark);
    border: 4px solid var(--accent-cyan);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-weight: 700;
    font-size: 0.85rem;
}

.timeline-content {
    width: 45%;
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
}

.timeline-item:nth-child(even) .timeline-content { margin-left: auto; }

/* ==========================================================================
   8. PORTFOLIO, TEAM & CERTIFICATIONS
   ========================================================================== */
.portfolio-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    transition: transform 0.3s ease;
}

.portfolio-card:hover { transform: translateY(-6px); }
.portfolio-image {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
}

.portfolio-1 { background: linear-gradient(135deg, #0d6efd, #073b7c); }
.portfolio-2 { background: linear-gradient(135deg, #6f42c1, #312060); }
.portfolio-3 { background: linear-gradient(135deg, #198754, #075b39); }

.team-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 19, 43, 0.12);
}

.team-img-wrapper { position: relative; overflow: hidden; height: 280px; }
.team-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team-card:hover .team-img { transform: scale(1.08); }

.team-socials {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    gap: 10px;
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 30px;
}

.team-card:hover .team-socials { opacity: 1; transform: translateX(-50%) translateY(0); }
.team-socials a { color: white; font-size: 1.1rem; transition: color 0.2s ease; }
.team-socials a:hover { color: var(--accent-cyan); }

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0d6efd, #08264d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.team-photo i { font-size: 90px; }
.team-card h5 { font-weight: 700; margin-bottom: 5px; }
.team-card p { color: var(--text-muted); }

.cert-card {
    background: var(--navy-dark);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.cert-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(13, 202, 240, 0.2);
}

.cert-icon { font-size: 2.5rem; color: var(--accent-cyan); margin-bottom: 0.75rem; }

.culture-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.culture-img:hover { transform: scale(1.03); }

/* Pricing Card & Logo Slider */
.pricing-popular {
    background: linear-gradient(to bottom, #1e3a8a, #0f172a);
    border: 2px solid var(--bs-primary);
}

#clientCardSlider .carousel-item { transition: transform 1.2s ease-in-out; }
.logo-wrapper { height: 120px; width: 100%; display: flex; justify-content: center; align-items: center; }
.logo-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ==========================================================================
   9. CTA & CONTACT
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #1c2541 100%);
    padding: 4rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.contact-item { display: flex; gap: 18px; margin-bottom: 30px; }
.contact-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 12px;
    background: rgba(13,110,253,.1);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.contact-item h6 { margin-bottom: 5px; }
.contact-item p { color: var(--text-muted); margin: 0; }
.contact-form { background: #fff; }
.form-control { padding: 13px 16px; border-radius: 10px; }

/* ==========================================================================
   10. FOOTER & FLOATING BUTTONS
   ========================================================================== */
.footer { background: #071225; padding: 70px 0 25px; }
.footer ul { list-style: none; padding: 0; margin: 20px 0 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer a:hover { color: #fff; }

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-float {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.btn-float:hover { transform: scale(1.1); color: white; }
.btn-wa { background-color: #25d366; }
.btn-top { background-color: var(--navy-dark); opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.btn-top.show { opacity: 1; visibility: visible; }

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 991.98px) {
    .navbar .nav-link { margin-left: 0; padding: 10px 0; }
    .section-padding { padding: 70px 0; }
    .section-title { font-size: 2.1rem; }
    .hero-slide h1 { font-size: 45px; }
}

@media (max-width: 767.98px) {
    .timeline-container::before { left: 20px; }
    .timeline-badge { left: 20px; }
    .timeline-content { width: calc(100% - 60px) !important; margin-left: 60px !important; }
    .page-header { padding: 80px 0 50px 0; }
}

@media (max-width: 576px) {
    .hero-slide h1 { font-size: 36px; }
    .hero-slide .lead { font-size: 16px; }
    .about-image { min-height: 330px; }
    .section-title { font-size: 1.8rem; }
}