/* ========================================
   MSPE Ultimate UI Enhancement v2.0
   Modern Glassmorphic Design with Enhanced Neon Effects
   Premium Visual Experience
   ======================================== */

/* Enhanced Color Palette */
:root {
    /* Neon Colors - Refined */
    --neon-cyan: #00f5ff;
    --neon-cyan-soft: #00d4e6;
    --neon-purple: #b537f2;
    --neon-purple-soft: #9d2de0;
    --neon-pink: #ff006e;
    --neon-pink-soft: #e6005f;
    --neon-blue: #0080ff;
    --neon-blue-soft: #0066cc;
    --neon-green: #00ff88;
    --neon-gold: #ffd700;
    --neon-orange: #ff6b35;
    
    /* Glass Effects - Enhanced */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-bg-active: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --glass-shadow-lg: 0 16px 48px 0 rgba(0, 0, 0, 0.5);
    
    /* Neon Shadows - Enhanced */
    --shadow-neon-cyan: 0 0 15px var(--neon-cyan), 0 0 30px rgba(0, 245, 255, 0.5), 0 0 45px rgba(0, 245, 255, 0.3);
    --shadow-neon-purple: 0 0 15px var(--neon-purple), 0 0 30px rgba(181, 55, 242, 0.5);
    --shadow-neon-pink: 0 0 15px var(--neon-pink), 0 0 30px rgba(255, 0, 110, 0.5);
    --shadow-neon-multi: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-purple), 0 0 60px var(--neon-pink);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-shine: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    
    /* Timing */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Custom Cursor - Enhanced */
.custom-cursor {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0, 245, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease-out, background 0.2s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.5), inset 0 0 4px rgba(0, 245, 255, 0.1);
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(0, 245, 255, 1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 0 6px rgba(0, 245, 255, 0.8);
}

.custom-cursor.active {
    width: 48px;
    height: 48px;
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--neon-purple);
    box-shadow: var(--shadow-neon-cyan);
}

.custom-cursor.active::before {
    transform: translate(-50%, -50%) scale(2);
    background: var(--neon-purple);
}

.custom-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--neon-cyan);
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Enhanced Body Background */
body {
    background: #050810;
    background-image: 
        radial-gradient(ellipse at 0% 0%, rgba(0, 245, 255, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 0%, rgba(181, 55, 242, 0.06) 0%, transparent 40%);
    /* background-attachment: fixed removed — causes full repaint on every scroll */
    position: relative;
    min-height: 100vh;
    color: rgba(255, 255, 255, 0.9);
}

body.custom-cursor-enabled {
    cursor: none;
}

body.custom-cursor-enabled a,
body.custom-cursor-enabled button,
body.custom-cursor-enabled .btn,
body.custom-cursor-enabled input, 
body.custom-cursor-enabled textarea,
body.custom-cursor-enabled select {
    cursor: none;
}

/* Grid background pseudo-element REMOVED for performance — was causing compositor layer overhead */
/* body::before { ... } */

/* Floating orbs pseudo-element REMOVED for performance — fixed-position overlay with gradients */
/* body::after { ... } */

/* gridMove and orbFloat animations removed for performance */

/* Particles Background - Enhanced */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 25s infinite;
    box-shadow: 0 0 6px var(--neon-cyan);
    will-change: transform;
}

.particle:nth-child(2n) { 
    background: var(--neon-purple); 
    box-shadow: 0 0 6px var(--neon-purple); 
}
.particle:nth-child(3n) { 
    background: var(--neon-pink); 
    box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink); 
}
.particle:nth-child(4n) { 
    background: var(--neon-blue); 
    box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue); 
    width: 2px;
    height: 2px;
}
.particle:nth-child(5n) { animation-duration: 25s; }
.particle:nth-child(7n) { animation-duration: 30s; }
.particle:nth-child(11n) { animation-duration: 35s; }

