/* ========================================
   ULTRA PREMIUM PROFESSIONAL ANIMATIONS
   Advanced Business-Grade Effects
   ======================================== */

/* Ultra Premium Animations */
* {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Premium Fade In System */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Navigation Premium Animations */
.navbar {
    animation: slideDown 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.logo-icon {
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

/* Hero Section Premium */
.hero-badge {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.2s both;
}

.hero-title {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.4s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.6s both;
}

.hero-features {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.8s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1s both;
}

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

/* Service Cards Ultra Premium */
.service-card {
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover::before {
    left: 100%;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.service-card:hover {
    transform: translateY(-12px) rotateX(-2deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.service-icon {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotateY(5deg);
}

/* Portfolio Ultra Premium */
.portfolio-item {
    opacity: 0;
    transform: scale(0.9) rotateY(15deg);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.portfolio-item.visible {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.portfolio-item:hover {
    transform: scale(1.05) rotateY(-3deg) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.portfolio-overlay {
    transition: all 0.4s ease;
}

/* About Section Premium */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

/* Testimonials Premium */
.testimonial-item {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.customer-photo {
    transition: all 0.4s ease;
}

.customer-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* FAQ Premium */
.faq-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.faq-question i {
    transition: all 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Tool Cards Ultra Premium */
.tool-card {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.08), transparent);
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tool-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.tool-icon {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.tool-card:hover .tool-icon {
    transform: scale(1.2) rotateZ(5deg);
}

/* Contact Form Premium */
.contact-form {
    opacity: 0;
    transform: scale(0.98);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-form.visible {
    opacity: 1;
    transform: scale(1);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.contact-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

/* Button Ultra Premium */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.1);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Section Headers Premium */
.section-header h2 {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.section-header.visible h2 {
    opacity: 1;
    transform: translateY(0);
}

.section-header p {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
}

.section-header.visible p {
    opacity: 1;
    transform: translateY(0);
}

/* Emergency Section Premium */
.emergency-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.emergency-icon {
    animation: gentlePulse 3s ease-in-out infinite;
}

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

.card-icon {
    transition: all 0.3s ease;
}

.emergency-card:hover .card-icon {
    transform: scale(1.1);
}

/* Warranty & Tips Premium */
.warranty-card:hover,
.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.step-number {
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
}

.tip-icon {
    transition: all 0.3s ease;
}

.tip-card:hover .tip-icon {
    transform: scale(1.05);
}

/* Footer Premium */
.footer-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.footer-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

/* Chat Widget Premium */
.chat-widget {
    transform: translateY(50px);
    opacity: 0;
    animation: slideUpFade 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1.5s forwards;
}

@keyframes slideUpFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Modal Premium */
.modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

/* Image Hover Premium */
img {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Stagger Delays - Professional Timing */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

.portfolio-item:nth-child(1) { transition-delay: 0.1s; }
.portfolio-item:nth-child(2) { transition-delay: 0.2s; }
.portfolio-item:nth-child(3) { transition-delay: 0.3s; }
.portfolio-item:nth-child(4) { transition-delay: 0.4s; }
.portfolio-item:nth-child(5) { transition-delay: 0.5s; }
.portfolio-item:nth-child(6) { transition-delay: 0.6s; }

.faq-item:nth-child(1) { transition-delay: 0.1s; }
.faq-item:nth-child(2) { transition-delay: 0.15s; }
.faq-item:nth-child(3) { transition-delay: 0.2s; }
.faq-item:nth-child(4) { transition-delay: 0.25s; }
.faq-item:nth-child(5) { transition-delay: 0.3s; }
.faq-item:nth-child(6) { transition-delay: 0.35s; }
.faq-item:nth-child(7) { transition-delay: 0.4s; }
.faq-item:nth-child(8) { transition-delay: 0.45s; }

.tool-card:nth-child(1) { transition-delay: 0.2s; }
.tool-card:nth-child(2) { transition-delay: 0.3s; }
.tool-card:nth-child(3) { transition-delay: 0.4s; }

.contact-item:nth-child(1) { transition-delay: 0.1s; }
.contact-item:nth-child(2) { transition-delay: 0.2s; }
.contact-item:nth-child(3) { transition-delay: 0.3s; }
.contact-item:nth-child(4) { transition-delay: 0.4s; }

/* Restore hero background and icons */
.matrix-bg {
    opacity: 0.3;
}

.circuit-overlay {
    opacity: 1;
}

.chip, .led, .trace, .resistor, .capacitor {
    animation: none;
    opacity: 0.7;
}

.hud-elements {
    opacity: 0.8;
}

.scan-line {
    animation: none;
}

.binary, .hex-stream {
    animation: none;
    opacity: 0.3;
}

.hero-bg {
    background: radial-gradient(ellipse at center, #0f1419 0%, #000000 100%);
}

.video-overlay {
    background: rgba(37, 99, 235, 0.7);
}

/* Simple Clean Loading */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2563eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease;
}

.loader {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

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

.loader-content {
    margin-top: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.brand-logo i {
    font-size: 32px;
    color: #60a5fa;
    background: rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.brand-name {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.brand-suffix {
    font-size: 16px;
    font-weight: 300;
    color: #e2e8f0;
    letter-spacing: 1px;
    margin-left: 5px;
}

.tagline {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 15px;
    font-weight: 400;
}

.loading-text {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 300;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.loading-dots {
    display: none;
}

.progress-bar {
    display: none;
}

.loader-content h3 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 15px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}

.loader-content p {
    font-size: 14px;
    opacity: 0.9;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
}

.loading-dots {
    display: none;
}

.progress-bar {
    display: none;
}

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

/* Mobile Animation Adjustments */
@media (max-width: 768px) {
    .service-card:hover,
    .portfolio-item:hover,
    .tool-card:hover {
        transform: translateY(-5px);
    }
    
    .contact-item:hover {
        transform: translateX(3px);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
}
/* Hide all content during loading */
body.loading main,
body.loading section,
body.loading footer {
    display: none !important;
}

body.loading {
    background: #0078d4 !important;
}