/* home.css - Extracted from home.blade.php inline styles (LP-07) */
/* Reset and basic styles */
        html, body {
            margin: 0;
            padding: 0;
            overflow-x: hidden;
        }

        /* Modern Background Pattern */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%),
                url('/background.webp');
            background-size: 
                100% 100%,
                cover;
            background-position: 
                center,
                center;
            background-repeat: 
                no-repeat,
                no-repeat;
            background-attachment: fixed;
            z-index: -2;
            opacity: 0.8;
        }

        /* Content backdrop for readability - more transparent */
        .content-backdrop {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(8px);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            margin: 16px;
            padding: 24px;
        }

        /* Dark mode background adjustments */
        .dark body::before {
            background: 
                linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(31, 41, 55, 0.85) 100%),
                url('/background.webp');
            opacity: 0.9;
        }

        .dark .content-backdrop {
            background: rgba(17, 24, 39, 0.75);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        }

        /* Force dark mode text colors with higher specificity */
        .dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
            color: #ffffff !important;
        }

        .dark p, .dark span, .dark div {
            color: #e5e7eb !important;
        }

        .dark a {
            color: #ffffff !important;
        }

        /* Override for specific elements that should keep their dark mode classes */
        .dark .text-gray-900 {
            color: #ffffff !important;
        }

        .dark .text-gray-700 {
            color: #e5e7eb !important;
        }

        .dark .text-gray-600 {
            color: #d1d5db !important;
        }

        /* Hero section fixed height, no scroll */
        .hero-section {
            height: 100vh;
            overflow: hidden;
            position: relative;
        }

        /* Navigation positioned directly below hero - fixed when scrolling */
        #navigation-section {
            position: sticky;
            top: 0;
            z-index: 9999;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-top: 1px solid #e5e7eb;
            border-bottom: 1px solid #e5e7eb;
            box-shadow: 0 2px 4px rgba(0,0,0,0.15);
            transition: all 0.3s ease;
            width: 100%;
        }

        /* Enhanced shadow when scrolled */
        #navigation-section.scrolled {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(15px);
        }

        /* Ensure navigation stays above all content */
        #navigation-section {
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }

        /* Add padding-top when navbar becomes fixed to prevent content jumping */
        body.navbar-fixed {
            padding-top: 0;
        }

        body.navbar-fixed #navigation-section.scrolled {
            position: fixed !important;
        }

        /* Smooth scroll with navbar offset */
        html {
            scroll-padding-top: 80px;
        }

        /* Dark mode navbar */
        .dark #navigation-section {
            background: rgba(17, 24, 39, 0.95);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .dark #navigation-section.scrolled {
            background: rgba(17, 24, 39, 0.98);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Dark mode navigation improvements */
        .dark nav {
            background: rgba(17, 24, 39, 0.95) !important;
        }

        .dark .bg-white {
            background-color: rgb(17, 24, 39) !important;
        }

        /* Mobile responsive navbar */
        @media (max-width: 768px) {
            html {
                scroll-padding-top: 60px;
            }
            
            /* Smaller margins and padding on mobile */
            .content-backdrop {
                margin: 8px;
                padding: 16px;
                border-radius: 8px;
            }
        }


        /* Simple navigation styling */
        #navigation-section nav a {
            transition: all 0.3s ease;
        }

        #navigation-section nav a:hover {
            color: #059669;
        }

        /* Modern Scroll Animation System with CSS Custom Properties */
        .reveal-animated {
            --reveal-tx: 0px;
            --reveal-ty: 50px;
            --reveal-scale: 1;
            --hover-scale: 1;
            --reveal-opacity: 0;
            
            opacity: var(--reveal-opacity);
            transform: translate(var(--reveal-tx), var(--reveal-ty)) scale(calc(var(--reveal-scale) * var(--hover-scale)));
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform, opacity;
        }

        /* Revealed state */
        .reveal-animated.revealed {
            --reveal-ty: 0px;
            --reveal-tx: 0px;
            --reveal-scale: 1;
            --reveal-opacity: 1;
        }

        /* Animation variants */
        .reveal-up {
            --reveal-ty: 50px;
            --reveal-tx: 0px;
        }

        .reveal-left {
            --reveal-tx: -50px;
            --reveal-ty: 0px;
        }

        .reveal-right {
            --reveal-tx: 50px;
            --reveal-ty: 0px;
        }

        .reveal-scale {
            --reveal-tx: 0px;
            --reveal-ty: 0px;
            --reveal-scale: 0.8;
        }

        .reveal-fade {
            --reveal-tx: 0px;
            --reveal-ty: 0px;
            --reveal-scale: 1;
        }

        /* Staggered animations for grid items */
        .reveal-stagger {
            --reveal-ty: 30px;
            transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        /* Hover effects that work alongside reveal animations */
        .reveal-animated:hover {
            --hover-scale: 1.03;
        }

        .reveal-animated.hover-lift:hover {
            --hover-scale: 1.02;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        .reveal-animated.hover-scale:hover {
            --hover-scale: 1.05;
        }

        /* Fast responsive hover transitions for specific sections */
        .hover-fast {
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                       transform 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        .hover-fast:hover {
            --hover-scale: 1.06;
            transform: translate(var(--reveal-tx), var(--reveal-ty)) 
                      scale(calc(var(--reveal-scale) * var(--hover-scale)));
        }

        /* Extra fast hover for cards */
        .card-hover-fast {
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                       transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important,
                       box-shadow 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        }

        .card-hover-fast:hover {
            --hover-scale: 1.04;
            box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.06);
        }

        /* Icon hover effects inside cards */
        .card-hover-fast .icon-container {
            transition: all 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .card-hover-fast:hover .icon-container {
            transform: scale(1.1) rotate(2deg);
        }

        /* Text hover effects */
        .card-hover-fast .card-title {
            transition: color 0.1s ease-out;
        }

        .card-hover-fast:hover .card-title {
            color: #059669;
        }

        /* Ultra-responsive micro interactions */
        .micro-fast {
            transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1);
            will-change: transform;
        }

        .micro-fast:hover {
            transform: scale(1.02);
        }

        /* Instant feedback on touch/click */
        .card-hover-fast:active {
            --hover-scale: 0.98;
            transition: transform 0.05s ease-out;
        }

        /* Prevent layout shift during animations */
        .card-hover-fast {
            transform-origin: center center;
            backface-visibility: hidden;
        }

        /* Browser fallbacks for CSS custom properties */
        @supports not (--css-variable: 0) {
            .reveal-animated {
                opacity: 0;
                transform: translateY(50px);
                transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            }
            
            .reveal-animated.revealed {
                opacity: 1;
                transform: translateY(0);
            }
            
            .reveal-animated:hover {
                transform: translateY(0) scale(1.03);
            }
            
            .reveal-left {
                transform: translateX(-50px);
            }
            
            .reveal-right {
                transform: translateX(50px);
            }
            
            .reveal-scale {
                transform: scale(0.8);
            }
        }

        /* Performance optimizations */
        .reveal-animated {
            backface-visibility: hidden;
            perspective: 1000px;
        }

        /* Delay classes for staggered animations */
        .delay-100 { transition-delay: 0.1s; }
        .delay-200 { transition-delay: 0.2s; }
        .delay-300 { transition-delay: 0.3s; }
        .delay-400 { transition-delay: 0.4s; }
        .delay-500 { transition-delay: 0.5s; }
        .delay-600 { transition-delay: 0.6s; }
        .delay-700 { transition-delay: 0.7s; }
        .delay-800 { transition-delay: 0.8s; }
        .delay-900 { transition-delay: 0.9s; }

        /* Subtle parallax effect */
        .parallax-slow {
            transform: translateZ(0);
            will-change: transform;
        }

        /* Performance optimizations */
        .scroll-reveal,
        .scroll-reveal-left,
        .scroll-reveal-right,
        .scroll-reveal-scale,
        .scroll-reveal-fade,
        .scroll-reveal-stagger {
            will-change: opacity, transform;
        }

        /* Smooth page loading */
        body {
            opacity: 0;
            transition: opacity 0.3s ease-in;
        }

        body.loaded {
            opacity: 1;
        }