/* ============================================
   InterGlobal — Premium Design System
   ============================================ */

/* Custom Properties */
:root {
    --color-dark-950: #050507;
    --color-dark-900: #0a0a0f;
    --color-dark-800: #0d0d14;
    --color-dark-700: #111119;
    --color-dark-600: #16161f;
    --color-dark-500: #1c1c28;
    
    --color-violet-400: #a78bfa;
    --color-violet-500: #8b5cf6;
    --color-violet-600: #7c3aed;
    --color-violet-700: #6d28d9;
    
    --color-cyan-400: #22d3ee;
    --color-cyan-500: #06b6d4;
    
    --color-blue-400: #60a5fa;
    --color-blue-500: #3b82f6;
    
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Smoother scrolling for modern browsers */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-dark-950);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--color-violet-600);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--color-dark-900);
}

::-webkit-scrollbar-thumb {
    background: var(--color-dark-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-violet-600);
}

/* ============================================
   Glass Effect Components
   ============================================ */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ============================================
   Navigation Styles
   ============================================ */

#navbar {
    background: transparent;
    transition: all 0.5s var(--transition-smooth);
}

#navbar.scrolled {
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-violet-500), var(--color-cyan-400));
    transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   Apple-Style Glassmorphic Navbar
   ============================================ */

#navbar {
    background: rgba(20, 20, 25, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    isolation: isolate; /* Creates new stacking context */
    z-index: 9990 !important; /* Ensure navbar is above all page content */
}

#navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.3);
}

/* Ensure mega menu trigger creates proper stacking context */
.mega-menu-trigger {
    position: relative;
    z-index: 1;
}

/* ============================================
   Mega Menu Styles (Apple Liquid Glass)
   ============================================ */

.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(0.98);
    width: 920px;
    padding-top: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 9998; /* Very high z-index to ensure it's above all content */
}

.mega-menu-trigger:hover .mega-menu-dropdown,
.mega-menu-dropdown:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.mega-menu-content {
    background: linear-gradient(
        135deg,
        rgba(8, 8, 14, 0.98) 0%,
        rgba(12, 12, 20, 0.97) 50%,
        rgba(8, 8, 14, 0.98) 100%
    );
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 0 0.5px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
    overflow: hidden;
    position: relative;
}

/* Apple-style top highlight */
.mega-menu-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4) 20%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0.4) 80%, 
        transparent
    );
}

/* Subtle inner glow */
.mega-menu-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1.2fr;
    gap: 0;
    position: relative;
    z-index: 1;
}

.mega-menu-col {
    padding: 24px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-menu-col:last-child {
    border-right: none;
    padding: 0;
}

.mega-menu-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 16px;
    padding-left: 4px;
}

/* Premium Service Items with SF Symbol style icons */
.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    margin-bottom: 4px;
    position: relative;
}

.mega-menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mega-menu-item:hover::before {
    opacity: 1;
}

.mega-menu-item:hover {
    transform: translateX(2px);
}

/* Premium glassmorphic icon containers */
.mega-menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 0 0.5px rgba(255, 255, 255, 0.1) inset;
}

.mega-menu-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: inherit;
    opacity: 0.8;
}

.mega-menu-item:hover .mega-menu-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 0 0.5px rgba(255, 255, 255, 0.2) inset,
        0 0 20px rgba(139, 92, 246, 0.3);
}

.mega-menu-icon svg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.mega-menu-item-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3px;
    transition: color 0.25s ease;
    position: relative;
    z-index: 1;
}

.mega-menu-item:hover .mega-menu-item-title {
    color: #fff;
}

.mega-menu-item-desc {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Quick Links - Premium Apple style */
.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    margin-bottom: 2px;
    position: relative;
}

.mega-menu-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mega-menu-link:hover::before {
    opacity: 1;
}

.mega-menu-link:hover {
    color: #fff;
    transform: translateX(2px);
}

.mega-menu-link svg {
    transition: all 0.25s ease;
    opacity: 0.6;
}

.mega-menu-link:hover svg {
    opacity: 1;
    color: var(--color-cyan-400);
}

/* Featured Card - Liquid glass style */
.mega-menu-featured {
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.15) 0%,
        rgba(34, 211, 238, 0.08) 50%,
        rgba(139, 92, 246, 0.1) 100%
    );
    position: relative;
}

.mega-menu-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.mega-menu-featured-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.mega-menu-video-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.mega-menu-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-menu-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 13, 20, 0.8) 100%);
}

.mega-menu-featured-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mega-menu-featured-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--color-violet-500), var(--color-cyan-500));
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    width: fit-content;
    margin-bottom: 16px;
}

.mega-menu-featured-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.mega-menu-featured-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.mega-menu-featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--color-violet-500), var(--color-violet-600));
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.mega-menu-featured-btn:hover {
    background: linear-gradient(135deg, var(--color-violet-400), var(--color-violet-500));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.mega-menu-featured-btn svg {
    transition: transform 0.3s ease;
}

.mega-menu-featured-btn:hover svg {
    transform: translateX(4px);
}

/* ============================================
   Ultra Premium Mobile Menu
   ============================================ */

/* Mobile Menu Overlay - Full Screen */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    z-index: 9999; /* Very high to ensure it's on top */
    background-color: #050507;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* When menu is visible (display: block via JS) */
.mobile-menu-overlay[style*="display: block"],
.mobile-menu-overlay[style*="display:block"] {
    opacity: 1;
    visibility: visible;
}

/* Hide on desktop - double protection */
@media (min-width: 1024px) {
    .mobile-menu-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    #mobile-menu-btn {
        display: none !important;
    }
}

/* Mobile Menu Container (legacy support) */
.mobile-menu-container {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: #050507;
}

/* Animated Hamburger Button - Only on mobile/tablet */
@media (max-width: 1023px) {
    #mobile-menu-btn {
        display: flex !important; /* Force display on mobile */
        position: relative;
        z-index: 60;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    #mobile-menu-btn:hover {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
    }

    #mobile-menu-btn svg {
        transition: transform 0.3s ease;
    }

    #mobile-menu-btn:active svg {
        transform: scale(0.85);
    }

    /* Hamburger to X Animation */
    #mobile-menu-btn.menu-active svg path:first-child {
        transform: translateY(6px) rotate(45deg);
        transform-origin: center;
    }

    #mobile-menu-btn.menu-active svg path:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu-btn.menu-active svg path:last-child {
        transform: translateY(-6px) rotate(-45deg);
        transform-origin: center;
    }
}

/* Mobile Nav Item */
.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-item:hover::before,
.mobile-nav-item:active::before {
    opacity: 1;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(4px);
}

/* Mobile Nav Icon */
.mobile-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Mobile Nav Text */
.mobile-nav-text {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Mobile Sub Item */
.mobile-sub-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-sub-item:hover,
.mobile-sub-item:active {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateX(6px);
}

.mobile-sub-item span.text-white {
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Accordion */
.mobile-accordion {
    position: relative;
}

.mobile-accordion-trigger {
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.mobile-accordion-trigger .accordion-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-accordion-trigger.active .accordion-icon {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    border-left: 2px solid rgba(139, 92, 246, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.35s ease,
                padding 0.35s ease;
    opacity: 0;
}

.mobile-accordion-content:not(.hidden),
.mobile-accordion-content.open {
    max-height: 600px;
    opacity: 1;
}

/* Mobile Menu Footer Links */
.mobile-menu-footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-menu-footer-link:hover,
.mobile-menu-footer-link:active {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
    color: #fff;
}

/* Mobile CTA Button */
.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--color-violet-500) 0%, var(--color-violet-600) 100%);
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

.mobile-cta-btn:hover,
.mobile-cta-btn:active {
    background: linear-gradient(135deg, var(--color-violet-400) 0%, var(--color-violet-500) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4);
}

/* Mobile Menu Close Button Animation */
#mobile-menu-close {
    z-index: 9999 !important;
    position: fixed !important;
    top: 1.5rem;
    right: 1.5rem;
    pointer-events: auto !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-close:hover,
#mobile-menu-close:active {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg) scale(1.1);
}

/* Ensure button is clickable on touch devices */
@media (hover: none) and (pointer: coarse) {
    #mobile-menu-close {
        min-width: 48px;
        min-height: 48px;
    }
    #mobile-menu-close:active {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0.95);
    }
}

