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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(20, 184, 166, 0.3);
    color: white;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* ===== NAV ===== */
#main-nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#main-nav.scrolled {
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.line:nth-child(1) {
    transform-origin: center;
}
.line:nth-child(3) {
    transform-origin: center;
}

#menu-btn.active .line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
#menu-btn.active .line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn.active .line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 5px;
}

/* ===== HERO DECORATIVE ===== */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-12px) rotate(45deg); }
}

.hero-deco {
    animation: float 4s ease-in-out infinite;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(13, 148, 136, 0.2);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== FORM STYLES ===== */
select option {
    background: #1e293b;
    color: white;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.05;
    }
}
