/* ELT.az - Tam ve Eksiksiz CSS */
:root {
    /* V3 Energy Palette */
    --main-cyan: #06b6d4;
    --electric-blue: #00d4ff;
    --deep-bg: #0a0a0a;
    /* V4 Additions */
    --wave-cyan: rgba(6, 182, 212, 0.4);
    --wave-blue: rgba(0, 50, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-bg);
    margin: 0;
    padding-top: 85px;
    /* Step 1: Ensure content creates a new stacking context above canvas */
    position: relative;
    z-index: 1;
}

#navbar {
    background: url('../img/nav-bg.png') no-repeat center center;
    background-size: cover;
}

/* Navbar scroll aktivasyonu */
#navbar.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: rgba(10, 10, 26, 0.98);
}

/* Step 3: Dynamic Nav - Electric Arc Effect */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--electric-blue);
    box-shadow: 0 0 8px var(--electric-blue);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Quick swipe effect */
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--electric-blue);
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.4);
}

/* Step 3: Dynamic Buttons - Outer Glow */
.whatsapp-btn,
a[href="#services"].inline-block {
    position: relative;
    transition: all 0.3s ease;
    /* Ensure no blur inside */
    z-index: 5;
}

.whatsapp-btn:hover,
a[href="#services"].inline-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    /* Outer glow only */
    border-color: var(--main-cyan);
}

/* Step 4: Service Cards & Neon Borders */
.service-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 10;
    background-color: var(--deep-bg);
    /* Opaque background for text clarity */
    border: 1px solid rgba(6, 182, 212, 0.1);
    will-change: transform, border-color, box-shadow;
    /* Step 5: Performance */
}

.service-card:hover {
    transform: scale(1.02);
    border-color: var(--electric-blue);
    /* Neon border-trace effect (simulated via box-shadow to be safe/readable) */
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2), inset 0 0 5px rgba(0, 212, 255, 0.05);
}

/* Ensure text is strictly above everything */
.service-card p,
.service-card h3,
.service-card i {
    z-index: 20;
    position: relative;
}

/* Step 5: Scroll Animations & Performance */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    will-change: opacity, transform;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .service-card,
    .nav-link::after,
    .whatsapp-btn,
    .animate-fade-in-up,
    .energy-wave-left,
    .energy-wave-right,
    .v4-energy-text {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* V4: Side Energy Waves (Desktop Only) */
.energy-wave-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background: linear-gradient(90deg, var(--wave-blue), transparent);
    filter: blur(20px);
    opacity: 0.8;
    z-index: 0;
    width: 200px;
    animation: pulse-wave 5s infinite alternate;
}

.energy-wave-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 100vh;
    background: linear-gradient(-90deg, var(--wave-cyan), transparent);
    filter: blur(20px);
    opacity: 0.8;
    z-index: 0;
    animation: pulse-wave 6s infinite alternate-reverse;
}

@keyframes pulse-wave {
    0% {
        transform: scaleX(1);
        opacity: 0.4;
    }

    100% {
        transform: scaleX(1.5);
        opacity: 0.7;
    }
}

/* V4: Hero Energy Surge Text */
.v4-energy-text {
    background: linear-gradient(90deg,
            #06b6d4 0%,
            #8b5cf6 25%,
            #ffffff 50%,
            #3b82f6 75%,
            #06b6d4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    animation: energy-flow 4s linear infinite;
}

@keyframes energy-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* V4: High Voltage Button (Rotating Electric Border) */
.v4-electric-btn {
    border: none;
    /* Remove default border */
    overflow: hidden;
    /* Ensure border doesn't spill */
}

.v4-electric-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    /* Border thickness */
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--electric-blue) 40%,
            transparent 80%,
            transparent 100%);
    border-radius: 12px;
    animation: rotate-border 3s linear infinite;
    z-index: 0;
}

.v4-electric-btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Inner spacing to show border */
    background: #0a0a1a;
    /* Match background */
    border-radius: 10px;
    z-index: 0;
}

.v4-electric-btn span {
    position: relative;
    z-index: 10;
    /* Ensure text is above background */
}

.v4-electric-btn:hover::before {
    animation: rotate-border 1.5s linear infinite;
    /* Speed up on hover */
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--electric-blue) 50%,
            var(--main-cyan) 60%,
            transparent 100%);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* V4.5: Electric Card Borders */
.v4-card-electric {
    position: relative;
    overflow: hidden;
    border: none !important;
    /* Override existing borders */
}

.v4-card-electric::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--electric-blue) 25%,
            var(--wave-blue) 50%,
            transparent 100%);
    border-radius: inherit;
    animation: rotate-border 4s linear infinite;
    animation: rotate-border 4s linear infinite;
    z-index: 0;
    /* V5: Always visible */
}

/* Removed hover dependency for visibility */

.v4-card-electric::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0a0a1a;
    border-radius: inherit;
    z-index: 0;
}

.v4-card-electric>* {
    position: relative;
    z-index: 10;
}

/* V5: Electric Icons */
.v5-icon-electric {
    position: relative;
    overflow: hidden;
    /* Ensure icon container has shape */
    display: inline-flex;
    /* Fix for icon centering */
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    /* Circular for icons */
    padding: 2px;
    /* Border width */
}

.v5-icon-electric::before {
    content: '';
    position: absolute;
    inset: -50%;
    /* Large enough to cover rotation */
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--electric-blue) 40%,
            transparent 80%,
            transparent 100%);
    top: -50%;
    left: -50%;
    animation: rotate-border 3s linear infinite;
    z-index: 0;
}

.v5-icon-electric::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0a0a1a;
    border-radius: inherit;
    z-index: 0;
}

.v5-icon-electric>* {
    position: relative;
    z-index: 10;
}

.v4-card-electric::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #0a0a1a;
    border-radius: inherit;
    z-index: 0;
}

.v4-card-electric>* {
    position: relative;
    z-index: 10;
}

/* V5.5: Hero CTA Pulse Glow (Flashing Color Shift) */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
        background-position: 0% 50%;
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 60px rgba(6, 182, 212, 0.4);
        background-position: 100% 50%;
        transform: scale(1.05);
        border-color: #fff;
    }
}

.animate-pulse-glow {
    background-size: 200% 200%;
    animation: pulse-glow 2s infinite ease-in-out;
}

/* V6: Custom Neon Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--main-cyan);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--main-cyan);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--electric-blue);
    box-shadow: 0 0 15px var(--electric-blue);
}

/* V6: Glass Mobile Menu */
#mobileMenu {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(10, 10, 26, 0.9);
    border-left: 1px solid rgba(6, 182, 212, 0.2);
}

/* V6: Laser Preloader Animation */
@keyframes laser-load {
    0% {
        transform: scaleX(0);
    }

    50% {
        transform: scaleX(0.7);
    }

    100% {
        transform: scaleX(1);
    }
}

.animate-laser-load {
    animation: laser-load 2s ease-in-out infinite;
}