/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

::selection {
    background: #4ade80;
    color: #0a1628;
}

/* ===== GEOMETRIC DECORATIVE SHAPES ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #4ade80;
    top: -200px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #4ade80;
    bottom: 10%;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 208px solid #4ade80;
    top: 40%;
    right: 5%;
    opacity: 0.04;
    animation: rotate-slow 30s linear infinite;
    transform-origin: center;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #4ade80 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    top: 60%;
    left: 8%;
    opacity: 0.08;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-rect {
    width: 160px;
    height: 160px;
    border: 3px solid #4ade80;
    border-radius: 24px;
    top: 30%;
    left: 3%;
    opacity: 0.05;
    transform: rotate(45deg);
    animation: rotate-slow 25s linear infinite;
}

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

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

/* ===== NAVBAR ===== */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-line {
    display: block;
}

#menuBtn.active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .nav-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .nav-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal.delay-1 { transition-delay: 0.1s; }
    .reveal.delay-2 { transition-delay: 0.2s; }
    .reveal.delay-3 { transition-delay: 0.3s; }
    .reveal.delay-4 { transition-delay: 0.4s; }
    .reveal.delay-5 { transition-delay: 0.5s; }
    .reveal.delay-6 { transition-delay: 0.6s; }
}

/* When JS is ready, enable reveal animations */
.js-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ===== FORM STYLES ===== */
select option {
    background: #f5f0e8;
    color: #0a1628;
}

input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    .geo-triangle {
        display: none;
    }
    .geo-dots {
        width: 100px;
        height: 100px;
    }
    .geo-rect {
        width: 80px;
        height: 80px;
    }
}
