/* IT Live Enhanced Styles - Performance & UX Optimizations */

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Enhanced Micro-interactions */
.hero .btn-gold {
    position: relative;
    overflow: hidden;
}

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

.hero .btn-gold:hover::before {
    left: 100%;
}

/* Enhanced Service Cards */
.service-card {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.service-card:hover {
    transform: translateY(-12px) rotateX(5deg);
}

.service-card .service-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 30px rgba(242,193,79,0.6);
}

/* Enhanced Stats */
.stat-number {
    background: linear-gradient(45deg, var(--gold), var(--gold2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

/* Enhanced Navigation */
.navbar.scrolled {
    background: rgba(2,9,23,0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Enhanced Loading States */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gold);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced Print Styles */
@media print {
    .navbar, .contact-bar, .cta-buttons {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
    
    .service-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}

/* Enhanced Performance Metrics */
.web-vitals {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 9999;
}

/* Enhanced Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --navy: #000000;
        --dark-lighter: #111111;
    }
}

/* Enhanced High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --gold: #ffff00;
        --gold-border: #ffff00;
        --cyan: #00ffff;
    }
}
