/* Scroll Progress Indicator */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #ffffff;
    z-index: 9999;
    /* Above everything including header */
    pointer-events: none;
    transition: none;
    /* Real-time updates, no delay */
}

/* Custom Animations and Utilities */

/* Infinite Scroll Marquee */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

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

.animate-scroll {
    animation: scroll 20s linear infinite;
}

/* Reverse Infinite Scroll Marquee - SLOW for Our Clients */
@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.animate-scroll-reverse {
    animation: scroll-reverse 50s linear infinite;
    /* Slow premium scroll */
}

/* Pause entire marquee on hover */
.clients-marquee:hover .animate-scroll-reverse {
    animation-play-state: paused;
}

.pause-on-hover:hover {
    animation-play-state: paused;
}

/* ============================================
   OUR CLIENTS Logo Styling - Premium Marquee
   Fixed-Size Container for Uniform Logos
   Supports unlimited logos - just add .logo-box wrapper
   ============================================ */

/* Logo Box Container - Fixed Size for Uniformity */
.logo-box {
    /* Base: Mobile (<768px) */
    width: 150px;
    height: 60px;

    /* Perfect centering */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Prevent shrinking */
    flex-shrink: 0;
}

/* Logo Image Styling Inside Box */
.logo-box .client-logo {
    /* Consistent max fill - prevents uneven sizing */
    max-width: 90%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;

    /* Gray/ash default appearance */
    opacity: 0.75;
    filter: grayscale(1) brightness(0.85) contrast(1.05);

    /* Smooth premium transition */
    transition: all 0.25s ease;
}

/* Hover: Original colors + premium animation */
.logo-box:hover .client-logo {
    filter: none;
    opacity: 1;
    transform: scale(1.06);
}

/* ============================================
   Logo Boost Class - For logos with extra whitespace
   Apply .logo--boost to container for 1.35x scale
   ============================================ */
.logo--boost .client-logo {
    transform: scale(1.35);
    transform-origin: center;
}

.logo--boost:hover .client-logo {
    transform: scale(1.45);
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .logo-box {
        width: 180px;
        height: 75px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .logo-box {
        width: 220px;
        height: 90px;
    }
}

/* Animation Speed - Slow smooth loop */
.animate-scroll-reverse {
    animation-duration: 35s;
    /* Mobile */
}

@media (min-width: 768px) {
    .animate-scroll-reverse {
        animation-duration: 45s;
        /* Tablet */
    }
}

@media (min-width: 1024px) {
    .animate-scroll-reverse {
        animation-duration: 55s;
        /* Desktop - slower for more logos */
    }
}

/* Our Clients Section - Premium Background Strip */
.clients-section {
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Metallic Light Sweep Animation for Primary CTAs */
@keyframes metallic-sweep {
    0% {
        transform: translateX(100%) skewX(-15deg);
    }

    100% {
        transform: translateX(-200%) skewX(-15deg);
    }
}

.btn-cta-shine {
    position: relative;
    overflow: hidden;
}

.btn-cta-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    /* Soft white gradient for metallic reflection */
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 25%,
            rgba(255, 255, 255, 0.25) 50%,
            rgba(255, 255, 255, 0.08) 75%,
            transparent 100%);
    /* Smooth continuous animation - right to left */
    animation: metallic-sweep 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Ensure button text stays above the shine */
.btn-cta-shine>* {
    position: relative;
    z-index: 2;
}

/* Slightly softer on mobile for performance */
@media (max-width: 768px) {
    .btn-cta-shine::after {
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.06) 25%,
                rgba(255, 255, 255, 0.18) 50%,
                rgba(255, 255, 255, 0.06) 75%,
                transparent 100%);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFC303;
}

/* Glassmorphism Utilities - Premium Translucent Glass Effect */
.glass {
    /* Translucent dark glass - MORE transparency for visible glass effect */
    background: rgba(15, 15, 20, 0.45);
    /* Strong blur for true frosted glass effect */
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    /* Visible glass border with subtle light reflection */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Smooth rounded corners - premium feel */
    border-radius: 20px;
    /* Multi-layer shadow for depth + glass highlight on top edge */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.glass-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Floating card feel */
    position: relative;
}

/* Soft inner glow effect */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    /* Slightly elevated and brighter on hover */
    background: rgba(28, 28, 38, 0.75);
    /* Brighter border glow on hover */
    border-color: rgba(255, 255, 255, 0.12);
    /* Enhanced floating shadow on hover */
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    /* Subtle lift effect */
    transform: translateY(-2px);
}

/* Services Section Background - Creates visible content behind glass */
.services-section-bg {
    position: relative;
}

