/* ============================================
   MGV INFOTECH — ULTRA PREMIUM DESIGN SYSTEM
   $40,000 Website Level - 2026
   Inspired by: Apple, Stripe, Linear, Vercel, Awwwards Winners
   ============================================ */

/* ===== PREMIUM CSS VARIABLES ===== */
:root {
    /* Enhanced Color Palette - Light Theme */
    --primary-gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --secondary-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --success-gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --premium-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Premium Shadows */
    --shadow-premium: 0 20px 60px -10px rgba(0, 0, 0, 0.2);
    --shadow-glow-blue: 0 0 40px rgba(37, 99, 235, 0.3);
    --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-glow-amber: 0 0 40px rgba(245, 158, 11, 0.3);
    
    /* Animation Timings */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== PREMIUM CURSOR ===== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-outline.hover {
    transform: scale(1.5);
    border-color: rgba(16, 185, 129, 0.8);
}

/* ===== PREMIUM SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    width: 0%;
    z-index: 9999;
    animation: gradient-flow 3s ease infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== PREMIUM NAVIGATION ===== */
#navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    border-radius: 0.75rem;
    transition: all 0.3s var(--ease-out-expo);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.75rem;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: #3b82f6;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #3b82f6;
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ===== PREMIUM BUTTONS ===== */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

.btn-premium:hover::before {
    opacity: 1;
}

.btn-premium:active {
    transform: translateY(-1px) scale(0.98);
}

/* Magnetic Button Effect */
.btn-magnetic {
    transition: transform 0.1s ease;
}

/* ===== PREMIUM HERO SECTION ===== */
#hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #e0f2fe 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.2), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.2), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.15), transparent 50%);
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Floating Shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float-3d 20s ease-in-out infinite;
    will-change: transform;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    bottom: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
    animation-delay: -7s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 30%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    animation-delay: -14s;
}

@keyframes float-3d {
    0%, 100% { 
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    33% { 
        transform: translate3d(50px, -50px, 20px) rotate(120deg) scale(1.1);
    }
    66% { 
        transform: translate3d(-30px, 30px, -20px) rotate(240deg) scale(0.9);
    }
}

/* Particles Canvas */
#hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ===== PREMIUM CARDS ===== */
.premium-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.premium-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.premium-card:hover::before {
    opacity: 1;
}

.premium-card:hover::after {
    opacity: 0.3;
}

/* Glass Card Variant */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s var(--ease-out-expo);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ===== TEXT GRADIENT EFFECTS ===== */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    font-weight: 900;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-modern {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1s var(--ease-out-expo);
    will-change: transform, opacity;
}

.reveal-modern.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px) rotate(-5deg);
    transition: all 1s var(--ease-out-expo);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px) rotate(5deg);
    transition: all 1s var(--ease-out-expo);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.8s var(--ease-out-expo);
}

.stagger-children.revealed > * {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== HOVER TILT EFFECT ===== */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(20px);
}

/* ===== ANIMATED COUNTERS ===== */
.stat-number {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.stat-number.counting {
    color: #3b82f6;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* ===== PREMIUM FAQ ACCORDION ===== */
.faq-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item.active {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.faq-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s ease;
}

.faq-item.active .faq-button {
    color: #3b82f6;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo);
}

.faq-item.active .faq-content {
    max-height: 600px;
    margin-top: 1rem;
}

.faq-icon {
    transition: transform 0.4s var(--ease-out-expo);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #3b82f6;
}

/* ===== PARALLAX EFFECTS ===== */
.parallax-layer {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* ===== LOADING ANIMATION ===== */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-fade-up {
    animation: fadeUp 1.2s var(--ease-out-expo) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ===== PREMIUM FOOTER ===== */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    color: #3b82f6;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.footer-social::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.footer-social:hover::before {
    opacity: 1;
}

.footer-social:hover svg {
    position: relative;
    z-index: 1;
    color: white;
}

/* ===== MOBILE MENU PREMIUM ===== */
#mobile-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.mobile-nav-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    transform: scaleY(0);
    transition: transform 0.3s var(--ease-out-expo);
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    transform: scaleY(1);
}

/* ===== RESPONSIVE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .premium-card {
        padding: 1.5rem;
    }
    
    .btn-premium {
        padding: 0.875rem 1.5rem;
        font-size: 0.8125rem;
    }
    
    .shape {
        filter: blur(60px);
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== GLOW EFFECTS ===== */
.glow-blue {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
}

.glow-emerald {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
}

.glow-amber {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.4);
}

/* ===== SHIMMER EFFECT ===== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

/* ===== PULSE ANIMATION ===== */
.pulse-glow {
    animation: pulse-glow-animation 2s ease-in-out infinite;
}

@keyframes pulse-glow-animation {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    }
}

/* ===== FLOATING ANIMATION ===== */
.float {
    animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== SCALE ON HOVER ===== */
.scale-hover {
    transition: transform 0.4s var(--ease-out-expo);
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* ===== ROTATE ON HOVER ===== */
.rotate-hover {
    transition: transform 0.4s var(--ease-out-expo);
}

.rotate-hover:hover {
    transform: rotate(5deg) scale(1.05);
}
