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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(20, 184, 166, 0.08);
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(20, 184, 166, 0.04);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 500px;
    height: 500px;
    border: 2px solid rgba(20, 184, 166, 0.05);
    border-radius: 50%;
    bottom: -200px;
    left: -150px;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(20, 184, 166, 0.06);
    top: 25%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(20, 184, 166, 0.04);
    top: 40%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.geo-hex-1 {
    width: 300px;
    height: 300px;
    background: rgba(20, 184, 166, 0.03);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    top: 10%;
    left: -80px;
}

.geo-line-1 {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.15), transparent);
    top: 50%;
    right: 5%;
    transform: rotate(-30deg);
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(20, 184, 166, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    top: 20%;
    left: 15%;
    opacity: 0.6;
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

/* ========== REVEAL ANIMATIONS (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(20, 184, 166, 0.1);
}

.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

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

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

/* ========== SERVICE CARDS ========== */
.service-card {
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.08);
}

/* ========== MOBILE MENU ========== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #2DD4BF;
}
</style>
