/**
 * index.css - Home page only
 * Header: transparent at top, white on scroll
 */

body.page-index #mainNav {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

body.page-index #mainNav:not(.nav-scrolled) a:not(.bg-gradient-to-r) {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.page-index #mainNav:not(.nav-scrolled) a:not(.bg-gradient-to-r):hover,
body.page-index #mainNav:not(.nav-scrolled) a.nav-active {
    color: rgb(147, 197, 253) !important;
}

body.page-index #mainNav:not(.nav-scrolled) .mobile-menu-button {
    color: white !important;
}

body.page-index #mainNav:not(.nav-scrolled) .mobile-menu-button:hover {
    color: rgb(147, 197, 253) !important;
}

body.page-index #mainNav.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.dark.page-index #mainNav.nav-scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
}

body.page-index #mainNav.nav-scrolled .nav-dropdown .dropdown-menu a {
    color: white !important;
}

body.page-index #mainNav.nav-scrolled a:not(.bg-gradient-to-r) {
    color: #334155 !important;
}

body.page-index #mainNav.nav-scrolled a:not(.bg-gradient-to-r):hover,
body.page-index #mainNav.nav-scrolled a.nav-active {
    color: rgb(59, 130, 246) !important;
}

body.page-index #mainNav.nav-scrolled .mobile-menu-button {
    color: #1e293b !important;
}

body.dark.page-index #mainNav.nav-scrolled a:not(.bg-gradient-to-r) {
    color: #cbd5e1 !important;
}

body.dark.page-index #mainNav.nav-scrolled .mobile-menu-button {
    color: white !important;
}

/* Logo – always show original image (no color filter on scroll) */
body.page-index #mainNav img {
    filter: none !important;
}

@media (max-width: 1023px) {
    body.page-index #mainNav:not(.nav-scrolled) {
        background: transparent !important;
    }

    body.page-index #mainNav.nav-scrolled {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    body.dark.page-index #mainNav.nav-scrolled {
        background: rgba(15, 23, 42, 0.98) !important;
    }
}

/* Trust Marquee Strip */
.trust-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, var(--color-electric-700), var(--color-electric-500), var(--color-electric-700));
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 30;
    border-bottom: 2px solid var(--color-electric-400);
}

.trust-marquee-track {
    display: flex;
    white-space: nowrap;
    animation: text-marquee 25s linear infinite;
    will-change: transform;
}

.trust-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes text-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.trust-item-group {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.trust-item-group i {
    color: var(--color-electric-200);
    margin-right: 0.5rem;
    font-size: 1.2em;
    vertical-align: middle;
}

@media (min-width: 768px) {
    .trust-item-group {
        gap: 5rem;
        padding-right: 5rem;
        font-size: 1.1rem;
    }
}

/* ========================================
   ULTRA PREMIUM SOLUTIONS SECTION
   ======================================== */
.premium-solutions-section {
    position: relative;
    overflow: hidden;
}

.premium-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
}

.dark .premium-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.dark .premium-card::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05),
        0 0 40px rgba(59, 130, 246, 0.1) inset;
}

.dark .premium-card:hover {
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(59, 130, 246, 0.1) inset;
}

/* Glowing Border on Hover */
.premium-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.8), transparent);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 24px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}

.premium-card:hover::after {
    opacity: 1;
    animation: border-rotate 4s linear infinite;
}

@keyframes border-rotate {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.premium-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--color-electric-500);
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.dark .premium-icon-box {
    background: rgba(59, 130, 246, 0.05);
    color: var(--color-electric-400);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.premium-card:hover .premium-icon-box {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-electric-600);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.dark .premium-card:hover .premium-icon-box {
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.premium-icon-box i {
    position: relative;
    z-index: 2;
}

.premium-number {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 140px;
    font-weight: 800;
    font-family: var(--font-display);
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
    z-index: 0;
    transition: all 0.5s ease;
}

.dark .premium-number {
    color: rgba(255, 255, 255, 0.03);
}

.premium-card:hover .premium-number {
    color: rgba(59, 130, 246, 0.08);
    transform: scale(1.05) translate(-10px, -10px);
}

.premium-arrow {
    margin-top: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .premium-arrow {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-card:hover .premium-arrow {
    background: var(--color-electric-500);
    color: white;
    border-color: var(--color-electric-500);
    transform: translateX(10px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.premium-chip {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-steel-600);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.dark .premium-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.premium-card:hover .premium-chip {
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--color-electric-700);
    background: rgba(59, 130, 246, 0.1);
}

.dark .premium-card:hover .premium-chip {
    color: rgba(255, 255, 255, 1);
}

/* Background Animations */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float-orb 20s infinite ease-in-out alternate;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.15);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.1);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.1);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float-orb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }

    100% {
        transform: translate(-30px, 60px) scale(0.9);
    }
}

