* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #003a8c;
    --accent: #e63946;
    --text: #222;
    --light: #f5f7fb;
    --border: #e0e6ef;
    --white: #fff;
}

html, body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Global Justification for Descriptions/Content */
.about-text, 
.description-text, 
.solution-text-container, 
.mvv-text-content, 
.why-us-text .description, 
.brand-description-content,
.about-text-content div,
.premium-solutions-header p,
.premium-brands-header p,
.cta-text p,
.product-hero p.lead {
    text-align: justify;
}

/* TOP BAR */
.topbar {
    background: #002b66;
    color: rgba(255, 255, 0, 0.9);
    /* Reverted to match original or user preference if seen before, actually keeping white-ish */
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding: 8px 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1001;
    will-change: transform, opacity;
}

.topbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.topbar-inner {
    max-width: 1300px;
    margin: auto;
    padding: 0 30px;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    align-items: center;
}

.topbar a {
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.topbar a:hover {
    color: #fff;
}

.topbar i {
    color: var(--accent);
}

/* NAVBAR */
nav#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Removed transition: all to prevent flickering with sticky engine */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav#navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    max-width: 1300px;
    margin: auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 95px;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
    position: relative;
}

nav#navbar.scrolled .nav-inner {
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 58, 140, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-icon span {
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -1px;
}

.logo-text {
    font-weight: 800;
    font-size: 22px;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.logo-text small {
    font-weight: 500;
    font-size: 13px;
    color: #64748b;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    display: block;
    padding: 0 20px;
    height: 95px;
    line-height: 95px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

nav#navbar.scrolled .nav-links>li>a {
    height: 75px;
    line-height: 75px;
}

.nav-links>li>a.has-dropdown {
    padding-right: 35px;
}

.nav-links>li>a.has-dropdown::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    background: none;
    /* Reset background from primary underline */
    border-radius: 0;
}

.nav-links>li:hover>a.has-dropdown::after {
    transform: translateY(-20%) rotate(-135deg);
    opacity: 1;
}

/* Base underline effect from previous implementation */
.nav-links>li>a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.nav-links>li:hover>a::before {
    transform: scaleX(1);
}

/* Remove old indicator styles */
.nav-links>li>a i {
    display: none;
}

/* Dropdown */
.dropdown {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #fff;
    min-width: 240px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    padding: 12px;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links>li:hover .dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mega Dropdown - Wider and multi-column */
.nav-links>li.mega-dropdown {
    position: static;
}

.nav-links>li.mega-dropdown .dropdown {
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 95vw;
    max-width: 1200px;
    padding: 30px;
    border-radius: 0;
}

.nav-links>li.mega-dropdown:hover .dropdown {
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
}

.dropdown a:hover {
    background: #f8fafc;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dropdown a span {
    font-size: 18px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 6px;
    transition: all 0.3s;
}

.dropdown a:hover span {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.dropdown-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2px 15px;
    min-width: 900px;
}

.dropdown-grid.brands-grid-nav,
.dropdown-grid.company-grid-nav {
    grid-template-columns: repeat(3, 1fr) !important;
}

.dropdown-header {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.nav-btn {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 100px !important;
    height: auto !important;
    line-height: normal !important;
    margin-left: 15px;
    font-size: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 58, 140, 0.25);
}

.nav-btn:hover {
    background: #002a6c !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 58, 140, 0.35);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: .3s;
}

/* HERO SLIDER */
.slider {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    display: flex;
    align-items: center;
}

.slider .slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 60, .6);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
    color: #fff;
}

.slide-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.slide-content h2 {
    font-size: 36px;
    font-weight: 800;
    max-width: 600px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.slide-content p {
    font-size: 15px;
    max-width: 520px;
    color: #c8d8f0;
    margin-bottom: 24px;
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.btn-primary::before {
    background: #fff;
}

.btn-primary:hover {
    color: var(--primary);
    border-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 58, 140, 0.2);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline::before {
    background: #fff;
}

/* On hover, white background slides in, text becomes primary */
.btn-outline:hover {
    color: var(--primary);
}

.btn-outline:hover::before {
    width: 100%;
}

.slider-nav {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: .3s;
}

.dot.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, .2);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
}

.slider-arrow:hover {
    background: var(--primary);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* SECTION STYLES */
section {
    padding: 70px 0;
}

.section-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 15px;
    max-width: 600px;
    margin: auto;
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
}

