/* Smooth scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* General Styles */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1a2e3b;
    padding-top: 70px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
    border-radius: 12px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

section {
    position: relative;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

.hero-section h1 {
    font-size: 3rem;
    line-height: 1.2;
}

/* Product Hero Sections */
.product-hero {
    padding: 5rem 0;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0ba8d7 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.breadcrumb-item a {
    color: #1c1c1d;
}

.breadcrumb-item.active {
    color: #c2eed4 ;
}

/* Cards */
.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: none;
    border-radius: 16px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 1.5rem;
}

/* Background Opacity Helpers */
.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-info-light {
    background-color: rgba(13, 202, 240, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-primary-opacity-10 {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-info-opacity-10 {
    background-color: rgba(13, 202, 240, 0.1);
}

.bg-warning-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .hero-section,
    .product-hero {
        padding: 3rem 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .product-hero img {
        margin-top: 2rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   NAVBAR — Modern glassmorphism nav
   ═══════════════════════════════════════════════════════════════════════ */
.navbar {
    padding: 0.6rem 0;
    background: rgba(10, 18, 30, 0.82);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
    z-index: 1040;
}

.navbar.scrolled {
    padding: 0.4rem 0;
    background: rgba(10, 18, 30, 0.97);
    box-shadow: 0 4px 30px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.04);
}

/* Brand */
.navbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.navbar-brand img {
    filter: drop-shadow(0 0 8px rgba(13,202,240,0.25));
    transition: filter 0.3s;
    height: 50px;
}

.navbar-brand:hover img {
    filter: drop-shadow(0 0 12px rgba(13,202,240,0.4));
}

.navbar-brand .brand-text {
    background: linear-gradient(135deg, #fff 40%, rgba(13,202,240,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav links */
.navbar .nav-link {
    color: rgba(255,255,255,0.72) !important;
    padding: 0.48rem 0.9rem !important;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 8px;
    position: relative;
    transition: color 0.25s, background 0.25s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

/* Underline indicator on desktop nav links */
@media (min-width: 992px) {
    .navbar .nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #0dcaf0, #0d6efd);
        border-radius: 2px;
        transform: translateX(-50%);
        transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::after {
        width: 60%;
    }
    /* Remove underline from dropdown toggle and CTA */
    .navbar .dropdown-toggle::after { display: none; }
}

/* Custom chevron for Products dropdown */
.nav-chevron {
    margin-left: 4px;
    transition: transform 0.3s ease;
}
.nav-item.dropdown.show .nav-chevron {
    transform: rotate(180deg);
}

/* Nav divider */
.nav-divider {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.12);
    vertical-align: middle;
    margin: 0 0.25rem;
}

/* Page-specific nav links */
.page-nav-link {
    font-size: 0.83rem !important;
    color: rgba(255,255,255,0.58) !important;
    padding: 0.38rem 0.7rem !important;
    letter-spacing: 0.01em;
}

.page-nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.07) !important;
}

/* ── CTA button ──────────────────────────────────────────────────────── */
.btn-nav-cta {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 50%, #0d6efd 100%);
    background-size: 200% auto;
    color: #fff !important;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.45rem 1.25rem;
    border-radius: 8px;
    border: none;
    transition: background-position 0.4s, transform 0.25s, box-shadow 0.25s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-nav-cta:hover {
    background-position: right center;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13,110,253,0.4);
    color: #fff !important;
}

.btn-nav-cta--mobile {
    font-size: 0.78rem;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
}

/* ── Hamburger animation ─────────────────────────────────────────────── */
.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    left: 0;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; width: 70%; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.is-active span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger.is-active span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════════════
   DROPDOWN WRAPPER — the actual .dropdown-menu Bootstrap toggles
   ═══════════════════════════════════════════════════════════════════════ */
.mega-dropdown-wrap {
    border: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Desktop: full-width white panel */
@media (min-width: 992px) {
    .mega-dropdown-wrap {
        border-radius: 0 0 20px 20px !important;
    }
}

/* Mobile: no extra chrome — the inner .mega-dropdown-mobile handles it */
@media (max-width: 991.98px) {
    .mega-dropdown-wrap {
        border-radius: 0 !important;
        position: static !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   DESKTOP MEGA DROPDOWN (inner div)
   ═══════════════════════════════════════════════════════════════════════ */
.mega-dropdown {
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow:
        0 25px 80px rgba(0,0,0,0.18),
        0 0 0 1px rgba(0,0,0,0.04);
    animation: megaFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Gradient accent bar at top of mega menu */
.mega-dropdown__accent {
    height: 3px;
    background: linear-gradient(90deg, #1a7f7a, #7c3aed, #2563eb);
    opacity: 0.8;
}

.mega-dropdown__inner {
    padding: 1.75rem 0 2rem;
}

.mega-dropdown__header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f3f5;
}

.mega-dropdown__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6c757d;
}

.mega-dropdown__sublabel {
    font-size: 0.78rem;
    color: #adb5bd;
}

/* Product cards inside mega menu */
.mega-product-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: 14px;
    border: 1.5px solid transparent;
    text-decoration: none;
    color: #1a2e3b;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    background: #fafbfc;
    height: 100%;
}

.mega-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--mp-bg, #f0f0f0), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mega-product-card:hover {
    border-color: var(--mp-accent, #0d6efd);
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    color: #1a2e3b;
}

.mega-product-card:hover::before {
    opacity: 1;
}

.mega-product-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--mp-bg, #f0f0f0);
    color: var(--mp-accent, #0d6efd);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mega-product-card:hover .mega-product-icon {
    transform: scale(1.08);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--mp-accent, #0d6efd) 25%, transparent);
}

.mega-product-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.mega-product-name {
    font-size: 0.95rem;
    font-weight: 660;
    margin: 0 0 0.3rem;
    letter-spacing: -0.01em;
}

.mega-product-desc {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.45;
}

.mega-product-arrow {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.04);
    color: var(--mp-accent, #0d6efd);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.mega-product-card:hover .mega-product-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--mp-accent, #0d6efd);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE MEGA DROPDOWN (inner div)
   ═══════════════════════════════════════════════════════════════════════ */
.mega-dropdown-mobile {
    background: rgba(15, 23, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    margin: 0.4rem 0;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: mobileMegaSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobileMegaSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mega-mobile__list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mega-mobile__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.88);
    transition: background 0.2s;
    position: relative;
}

.mega-mobile__item:hover,
.mega-mobile__item:active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.mega-mobile__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--mp-bg, rgba(255,255,255,0.06));
    color: var(--mp-accent, #0dcaf0);
}

.mega-mobile__info {
    flex: 1;
    min-width: 0;
}

.mega-mobile__name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.mega-mobile__desc {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.1rem;
    line-height: 1.35;
}

.mega-mobile__arrow {
    color: rgba(255,255,255,0.25);
    font-size: 0.7rem;
    transition: color 0.2s, transform 0.2s;
}

.mega-mobile__item:hover .mega-mobile__arrow {
    color: var(--mp-accent, #0dcaf0);
    transform: translateX(2px);
}

/* ── Mobile nav collapse styling ─────────────────────────────────────── */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(10, 18, 30, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 0 0 16px 16px;
        margin: 0.5rem -0.75rem 0;
        padding: 0.75rem 1rem 1rem;
        border: 1px solid rgba(255,255,255,0.06);
        border-top: none;
        box-shadow: 0 16px 48px rgba(0,0,0,0.3);
    }

    .navbar .nav-link {
        padding: 0.55rem 0.75rem !important;
        font-size: 0.92rem;
        border-radius: 10px;
    }

    .nav-divider { display: none; }

    .page-nav-link {
        font-size: 0.86rem !important;
        color: rgba(255,255,255,0.55) !important;
        padding: 0.45rem 0.75rem !important;
    }
}

/* Footer */
footer {
    padding: 3.5rem 0 2rem;
    background: #0f1921 !important;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

footer a:hover {
    color: #fff;
}

footer h5 {
    letter-spacing: 0;
}

footer .bi {
    transition: transform 0.2s ease, color 0.2s ease;
}

footer .bi:hover {
    transform: translateY(-2px);
    color: #0dcaf0 !important;
}

/* Utility Classes */
.rounded-lg {
    border-radius: 15px;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}