/* ============ CUSTOM STYLES ============ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #050505;
    overflow-x: hidden;
}

/* ============ GLASSMORPHISM ============ */
.glass-card {
    background: rgba(7, 24, 46, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ============ NAVBAR ============ */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00bfff, #39ff14);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============ BUTTONS ============ */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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 ease;
}

.btn-glow:hover::before {
    left: 100%;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 191, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 191, 255, 0.6);
    }
}

@keyframes scan-line {
    0% {
        top: -10%;
    }
    100% {
        top: 110%;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

.animation-delay-800 {
    animation-delay: 0.8s;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ============ FIBER LINES ============ */
.fibers-container {
    pointer-events: none;
}

.fiber-line {
    position: absolute;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.3), rgba(57, 255, 20, 0.15), transparent);
    animation: fiber-move 8s linear infinite;
    opacity: 0.5;
}

.fiber-line:nth-child(1) {
    top: 20%;
    left: -50%;
    animation-duration: 7s;
    animation-delay: 0s;
}

.fiber-line:nth-child(2) {
    top: 40%;
    left: -50%;
    animation-duration: 9s;
    animation-delay: 1s;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.2), rgba(0, 191, 255, 0.1), transparent);
}

.fiber-line:nth-child(3) {
    top: 60%;
    left: -50%;
    animation-duration: 11s;
    animation-delay: 2s;
}

.fiber-line:nth-child(4) {
    top: 75%;
    left: -50%;
    animation-duration: 8s;
    animation-delay: 3s;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.2), rgba(57, 255, 20, 0.3), transparent);
}

.fiber-line:nth-child(5) {
    top: 90%;
    left: -50%;
    animation-duration: 10s;
    animation-delay: 0.5s;
}

@keyframes fiber-move {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

/* ============ BENEFIT CARDS ============ */
.benefit-card {
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00bfff, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 191, 255, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.benefit-card:hover::after {
    opacity: 1;
}

/* ============ SERVICE CARDS ============ */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 191, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 191, 255, 0.5);
}

/* ============ SELECTION ============ */
::selection {
    background: rgba(0, 191, 255, 0.3);
    color: #fff;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
    .benefit-card,
    .service-card {
        padding: 1.25rem;
    }
}

/* ============ COUNTER ANIMATION ============ */
.counter {
    transition: all 0.3s ease;
}

/* ============ MAP PULSE ============ */
@keyframes map-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ============ FORM FOCUS STATES ============ */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

/* ============ SCAN OVERLAY ============ */
.glass-card {
    position: relative;
}

/* ============ WHATSAPP PULSE ============ */
#whatsappFloat .animate-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}