/* Mantravi Website - Main Stylesheet */

/* Import Tailwind CSS */
@import url('https://cdn.tailwindcss.com');

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Home Page Specific Styles */

/* Parallax Effects */
.parallax-bg {
    transform: translateY(0);
    will-change: transform;
}

.parallax-services {
    transform: translateY(0);
    will-change: transform;
}

/* =============================================== */
/* ============== STRATEGIC UX PARALLAX ============== */
/* =============================================== */

/* Smooth scrolling for better navigation */
html {
    scroll-behavior: smooth;
}

/* Hero section parallax - creates depth and draws attention */
.hero-pattern {
    transform: translateZ(0);
    will-change: transform;
}

/* Background elements - subtle movement for visual interest */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* Service cards - only subtle hover for feedback */
.card-hover:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease-out;
}

/* Section transitions - smooth but not distracting */
section {
    transition: opacity 0.3s ease-out;
}

/* =============================================== */
/* ============== SIMPLE DARK NAVY THEME ============== */
/* =============================================== */

/* Consistent dark navy background for all sections */
.section-dark-navy {
    background-color: #050a30;
}

/* Glow Effects */
.glow-effect {
    box-shadow: 0 0 20px rgba(78, 228, 255, 0.3);
}

.text-glow {
    text-shadow: 0 0 10px rgba(78, 228, 255, 0.5);
}

/* Background Patterns */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(78, 228, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(78, 228, 255, 0.05) 0%, transparent 50%);
}