/* Mobile Menu Slide In Animation */
.mobile-menu-container .mobile-nav-item,
.mobile-menu-container .mobile-accordion {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-container.menu-open .mobile-nav-item,
.mobile-menu-container.menu-open .mobile-accordion {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delays */
.mobile-menu-container.menu-open .mobile-nav-item:nth-child(1),
.mobile-menu-container.menu-open .mobile-accordion:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-container.menu-open .mobile-nav-item:nth-child(2),
.mobile-menu-container.menu-open .mobile-accordion:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-container.menu-open .mobile-nav-item:nth-child(3),
.mobile-menu-container.menu-open .mobile-accordion:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-container.menu-open .mobile-nav-item:nth-child(4),
.mobile-menu-container.menu-open .mobile-accordion:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-container.menu-open .mobile-nav-item:nth-child(5),
.mobile-menu-container.menu-open .mobile-accordion:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu-container.menu-open .mobile-nav-item:nth-child(6),
.mobile-menu-container.menu-open .mobile-accordion:nth-child(6) { transition-delay: 0.3s; }

/* Premium Glass Card for Menu Sections */
.mobile-menu-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Responsive Mega Menu */
@media (max-width: 1200px) {
    .mega-menu-dropdown {
        width: 800px;
    }
}

@media (max-width: 1024px) {
    .mega-menu-dropdown {
        display: none;
    }
}

/* Mobile Menu Responsive Adjustments */
@media (max-width: 640px) {
    .mobile-nav-item {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .mobile-nav-icon {
        width: 40px;
        height: 40px;
    }
    
    .mobile-nav-text {
        font-size: 15px;
    }
    
    .mobile-sub-item {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .mobile-sub-item span.text-white {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .mobile-nav-item {
        padding: 12px 14px;
        border-radius: 14px;
    }
    
    .mobile-nav-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .mobile-nav-text {
        font-size: 14px;
    }
}

/* Mobile Menu Safe Area Padding */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #mobile-menu .overflow-y-auto {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
}

/* ============================================
   Button Styles
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--color-violet-600), var(--color-violet-700));
    border: none;
    border-radius: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-violet-500), var(--color-cyan-500));
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
}

.btn-primary svg,
.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   Hero Section
   ============================================ */

/* ============================================
   Hero Section with Video Background
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
    background-color: #050507;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-video,
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Hero Fallback Image - for devices that don't support video */
.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-fallback img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Lazy video placeholder */
.lazy-video {
    background-color: #050507;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 7, 0.5) 0%,
        rgba(5, 5, 7, 0.3) 40%,
        rgba(5, 5, 7, 0.6) 70%,
        rgba(5, 5, 7, 1) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        padding: 0 2rem;
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    #hero-video {
        display: none;
    }
    
    .hero-section {
        background: linear-gradient(135deg, #050507 0%, #1a1a2e 50%, #050507 100%);
    }
}

.animate-gradient {
    animation: gradient 8s linear infinite;
}

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-hero-word {
    animation: heroWord 0.8s var(--transition-smooth) forwards;
}

@keyframes heroWord {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s var(--transition-smooth) forwards;
}

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

.animate-scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* ============================================
   Floating Animations
   ============================================ */

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.animate-pulse-slow {
    animation: pulseSlow 8s ease-in-out infinite;
}

@keyframes pulseSlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* ============================================
   Spinning Animations
   ============================================ */

.animate-spin-slow {
    animation: spinSlow 20s linear infinite;
}

.animate-spin-reverse {
    animation: spinReverse 15s linear infinite;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

/* ============================================
   Value Cards
   ============================================ */

.value-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s var(--transition-smooth);
    animation-delay: var(--delay, 0s);
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
}

.value-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s var(--transition-bounce);
}

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

/* ============================================
   Service Cards
   ============================================ */

.service-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s var(--transition-smooth);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-violet-500), var(--color-cyan-400));
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    transition: all 0.4s var(--transition-smooth);
}

.service-card:hover .service-number {
    color: rgba(139, 92, 246, 0.1);
    transform: scale(1.1);
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============================================
   Product Cards
   ============================================ */

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(139, 92, 246, 0.15);
}

.product-visual {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-info {
    padding: 2rem;
}

/* ============================================
   Portfolio Cards (Signature Series)
   ============================================ */

.portfolio-card {
    transition: all 0.5s var(--transition-smooth);
}

.portfolio-card:hover {
    transform: translateY(-12px);
}

.portfolio-card .glass-card {
    transition: all 0.4s var(--transition-smooth);
}

.portfolio-card:hover .glass-card {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 30px 100px rgba(139, 92, 246, 0.15),
        0 0 60px rgba(139, 92, 246, 0.05);
}

.portfolio-card h3 {
    transition: all 0.3s var(--transition-smooth);
}

/* Portfolio card image zoom effect */
.portfolio-card .relative.h-80 > div:first-child {
    transition: transform 0.6s var(--transition-smooth);
}

.portfolio-card:hover .relative.h-80 > div:first-child {
    transform: scale(1.05);
}

/* Portfolio shimmer effect on hover */
.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transition: left 0.7s ease;
    z-index: 10;
    pointer-events: none;
}

.portfolio-card:hover::before {
    left: 100%;
}

/* ============================================
   Tech Cards
   ============================================ */

.tech-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s var(--transition-smooth);
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.tech-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Process Steps
   ============================================ */

/* ============================================
   Process Cards (New Design)
   ============================================ */

.process-card {
    position: relative;
}

.process-card-inner {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.process-card:hover .process-card-inner {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.process-card-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    transition: all 0.4s var(--transition-smooth);
}

.process-card:hover .process-card-number {
    color: rgba(139, 92, 246, 0.1);
}

.process-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s var(--transition-bounce);
}

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

.process-card-connector {
    display: none;
}

@media (min-width: 1024px) {
    .process-card-connector {
        display: block;
        position: absolute;
        top: 50%;
        right: -1.5rem;
        width: 1.5rem;
        height: 2px;
        background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    }
    
    .process-card:last-child .process-card-connector {
        display: none;
    }
}

/* Legacy process step styles (keeping for backward compatibility) */
.process-step {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 2rem;
    padding-left: 0;
}

@media (min-width: 1024px) {
    .process-step {
        grid-template-columns: 1fr auto 1fr;
        gap: 3rem;
    }
    
    .process-step .process-content {
        text-align: right;
    }
    
    .process-step-right .process-content {
        text-align: left;
        order: 3;
    }
    
    .process-step-right .process-number {
        order: 2;
    }
}

