/* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
        }
        ::-webkit-scrollbar-track {
            background: #1a1a1a;
        }
        ::-webkit-scrollbar-thumb {
            background: #3a3a3a;
            border-radius: 5px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #e53e3e;
        }
        
        .glass-card {
            background: rgba(42, 42, 42, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .gradient-text {
            background: linear-gradient(135deg, #e53e3e 0%, #ff6b6b 50%, #e53e3e 100%);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradientShift 4s ease infinite;
            display: inline-block;
            position: relative;
            z-index: 1;
        }

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

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

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

        /* Animated Background Elements */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
        }

        .floating-shape {
            position: absolute;
            border-radius: 50%;
            opacity: 0.1;
            animation: floatShape 20s ease-in-out infinite;
        }

        @keyframes floatShape {
            0%, 100% {
                transform: translate(0, 0) scale(1);
            }
            25% {
                transform: translate(50px, -50px) scale(1.1);
            }
            50% {
                transform: translate(-30px, -100px) scale(0.9);
            }
            75% {
                transform: translate(-80px, -30px) scale(1.05);
            }
        }

        .gradient-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            animation: orbFloat 15s ease-in-out infinite;
        }

        @keyframes orbFloat {
            0%, 100% {
                transform: translate(0, 0) scale(1);
                opacity: 0.3;
            }
            33% {
                transform: translate(100px, 100px) scale(1.2);
                opacity: 0.4;
            }
            66% {
                transform: translate(-100px, 50px) scale(0.8);
                opacity: 0.2;
            }
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: #e53e3e;
            border-radius: 50%;
            opacity: 0.6;
            animation: particleFloat 10s linear infinite;
        }

        @keyframes particleFloat {
            0% {
                transform: translateY(100vh) translateX(0) scale(0);
                opacity: 0;
            }
            10% {
                opacity: 0.6;
            }
            90% {
                opacity: 0.6;
            }
            100% {
                transform: translateY(-100px) translateX(100px) scale(1);
                opacity: 0;
            }
        }

        /* Scroll Reveal Animation */
        .scroll-reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }

        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        /* Hero elements should be visible initially, then animate */
        #home .scroll-reveal {
            opacity: 0;
        }

        #home .scroll-reveal.revealed {
            opacity: 1;
        }

        /* Ensure clients section is visible - override scroll-reveal if needed */
        section .grid .scroll-reveal:not(.revealed) {
            opacity: 1;
            transform: translateY(0);
        }

        /* Ensure clients section header is visible */
        .space-section .text-center.scroll-reveal {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }

        /* Ensure carousel track width is calculated correctly - removed, set by JS */


        /* Ensure big-box-container is visible */
        .big-box-container {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }

        .big-box-container.scroll-reveal {
            opacity: 1 !important;
        }

        /* Fade In Up Animation for Hero */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Enhanced Text Readability */
        #home p {
            text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
            letter-spacing: 0.02em;
        }
        
        /* Ensure gradient text is always visible */
        #home h1 .gradient-text::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #ff6b6b 0%, #e53e3e 50%, #ff6b6b 100%);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            z-index: -1;
            opacity: 0.3;
            filter: blur(2px);
        }

        /* Pulse Animation */
        @keyframes pulse-glow {
            0%, 100% {
                box-shadow: 0 0 20px rgba(229, 62, 62, 0.3);
            }
            50% {
                box-shadow: 0 0 40px rgba(229, 62, 62, 0.6);
            }
        }

        .pulse-glow {
            animation: pulse-glow 3s ease-in-out infinite;
        }

        /* Big Box Container Animations */
        .big-box-container {
            position: relative;
            animation: boxFloat 8s ease-in-out infinite;
        }

        @keyframes boxFloat {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }

        /* Animated Glow for Big Box */
        .big-box-glow {
            position: absolute;
            inset: -2px;
            border-radius: 1.5rem;
            background: linear-gradient(45deg, #e53e3e, #9333ea, #2563eb, #e53e3e);
            background-size: 400% 400%;
            opacity: 0;
            filter: blur(20px);
            z-index: -1;
            animation: glowRotate 6s ease infinite;
            transition: opacity 0.5s ease;
        }

        .big-box-container:hover .big-box-glow {
            opacity: 0.6;
        }

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

        /* Card Scale Animation on Hover */
        .big-box-container .glass-card:hover {
            transform: scale(1.05) translateY(-5px);
        }

        /* Staggered Animation for Client Cards */
        .client-card-animate {
            animation: cardSlideIn 0.6s ease-out forwards;
            opacity: 1;
        }

        /* Ensure client cards are visible */
        .client-card-animate,
        .big-box-container .scroll-reveal,
        .big-box-container .grid .scroll-reveal {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }
        
        /* Big box container and its children should be visible */
        .big-box-container,
        .big-box-container > * {
            opacity: 1 !important;
        }

        /* Space Theme Animations */
        .space-section {
            position: relative;
            perspective: 1000px;
        }

        /* Stars Background */
        .stars-background {
            background-image: 
                radial-gradient(2px 2px at 20% 30%, white, transparent),
                radial-gradient(2px 2px at 60% 70%, white, transparent),
                radial-gradient(1px 1px at 50% 50%, white, transparent),
                radial-gradient(1px 1px at 80% 10%, white, transparent),
                radial-gradient(2px 2px at 90% 40%, white, transparent),
                radial-gradient(1px 1px at 33% 60%, white, transparent),
                radial-gradient(2px 2px at 10% 80%, white, transparent);
            background-size: 200% 200%, 300% 300%, 250% 250%, 400% 400%, 350% 350%, 280% 280%, 200% 200%;
            animation: starMove 30s linear infinite;
            opacity: 0.5;
        }

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

        /* Moving Stars */
        .moving-stars::before,
        .moving-stars::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(1px 1px at 25% 25%, white, transparent),
                radial-gradient(1px 1px at 75% 75%, white, transparent);
            background-size: 200% 200%;
            animation: starTwinkle 8s ease-in-out infinite;
            opacity: 0.6;
        }

        .moving-stars::after {
            animation-delay: 4s;
            opacity: 0.4;
        }

        @keyframes starTwinkle {
            0%, 100% {
                opacity: 0.4;
                transform: translateY(0);
            }
            50% {
                opacity: 0.8;
                transform: translateY(-20px);
            }
        }

        /* Space Planet Float */
        @keyframes spaceFloat {
            0%, 100% {
                transform: translate(0, 0) rotate(0deg) scale(1);
            }
            25% {
                transform: translate(30px, -40px) rotate(90deg) scale(1.1);
            }
            50% {
                transform: translate(-20px, -80px) rotate(180deg) scale(0.9);
            }
            75% {
                transform: translate(-50px, -30px) rotate(270deg) scale(1.05);
            }
        }

        /* 3D Floating Cards */
        .space-section .glass-card {
            transform-style: preserve-3d;
            transition: transform 0.3s ease;
        }

        .space-section .group:hover .glass-card {
            transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.05);
        }

        /* Parallax Effect for Client Cards */
        .space-section .group {
            transition: transform 0.5s ease;
            will-change: transform;
        }

        .space-section .group:hover {
            transform: translateZ(20px);
        }

        /* Floating Particles Around Cards */
        .space-section .group::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 50% 50%, rgba(229, 62, 62, 0.3) 0%, transparent 70%);
            border-radius: 1rem;
            opacity: 0;
            animation: particleGlow 4s ease-in-out infinite;
            z-index: -1;
        }

        .space-section .group:hover::before {
            opacity: 1;
        }

        @keyframes particleGlow {
            0%, 100% {
                transform: scale(1);
                opacity: 0;
            }
            50% {
                transform: scale(1.5);
                opacity: 0.5;
            }
        }

        /* Carousel Animations - Flying in Space */
        .carousel-slide .client-float-space {
            animation: floatInSpace 6s ease-in-out infinite;
            transform: translateY(0) translateX(0) rotate(0deg) !important;
        }

        @keyframes floatInSpace {
            0%, 100% {
                transform: translateY(0) translateX(0) rotate(0deg);
            }
            25% {
                transform: translateY(-20px) translateX(10px) rotate(2deg);
            }
            50% {
                transform: translateY(-40px) translateX(-10px) rotate(-2deg);
            }
            75% {
                transform: translateY(-20px) translateX(10px) rotate(2deg);
            }
        }

        /* Enhanced Floating Logo Animation */
        .floating-logo {
            animation: logoFloat 4s ease-in-out infinite;
            filter: drop-shadow(0 10px 30px rgba(229, 62, 62, 0.3));
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .carousel-slide:hover .floating-logo {
            filter: drop-shadow(0 15px 40px rgba(229, 62, 62, 0.5));
            animation-duration: 3s;
        }

        @keyframes logoFloat {
            0%, 100% {
                transform: translateY(0) scale(1) rotate(0deg);
            }
            25% {
                transform: translateY(-10px) scale(1.05) rotate(2deg);
            }
            50% {
                transform: translateY(-20px) scale(1.08) rotate(0deg);
            }
            75% {
                transform: translateY(-10px) scale(1.05) rotate(-2deg);
            }
        }

        /* Rotating Arrows Animation */
        .rotate-animation-arrows {
            animation: rotateArrows 8s linear infinite;
        }

        .rotate-animation-arrows-reverse {
            animation: rotateArrowsReverse 8s linear infinite;
        }

        @keyframes rotateArrows {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes rotateArrowsReverse {
            0% {
                transform: rotate(360deg);
            }
            100% {
                transform: rotate(0deg);
            }
        }

        /* Enhanced Carousel Slide */
        .carousel-slide {
            opacity: 1;
            transform: scale(1);
            transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
        }

        .carousel-slide:hover {
            transform: scale(1.02);
        }

        /* Client Card Hover Effects */
        .carousel-slide .relative.z-10 {
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .carousel-slide:hover .relative.z-10 {
            transform: translateY(-10px);
        }

        /* Carousel Track Container */
        #clients-carousel-track {
            display: flex !important;
            height: 100% !important;
            position: relative !important;
            will-change: transform;
            align-items: center !important;
            overflow: visible !important;
        }

        #clients-carousel-track .carousel-slide {
            min-width: 100% !important;
            width: 100% !important;
            flex-shrink: 0 !important;
            flex-basis: 100% !important;
            opacity: 1 !important;
            visibility: visible !important;
            display: flex !important;
            height: 100% !important;
            align-items: center !important;
            justify-content: center !important;
        }

        /* Ensure carousel slide content is visible */
        .carousel-slide .client-float-space {
            width: 100% !important;
            height: 100% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            opacity: 1 !important;
            visibility: visible !important;
            position: relative !important;
            min-width: 100% !important;
            min-height: 100% !important;
        }

        .carousel-slide img {
            opacity: 1 !important;
            visibility: visible !important;
            display: block !important;
            position: relative !important;
            z-index: 10 !important;
            max-width: 100% !important;
            height: auto !important;
            min-height: 100px !important;
        }

        .carousel-slide .relative.z-10 {
            opacity: 1 !important;
            visibility: visible !important;
            display: flex !important;
            position: relative !important;
            z-index: 10 !important;
        }

        /* Enhanced Carousel Indicator */
        .carousel-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.25);
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            cursor: pointer;
            border: 2px solid transparent;
            position: relative;
        }

        .carousel-indicator:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: scale(1.2);
        }

        .carousel-indicator.active {
            width: 36px;
            border-radius: 6px;
            background: linear-gradient(135deg, rgba(229, 62, 62, 0.9), rgba(255, 107, 107, 0.9));
            box-shadow: 0 0 15px rgba(229, 62, 62, 0.6);
            border-color: rgba(229, 62, 62, 0.5);
        }

        .carousel-indicator.active::before {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 6px;
            background: linear-gradient(135deg, rgba(229, 62, 62, 0.3), rgba(255, 107, 107, 0.3));
            filter: blur(8px);
            z-index: -1;
            animation: pulseGlow 2s ease-in-out infinite;
        }

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

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

        /* Hero Text Optimization */
        #home h1 {
            text-shadow: 0 2px 20px rgba(229, 62, 62, 0.3);
            line-height: 1.2;
        }
        
        #home h1 span.gradient-text {
            background: linear-gradient(135deg, #ff6b6b 0%, #e53e3e 50%, #ff6b6b 100%);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradientShift 3s ease infinite;
            position: relative;
            z-index: 2;
            filter: drop-shadow(0 0 10px rgba(229, 62, 62, 0.5));
        }

        /* Bounce Slow */
        .animate-bounce-slow {
            animation: bounceSlow 3s ease-in-out infinite;
        }

        @keyframes bounceSlow {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }
        
        /* FAQ Accordion Transition */
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }
        .faq-item.active .faq-answer {
            max-height: 200px; /* Adjust based on content */
            transition: max-height 0.5s ease-in;
        }
        .faq-icon {
            transition: transform 0.3s ease;
        }
        .faq-item.active .faq-icon {
            transform: rotate(180deg);
        }

        /* --- Magic Animation Styles --- */
        
        /* Base State for Cards */
        .magic-step {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .magic-step.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Beams */
        .magic-beam {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            height: 4px;
            background: linear-gradient(90deg, transparent, #e53e3e, #ff6b6b, #e53e3e, transparent);
            background-size: 200% 100%;
            width: 0%;
            opacity: 0;
            z-index: 5;
            border-radius: 4px;
            box-shadow: 0 0 15px #e53e3e, 0 0 30px #e53e3e;
            transition: width 1s ease-out, opacity 0.3s ease;
        }
        
        .magic-beam.active {
            width: 100%;
            opacity: 1;
            animation: beamFlow 1s linear infinite;
        }

        @keyframes beamFlow {
            0% { background-position: 100% 0; }
            100% { background-position: -100% 0; }
        }

        /* Gear Animation */
        .gear-container.active .gear-main {
            animation: spinUp 1.5s cubic-bezier(0.2, 0, 0.3, 1) forwards, spinConst 4s linear infinite 1.5s;
        }

        @keyframes spinUp {
            0% { transform: rotate(0deg) scale(1); }
            60% { transform: rotate(360deg) scale(1.1); filter: drop-shadow(0 0 20px #e53e3e); }
            100% { transform: rotate(720deg) scale(1); }
        }
        @keyframes spinConst {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Particles Canvas */
        #magic-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        /* Enhanced Responsive Design */
        @media (max-width: 1024px) {
            .max-w-7xl {
                padding-left: 1rem;
                padding-right: 1rem;
            }
        }

        @media (max-width: 768px) {
            /* Mobile-specific improvements */
            h1, h2, h3 {
                word-wrap: break-word;
                overflow-wrap: break-word;
            }

            /* Better spacing for mobile sections */
            section {
                padding-top: 2rem;
                padding-bottom: 2rem;
            }

            /* Improve button sizes on mobile */
            button, a.btn, [class*="btn-"] {
                min-height: 44px;
                min-width: 44px;
                font-size: 16px;
            }

            /* Better form inputs on mobile */
            input, textarea, select {
                font-size: 16px !important; /* Prevents zoom on iOS */
            }

            /* Improve grid layouts on mobile */
            .grid-cols-3 {
                grid-template-columns: 1fr;
            }

            .grid-cols-4 {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 640px) {
            /* Extra small screens */
            .text-7xl {
                font-size: 2.5rem;
            }

            .text-6xl {
                font-size: 2rem;
            }

            .text-5xl {
                font-size: 1.75rem;
            }

            .text-4xl {
                font-size: 1.5rem;
            }

            .px-8 {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            .py-4 {
                padding-top: 0.75rem;
                padding-bottom: 0.75rem;
            }

            .gap-8 {
                gap: 1.5rem;
            }

            .grid-cols-2 {
                grid-template-columns: 1fr;
            }

            /* Better mobile app showcase */
            .w-\[300px\] {
                width: 250px;
            }

            .h-\[600px\] {
                height: 500px;
            }
        }

        /* Touch-friendly adjustments */
        @media (hover: none) and (pointer: coarse) {
            a, button {
                min-height: 44px;
                min-width: 44px;
            }

            .chart-container {
                touch-action: pan-x pan-y;
            }
        }

        /* Video Modal Styles - Enhanced */
        .video-modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .video-modal.active {
            display: flex;
        }

        .video-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        .video-modal-content {
            position: relative;
            width: 90%;
            max-width: 1000px;
            z-index: 10;
            animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .video-modal-wrapper {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
            height: 0;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 25px 80px rgba(229, 62, 62, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
            background: #000;
        }

        .video-modal iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 20px;
        }

        .video-modal-close {
            position: absolute;
            top: -50px;
            right: 0;
            color: white;
            font-size: 24px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            z-index: 20;
        }

        .video-modal-close:hover {
            background: rgba(229, 62, 62, 0.9);
            border-color: rgba(229, 62, 62, 0.8);
            transform: rotate(90deg) scale(1.1);
            box-shadow: 0 0 20px rgba(229, 62, 62, 0.6);
        }

        .video-modal-close:active {
            transform: rotate(90deg) scale(0.95);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

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

        @media (max-width: 768px) {
            .video-modal-content {
                width: 95%;
            }

            .video-modal-wrapper {
                border-radius: 16px;
            }

            .video-modal-close {
                top: -45px;
                right: -5px;
                width: 44px;
                height: 44px;
                font-size: 20px;
            }
        }

        @media (max-width: 480px) {
            .video-modal-content {
                width: 98%;
            }

            .video-modal-close {
                top: -40px;
                width: 40px;
                height: 40px;
                font-size: 18px;
            }
        }

        /* Page Loader - Pro Tech Style */
        .page-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, #1f1f1f 0%, #0a0a0a 100%);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 1;
            transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
            transform-origin: center;
        }

        .page-loader.hidden {
            opacity: 0;
            visibility: hidden;
            transform: scale(1.1);
            filter: blur(10px);
        }

        .loader-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 10;
        }

        .loader-circle-container {
            position: relative;
            width: 160px;
            height: 160px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 40px;
        }

        .loader-circle-outer {
            position: absolute;
            inset: 0;
            border: 1px dashed rgba(229, 62, 62, 0.3);
            border-radius: 50%;
            animation: rotate 10s linear infinite;
        }

        .loader-circle-inner {
            position: absolute;
            inset: 10px;
            border: 2px solid transparent;
            border-top-color: #e53e3e;
            border-bottom-color: #e53e3e;
            border-radius: 50%;
            animation: rotate 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
            box-shadow: 0 0 15px rgba(229, 62, 62, 0.2);
        }

        .loader-logo-wrapper {
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
            z-index: 5;
            animation: pulse 2s ease-in-out infinite;
        }

        .loader-logo {
            width: 50px;
            height: auto;
            filter: drop-shadow(0 0 5px rgba(229, 62, 62, 0.5));
        }

        .loader-text-wrapper {
            text-align: center;
            margin-bottom: 30px;
        }

        .loader-brand {
            font-family: 'Tajawal', sans-serif;
            font-size: 24px;
            font-weight: 800;
            letter-spacing: 4px;
            color: #fff;
            margin-bottom: 8px;
            text-transform: uppercase;
            text-shadow: 0 0 10px rgba(229, 62, 62, 0.5);
        }

        .loader-status {
            font-family: monospace;
            color: #888;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .status-dots {
            animation: blink 1.5s infinite both;
        }

        .loader-progress-wrapper {
            width: 240px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .loader-progress-track {
            width: 100%;
            height: 2px;
            background: rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            border-radius: 2px;
        }

        .loader-progress-bar {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 0%;
            background: #e53e3e;
            box-shadow: 0 0 10px #e53e3e, 0 0 20px #e53e3e;
            transition: width 0.1s linear;
        }

        .loader-percentage {
            font-family: monospace;
            color: #e53e3e;
            font-size: 14px;
            font-weight: bold;
        }

        .loader-bg-effect {
            position: absolute;
            inset: 0;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
            pointer-events: none;
            z-index: 1;
        }

        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); }
            50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(229, 62, 62, 0.3); }
        }

        @keyframes blink {
            0% { opacity: 0.2; }
            20% { opacity: 1; }
            100% { opacity: 0.2; }
        }

        /* Fade-in animation for page content */
        .page-content {
            opacity: 0;
            animation: fadeInPage 0.8s ease-in forwards;
        }

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