@keyframes particleFloat {
    0% { 
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
        transform: translateY(90vh) translateX(10px) rotate(45deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(50vh) translateX(-20px) rotate(180deg) scale(1.2);
    }
    95% {
        opacity: 0.8;
        transform: translateY(10vh) translateX(30px) rotate(315deg) scale(1);
    }
    100% { 
        transform: translateY(-50px) translateX(0) rotate(360deg) scale(0);
        opacity: 0;
    }
}

/* Scroll Progress Indicator - Enhanced */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 999999;
    transition: width 0.05s linear;
}

/* scrollShine infinite animation removed for performance */

/* Glassmorphic Navigation Enhancement - Premium */
.header {
    background: rgba(10, 22, 40, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(5, 8, 16, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4) !important;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1) !important;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled::after {
    width: 100%;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* Enhanced Navigation Links - Premium */
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0 !important;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: transparent !important;
    border-radius: 0 !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 2;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 12px;
    background: var(--neon-cyan);
    filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    opacity: 0;
    z-index: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
    background: rgba(0, 245, 255, 0.05) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    opacity: 1;
}

/* Enhanced Active State for Navigation */
.nav-link.active {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
    background: rgba(0, 245, 255, 0.05) !important;
}

.nav-link.active::before {
    width: 100%;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.nav-link.active::after {
    width: 100%;
    opacity: 0.8;
}

/* Enhanced Buttons - Premium Design */
.btn {
    position: relative;
    overflow: hidden;
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* cursor: none; Removed */
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15) 0%, rgba(181, 55, 242, 0.15) 100%) !important;
    color: var(--neon-cyan) !important;
    border: 1px solid rgba(0, 245, 255, 0.4) !important;
    box-shadow: 0 4px 20px rgba(0, 245, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%) !important;
    color: #050810 !important;
    border-color: transparent !important;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4), 0 10px 30px rgba(0, 245, 255, 0.2) !important;
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-outline:hover {
    background: rgba(181, 55, 242, 0.15) !important;
    border-color: var(--neon-purple) !important;
    color: var(--neon-purple) !important;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 15px rgba(181, 55, 242, 0.3), 0 10px 30px rgba(181, 55, 242, 0.15);
}

.btn-outline:active {
    transform: translateY(-2px) scale(0.98);
}

/* Button Ripple Effect */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: btnRipple 0.6s linear;
    pointer-events: none;
}

@keyframes btnRipple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Glassmorphic Cards - Performance Optimized (backdrop-filter removed) */
.card,
.service-card,
.news-card,
.portfolio-item,
.feature-card,
.philosophy-card,
.contact-card,
.contact-form-wrapper,
.sidebar-info,
.sidebar-cta {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
    position: relative;
    overflow: hidden;
    border-radius: 20px !important;
}

/* Card shine effect REMOVED for performance — was creating extra compositing layers on every card */
/* .card::before, .service-card::before, ... { } */

/* Card glow border REMOVED for performance — mask-composite on every card is expensive */
/* .card::after, .service-card::after, ... { } */

/* Card hover pseudo-element triggers removed (pseudo-elements removed for perf) */

.card:hover,
.service-card:hover,
.news-card:hover,
.portfolio-item:hover,
.feature-card:hover,
.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 245, 255, 0.2) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 15px rgba(0, 245, 255, 0.08) !important;
}

/* Featured Card Enhancement */
.service-card.featured {
    border-color: rgba(0, 245, 255, 0.3) !important;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.08) 0%, rgba(181, 55, 242, 0.05) 100%) !important;
}

.service-card.featured::after {
    opacity: 0.5;
}

.service-badge {
    background: var(--gradient-primary) !important;
    color: #050810 !important;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.4);
}

/* Floating Elements - Enhanced Animation */
.floating-card {
    animation: floatEnhanced 8s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    min-width: max-content;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -2.5s;
    animation-duration: 7s;
}

.floating-card:nth-child(3) {
    animation-delay: -5s;
    animation-duration: 9s;
}