.process-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-violet-600), var(--color-cyan-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.process-content {
    max-width: 400px;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */

.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.3s var(--transition-smooth);
    transition-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

/* Fallback: ensure elements become visible after page load */
@keyframes revealFallback {
    to {
        opacity: 1;
        transform: none;
    }
}

.reveal-up,
.reveal-left,
.reveal-right {
    animation: revealFallback 0.3s ease-out 0.6s forwards;
}

/* When revealed class is added, cancel the fallback animation */
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    animation: none;
}

.reveal-up {
    transform: translateY(15px);
}

.reveal-left {
    transform: translateX(-25px);
}

.reveal-right {
    transform: translateX(25px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* ============================================
   Stat Items
   ============================================ */

.stat-item {
    text-align: center;
    padding: 1rem;
}

/* ============================================
   Background Radial Gradient
   ============================================ */

.bg-gradient-radial {
    background: radial-gradient(ellipse at center, var(--tw-gradient-from) 0%, var(--tw-gradient-via) 50%, var(--tw-gradient-to) 100%);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-number {
        font-size: 3rem;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .process-step {
        grid-template-columns: 3rem 1fr;
        gap: 1.5rem;
    }
    
    .process-number {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
}

/* ============================================
   Magnetic Button Effect (for premium feel)
   ============================================ */

.magnetic {
    transition: transform 0.3s var(--transition-smooth);
}

/* ============================================
   Cursor Glow Effect
   ============================================ */

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ============================================
   Text Gradient Utilities
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--color-violet-400), var(--color-cyan-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Shimmer Effect
   ============================================ */

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   Line Highlight Effect
   ============================================ */

.line-highlight {
    position: relative;
}

.line-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-violet-500), var(--color-cyan-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition-smooth);
}

.line-highlight:hover::after {
    transform: scaleX(1);
}

/* ============================================
   Particle Background (Three.js ready)
   ============================================ */

#three-canvas {
    opacity: 0.5;
}

/* ============================================
   Noise Texture Overlay
   ============================================ */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 100;
}

/* ============================================
   Loading Animation
   ============================================ */

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--color-dark-950);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--color-violet-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Bento Grid & Visual Showcase Styles
   ============================================ */

/* Hover shimmer effect for grid items */
.grid [class*="col-span"] {
    position: relative;
}

.grid [class*="col-span"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 10;
    pointer-events: none;
    border-radius: inherit;
}

.grid [class*="col-span"]:hover::before {
    transform: translateX(100%);
}

/* Image reveal animations */
@keyframes imageReveal {
    from {
        clip-path: inset(100% 0 0 0);
        opacity: 0;
    }
    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

.reveal-image {
    animation: imageReveal 1s var(--transition-smooth) forwards;
    animation-delay: var(--delay, 0s);
}

/* Parallax hover effect */
.parallax-hover {
    transition: transform 0.3s ease-out;
}

.parallax-hover:hover {
    transform: translateY(-10px);
}

/* Floating label animation */
@keyframes floatLabel {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.float-label {
    animation: floatLabel 3s ease-in-out infinite;
}

/* Gradient border glow on hover */
.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-violet-500), var(--color-cyan-500));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.glow-border:hover::after {
    opacity: 1;
}

/* Instagram-style heart animation */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.heart-beat:hover svg {
    animation: heartBeat 0.6s ease-in-out;
}

/* Smooth image zoom on card hover */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.7s var(--transition-smooth);
}

.image-zoom:hover img {
    transform: scale(1.08);
}

/* Text reveal on hover */
.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.reveal-text:hover span {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered text reveal */
.reveal-text span:nth-child(1) { transition-delay: 0s; }
.reveal-text span:nth-child(2) { transition-delay: 0.05s; }
.reveal-text span:nth-child(3) { transition-delay: 0.1s; }
.reveal-text span:nth-child(4) { transition-delay: 0.15s; }
.reveal-text span:nth-child(5) { transition-delay: 0.2s; }

/* Premium card shine effect */
.premium-shine {
    position: relative;
    overflow: hidden;
}

.premium-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    animation: shineMove 4s ease-in-out infinite;
}

@keyframes shineMove {
    0% { transform: rotate(30deg) translateX(-100%); }
    100% { transform: rotate(30deg) translateX(100%); }
}

/* News card styles */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
}

/* Quote section styling */
blockquote {
    position: relative;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5em;
    left: -0.3em;
    font-size: 4em;
    color: var(--color-violet-500);
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* Responsive bento grid adjustments */
@media (max-width: 768px) {
    .grid.auto-rows-\\[160px\\] {
        grid-auto-rows: 120px;
    }
}

/* Smooth scroll snap for image strips */
.scroll-snap-x {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-snap-x > * {
    scroll-snap-align: start;
}

/* Logo hover effect */
.logo-hover {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.logo-hover:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Seductive gradient text animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-shift {
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

/* ============================================
   Section Background Image with Fades
   ============================================ */

/* Top and bottom fade overlay for background image sections */
.section-bg-image {
    position: relative;
    overflow: hidden;
}

.section-bg-image::before,
.section-bg-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 2;
    pointer-events: none;
}

.section-bg-image::before {
    top: 0;
    background: linear-gradient(to bottom, var(--color-dark-950) 0%, transparent 100%);
}

.section-bg-image::after {
    bottom: 0;
    background: linear-gradient(to top, var(--color-dark-950) 0%, transparent 100%);
}

/* Tall fade variant for larger sections */
.section-bg-image-tall::before,
.section-bg-image-tall::after {
    height: 200px;
}

/* Inner image container */
.section-bg-image .bg-image-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.section-bg-image .bg-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section content should be above fades */
.section-bg-image .section-content {
    position: relative;
    z-index: 10;
}

/* ============================================
   Creative Image Integration Styles
   ============================================ */

/* Floating accent image */
.floating-accent-image {
    position: absolute;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s var(--transition-smooth), box-shadow 0.4s;
}

.floating-accent-image:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 35px 100px rgba(139, 92, 246, 0.2);
}

.floating-accent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.floating-accent-image:hover img {
    transform: scale(1.05);
}

/* Cinematic strip section */
.cinematic-strip {
    position: relative;
    overflow: hidden;
}

.cinematic-strip::before,
.cinematic-strip::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 3;
    pointer-events: none;
}

.cinematic-strip::before {
    top: 0;
    background: linear-gradient(to bottom, var(--color-dark-950) 0%, transparent 100%);
}

.cinematic-strip::after {
    bottom: 0;
    background: linear-gradient(to top, var(--color-dark-950) 0%, transparent 100%);
}

/* Masked image reveal */
.masked-image-reveal {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.masked-image-reveal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-dark-950) 0%, transparent 50%, var(--color-dark-950) 100%);
    z-index: 2;
    opacity: 0.6;
}

/* Split image layout */
.split-image-section {
    position: relative;
}

.split-image-section .image-panel {
    position: relative;
    overflow: hidden;
}

.split-image-section .image-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
}

.split-image-section .image-panel.fade-right::before {
    background: linear-gradient(to right, transparent 0%, var(--color-dark-950) 100%);
}

.split-image-section .image-panel.fade-left::before {
    background: linear-gradient(to left, transparent 0%, var(--color-dark-950) 100%);
}

/* Ambient glow behind images */
.image-with-glow {
    position: relative;
}

.image-with-glow::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    transition: opacity 0.4s;
}

.image-with-glow:hover::before {
    opacity: 1.3;
}

/* ============================================
   Video Production Slider Section
   ============================================ */

.video-fullscreen-section {
    background: var(--color-dark-950);
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Ensure slides are properly stacked during transitions */
.video-production-swiper .swiper-slide {
    z-index: 1;
}

.video-production-swiper .swiper-slide-active {
    z-index: 10;
}

/* Smooth clip-path transitions for wipe effects */
.bento-hero,
.bento-text-card,
.bento-accent-image,
.bento-info-card,
.bento-feature-image,
.bento-side-image,
.bento-side-card-image,
.bento-cta-btn,
.bento-nav-btn {
    will-change: clip-path, transform, opacity;
}

/* Full Screen Slider Container */
.video-slider-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 40px);
    max-height: 900px;
    overflow: hidden;
}

