/* ============ GLOBAL STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #040D0A;
    overflow-x: hidden;
}

/* ============ NAVBAR ============ */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10B981, #059669);
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: #059669 !important;
    font-weight: 600;
}

/* ============ HERO SECTION ============ */
.hero-section {
    background: linear-gradient(135deg, #040D0A 0%, #0A1F1A 30%, #071815 60%, #040D0A 100%);
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(5, 150, 105, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.hero-globe-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ============ PARTICLE EFFECT ============ */
.particle-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #10B981;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(50px);
    }
}

/* ============ SECTION BACKGROUNDS ============ */
.section-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #040D0A 0%, #071815 50%, #040D0A 100%);
    z-index: 0;
}

.section-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 30%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 70%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

.section-bg-alt {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #071815 0%, #0A1F1A 50%, #071815 100%);
    z-index: 0;
}

.section-bg-alt::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
}

/* ============ GLASS CARD ============ */
.glass-card {
    background: linear-gradient(135deg, rgba(10, 31, 26, 0.8), rgba(4, 13, 10, 0.9));
    border: 1px solid rgba(26, 61, 51, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.08), inset 0 0 30px rgba(16, 185, 129, 0.02);
    transform: translateY(-2px);
}

/* ============ SERVICE CARDS ============ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10B981, transparent);
    transition: left 0.5s ease;
}

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

/* ============ ANIMATIONS ============ */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* ============ WHATSAPP WIDGET ============ */
.whatsapp-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.4);
    transform-origin: bottom right;
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.whatsapp-btn {
    position: relative;
    z-index: 10;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* ============ SCROLL ANIMATIONS ============ */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ DIGITAL MATRIX LINES ============ */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* ============ GLOW EFFECTS ============ */
.glow-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
    animation: glowMove 3s ease-in-out infinite;
}

@keyframes glowMove {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-10%);
    }
    50% {
        opacity: 0.8;
        transform: translateX(10%);
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .whatsapp-popup {
        width: 300px;
        right: -10px;
    }

    .hero-section {
        min-height: 70vh !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-popup {
        width: 280px;
        right: -20px;
    }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #040D0A;
}

::-webkit-scrollbar-thumb {
    background: #1A3D33;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10B981;
}

/* ============ SELECTION ============ */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #fff;
}

/* ============ BORDER WIDTH FIX ============ */
.border-3 {
    border-width: 3px;
}

/* ============ COUNTER ANIMATION ============ */
.counter-value {
    display: inline-block;
}
