/* ===== RESET & BASE ===== */
*, *::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; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== HEADER ===== */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#site-header.scrolled {
    background: rgba(10, 37, 64, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #34D4A8;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== MOBILE MENU ===== */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }
#mobile-menu .menu-line.active:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#mobile-menu .menu-line.active:nth-child(2) { opacity: 0; }
#mobile-menu .menu-line.active:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 1.25rem; }

/* ===== HERO SHAPES ===== */
.hero-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
}
.shape-circle-1 {
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52,212,168,0.12) 0%, transparent 70%);
    top: -10%; right: -5%;
    animation: float-slow 18s ease-in-out infinite;
}
.shape-circle-2 {
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(52,212,168,0.08);
    bottom: 10%; left: 5%;
    animation: float-slow 14s ease-in-out infinite reverse;
}
.shape-circle-3 {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(52,212,168,0.15);
    top: 30%; left: 15%;
    animation: float-slow 10s ease-in-out infinite;
}
.shape-rect-1 {
    width: 180px; height: 180px;
    border: 2px solid rgba(52,212,168,0.2);
    border-radius: 24px;
    top: 15%; right: 10%;
    transform: rotate(15deg);
    animation: float-slow 16s ease-in-out infinite;
}
.shape-rect-2 {
    width: 80px; height: 80px;
    background: rgba(52,212,168,0.1);
    border-radius: 16px;
    bottom: 20%; right: 25%;
    transform: rotate(-30deg);
    animation: float-slow 12s ease-in-out infinite reverse;
}
.shape-tri {
    width: 0; height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(52,212,168,0.08);
    top: 40%; right: 30%;
    animation: float-slow 20s ease-in-out infinite;
}
.shape-dots {
    width: 100px; height: 100px;
    bottom: 30%; left: 8%;
    background-image: radial-gradient(circle, rgba(52,212,168,0.3) 1px, transparent 1px);
    background-size: 12px 12px;
    animation: float-slow 8s ease-in-out infinite reverse;
}

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

/* ===== SERVICE CARDS ===== */
.service-card { position: relative; overflow: hidden; }
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #34D4A8, #0FBF90);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover::before { opacity: 1; }

/* ===== WHY CARDS ===== */
.why-card { position: relative; overflow: hidden; }
.why-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #34D4A8, #0FBF90);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.why-card:hover::after { opacity: 1; }

/* ===== 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(32px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FORM FOCUS STATES ===== */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 212, 168, 0.15);
}

/* ===== SELECTION ===== */
::selection { background: rgba(52, 212, 168, 0.3); color: #fff; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A2540; }
::-webkit-scrollbar-thumb { background: rgba(52, 212, 168, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(52, 212, 168, 0.5); }
