/* ============================================
   NW HIDS — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base font styles */
body {
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(13, 148, 136, 0.0);
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(4, 47, 46, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: width 0.25s ease;
}

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

/* ============================================
   Mobile menu
   ============================================ */
.mobile-link {
    display: block;
}

/* ============================================
   Hero blobs
   ============================================ */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: blob-float 8s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #5eead4;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #2dd4bf;
    bottom: 10%;
    left: -80px;
    animation-delay: 2s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #99f6e4;
    top: 40%;
    right: 10%;
    animation-delay: 4s;
}

.blob-4 {
    width: 150px;
    height: 150px;
    background: #ccfbf1;
    bottom: 25%;
    right: 25%;
    animation-delay: 6s;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-15px, 20px) scale(0.95);
    }
    75% {
        transform: translate(25px, 15px) scale(1.02);
    }
}

/* ============================================
   Testimonials blobs
   ============================================ */
.testimonials-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}

.testimonials-blob.blob-1 {
    width: 500px;
    height: 500px;
    background: #5eead4;
    top: -150px;
    left: -150px;
}

.testimonials-blob.blob-2 {
    width: 400px;
    height: 400px;
    background: #2dd4bf;
    bottom: -100px;
    right: -100px;
}

/* ============================================
   Scroll reveal
   ============================================ */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* For reduced motion preference, ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-blob {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Selection color
   ============================================ */
::selection {
    background: #99f6e4;
    color: #042f2e;
}

/* ============================================
   Form select arrow
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ============================================
   Subtle card hover lift
   ============================================ */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .group {
        transition: none;
    }
    .group:hover {
        transform: none;
    }
}
