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

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

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #0a2540;
    background: #f4fcfb;
    overflow-x: hidden;
}

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

.circle-1 {
    width: 500px;
    height: 500px;
    background: rgba(77, 216, 200, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(77, 216, 200, 0.06);
    border-radius: 50%;
    bottom: 10%;
    left: -80px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 120px;
    height: 120px;
    background: rgba(255, 126, 179, 0.1);
    border-radius: 50%;
    top: 40%;
    right: 5%;
    animation: float-slow 12s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(77, 216, 200, 0.07);
    top: 20%;
    left: 5%;
    animation: float-slow 18s ease-in-out infinite;
    transform: rotate(15deg);
}

.square-1 {
    width: 100px;
    height: 100px;
    background: rgba(77, 216, 200, 0.06);
    border-radius: 20px;
    bottom: 15%;
    right: 8%;
    animation: float-slow 14s ease-in-out infinite;
    transform: rotate(45deg);
}

.dot-grid {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(77, 216, 200, 0.2) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    top: 30%;
    right: 2%;
    animation: float-slow 16s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

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

#navbar.scrolled {
    background: rgba(244, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 37, 64, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2ec4b6;
    border-radius: 1px;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.close {
    opacity: 0;
    pointer-events: none;
}

#menuIcon span:nth-child(1) {
    transform-origin: top;
}

#menuIcon span:nth-child(3) {
    transform-origin: bottom;
}

body.menu-open #menuIcon span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

body.menu-open #menuIcon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.menu-open #menuIcon span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .geo-shape {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #2ec4b6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(77, 216, 200, 0.3);
    color: #0a2540;
}
