/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ========== GEOMETRIC BACKGROUND SHAPES ========== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.circle-teal {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,148,136,0.08) 0%, transparent 70%);
}
.circle-slate {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(148,163,184,0.1) 0%, transparent 70%);
}
.triangle-teal {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 120px 200px 120px;
    border-color: transparent transparent rgba(13,148,136,0.06) transparent;
    transform: rotate(-15deg);
}
.rect-slate {
    width: 200px;
    height: 200px;
    background: rgba(148,163,184,0.07);
    border-radius: 30px;
    transform: rotate(45deg);
}

/* ========== NAVBAR ========== */
#navbar {
    background: rgba(248,250,252,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226,232,240,0.5);
}
#navbar.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }
.nav-brand-text { transition: color 0.3s; }
.nav-brand-sub { transition: color 0.3s; }

/* ========== MOBILE MENU ========== */
.mobile-link { transition: all 0.3s ease; }
.mobile-link:hover { transform: translateX(8px); }

/* ========== HERO ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}
.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.45s; }
.fade-in:nth-child(5) { animation-delay: 0.6s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ========== FLOATING CARDS ========== */
.floating-card {
    animation: float 4s ease-in-out infinite;
}
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1.5s; }

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

/* ========== 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, #0d9488, #2dd4bf);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); }

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

/* ========== BUTTONS ========== */
a, button { cursor: pointer; }

/* ========== FORM ========== */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .floating-card { display: none; }
    .geo-shape { display: none; }
}

/* ========== SELECTION ========== */
::selection { background: rgba(13,148,136,0.2); color: #0f766e; }
</script>