.video-production-swiper {
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 0;
}

.video-production-swiper .swiper-wrapper {
    align-items: stretch;
    will-change: transform;
    height: 100%;
}

.video-production-swiper .swiper-slide {
    height: 100%;
}

.video-production-swiper .swiper-slide {
    height: auto;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.video-production-swiper .swiper-slide-active {
    z-index: 10;
}

/* Fade effect - let GSAP handle individual element animations */
.video-production-swiper .swiper-slide {
    opacity: 0 !important;
}

.video-production-swiper .swiper-slide-active {
    opacity: 1 !important;
}

/* GSAP handles all animations - no CSS animations needed */


/* Bento Slide Container */
.bento-slide {
    display: grid;
    grid-template-columns: 1.3fr 0.85fr 0.55fr;
    gap: 16px;
    height: 100%;
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

/* Left Column */
.bento-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.bento-hero {
    position: relative;
    flex: 2;
    border-radius: 16px;
    overflow: hidden;
}

.bento-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--transition-smooth);
}

.bento-slide:hover .bento-hero img {
    transform: scale(1.05);
}

.bento-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0.3) 50%, transparent 100%);
}

/* Play Button Overlay on Hero Card */
.bento-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.bento-play-btn:hover {
    background: rgba(0, 0, 0, 0.3);
}

.bento-play-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.bento-play-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    margin-left: 4px;
}

.bento-play-btn:hover .bento-play-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(167, 139, 250, 0.3);
}

/* Pulse animation on play button */
.bento-play-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: playPulse 2s ease-out infinite;
}

@keyframes playPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.bento-hero-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.bento-category {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.bento-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.05;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Bottom Row */
.bento-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
    min-height: 160px;
}

.bento-text-card {
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.bento-text-card .bento-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.bento-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.bento-accent-image {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.bento-accent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
}

.bento-slide:hover .bento-accent-image img {
    transform: scale(1.1);
}

/* Action Row */
.bento-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    height: 48px;
    flex-shrink: 0;
    margin-left: auto;
    max-width: 500px;
}

.bento-cta-btn {
    flex: 0 0 auto;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s var(--transition-smooth);
    background: rgba(120, 100, 80, 0.6);
    white-space: nowrap;
}

.bento-cta-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.bento-nav-btn {
    flex: 0 0 auto;
    height: 100%;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(34, 211, 238, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Elegant pulse animation */
.bento-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(34, 211, 238, 0.3));
    opacity: 0;
    animation: navBtnPulse 2s ease-in-out infinite;
}

@keyframes navBtnPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.bento-nav-btn.prev-btn {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(96, 165, 250, 0.2));
}

.bento-nav-btn.next-btn {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(167, 139, 250, 0.2));
}

/* Arrow bounce animation */
.bento-nav-btn.prev-btn svg {
    animation: arrowBounceLeft 1.5s ease-in-out infinite;
}

.bento-nav-btn.next-btn svg {
    animation: arrowBounceRight 1.5s ease-in-out infinite;
}

@keyframes arrowBounceLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-3px); }
}

@keyframes arrowBounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.bento-nav-btn:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.5), rgba(34, 211, 238, 0.4));
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.25);
}

.bento-nav-btn:hover::before {
    animation: none;
    opacity: 0;
}

.bento-nav-btn:hover svg {
    animation: none;
}

.bento-nav-btn.prev-btn:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.5), rgba(96, 165, 250, 0.4));
}

.bento-nav-btn.next-btn:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.5), rgba(167, 139, 250, 0.4));
}

.bento-nav-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    position: relative;
    z-index: 1;
}

.bento-nav-btn span {
    position: relative;
    z-index: 1;
}

/* Right Column */
.bento-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.bento-info-card {
    padding: 20px 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    line-height: 1.3;
}

.bento-card-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.bento-feature-image {
    flex: 2;
    border-radius: 12px;
    overflow: hidden;
}

.bento-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
}

.bento-slide:hover .bento-feature-image img {
    transform: scale(1.05);
}

/* Side Column */
.bento-side-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.bento-side-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.bento-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
}

.bento-slide:hover .bento-side-image img {
    transform: scale(1.05);
}

.bento-side-card {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    max-height: 180px;
}

/* Side Card with Background Image (RevSlider style) */
.bento-side-card-image {
    flex: 1;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.bento-side-card-image .side-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.bento-side-card-image .side-card-content {
    position: relative;
    z-index: 2;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.bento-side-card-image .bento-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bento-side-card-image .bento-card-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bento-side-card-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: auto;
    opacity: 0.3;
    pointer-events: none;
}

/* Theme Gradients - Warm (Odelay) */
.warm-gradient {
    background: linear-gradient(135deg, rgba(136, 108, 90, 0.6) 0%, rgba(183, 158, 124, 0.4) 100%);
}

.warm-gradient-alt {
    background: linear-gradient(90deg, rgba(136, 108, 90, 0.5) 0%, rgba(183, 158, 124, 0.7) 100%);
}

[data-theme="warm"] .bento-cta-btn {
    background: linear-gradient(90deg, rgb(136, 108, 90) 0%, rgb(183, 158, 124) 100%);
}

[data-theme="warm"] .bento-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(183, 158, 124, 0.3);
}

.warm-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(183, 164, 130, 0.15) 0%, transparent 60%);
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* Theme Gradients - Purple (Stratos) */
.purple-gradient {
    background: linear-gradient(135deg, rgba(102, 110, 214, 0.6) 0%, rgba(135, 46, 173, 0.4) 100%);
}

.purple-gradient-alt {
    background: linear-gradient(135deg, rgba(198, 68, 252, 0.6) 0%, rgba(88, 86, 214, 0.6) 100%);
}

[data-theme="purple"] .bento-cta-btn {
    background: linear-gradient(90deg, rgb(127, 11, 221) 0%, rgb(88, 86, 214) 100%);
}

[data-theme="purple"] .bento-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(135, 46, 173, 0.3);
}

.purple-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(135, 46, 173, 0.15) 0%, transparent 60%);
    top: 50%;
    right: 20%;
    transform: translate(50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* Theme Gradients - Blue (El Pulpo) */
.blue-gradient {
    background: linear-gradient(135deg, rgba(2, 32, 76, 0.7) 0%, rgba(33, 103, 172, 0.5) 100%);
}

.blue-gradient-alt {
    background: linear-gradient(135deg, rgba(47, 132, 199, 0.6) 0%, rgba(3, 36, 81, 0.6) 100%);
}

[data-theme="blue"] .bento-cta-btn {
    background: linear-gradient(90deg, rgb(47, 132, 199) 0%, rgb(33, 103, 172) 100%);
}

[data-theme="blue"] .bento-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(47, 132, 199, 0.3);
}

