/* ========== BASE STYLES ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(45, 125, 134, 0.2);
    color: #1a4047;
}

/* ========== NAVIGATION ========== */
.nav-scrolled #navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2d7d86;
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
#mobileMenu {
    pointer-events: none;
}

#mobileMenu.open {
    pointer-events: auto;
}

.mobile-nav-link {
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9fa 50%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 10;
}

/* Floating badge animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ========== PRODUCT CARDS ========== */
.product-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    border-color: transparent;
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ========== FEATURE CARDS ========== */
.feature-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    transition: background-color 0.3s ease;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-2px);
}

/* ========== 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 preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero img {
        h-[400px];
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
}

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

/* ========== SMOOTH SCROLL OFFSET ========== */
section[id] {
    scroll-margin-top: 80px;
}
