/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #fff;
}

/* Geometric Shapes */
.geo-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -200px;
    pointer-events: none;
}

.geo-circle--1 {
    animation: float-slow 20s ease-in-out infinite;
}

.geo-square {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: 32px;
    bottom: 10%;
    left: 5%;
    transform: rotate(45deg);
    pointer-events: none;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(52, 211, 153, 0.07);
    top: 20%;
    left: -40px;
    pointer-events: none;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 30%;
    right: 8%;
    background-image: radial-gradient(circle, rgba(52, 211, 153, 0.3) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    animation: float-slow 22s ease-in-out infinite reverse;
}

.geo-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 2px solid rgba(52, 211, 153, 0.12);
    border-radius: 50%;
    bottom: 25%;
    right: 15%;
    pointer-events: none;
    animation: spin-slow 30s linear infinite;
}

.geo-stripe {
    position: absolute;
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.15), transparent);
    top: 45%;
    left: 0;
    transform: rotate(-15deg);
    pointer-events: none;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Service Cards */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Mobile Menu */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(4, 11, 22, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-scrolled #navbar {
    padding: 0;
}

/* Menu animation */
.menu-line {
    display: block;
}

body.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

body.menu-open .menu-line:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Scroll reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040B16;
}
::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 211, 153, 0.5);
}