@keyframes floatEnhanced {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

/* Neon Text Effects - Enhanced */
.highlight,
.hero-title .highlight {
    color: var(--neon-cyan) !important;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
    position: relative;
    display: inline;
    word-break: normal !important;
    white-space: normal;
}

.highlight::after,
.hero-title .highlight::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--neon-cyan);
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        filter: blur(20px);
        opacity: 0.5;
    }
    50% {
        filter: blur(30px);
        opacity: 0.8;
    }
}

/* Text Glow Animation */
.neon-text {
    animation: neonFlicker 4s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 100% {
        text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
    }
    50% {
        text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    }
    52% {
        text-shadow: 0 0 15px var(--neon-cyan), 0 0 30px var(--neon-cyan), 0 0 50px var(--neon-cyan);
    }
    54% {
        text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
    }
}

/* Section Headers - Premium */
.section-label {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.875rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan));
}

.section-label::after {
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

.section-title {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700;
    line-height: 1.2;
}

.section-description {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Hero Section Enhancement - Premium */
.hero {
    position: relative;
    overflow: hidden;
    background: #050810 !important;
}

.hero-content {
    max-width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: 
        radial-gradient(circle at center, var(--neon-cyan) 0%, transparent 50%);
    opacity: 0.06;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    /* heroGlowEnhanced animation removed for performance */
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #050810 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

@keyframes heroGlowEnhanced {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.08;
    }
    33% {
        transform: translate(-50%, -50%) scale(1.1) rotate(120deg);
        opacity: 0.12;
    }
    66% {
        transform: translate(-50%, -50%) scale(0.9) rotate(240deg);
        opacity: 0.06;
    }
}

/* Hero Visual Enhancements */
.hero-graphic .orbit {
    border-color: rgba(0, 245, 255, 0.2) !important;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}

.hero-graphic .core {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%) !important;
    box-shadow: 
        0 0 40px var(--neon-cyan),
        0 0 80px rgba(0, 245, 255, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Back to Top Button Enhancement - Premium */
.back-to-top {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(181, 55, 242, 0.1) 100%) !important;
    border: 1px solid rgba(0, 245, 255, 0.3) !important;
    color: var(--neon-cyan) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 12px !important;
    width: 50px;
    height: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.back-to-top:hover {
    background: transparent !important;
    color: #050810 !important;
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3), 0 10px 30px rgba(0, 245, 255, 0.15) !important;
}

.back-to-top:hover::before {
    opacity: 1;
}

/* Form Inputs Enhancement - Premium */
input, textarea, select {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1), 0 0 20px rgba(0, 245, 255, 0.2) !important;
    outline: none;
    background: rgba(0, 245, 255, 0.03) !important;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

input:focus::placeholder, textarea:focus::placeholder {
    color: rgba(0, 245, 255, 0.5);
    transform: translateX(5px);
}

/* Form Label Animation */
.form-group {
    position: relative;
}

.form-group label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    transition: all 0.3s ease;
}

.form-group:focus-within label {
    color: var(--neon-cyan) !important;
}

/* Dropdown Menu Enhancement - Premium */
.dropdown-menu {
    background: rgba(5, 8, 16, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    border-radius: 16px !important;
    padding: 0.75rem !important;
    overflow: hidden;
}

.dropdown-menu li a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
    position: relative;
    overflow: hidden;
}

.dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: height 0.3s ease;
}

.dropdown-menu li a:hover {
    background: rgba(0, 245, 255, 0.1) !important;
    color: var(--neon-cyan) !important;
    padding-left: 1.5rem !important;
}

.dropdown-menu li a:hover::before {
    height: 60%;
}

/* Preloader Enhancement - Premium */
.preloader {
    background: #050810 !important;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 245, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(181, 55, 242, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 110, 0.05) 0%, transparent 40%);
}