.services-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradient orbs for glass effect visibility */
    background:
        radial-gradient(ellipse 600px 600px at 20% 30%, rgba(255, 195, 3, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 500px 500px at 80% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 400px 400px at 60% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 300px 300px at 40% 80%, rgba(236, 72, 153, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.services-section-bg>* {
    position: relative;
    z-index: 1;
}

/* Service Cards - Base Styling (Desktop) */
.service-card {
    padding: 2rem 1.75rem;
}

.service-card .service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-card .service-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.service-card .service-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-card .service-link {
    font-size: 0.8rem;
}

/* Service Cards - Tablet (md: 768px+) */
@media (min-width: 768px) and (max-width: 1023px) {
    .service-card {
        padding: 1.75rem 1.5rem;
    }

    .service-card .service-icon {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
    }

    .service-card .service-title {
        font-size: 1.25rem;
        margin-bottom: 0.625rem;
    }

    .service-card .service-desc {
        font-size: 0.85rem;
        line-height: 1.55;
        margin-bottom: 0.875rem;
    }
}

/* Service Cards - Mobile (< 768px) - Compact Design */
@media (max-width: 767px) {
    .service-card {
        padding: 1rem 1rem;
    }

    .service-card .service-icon {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .service-card .service-title {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }

    .service-card .service-desc {
        font-size: 0.75rem;
        line-height: 1.45;
        margin-bottom: 0.5rem;
    }

    .service-card .service-link {
        font-size: 0.7rem;
    }
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(to right, #FFC303, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Services Grid - Mobile First */
/* Base: single column on mobile */
.services-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
}

/* Services Grid - 3×3×2 layout with centered last row */
/* Applies to tablet (768px+), laptop, desktop, and large screens */
@media (min-width: 768px) {
    .services-grid {
        /* Use 6 columns for precise centering control: each card spans 2 = 3 per row */
        grid-template-columns: repeat(6, 1fr) !important;
    }

    /* First 6 cards: span 2 columns each (fills 3 per row) */
    .services-grid>*:nth-child(-n+6) {
        grid-column: span 2 !important;
    }

    /* 7th card (first of last row): start at column 2 for centering */
    .services-grid>*:nth-child(7) {
        grid-column: 2 / span 2 !important;
    }

    /* 8th card (second of last row): start at column 4 for centering */
    .services-grid>*:nth-child(8) {
        grid-column: 4 / span 2 !important;
    }
}

/* Smooth Load In */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide scrollbar for horiz scroll containers */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Swiper Custom Animations */
.swiper-slide {
    transition: all 0.5s ease-out;
    transform: scale(0.85);
    opacity: 0.4;
    filter: blur(2px);
}

.swiper-slide-active {
    transform: scale(1.1);
    opacity: 1;
    filter: blur(0);
    z-index: 10;
}

/* Cursor Spotlight - Fluid Liquid Effect */
#cursor-spotlight {
    width: 500px;
    /* Reduced slightly for more precision */
    height: 500px;
    background: radial-gradient(circle, rgba(255, 195, 3, 0.12) 0%, rgba(255, 195, 3, 0) 65%);
    border-radius: 50%;
    position: fixed;
    /* Fixed relative to viewport */
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    /* Centers the div on the coordinate */
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 1;
    /* Above background, below interactive elements */
    opacity: 0;

    /* 
       The 'liquid' feel comes from the lag in transform.
       We update the position via JS, but CSS handles the smoothing.
    */
    transition: opacity 0.4s ease, transform 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* Footer Watermark Section - Below Divider */
.footer-watermark-section {
    position: relative;
    overflow: hidden;
    padding: 2rem 0 3rem;
    margin-top: 0;
}

/* Footer Watermark - Large Subtle Branding */
.footer-watermark {
    position: relative;
    text-align: center;
    font-size: clamp(2.5rem, 11vw, 9rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 0.85;

    /* Premium 3D Embossed Effect - High Visibility Update */
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.10) 40%,
            rgba(255, 255, 255, 0.05) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* 3D Bevel & Depth Engine */
    text-shadow:
        /* Top Bevel Highlight (Raised Edge) */
        0 -1px 0 rgba(255, 255, 255, 0.1),
        /* Bottom Engraved Depth (Shadow) */
        0 1px 2px rgba(0, 0, 0, 0.8),
        /* Soft Ambient Shadow */
        0 4px 12px rgba(0, 0, 0, 0.5);

    /* Matte Finish */
    filter: blur(0.3px);
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-watermark-section {
        padding: 1.5rem 0 2rem;
    }

    .footer-watermark {
        font-size: clamp(1.8rem, 14vw, 4rem);
        letter-spacing: 0.02em;
    }
}

@media (max-width: 480px) {
    .footer-watermark-section {
        padding: 1rem 0 1.5rem;
    }

    .footer-watermark {
        font-size: clamp(1.2rem, 16vw, 2.5rem);
    }
}