.blue-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 132, 199, 0.15) 0%, transparent 60%);
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* Pagination */
/* Responsive Adjustments */
@media (max-width: 1280px) {
    .bento-slide {
        grid-template-columns: 1.2fr 0.8fr 0.5fr;
        gap: 12px;
    }
    
    .bento-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 1024px) {
    .video-fullscreen-section {
        min-height: auto;
        padding: 15px;
    }
    
    .video-slider-container {
        height: auto;
        min-height: calc(100vh - 60px);
    }
    
    .bento-slide {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
        height: auto;
    }
    
    /* Hide side column on tablet, show on mobile differently */
    .bento-side-column {
        display: none;
    }
    
    .bento-title {
        font-size: 2.5rem;
    }
    
    .bento-text-card .bento-card-title {
        font-size: 1.2rem;
    }
    
    .bento-info-card {
        padding: 16px;
    }
    
    .bento-action-row {
        max-width: none;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .video-fullscreen-section {
        min-height: auto;
        padding: 10px;
    }
    
    .video-slider-container {
        height: auto;
        min-height: calc(100vh - 40px);
    }
    
    .video-production-swiper {
        height: auto;
    }
    
    .video-production-swiper .swiper-wrapper {
        height: auto;
    }
    
    .video-production-swiper .swiper-slide {
        height: auto;
    }
    
    /* Mobile: Single column stacked layout */
    .bento-slide {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        height: auto;
    }
    
    /* Hero at top */
    .bento-hero {
        border-radius: 12px;
        min-height: 200px;
        flex: 0 0 auto;
    }
    
    .bento-title {
        font-size: 2.2rem;
    }
    
    .bento-category {
        font-size: 0.75rem;
    }
    
    /* Left column content stacks */
    .bento-left {
        display: contents;
    }
    
    /* Bottom row stays as 2-column grid */
    .bento-bottom-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        min-height: 140px;
        order: 2;
    }
    
    .bento-text-card {
        padding: 16px;
    }
    
    .bento-text-card .bento-card-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .bento-description {
        font-size: 0.8rem;
    }
    
    /* Action row - 3 buttons in a row */
    .bento-action-row {
        display: flex;
        gap: 8px;
        height: 48px;
        order: 3;
        max-width: none;
        margin-left: 0;
    }
    
    .bento-cta-btn {
        flex: 1;
        padding: 0 12px;
        font-size: 0.65rem;
        border-radius: 8px;
    }
    
    .bento-cta-btn svg {
        display: none;
    }
    
    .bento-nav-btn {
        flex: 0.8;
        font-size: 0.65rem;
        padding: 0 12px;
    }
    
    /* Right column shows below action row */
    .bento-right {
        display: flex;
        flex-direction: column;
        gap: 10px;
        order: 4;
    }
    
    .bento-info-card {
        padding: 16px;
    }
    
    .bento-card-title {
        font-size: 1.1rem;
    }
    
    .bento-card-subtitle {
        font-size: 0.8rem;
    }
    
    /* Feature image as 2-column with side image */
    .bento-feature-image {
        min-height: 180px;
    }
    
    /* Side column shows at bottom */
    .bento-side-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        order: 5;
    }
    
    .bento-side-image {
        min-height: 160px;
    }
    
    .bento-side-card-image {
        min-height: 160px;
    }
    
    .bento-side-card-image .bento-card-title {
        font-size: 1rem;
    }
    
    .bento-side-card-image .bento-card-subtitle {
        font-size: 0.75rem;
    }
}

/* ========================================
   THE INTERGLOBAL DIFFERENCE SECTION
   ======================================== */

.difference-section {
    position: relative;
    background: var(--color-dark-950);
}

/* Floating Orbs */
.difference-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.difference-orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    animation: orbFloat 20s ease-in-out infinite;
}

.difference-orb-2 {
    width: 500px;
    height: 500px;
    top: 50%;
    right: -150px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
    animation: orbFloat 25s ease-in-out infinite reverse;
}

.difference-orb-3 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: 30%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    animation: orbFloat 18s ease-in-out infinite 5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* Gradient Text */
.difference-gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.difference-gradient-text-alt {
    background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards Grid */
.difference-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 20px;
}

/* Card Base */
.difference-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.difference-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.difference-card:hover .difference-card-inner {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(139, 92, 246, 0.15);
}

/* Card Background */
.difference-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.difference-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
    filter: brightness(0.7) saturate(0.9);
}

.difference-card:hover .difference-card-bg img {
    transform: scale(1.08);
    filter: brightness(0.8) saturate(1.1);
}

.difference-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 7, 0.6) 60%, rgba(5, 5, 7, 0.95) 100%);
    z-index: 1;
}

/* Card Content */
.difference-card-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.difference-card-content-bottom {
    justify-content: flex-end;
}

.difference-card-content-center {
    justify-content: center;
    align-items: center;
}

/* Card Number */
.difference-card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}

/* Card Text */
.difference-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-cyan-400);
    display: block;
    margin-bottom: 8px;
}

.difference-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 8px;
}

.difference-card-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    max-width: 280px;
}

/* Card Icon */
.difference-card-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.difference-card-icon svg {
    width: 20px;
    height: 20px;
}

.difference-card:hover .difference-card-icon {
    opacity: 1;
    transform: translateY(0);
}

/* Card Badge */
.difference-card-badge {
    display: inline-flex;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}

.difference-card:hover .difference-card-badge {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Card Sizes */
.difference-card-main {
    grid-column: span 2;
    grid-row: span 2;
}

.difference-card-wide {
    grid-column: span 2;
}

.difference-card-tall {
    grid-row: span 2;
}

/* Stats */
.difference-stat {
    text-align: center;
    padding: 0 20px;
}

.difference-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.difference-stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.difference-stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Responsive */
@media (max-width: 1024px) {
    .difference-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    
    .difference-card-main {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .difference-card-tall {
        grid-row: span 1;
    }
    
    .difference-card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .difference-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
        gap: 16px;
    }
    
    .difference-card-main,
    .difference-card-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .difference-card-main {
        grid-row: span 2;
    }
    
    .difference-stat-number {
        font-size: 2rem;
    }
    
    .difference-orb {
        display: none;
    }
}

/* GLightbox Customization */
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.glightbox-clean .gslide-media {
    border-radius: 16px;
    overflow: hidden;
}

/* Animation for slide entrance */
@keyframes bentoSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bento-slide > * {
    animation: bentoSlideIn 0.6s ease-out forwards;
}

.bento-slide > *:nth-child(1) { animation-delay: 0.1s; }
.bento-slide > *:nth-child(2) { animation-delay: 0.2s; }
.bento-slide > *:nth-child(3) { animation-delay: 0.3s; }
.bento-slide > *:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   About Video Pattern Overlay
   ============================================ */

.about-video-pattern {
    background-image: radial-gradient(rgba(0, 0, 0, 0.5) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.65;
}

/* ============================================
   Quick Start Services Section
   Clean, Minimal Design (BeTheme Inspired)
   ============================================ */

.quick-start-section {
    background: var(--color-dark-950);
}

/* Service Selector Buttons - Compact Horizontal */
.service-buttons {
    position: relative;
}

.service-select-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    text-align: center;
    width: 100%;
}

.service-select-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: white;
}

.service-select-btn.active {
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.1), rgba(34, 211, 238, 0.06));
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.12);
    color: white;
}

.service-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    transition: all 0.3s var(--transition-smooth);
}

.service-select-btn.active .service-btn-icon {
    background: linear-gradient(135deg, var(--color-violet-500), var(--color-cyan-500));
    box-shadow: 0 4px 16px rgba(167, 139, 250, 0.25);
}

.service-select-btn:hover .service-btn-icon {
    background: rgba(255, 255, 255, 0.06);
}

.service-select-btn.active:hover .service-btn-icon {
    background: linear-gradient(135deg, var(--color-violet-500), var(--color-cyan-500));
}

.service-btn-text {
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.01em;
    transition: color 0.3s var(--transition-smooth);
    line-height: 1.2;
}

/* Service Content Area */
.quick-start-content {
    position: relative;
}

.service-detail {
    display: none;
}

.service-detail.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Service Info (Left Column) */
.service-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-info p {
    line-height: 1.6;
}