/* VIDEO SECTION */
.video-section {
    background: #f0f5ff;
    padding: 60px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}

.video-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: .4s;
}

.video-card:hover img {
    transform: scale(1.04);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 80, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    transition: .3s;
}

.video-card:hover .play-btn {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.video-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
    color: #fff;
    padding: 32px 16px 14px;
    font-size: 13px;
    font-weight: 500;
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 14px;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .15);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    padding: 18px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 58, 140, .35);
}

.about-badge strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
}

.about-badge span {
    font-size: 12px;
    opacity: .85;
}

/* SOLUTIONS */
.solutions-section {
    background: #f8faff;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.solution-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: .3s;
    position: relative;
}

.solution-card:hover {
    box-shadow: 0 8px 30px rgba(0, 58, 140, .15);
    transform: translateY(-4px);
}

.solution-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.solution-info {
    padding: 16px;
}

.solution-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.solution-info a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    color: var(--accent);
    text-transform: uppercase;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
}

.solution-info a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* BRANDS */
.brands-section {
    padding: 60px 0;
    background: #fff;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.brand-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: .3s;
}

.brand-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 58, 140, .1);
}

.brand-card img {
    max-height: 50px;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(60%);
    transition: .3s;
}

.brand-card:hover img {
    filter: none;
}

/* PARTNERS */
.partners-section {
    background: #f5f7fb;
    padding: 60px 0;
}

.marquee-wrap {
    overflow: hidden;
    position: relative;
}

.marquee-wrap::before,
.marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
}

.marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, #f5f7fb, transparent);
}

.marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, #f5f7fb, transparent);
}

.marquee-track {
    display: flex;
    gap: 32px;
    animation: marquee 28s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.partner-logo {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 70px;
}

.partner-logo img {
    max-height: 38px;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(70%);
    transition: .3s;
}

.partner-logo:hover img {
    filter: none;
}

/* CLIENTS */
.clients-section {
    padding: 70px 0;
    background: #fff;
}

.client-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    justify-content: center;
}

.tab-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    transition: .2s;
    font-family: 'Poppins', sans-serif;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.client-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: .3s;
}

.client-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    border-color: var(--primary);
}

.client-card img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.client-card p {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* STATS */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, #001f5c 100%);
    padding: 60px 0;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-card {
    padding: 24px;
}

.stat-card .num {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
}

.stat-card .plus {
    font-size: 32px;
    color: var(--accent);
}

.stat-card p {
    font-size: 14px;
    opacity: .8;
    margin-top: 4px;
}

/* CTA */
.cta-section {
    background: #e8f0fd;
    padding: 56px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
}

.cta-text p {
    color: #555;
    margin-top: 6px;
}

.cta-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* FOOTER */
/* PREMIUM FOOTER */
.vanguard-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.vanguard-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4338ca, #6366f1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.footer-logo-text span {
    color: #6366f1;
    margin-left: 2px;
}

.footer-about p {
    font-size: 15px;
    line-height: 1.7;
    margin: 20px 0 30px;
    color: #cbd5e1;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: #4338ca;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(67, 56, 202, 0.3);
}

.footer-certs {
    display: flex;
    gap: 15px;
}

.cert-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    border-left: 3px solid #6366f1;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 3px;
    background: #6366f1;
    border-radius: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a:hover i {
    transform: translateX(5px);
    color: #6366f1;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-box {
    display: flex;
    gap: 15px;
}