.loader-ring {
    border: 3px solid transparent !important;
    border-top-color: var(--neon-cyan) !important;
    border-right-color: var(--neon-purple) !important;
    border-bottom-color: var(--neon-pink) !important;
    box-shadow: 
        0 0 30px var(--neon-cyan),
        inset 0 0 30px rgba(0, 245, 255, 0.1);
    animation: spin 0.8s linear infinite, loaderGlow 2s ease-in-out infinite;
}

@keyframes loaderGlow {
    0%, 100% { 
        box-shadow: 0 0 30px var(--neon-cyan), inset 0 0 30px rgba(0, 245, 255, 0.1);
    }
    50% { 
        box-shadow: 0 0 50px var(--neon-purple), inset 0 0 50px rgba(181, 55, 242, 0.1);
    }
}

.loader-text {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 30px var(--neon-cyan);
    animation: loaderTextPulse 2s ease-in-out infinite;
    font-weight: 800;
    letter-spacing: 0.2em;
}

@keyframes loaderTextPulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 30px var(--neon-cyan);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 50px var(--neon-cyan), 0 0 80px var(--neon-purple);
    }
}

/* Footer Enhancement - Premium */
footer, .footer {
    background: linear-gradient(180deg, transparent 0%, rgba(5, 8, 16, 0.98) 20%, #050810 100%) !important;
    border-top: 1px solid rgba(0, 245, 255, 0.1) !important;
    position: relative;
}

footer::before, .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

/* Image hover transitions - only on interactive images, not all */
/* img { transition: ... } removed — transitioning ALL images is expensive */

.portfolio-item img,
.news-card img,
.team-member img {
    transition: transform 0.4s ease;
}

.portfolio-item:hover img,
.news-card:hover img,
.team-member:hover img {
    transform: scale(1.05);
}

/* Scrollbar Styling - Premium */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #050810;
    border-left: 1px solid rgba(0, 245, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 245, 255, 0.3) 0%, rgba(181, 55, 242, 0.3) 100%);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* Text Selection - Premium */
::selection {
    background: var(--neon-cyan);
    color: #050810;
    text-shadow: none;
}

::-moz-selection {
    background: var(--neon-cyan);
    color: #050810;
    text-shadow: none;
}

/* Link Hover Effects */
a {
    /* cursor: none; Removed */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stats/Counter Enhancement - Premium */
.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    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.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.08) 0%, rgba(181, 55, 242, 0.05) 100%);
    border-color: rgba(0, 245, 255, 0.2);
    transform: translateY(-8px);
}

.stat-number, .stat-value, .counter-value, .counter {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
    font-weight: 700;
    font-size: 2.5rem;
}

.stat-icon {
    color: var(--neon-cyan);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--neon-cyan);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Timeline Elements - Enhanced */
.timeline-item::before {
    background: var(--gradient-primary) !important;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* Process Steps Enhancement */
.process-step {
    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.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.process-step:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.08) 0%, rgba(181, 55, 242, 0.05) 100%);
    border-color: rgba(0, 245, 255, 0.2);
    transform: translateY(-8px) scale(1.02);
}

.step-number {
    color: var(--neon-cyan);
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
    margin-bottom: 0.5rem;
}

/* ALL SECTIONS - Force Dark Background */
section,
.services,
.about,
.portfolio,
.testimonials,
.news,
.contact,
.philosophy,
.features,
.process,
.partners,
.cta {
    background: #050810 !important;
    background-color: #050810 !important;
    position: relative;
}

/* Section Content Text Colors */
section h1, section h2, section h3, section h4, section h5, section h6,
section .section-title,
section .card-title {
    color: rgba(255, 255, 255, 0.95) !important;
}