.service-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* Perfect For Tags Panel */
.service-tags-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.perfect-for-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
}

.perfect-for-tag:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .service-detail .grid {
        grid-template-columns: 1fr;
    }
    
    .service-tags-panel {
        order: -1;
        margin-bottom: 24px;
    }
}

/* ============================================
   ULTRA PREMIUM MOBILE SERVICES SECTION
   ============================================ */
@media (max-width: 768px) {
    /* Service Buttons Container - Horizontal Scroll Pills */
    .service-buttons {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px !important;
        padding: 6px 0 16px 0;
        margin: 0 -16px 20px -16px;
        padding-left: 16px;
        padding-right: 60px;
        position: relative;
    }
    
    .service-buttons::-webkit-scrollbar {
        display: none;
    }
    
    /* Scroll Fade Indicator - Right Edge */
    .service-buttons::after {
        content: '';
        position: fixed;
        right: 0;
        top: auto;
        width: 50px;
        height: 60px;
        background: linear-gradient(to left, var(--color-dark-950, #050507) 0%, transparent 100%);
        pointer-events: none;
        z-index: 10;
        display: none; /* Disable for now since we have padding-right */
    }
    
    .service-select-btn {
        flex: 0 0 auto;
        scroll-snap-align: center;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 12px 16px !important;
        border-radius: 40px !important;
        min-width: max-content;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .service-select-btn:active {
        transform: scale(0.97);
    }
    
    .service-select-btn.active {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.18)) !important;
        border-color: rgba(139, 92, 246, 0.5) !important;
        box-shadow: 
            0 4px 20px rgba(139, 92, 246, 0.25), 
            0 0 0 1px rgba(139, 92, 246, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    }
    
    .service-btn-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .service-select-btn.active .service-btn-icon {
        background: linear-gradient(135deg, var(--color-violet-500), var(--color-cyan-500)) !important;
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
    }
    
    .service-btn-icon svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .service-btn-text {
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
        white-space: nowrap;
        letter-spacing: 0.01em;
    }
    
    /* Service Content - Mobile Premium */
    .service-detail .grid {
        gap: 24px !important;
    }
    
    .service-info {
        text-align: center;
    }
    
    .service-info .flex.items-center {
        flex-direction: column !important;
        text-align: center;
    }
    
    .service-info .flex.items-center > div:last-child {
        text-align: center;
    }
    
    .service-info h3 {
        font-size: 1.375rem !important;
        letter-spacing: -0.01em;
    }
    
    .service-info p {
        font-size: 0.9375rem;
        line-height: 1.75;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .service-info .flex.flex-wrap,
    .service-info .flex.flex-col {
        justify-content: center !important;
    }
    
    .service-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 24px !important;
        font-size: 1rem !important;
        border-radius: 16px !important;
        font-weight: 600 !important;
        letter-spacing: 0.01em;
    }
    
    .service-cta-btn:active {
        transform: scale(0.98);
    }
    
    /* Perfect For Tags - Mobile Premium */
    .service-tags-panel {
        padding: 24px 20px !important;
        border-radius: 24px !important;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    
    .service-tags-panel .grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .perfect-for-tag {
        padding: 16px 18px !important;
        font-size: 0.9375rem !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, 0.025) !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        justify-content: flex-start;
        gap: 10px !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 500;
    }
    
    .perfect-for-tag:active {
        transform: scale(0.98);
        background: rgba(139, 92, 246, 0.12) !important;
        border-color: rgba(139, 92, 246, 0.35) !important;
    }
    
    /* Section Header Mobile */
    .service-buttons + .quick-start-content,
    .quick-start-content {
        padding: 0 !important;
    }
    
    /* Service Detail Animation */
    .service-detail.active {
        animation: serviceFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes serviceFadeIn {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ============================================
   Logo Slide Animation
   Re-appears from left to right every 20 seconds
   ============================================ */
.logo-slide-animate {
    animation: logoSlideIn 20s ease-in-out infinite;
}

@keyframes logoSlideIn {
    0%, 90% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
    93% {
        opacity: 0;
        transform: translateX(0);
        clip-path: inset(0 0 0 100%);
    }
    94% {
        opacity: 0;
        transform: translateX(-20px);
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
}

/* Pause animation on hover for better UX */
.logo-slide-animate:hover {
    animation-play-state: paused;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Ultra Premium Mobile-First Approach
   ============================================ */

/* ----------------------------------------
   Responsive Typography Scale
   ---------------------------------------- */
:root {
    /* Fluid typography scale */
    --text-xs: clamp(0.65rem, 0.6rem + 0.25vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-xl: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --text-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-3xl: clamp(1.5rem, 1.25rem + 1.25vw, 1.875rem);
    --text-4xl: clamp(1.75rem, 1.5rem + 1.5vw, 2.25rem);
    --text-5xl: clamp(2rem, 1.75rem + 2vw, 3rem);
    --text-6xl: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
    --text-7xl: clamp(3rem, 2.5rem + 3vw, 4.5rem);
    --text-8xl: clamp(3.5rem, 3rem + 3.5vw, 6rem);
    
    /* Responsive spacing */
    --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
    --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-md: clamp(0.75rem, 0.6rem + 0.75vw, 1rem);
    --space-lg: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --space-2xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --space-3xl: clamp(3rem, 2rem + 3vw, 4rem);
    --space-4xl: clamp(4rem, 3rem + 4vw, 6rem);
    
    /* Container padding */
    --container-padding: clamp(1rem, 3vw, 2rem);
}

/* ----------------------------------------
   Global Responsive Elements
   ---------------------------------------- */

/* Responsive section spacing */
section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

/* Container responsive padding */
.container,
[class*="max-w-"] {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Responsive headings */
h1, .h1 { font-size: var(--text-6xl); line-height: 1.1; }
h2, .h2 { font-size: var(--text-5xl); line-height: 1.15; }
h3, .h3 { font-size: var(--text-4xl); line-height: 1.2; }
h4, .h4 { font-size: var(--text-3xl); line-height: 1.25; }
h5, .h5 { font-size: var(--text-2xl); line-height: 1.3; }
h6, .h6 { font-size: var(--text-xl); line-height: 1.35; }

/* Responsive paragraphs */
p {
    font-size: var(--text-base);
    line-height: 1.7;
}

/* ----------------------------------------
   Mobile-Optimized Cards
   ---------------------------------------- */

/* Glass card responsive */
.glass-card {
    padding: var(--space-lg);
    border-radius: clamp(12px, 2vw, 24px);
}

/* Service cards on mobile */
@media (max-width: 768px) {
    .glass-card,
    .service-card,
    .portfolio-card,
    .tech-card,
    .value-card {
        padding: var(--space-md);
        border-radius: 16px;
    }
    
    /* Reduce card shadow on mobile for performance */
    .glass-card,
    [class*="shadow"] {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
}

/* ----------------------------------------
   Responsive Hero Section
   ---------------------------------------- */

.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 80px;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-3xl);
    }
    
    .hero-section h1 {
        font-size: var(--text-5xl);
    }
    
    .hero-content {
        text-align: center;
        padding: 0 var(--container-padding);
    }
    
    /* Hero buttons stack on mobile */
    .hero-section .flex.gap-4 {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .hero-section .btn-primary,
    .hero-section .btn-secondary,
    .hero-section a[class*="btn"] {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: var(--text-4xl);
    }
    
    .hero-section p {
        font-size: var(--text-base);
    }
}

/* ----------------------------------------
   Responsive Grid System
   ---------------------------------------- */

/* Auto-responsive grid */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--space-lg);
}

/* Card grids */
@media (max-width: 1024px) {
    .grid-cols-4,
    [class*="lg:grid-cols-4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .grid-cols-3,
    [class*="lg:grid-cols-3"],
    [class*="md:grid-cols-3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2,
    [class*="grid-cols"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Keep 2-col for small items */
    .grid-cols-2-mobile {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ----------------------------------------
   Touch-Friendly Interactions
   ---------------------------------------- */

/* Minimum touch target size (44px recommended by Apple) */
@media (max-width: 1024px) {
    button,
    a[class*="btn"],
    .btn,
    .nav-link,
    input[type="submit"],
    input[type="button"],
    [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Larger touch targets for primary actions */
    .btn-primary,
    .cta-btn,
    [class*="cta"] {
        min-height: 52px;
        padding: 14px 24px;
    }
    
    /* Better tap feedback */
    button:active,
    a:active,
    [role="button"]:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Remove hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .glass-card:hover,
    .service-card:hover,
    .portfolio-card:hover,
    a:hover {
        transform: none;
    }
    
    /* Add active states instead */
    .glass-card:active,
    .service-card:active,
    .portfolio-card:active {
        transform: scale(0.99);
        transition: transform 0.15s ease;
    }
}

/* ----------------------------------------
   Responsive Effects & Animations
   ---------------------------------------- */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Simplified animations on mobile for performance */
@media (max-width: 768px) {
    /* Reduce parallax intensity */
    [class*="parallax"],
    .parallax-element {
        transform: none !important;
    }
    
    /* Simpler hover effects */
    .glass-card,
    .service-card,
    .portfolio-card {
        transition: opacity 0.2s ease, box-shadow 0.2s ease;
    }
    
    /* Disable complex transforms */
    .glass-card:hover,
    .service-card:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
    }
}

/* Mobile-optimized gradient animations */
@media (max-width: 768px) {
    .animate-gradient {
        background-size: 200% auto;
        animation: gradient-shift 4s ease infinite;
    }
    
    @keyframes gradient-shift {
        0%, 100% { background-position: 0% center; }
        50% { background-position: 100% center; }
    }
}

/* ----------------------------------------
   Responsive Navigation
   ---------------------------------------- */

@media (max-width: 1023px) {
    #navbar {
        padding: 0 16px;
    }
    
    #navbar .h-20 {
        height: 64px;
    }
    
    /* Hide desktop nav items on mobile */
    .nav-link:not(.mobile-nav-item) {
        display: none;
    }
}

/* ----------------------------------------
   Responsive Forms & Inputs
   ---------------------------------------- */

@media (max-width: 768px) {
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        padding: 14px 16px;
        border-radius: 12px;
    }
    
    /* Stack form fields */
    form .grid-cols-2,
    form [class*="grid-cols"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Full-width form buttons */
    form button[type="submit"],
    form .btn-primary {
        width: 100%;
        padding: 16px;
    }
}

/* ----------------------------------------
   Responsive Images & Media
   ---------------------------------------- */

img,
video {
    max-width: 100%;
    height: auto;
}

/* Aspect ratio containers for responsive media */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

@media (max-width: 768px) {
    /* Optimize images on mobile */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
    
    /* Video backgrounds - keep visible on mobile */
    video[autoplay] {
        opacity: 1;
    }
    
    /* Ensure UGC/Creator videos display properly on mobile */
    .md\\:hidden video,
    [class*="md:hidden"] video {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* ----------------------------------------
   Mobile-Specific Utilities
   ---------------------------------------- */

@media (max-width: 768px) {
    /* Hide on mobile */
    .hide-mobile,
    .desktop-only {
        display: none !important;
    }
    
    /* Show only on mobile */
    .mobile-only {
        display: block !important;
    }
    
    /* Full width on mobile */
    .mobile-full {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Center on mobile */
    .mobile-center {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Stack on mobile */
    .mobile-stack {
        flex-direction: column !important;
    }
    
    /* Remove padding on mobile */
    .mobile-no-padding {
        padding: 0 !important;
    }
    
    /* Smaller gaps on mobile */
    .gap-8, .gap-10, .gap-12 {
        gap: 1.5rem !important;
    }
    
    .gap-16, .gap-20, .gap-24 {
        gap: 2rem !important;
    }
}

/* Tablet specific */
@media (min-width: 769px) and (max-width: 1023px) {
    .tablet-only {
        display: block !important;
    }
    
    /* 2 column grid on tablet */
    .tablet-2-col {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Desktop only */
@media (min-width: 1024px) {
    .mobile-only {
        display: none !important;
    }
}

/* ----------------------------------------
   Safe Area Support (Notched Phones)
   ---------------------------------------- */

@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    /* Bottom navigation safe area */
    .fixed-bottom,
    .sticky-bottom,
    footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    
    /* Full-screen modals */
    .mobile-menu-overlay,
    .modal-fullscreen {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* ----------------------------------------
   Premium Glass Effects (Mobile Optimized)
   ---------------------------------------- */

@media (max-width: 768px) {
    /* Reduce blur for better performance */
    .glass-card,
    [class*="backdrop-blur"],
    .mobile-menu-overlay {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* Simpler gradient overlays */
    .bg-gradient-radial {
        background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    }
}

/* ----------------------------------------
   Responsive Footer
   ---------------------------------------- */

@media (max-width: 768px) {
    footer {
        padding: var(--space-2xl) var(--container-padding);
    }
    
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl);
        text-align: center;
    }
    
    footer .flex {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Center social links */
    footer [class*="social"],
    footer .flex.gap-4 {
        justify-content: center;
    }
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */

@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    nav,
    footer,
    .no-print {
        display: none !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ----------------------------------------
   High DPI / Retina Display Optimizations
   ---------------------------------------- */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders on retina */
    .glass-card,
    .service-card,
    input,
    button {
        border-width: 0.5px;
    }
}

/* ----------------------------------------
   Dark Mode Support (for OS preference)
   ---------------------------------------- */

/* Site is already dark, but ensure system dark mode doesn't conflict */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* ----------------------------------------
   Landscape Mobile Optimizations
   ---------------------------------------- */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-section h1 {
        font-size: var(--text-4xl);
    }
    
    /* Reduce vertical spacing in landscape */
    section {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
}

/* ============================================
   ADDITIONAL PREMIUM COMPONENT RESPONSIVE STYLES
   ============================================ */

/* Stats Cards */
@media (max-width: 768px) {
    .stats-card,
    .stat-card,
    [class*="stat-"] {
        padding: 20px;
        border-radius: 16px;
    }
    
    .stats-card h3,
    .stat-value,
    [class*="stat-"] .text-4xl,
    [class*="stat-"] .text-3xl {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }
}

/* Feature Cards */
@media (max-width: 768px) {
    .feature-card,
    [class*="feature-"] {
        padding: 24px;
        border-radius: 16px;
    }
    
    .feature-card:hover,
    [class*="feature-"]:hover {
        transform: none;
    }
    
    .feature-card h3,
    [class*="feature-"] h3 {
        font-size: 1.125rem;
    }
    
    .feature-card p,
    [class*="feature-"] p {
        font-size: 0.9rem;
    }
}

/* Process Steps */
@media (max-width: 768px) {
    .process-step,
    [class*="process-"],
    [class*="step-"] {
        padding: 20px;
    }
    
    .process-step::before,
    [class*="process-"]::before {
        left: 16px !important;
    }
}

/* Testimonial Cards */
@media (max-width: 768px) {
    .testimonial-card,
    [class*="testimonial-"] {
        padding: 24px;
        border-radius: 16px;
    }
    
    .testimonial-card blockquote,
    [class*="testimonial-"] blockquote {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* CTA Sections */
@media (max-width: 768px) {
    .cta-section,
    [class*="cta-"],
    .cta-gradient {
        padding: 40px 24px;
        border-radius: 20px;
        text-align: center;
    }
    
    .cta-section h2,
    [class*="cta-"] h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .cta-section .flex,
    [class*="cta-"] .flex {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-section .btn,
    [class*="cta-"] .btn,
    [class*="cta-"] a {
        width: 100%;
        justify-content: center;
    }
}

/* Pricing Cards */
@media (max-width: 768px) {
    .pricing-card,
    [class*="pricing-"] {
        padding: 24px;
    }
    
    .pricing-card .price,
    [class*="pricing-"] .text-4xl {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* FAQ Sections */
@media (max-width: 768px) {
    .faq-item,
    [class*="faq-"],
    details {
        padding: 16px 20px;
        border-radius: 12px;
    }
    
    .faq-item h3,
    [class*="faq-"] h3,
    details summary {
        font-size: 1rem;
        padding-right: 32px;
    }
}

/* Badge and Tag Styles */
@media (max-width: 768px) {
    .badge,
    .tag,
    [class*="badge-"],
    [class*="tag-"],
    [class*="pill"] {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* Icon Containers */
@media (max-width: 768px) {
    .icon-container,
    [class*="icon-box"],
    .service-icon {
        width: 48px;
        height: 48px;
    }
    
    .icon-container svg,
    [class*="icon-box"] svg,
    .service-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Timeline Items */
@media (max-width: 768px) {
    .timeline-item,
    [class*="timeline-"] {
        padding-left: 32px;
    }
    
    .timeline-item::before,
    [class*="timeline-"]::before {
        left: 8px;
        width: 12px;
        height: 12px;
    }
}

/* Two Column Layouts */
@media (max-width: 768px) {
    .two-col-layout,
    .split-layout,
    [class*="col-2"],
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    .two-col-layout > *:first-child,
    .split-layout > *:first-child {
        order: 0;
    }
}

/* Image Containers */
@media (max-width: 768px) {
    .image-container,
    [class*="img-wrapper"],
    .project-image {
        height: auto;
        min-height: 200px;
        border-radius: 12px;
    }
}

/* Video Containers */
@media (max-width: 768px) {
    .video-container,
    [class*="video-wrapper"] {
        border-radius: 12px;
    }
    
    video {
        border-radius: 12px;
    }
}

/* Section Headers */
@media (max-width: 768px) {
    .section-header,
    [class*="section-title"] {
        margin-bottom: 32px;
        text-align: center;
    }
    
    .section-header h2,
    [class*="section-title"] h2 {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }
    
    .section-header p,
    [class*="section-title"] p {
        font-size: 0.9rem;
        max-width: 100%;
    }
}

/* Overflow Prevention */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    pre, code {
        max-width: 100%;
        overflow-x: auto;
        font-size: 12px;
    }
    
    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
}

/* Fix any fixed positioning issues */
@media (max-width: 768px) {
    .fixed-element,
    [class*="fixed"] {
        max-width: 100vw;
    }
}

/* ============================================
   MOBILE FIXES - Index Page
   ============================================ */

/* 1. Hide scroll indicator on mobile to avoid overlap with Free Consultation */
@media (max-width: 768px) {
    .hero-section .animate-bounce,
    #hero .animate-bounce {
        display: none !important;
    }
}

/* 2. Reduce spacing between service icons on mobile */
@media (max-width: 768px) {
    .hero-section .grid.grid-cols-2 {
        gap: 16px !important;
        margin-top: 32px !important;
        padding-top: 24px !important;
    }
    
    .hero-section .stat-item {
        padding: 8px;
    }
    
    .hero-section .stat-item svg {
        width: 32px !important;
        height: 32px !important;
    }
    
    .hero-section .stat-item span.text-sm {
        font-size: 0.75rem;
        margin-top: 4px;
    }
}

/* 3. Fix 24hr/Dallas/SEO section - remove weird square and align properly */
@media (max-width: 768px) {
    .difference-stat {
        padding: 8px 12px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .difference-stat-number {
        font-size: 1.5rem;
        line-height: 1.2;
        /* Fix gradient text rendering issues */
        -webkit-background-clip: text !important;
        background-clip: text !important;
        display: inline-block;
    }
    
    .difference-stat-label {
        font-size: 0.7rem;
        margin-top: 2px;
        white-space: nowrap;
    }
    
    /* Hide dividers on mobile for cleaner look */
    .difference-stat-divider {
        display: none !important;
    }
    
    /* Better flex layout for mobile */
    .inline-flex.flex-wrap.justify-center.gap-4 {
        gap: 8px !important;
    }
}

/* 4. Make Watch Video button same size as Prev/Next buttons */
@media (max-width: 768px) {
    .bento-action-row {
        display: flex;
        gap: 6px;
        height: 44px;
    }
    
    .bento-cta-btn,
    .bento-nav-btn {
        flex: 1 !important;
        padding: 0 10px;
        font-size: 0.6rem;
        height: 100%;
    }
    
    .bento-cta-btn svg {
        width: 10px;
        height: 10px;
        display: inline-block !important;
    }
}

@media (max-width: 480px) {
    .bento-action-row {
        height: 40px;
    }
    
    .bento-cta-btn,
    .bento-nav-btn {
        font-size: 0.55rem;
        padding: 0 8px;
        letter-spacing: 0;
    }
    
    .bento-cta-btn span,
    .bento-nav-btn span {
        white-space: nowrap;
    }
}

/* 5. Back to Top Button Styles */
#back-to-top {
    position: fixed;
    bottom: 100px; /* Below the chat FAB */
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(6, 182, 212, 0.9));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    z-index: 49;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

#back-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Desktop position */
@media (min-width: 1024px) {
    #back-to-top {
        bottom: 100px;
        right: 32px;
        width: 52px;
        height: 52px;
    }
}

/* Mobile - position below chat FAB */
@media (max-width: 1023px) {
    #back-to-top {
        bottom: 100px; /* Below the 64px chat FAB + 24px gap */
        right: 24px;
        width: 44px;
        height: 44px;
    }
    
    #back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   GLOBAL MOBILE OVERFLOW FIX
   Prevents horizontal scrolling on all pages
   ============================================ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    /* Contain all sections */
    section,
    header,
    footer,
    nav,
    main,
    article,
    aside,
    div {
        max-width: 100vw;
    }
    
    /* Fix elements that commonly cause overflow */
    .absolute,
    [class*="absolute"] {
        max-width: 100vw;
    }
    
    /* Contain floating/animated elements */
    [class*="animate-float"],
    [class*="blur-"],
    .bg-gradient-radial,
    [class*="rounded-full"][class*="bg-"] {
        overflow: hidden;
    }
    
    /* Ensure grids don't overflow */
    .grid {
        max-width: 100%;
    }
    
    /* Fix mega menu and nav overflow */
    .mega-menu,
    .mobile-menu-overlay,
    #mobile-menu {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Contain hero sections */
    .hero-section,
    [class*="min-h-screen"],
    [class*="min-h-[100vh]"] {
        overflow-x: hidden;
    }
    
    /* Fix any transform-based elements that might overflow */
    [class*="-translate-x"],
    [class*="translate-x"],
    [class*="-left-"],
    [class*="-right-"] {
        max-width: 100vw;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    html, body {
        overflow-x: hidden !important;
    }
    
    /* Hide decorative elements that might overflow */
    [class*="blur-[100px]"],
    [class*="blur-[120px]"],
    .animate-float,
    .animate-float-delayed {
        display: none !important;
    }
}