.services-pattern {
    background-image: 
        linear-gradient(45deg, rgba(78, 228, 255, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(78, 228, 255, 0.03) 25%, transparent 25%);
    background-size: 60px 60px;
}

/* ========== PREMIUM SMOOTH SCROLLING ========== */

/* Clean Smooth Scrolling - No Conflicts */
html {
    scroll-behavior: auto; /* Disable native smooth scroll to prevent conflicts */
    scroll-padding-top: 80px; /* Account for fixed headers */
}

/* Disable native smooth scroll on all elements */
* {
    scroll-behavior: auto;
}

/* Disabled to prevent conflicts with clean smooth scrolling */
.smooth-scroll {
    scroll-behavior: auto;
}

/* Premium scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4EE4FF, #00BFFF);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00BFFF, #4EE4FF);
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #4EE4FF, #00BFFF);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Scroll direction indicators */
.scrolling-down .header {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.scrolling-up .header {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Momentum scrolling for iOS */
body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Section snap points */
section, .section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

/* Premium scroll animations */
.animate-on-scroll {
    opacity: 1; /* Start visible */
    transform: translateY(0); /* Start in position */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.fully-visible {
    transform: scale(1.02);
}

/* Staggered animations */
.animate-stagger > * {
    opacity: 1; /* Start visible */
    transform: translateY(0); /* Start in position */
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-stagger.in-view > * {
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger.in-view > *:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger.in-view > *:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger.in-view > *:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger.in-view > *:nth-child(4) { transition-delay: 0.4s; }
.animate-stagger.in-view > *:nth-child(5) { transition-delay: 0.5s; }
.animate-stagger.in-view > *:nth-child(6) { transition-delay: 0.6s; }

/* Smooth scroll link styling */
.smooth-scroll-link {
    transition: all 0.3s ease;
}

.smooth-scroll-link:hover {
    transform: translateY(-2px);
}

/* Ensure content is always visible */
section, .section {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fallback for any hidden content */
* {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(78, 228, 255, 0.2);
}

/* Video Background Styles */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 10, 48, 0.7) 0%, rgba(5, 10, 48, 0.4) 50%, rgba(78, 228, 255, 0.1) 100%);
    z-index: 1;
}

/* Enhanced hero content styling */
.hero-content {
    position: relative;
    z-index: 20;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Enhanced text visibility */
.hero-title {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* Enhanced button visibility */
.hero-button {
    backdrop-filter: blur(10px);
    background: rgba(78, 228, 255, 0.1);
    border: 2px solid rgba(78, 228, 255, 0.8);
    box-shadow: 0 8px 32px rgba(78, 228, 255, 0.3), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-button:hover {
    background: rgba(78, 228, 255, 0.2);
    box-shadow: 0 12px 40px rgba(78, 228, 255, 0.4), 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Ensure video is visible */
video {
    opacity: 1 !important;
    display: block !important;
    z-index: 1;
}

/* Fallback background when video doesn't work */
.hero-fallback {
    background: linear-gradient(135deg, #050a30 0%, #1a1a2e 50%, #0f1419 100%);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(78, 228, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(78, 228, 255, 0.05) 0%, transparent 50%);
}

/* Base Styles */
* {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #050a30;
    color: #FFFFFF;
    line-height: 1.6;
}

/* Logo Styles */
.mantravi-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: white;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.mandala-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #8B5CF6, #EC4899, #3B82F6, #10B981);
    border-radius: 50%;
    position: relative;
    margin-left: 2px;
}

.mandala-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #A855F7, #F472B6, #60A5FA, #34D399);
    border-radius: 50%;
    border: 1px solid #D97706;
}

.mandala-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #D97706;
    border-radius: 50%;
}

/* Parallax Effects */
.parallax-bg {
    transform: translateY(0);
    will-change: transform;
}

.parallax-services {
    transform: translateY(0);
    will-change: transform;
}

/* Glow Effects */
.glow-effect {
    box-shadow: 0 0 20px rgba(78, 228, 255, 0.3);
}

.text-glow {
    text-shadow: 0 0 10px rgba(78, 228, 255, 0.5);
}

/* Background Patterns */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(78, 228, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(78, 228, 255, 0.05) 0%, transparent 50%);
}

.services-pattern {
    background-image: 
        linear-gradient(45deg, rgba(78, 228, 255, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(78, 228, 255, 0.03) 25%, transparent 25%);
    background-size: 60px 60px;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(78, 228, 255, 0.2);
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4EE4FF;
    transition: width 0.3s ease;
}

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

/* Button Styles */
.btn-primary {
    background-color: #4EE4FF;
    color: #050a30;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: rgba(78, 228, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 228, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #4EE4FF;
    padding: 12px 24px;
    border: 2px solid #4EE4FF;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #4EE4FF;
    color: #050a30;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 228, 255, 0.3);
}

/* Form Styles */
.form-input {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4EE4FF;
    box-shadow: 0 0 0 3px rgba(78, 228, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Section Spacing */
.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.section-padding-lg {
    padding: 120px 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

/* Typography */
.heading-1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.heading-2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.heading-3 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.text-large {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ========== PROFESSIONAL DESKTOP ANIMATIONS ========== */

/* Professional fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes professionalGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(78, 228, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(78, 228, 255, 0.4);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(78, 228, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(78, 228, 255, 0.6);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

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

.animate-professional-float {
    animation: professionalFloat 4s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-professional-glow {
    animation: professionalGlow 3s ease-in-out infinite;
}

/* ========== DESKTOP PROFESSIONAL STYLES ========== */

/* Desktop Service Cards */
@media (min-width: 1024px) {
    .desktop-service-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(0);
    }
    
    .desktop-service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(78, 228, 255, 0.15);
    }
    
    .desktop-service-card .service-icon {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .desktop-service-card:hover .service-icon {
        transform: scale(1.1) rotate(5deg);
    }
    
    .desktop-service-card .service-link {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .desktop-service-card:hover .service-link {
        transform: translateX(4px);
    }
}

/* Desktop Hero Animations */
@media (min-width: 1024px) {
    .hero-stats {
        animation: fadeInUp 0.8s ease-out;
        animation-delay: 1s;
        animation-fill-mode: both;
    }
    
    .hero-buttons {
        animation: fadeInUp 0.8s ease-out;
        animation-delay: 1.2s;
        animation-fill-mode: both;
    }
}

/* Desktop Professional Hover Effects */
@media (min-width: 1024px) {
    .professional-hover {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .professional-hover:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(78, 228, 255, 0.1);
    }
}

/* ========== MANTRAVI ADVANTAGE SECTION - CREATIVE DARK PREMIUM DESIGN ========== */

/* Creative floating animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

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

/* Creative line flow animations */
@keyframes line-flow {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

@keyframes line-flow-reverse {
    0% { transform: translateX(100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
}

/* Creative grid drift animation */
@keyframes grid-drift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -5px); }
    50% { transform: translate(-5px, 10px); }
    75% { transform: translate(5px, -10px); }
}

/* Creative corner glow animations */
@keyframes corner-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes corner-glow-reverse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

/* Creative icon glow animation */
@keyframes icon-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(78, 228, 255, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(78, 228, 255, 0.2); }
}

/* Creative line glow animation */
@keyframes line-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Creative bullet glow animation */
@keyframes bullet-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(78, 228, 255, 0.4); }
    50% { box-shadow: 0 0 8px 2px rgba(78, 228, 255, 0.6); }
}

/* Creative floating mini animation */
@keyframes float-mini {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

/* Creative ping slow animation */
@keyframes ping-slow {
    0% { transform: scale(1); opacity: 1; }
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* Creative pulse slow animation */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* World-Class Premium Text Animations */
@keyframes premium-reveal-1 {
    0% { 
        opacity: 0; 
        transform: translateY(40px) scale(0.9); 
    }
    60% { 
        opacity: 0.8; 
        transform: translateY(10px) scale(0.98); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes premium-reveal-2 {
    0% { 
        opacity: 0; 
        transform: translateY(40px) scale(0.9); 
    }
    60% { 
        opacity: 0.8; 
        transform: translateY(10px) scale(0.98); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes premium-accent {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.8) rotateX(15deg); 
    }
    50% { 
        opacity: 0.9; 
        transform: translateY(5px) scale(1.05) rotateX(0deg); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotateX(0deg); 
    }
}


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

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

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 3s ease infinite;
}

.animate-line-flow {
    animation: line-flow 4s ease-in-out infinite;
}

.animate-line-flow-reverse {
    animation: line-flow-reverse 5s ease-in-out infinite;
}

.animate-grid-drift {
    animation: grid-drift 20s ease-in-out infinite;
}

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

.animate-corner-glow-reverse {
    animation: corner-glow-reverse 8s ease-in-out infinite;
}

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

.animate-line-glow {
    animation: line-glow 2s ease-in-out infinite;
}

.animate-bullet-glow {
    animation: bullet-glow 2s ease-in-out infinite;
}

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

.animate-ping-slow {
    animation: ping-slow 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* World-Class Premium Text Styles */
.premium-text-container {
    position: relative;
    overflow: visible;
    line-height: 1.1;
    padding-bottom: 0.2em;
}

.premium-text-line-1 {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.premium-text-line-2 {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.premium-text-part {
    display: inline-block;
    margin-right: 0.1em;
}

.premium-text-accent {
    display: inline-block;
    color: #4EE4FF;
    opacity: 0;
    transform: translateY(30px) scale(0.8) rotateX(15deg);
    margin: 0 0.1em;
    position: relative;
    z-index: 2;
    transition: all 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade-in-up animation for advantage cards */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium header animation - single cohesive reveal */
.premium-header-visible .premium-text-line-1 {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.premium-header-visible .premium-text-line-2 {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.3s;
}

.premium-header-visible .premium-text-accent {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    transition-delay: 0.5s;
}

/* Staggered animation delays for sophisticated reveal */
.stagger-1 { animation-delay: 0ms; }
.stagger-2 { animation-delay: 150ms; }
.stagger-3 { animation-delay: 300ms; }
.stagger-4 { animation-delay: 450ms; }

/* Advanced card interactions - desktop perfect */
.advantage-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.advantage-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(78, 228, 255, 0.25);
}

/* Ensure cards reset properly when not hovered */
.advantage-card:not(:hover) {
    transform: translateY(0) scale(1);
    box-shadow: none;
}

/* Simple fix for fourth card stuck hover state */
.advantage-card:nth-child(4):not(:hover) {
    transform: translateY(0) scale(1) !important;
    box-shadow: none !important;
}

/* Sophisticated progress bar animation */
.advantage-card .group-hover\:scale-x-100 {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon rotation and scale effects - desktop perfect */
.advantage-card .group-hover\:rotate-6 {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card .group-hover\:scale-110 {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating particles animation */
.advantage-card .animate-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.advantage-card .animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Interactive feature list animations */
.advantage-card .group-hover\:item\:scale-150 {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.advantage-card:focus-within {
    outline: 2px solid #4EE4FF;
    outline-offset: 4px;
    border-radius: 1rem;
}

/* Sophisticated glass morphism effects */
.advantage-card .backdrop-blur-2xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Premium hover effects */
.advantage-card:hover .border-white\/10 {
    border-color: rgba(78, 228, 255, 0.4);
}

.advantage-card:hover .text-white {
    color: #4EE4FF;
}

/* Mobile responsiveness for advantage section */
@media (max-width: 768px) {
    .fade-in-up {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Enable animations on mobile with reduced complexity */
    .animate-float-slow,
    .animate-float-reverse {
        animation-duration: 8s;
    }
    
    .animate-gradient-x {
        animation-duration: 4s;
    }
    
    /* Ensure touch targets are accessible */
    .advantage-card {
        min-height: 44px;
        position: relative;
    }
    
    /* Optimize blur effects on mobile */
    .backdrop-blur-2xl {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    
    /* Enable line glow animations on mobile */
    .animate-line-glow {
        animation: line-glow 3s ease-in-out infinite;
    }
    
    /* Optimize premium text animations for mobile */
    .premium-text-line-1,
    .premium-text-line-2 {
        animation-duration: 1s;
        transform: translateY(20px) scale(0.95);
    }
    
    .premium-text-accent {
        animation-duration: 1.2s;
        transform: translateY(15px) scale(0.9) rotateX(8deg);
    }
    
    .premium-text-container {
        line-height: 1.2;
        padding-bottom: 0.1em;
    }
    
    /* Mobile-specific text size fixes */
    .premium-text-line-1,
    .premium-text-line-2 {
        font-size: 1.875rem; /* text-3xl */
        line-height: 1.1;
    }
    
    /* Reduce card spacing on mobile */
    .advantage-card {
        margin-bottom: 1rem;
    }
    
    /* Optimize background elements for mobile */
    .animate-float-slow,
    .animate-float-reverse {
        display: none;
    }
    
    /* MOBILE PREMIUM CARD EFFECTS - FORCE APPLY */
    .advantage-card:hover {
        transform: translateY(-8px) scale(1.05) translateZ(20px) !important;
        box-shadow: 0 20px 40px -8px rgba(78, 228, 255, 0.4),
                    0 0 0 1px rgba(78, 228, 255, 0.2) !important;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    /* Removed :active styles to prevent curve line on mobile tap */
    
    .advantage-card:hover div[class*="group-hover"] {
        transform: rotate(8deg) scale(1.15) !important;
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    /* Removed :active styles for group-hover elements to prevent curve line on mobile tap */
    
    /* Completely disable touch interactions to prevent curve lines */
    .advantage-card {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        pointer-events: none !important;
        touch-action: none !important;
        cursor: default !important;
    }
    
    /* Remove any focus states that might cause curve lines */
    .advantage-card:focus,
    .advantage-card:focus-visible,
    .advantage-card:active,
    .advantage-card:focus-within {
        outline: none !important;
        box-shadow: none !important;
        transform: none !important;
        border: none !important;
    }
    
    /* Disable all child element interactions */
    .advantage-card * {
        pointer-events: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        touch-action: none !important;
    }
    
    /* Remove any pseudo-elements that might create curves */
    .advantage-card::before,
    .advantage-card::after,
    .advantage-card *::before,
    .advantage-card *::after {
        display: none !important;
        content: none !important;
    }
    
    /* Mobile premium glow effect */
    .advantage-card:hover::before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        background: linear-gradient(135deg, rgba(78, 228, 255, 0.4), rgba(78, 228, 255, 0.1));
        border-radius: 1rem;
        z-index: -1;
        opacity: 1;
        transition: opacity 0.3s ease;
    }
    
    .advantage-card::before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        background: linear-gradient(135deg, rgba(78, 228, 255, 0.4), rgba(78, 228, 255, 0.1));
        border-radius: 1rem;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
}


/* Simple scroll-triggered animations */
#advantage-cards .group {
    transform: translateY(0) scale(1);
    transition: all 0.6s ease-out;
    border: 2px solid transparent;
}

#advantage-cards .group div[class*="group-hover"] {
    transition: transform 0.6s ease-out;
}

/* Glow border effect for animated cards */
#advantage-cards .group.card-animated {
    border: 2px solid rgba(78, 228, 255, 0.6) !important;
    box-shadow: 
        0 20px 40px -8px rgba(78, 228, 255, 0.3),
        0 0 0 1px rgba(78, 228, 255, 0.2),
        inset 0 0 20px rgba(78, 228, 255, 0.1) !important;
}

/* Enhanced glow for mobile */
@media (max-width: 768px) {
    #advantage-cards .group.card-animated {
        border: 2px solid rgba(78, 228, 255, 0.8) !important;
        box-shadow: 
            0 25px 50px -8px rgba(78, 228, 255, 0.4),
            0 0 0 2px rgba(78, 228, 255, 0.3),
            inset 0 0 30px rgba(78, 228, 255, 0.15) !important;
    }
}

/* Performance optimizations */
.advantage-card {
    contain: layout style paint;
}

.advantage-card * {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ========== MOBILE RESPONSIVE IMPROVEMENTS ========== */

/* Hide scrollbar for carousel */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Services Carousel Mobile Styles */
.services-carousel {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.services-carousel > div > div {
    scroll-snap-align: start;
}

/* Mobile Typography Improvements */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.5;
    }
    
    .hero-button {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Mobile Card Improvements */
@media (max-width: 768px) {
    .card-hover {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .card-hover:active {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(78, 228, 255, 0.15);
    }
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
    .services-carousel {
        cursor: grab;
        user-select: none;
    }
    
    .services-carousel:active {
        cursor: grabbing;
    }
    
    /* Improve touch targets */
    .carousel-nav {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better mobile spacing */
    .container {
        padding: 0 1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-padding-lg {
        padding: 4rem 0;
    }
}

/* Mobile Video Optimizations */
@media (max-width: 768px) {
    video {
        object-fit: cover;
        object-position: center;
    }
    
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
    }
}

/* Mobile Button Improvements */
@media (max-width: 640px) {
    .btn-primary, .btn-secondary {
        min-height: 44px;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Mobile Grid Improvements */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* Mobile Form Improvements */
@media (max-width: 768px) {
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
        min-height: 44px;
    }
}

/* Mobile Animation Optimizations */
@media (max-width: 768px) {
    .animate-float {
        animation: none; /* Disable floating animation on mobile for better performance */
    }
    
    .animate-glow {
        animation: none; /* Disable glow animation on mobile for better performance */
    }
}

/* Mobile Parallax Disable */
@media (max-width: 768px) {
    [class*="parallax-"] {
        transform: none !important;
        will-change: auto;
    }
}

/* Mobile Focus Improvements */
@media (max-width: 768px) {
    *:focus {
        outline: 3px solid #4EE4FF;
        outline-offset: 2px;
    }
}

/* Mobile Text Selection */
@media (max-width: 768px) {
    .services-carousel {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .heading-1 {
        font-size: 2.5rem;
    }
    
    .heading-2 {
        font-size: 2rem;
    }
    
    .heading-3 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-padding-lg {
        padding: 80px 0;
    }
}

/* Utility Classes */
.text-accent {
    color: #4EE4FF;
}

.bg-accent {
    background-color: #4EE4FF;
}

.border-accent {
    border-color: #4EE4FF;
}

.shadow-accent {
    box-shadow: 0 0 20px rgba(78, 228, 255, 0.3);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States for Accessibility */
*:focus {
    outline: 2px solid #4EE4FF;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ========== GLOBAL PARALLAX STYLES ========== */

/* Base parallax element styles */
[class*="parallax-"] {
    will-change: transform;
    transform: translateZ(0); /* Hardware acceleration */
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Specific parallax element classes */
.parallax-bg {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.parallax-services {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.parallax-hero {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.parallax-cards {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.parallax-text {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.parallax-images {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* Performance optimizations */
.parallax-container {
    contain: layout style paint;
    isolation: isolate;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    [class*="parallax-"] {
        transform: none !important; /* Disable parallax on mobile */
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    [class*="parallax-"] {
        transform: none !important;
    }
}