section p,
section .section-description,
section .card-text {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Service Icon Enhancement */
.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15) 0%, rgba(181, 55, 242, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.service-icon i {
    font-size: 2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon i {
    color: #050810;
    text-shadow: none;
}

/* Service Title and Description */
.service-title {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.7;
}

/* Service Features */
.service-features li {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.service-features li i {
    color: var(--neon-cyan);
    font-size: 0.875rem;
}

/* Service Link */
.service-link {
    color: var(--neon-cyan) !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--neon-purple) !important;
    gap: 1rem;
}

/* Mobile Responsive - Enhanced */
@media (max-width: 768px) {
    .custom-cursor,
    .cursor-trail {
        display: none !important;
    }
    
    body {
        cursor: auto;
    }
    
    body::before,
    body::after {
        display: none;
    }
    
    a, button, .btn {
        cursor: pointer;
    }
    
    .hero::before {
        width: 500px;
        height: 500px;
    }
    
    .floating-card {
        animation: none;
    }
    
    .card:hover,
    .service-card:hover,
    .news-card:hover,
    .portfolio-item:hover,
    .feature-card:hover {
        transform: translateY(-6px);
    }
    
    .stat-number, .counter {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.8rem;
    }
    
    .section-label::before,
    .section-label::after {
        width: 15px;
    }
}

/* Page Load Animation - Enhanced */
@keyframes pageLoadFade {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* pageLoadFade animation on .container > * REMOVED — was setting opacity:0 on hundreds
   of elements causing UI corruption when animation didn't complete properly.
   Sections still get reveal animations via JS IntersectionObserver which is more reliable. */

/* Magnetic Effect for Interactive Elements */
.btn,
.nav-link {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interactive Glow Effect */
.interactive-glow {
    position: relative;
}

.interactive-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

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

/* Feature Item Enhancement */
.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05) 0%, rgba(181, 55, 242, 0.03) 100%);
    border-color: rgba(0, 245, 255, 0.1);
    transform: translateX(10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15) 0%, rgba(181, 55, 242, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 245, 255, 0.2);
    transition: all 0.4s ease;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--neon-cyan);
}

.feature-item:hover .feature-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.feature-item:hover .feature-icon i {
    color: #050810;
}

.feature-content h4 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Why Us Section Enhancement */
.why-us {
    position: relative;
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 968px) {
    .why-us-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Process Flow Enhancement */
.process-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.03) 25%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 8px;
}

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

/* Tooltip Enhancement */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(5, 8, 16, 0.95);
    color: var(--neon-cyan);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(181, 55, 242, 0.2) 100%);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.badge-success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* News Card Enhancement */
.news-card {
    padding: 0 !important;
    overflow: hidden;
}

.news-card .news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card .news-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(5, 8, 16, 0.9), transparent);
}

.news-card .news-content {
    padding: 1.5rem;
}

.news-card .news-meta {
    color: var(--neon-cyan);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.news-card .news-title {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card .news-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Logo Enhancement */
.logo-text {
    font-size: 2rem !important;
    font-weight: 800;
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
    letter-spacing: 0.05em;
}

.logo-tagline {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.15em;
}

/* Hero Title Enhancement */
.hero-title {
    color: rgba(255, 255, 255, 0.98) !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    white-space: normal;
}

.hero-description {
    color: rgba(255, 255, 255, 0.75) !important;
    word-break: normal;
    overflow-wrap: normal;
}

.hero-label {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15) 0%, rgba(181, 55, 242, 0.1) 100%) !important;
    border: 1px solid rgba(0, 245, 255, 0.2);
    color: var(--neon-cyan) !important;
    white-space: nowrap;
}

/* Philosophy Card Enhancement */
.philosophy-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-card:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.08) 0%, rgba(181, 55, 242, 0.05) 100%) !important;
    border-color: rgba(0, 245, 255, 0.2) !important;
    transform: translateY(-8px);
}

.philosophy-card i {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.philosophy-card h4 {
    color: rgba(255, 255, 255, 0.95) !important;
}

.philosophy-card p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Commitment Card Enhancement */
.commitment-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.08) 0%, rgba(181, 55, 242, 0.05) 100%) !important;
    border: 1px solid rgba(0, 245, 255, 0.15) !important;
}