.contact-box .icon-wrap {
    width: 45px;
    height: 45px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-box .text-wrap h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-box .text-wrap p,
.contact-box .text-wrap a {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    margin: 0;
    line-height: 1.5;
}

.contact-box .text-wrap a:hover {
    color: #fff;
}

.footer-bottom-bar {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-bar p {
    font-size: 14px;
    color: #64748b;
}

.footer-bottom-bar p span {
    color: #fff;
    font-weight: 600;
}

.footer-legal {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-legal {
        justify-content: center;
        margin-top: 15px;
    }
}

/* MOBILE */
@media(max-width:900px) {
    .topbar {
        display: none !important;
    }

    .logo-text {
        white-space: nowrap;
        font-size: 18px; /* Slightly reduce font size to fit in one line */
    }

    .about-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slider {
        height: 380px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 2000;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 80px 0 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links>li>a {
        height: auto;
        line-height: normal;
        padding: 16px 25px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 16px;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: #f8faff;
        display: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 10px 0;
        min-width: 100%;
        border-radius: 0;
    }

    .dropdown-active .dropdown {
        display: block !important;
    }

    .hamburger {
        display: flex;
        z-index: 2100;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
        min-width: 100%;
    }

    .mega-dropdown .dropdown {
        width: 100% !important;
        max-width: none !important;
        padding: 10px 15px !important;
        left: 0 !important;
        transform: none !important;
    }

    .dropdown-grid.brands-grid-nav {
        grid-template-columns: 1fr !important;
    }

    .dropdown-header {
        font-size: 13px;
        padding: 5px 15px;
        margin-bottom: 5px;
    }

    .nav-btn {
        margin: 20px 25px !important;
        display: inline-block !important;
        text-align: center;
    }
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    backdrop-filter: blur(4px);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.nav-open {
    overflow: hidden;
}

@media(max-width:540px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .slider {
        height: 320px;
    }

    .partners-grid {
        flex-wrap: wrap;
        animation: none;
    }

    .partner-card {
        width: calc(50% - 10px);
    }
}

/* PARTNERS GRID */
.partners-grid {
    display: flex;
    gap: 20px;
    margin-top: 32px;
    overflow: hidden;
}

.partner-card {
    background: #fff;
    border: 1px solid #e0e6ef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: .3s;
    flex-shrink: 0;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.partner-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.partner-card img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.partner-card span {
    color: #444;
}

/* SLIDING ANIMATION FOR PARTNERS */
@keyframes slidePartners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.partners-grid {
    position: relative;
}

.partners-grid::before,
.partners-grid::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.partners-grid::before {
    left: 0;
    background: linear-gradient(to right, #fdfdfc, transparent);
}

.partners-grid::after {
    right: 0;
    background: linear-gradient(to left, #fdfdfc, transparent);
}

.partners-grid>div {
    animation: slidePartners 20s linear infinite;
}

/* GLOBAL SUBPAGE RESPONSIVE FIXES */
@media (max-width: 991px) {
    .hero-section {
        padding: 80px 0 60px !important;
    }
    .hero-title {
        font-size: 3.5rem !important;
    }
    .contact-cards-section, .form-map-section, .stats-section, .vanguard-stats-section {
        padding: 60px 0 !important;
    }
}

@media (max-width: 768px) {
    /* Hero Banners */
    .hero-section {
        padding: 60px 0 40px !important;
    }
    .hero-title {
        font-size: 2.2rem !important;
        margin-bottom: 1rem !important;
    }
    .hero-shape {
        display: none !important; /* Too distracting on tiny screens */
    }
    .section-tag {
        font-size: 0.75rem !important;
        padding: 5px 15px !important;
        margin-bottom: 1rem !important;
    }
    .lead {
        font-size: 1rem !important;
    }

    /* Paddings */
    .contact-cards-section, .form-map-section, .stats-section, .vanguard-stats-section {
        padding: 40px 0 !important;
    }
    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Grids & Cards */
    .about-image-wrapper img, .image-wrapper img {
        height: auto !important;
        min-height: 250px !important;
        max-height: 350px !important;
    }
    .contact-info-card {
        padding: 25px 20px !important;
    }
    .contact-form-wrapper {
        padding: 25px 20px !important;
    }
    .map-wrapper {
        min-height: 300px !important;
    }
    
    /* Stats Num */
    .stat-card .num {
        font-size: 2.5rem !important;
    }
    .vanguard-stat-value {
        font-size: 2rem !important;
    }

    /* Interactive Display overrides */
    .carousel-item img[style*="height: 500px"] {
        height: 300px !important;
    }
    .category-nav-wrapper {
        padding-bottom: 10px;
    }
    .category-nav-item {
        padding: 10px !important;
        width: calc(50% - 15px) !important;
        text-align: center;
    }

    /* Category Blocks & Clients */
    .category-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    .client-card {
        padding: 15px !important;
    }
    
    /* About Floating Text (if not fully covered by 991px rule) */
    .float-img-end, .float-img-start {
        float: none !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    .carousel-item img[style*="height: 500px"] {
        height: 220px !important;
    }
}