.premium-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   ULTRA-PROFESSIONAL 3D FONTAWESOME ICON SYSTEM
   ======================================== */
.icon-3d-wrapper {
    position: relative;
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    perspective: 800px;
}

/* 3D Glassmorphic Metallic Ring Badge */
.icon-3d-badge {
    position: absolute;
    inset: 0;
    border-radius: 1.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(235, 243, 255, 0.8));
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 
        0 12px 24px -6px rgba(37, 99, 235, 0.18),
        0 4px 8px -2px rgba(0, 0, 0, 0.04),
        inset 0 2px 3px rgba(255, 255, 255, 0.95),
        inset 0 -2px 4px rgba(37, 99, 235, 0.12);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

body.dark .icon-3d-badge {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 14px 28px -6px rgba(14, 165, 233, 0.25),
        0 6px 14px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.12),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

/* Metallic Inner Glow Ring */
.icon-3d-badge::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.dark .icon-3d-badge::before {
    border-color: rgba(59, 130, 246, 0.2);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
}

/* Clean 3D Gradient FontAwesome Icon */
.icon-3d-fa {
    position: relative;
    z-index: 10;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: 
        drop-shadow(0 4px 6px rgba(37, 99, 235, 0.3))
        drop-shadow(0 1px 1px rgba(255, 255, 255, 0.8));
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: float-fa-smooth 4s ease-in-out infinite alternate;
}

body.dark .icon-3d-fa {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: 
        drop-shadow(0 6px 12px rgba(56, 189, 248, 0.45))
        drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}

@keyframes float-fa-smooth {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-4px) scale(1.03);
    }
}

/* Hover State Animations */
.group:hover .icon-3d-badge {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(219, 234, 254, 0.9));
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 
        0 20px 35px -8px rgba(37, 99, 235, 0.35),
        0 0 25px rgba(59, 130, 246, 0.25);
}

body.dark .group:hover .icon-3d-badge {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(30, 58, 138, 0.6));
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 
        0 20px 35px -8px rgba(14, 165, 233, 0.45),
        0 0 30px rgba(59, 130, 246, 0.35);
}

.group:hover .icon-3d-fa {
    transform: translateY(-6px) scale(1.15);
    filter: 
        drop-shadow(0 10px 18px rgba(37, 99, 235, 0.5))
        drop-shadow(0 2px 4px rgba(255, 255, 255, 0.9));
}

body.dark .group:hover .icon-3d-fa {
    filter: 
        drop-shadow(0 12px 22px rgba(56, 189, 248, 0.65))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* ========================================
   MICRO 3D ICONS FOR CATEGORY SIDEBAR
   ======================================== */
.category-3d-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(235, 243, 255, 0.8));
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 
        0 4px 10px -2px rgba(37, 99, 235, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(37, 99, 235, 0.15);
    margin-right: 0.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

body.dark .category-3d-badge {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 4px 12px -2px rgba(14, 165, 233, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.5);
}

.category-3d-fa {
    font-size: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 3px rgba(37, 99, 235, 0.3));
    transition: all 0.3s ease;
}

body.dark .category-3d-fa {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(56, 189, 248, 0.5));
}

.category-nav-link:hover .category-3d-badge,
.category-nav-link.active .category-3d-badge {
    transform: translateY(-2px) scale(1.08);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 
        0 6px 15px -2px rgba(37, 99, 235, 0.4),
        0 0 12px rgba(59, 130, 246, 0.3);
}

.category-nav-link:hover .category-3d-fa,
.category-nav-link.active .category-3d-fa {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.5));
}