/* Hero Control Buttons */
.hero-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-control:hover {
    background: rgba(0, 245, 255, 0.15) !important;
    border-color: var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    transform: scale(1.1);
}

/* Hero Dots */
.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-dots .dot.active {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* ==================== GLOBAL DARK THEME FIX ==================== */
/* Force all sections to have dark backgrounds */
main,
.main-content,
.page-content {
    background: #050810 !important;
}

/* Stats Section Dark Fix */
.stats {
    background: linear-gradient(180deg, #050810 0%, #0a0d15 100%) !important;
}

.stats-grid {
    background: transparent !important;
}

/* Services Section Dark Fix */
.services {
    background: linear-gradient(180deg, #0a0d15 0%, #050810 100%) !important;
}

.services-grid {
    background: transparent !important;
}

/* All service cards dark theme */
.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.service-card .service-title,
.service-card h3 {
    color: rgba(255, 255, 255, 0.95) !important;
}

.service-card .service-description,
.service-card p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.service-card .service-features li {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* About Section Dark Fix */
.about {
    background: #050810 !important;
}

/* Portfolio Section Dark Fix */
.portfolio {
    background: linear-gradient(180deg, #050810 0%, #0a0d15 100%) !important;
}

/* News Section Dark Fix */
.news {
    background: #050810 !important;
}

/* Testimonials Section Dark Fix */
.testimonials {
    background: linear-gradient(180deg, #0a0d15 0%, #050810 100%) !important;
}

/* Contact Section Dark Fix */
.contact {
    background: #050810 !important;
}

/* CTA Section Dark Fix */
.cta {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(181, 55, 242, 0.08) 100%) !important;
}

/* Partners/Clients Section Dark Fix */
.partners,
.clients {
    background: #050810 !important;
}

/* Features Section Dark Fix */
.features {
    background: linear-gradient(180deg, #0a0d15 0%, #050810 100%) !important;
}

/* Process Section Dark Fix */
.process {
    background: #050810 !important;
}

/* Why Us Section Dark Fix */
.why-us {
    background: linear-gradient(180deg, #050810 0%, #0a0d15 100%) !important;
}

/* Philosophy Section Dark Fix */
.philosophy {
    background: #050810 !important;
}

/* Ensure container backgrounds are transparent */
.container {
    background: transparent !important;
}

/* Fix any white text areas */
.section-header {
    background: transparent !important;
}

.section-header .section-title {
    color: rgba(255, 255, 255, 0.95) !important;
}

.section-header .section-description {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Override any inline styles that might set white backgrounds */
[style*="background: white"],
[style*="background-color: white"],
[style*="background:#fff"],
[style*="background-color:#fff"] {
    background: #050810 !important;
    background-color: #050810 !important;
}

.hero-dots .dot:hover {
    background: rgba(0, 245, 255, 0.3);
    border-color: var(--neon-cyan);
}

.hero-dots .dot.active {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    transform: scale(1.2);
}

/* Ensure all text is visible and doesn't break incorrectly */
h1, h2, h3, h4, h5, h6 {
    color: rgba(255, 255, 255, 0.95);
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

p {
    color: rgba(255, 255, 255, 0.75);
    word-break: normal;
    overflow-wrap: break-word;
}

/* Floating cards text fix */
.floating-card {
    white-space: nowrap;
}

.floating-card span {
    white-space: nowrap;
}

/* Smooth transitions for interactive elements */
.btn,
.nav-link {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.1s !important;
    }
    
    .particles-bg,
    .custom-cursor,
    .cursor-trail,
    .scroll-progress,
    body::before,
    body::after {
        display: none !important;
    }
    
    body {
        cursor: auto;
    }
}
/* Contact Page Visibility Fixes */
.sidebar-info h3,
.sidebar-cta h3,
.contact-card h3,
.contact-card p,
.form-header h2,
.form-header p,
.info-list li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-card-icon i {
   text-shadow: 0 0 10px var(--neon-cyan);
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
