/* Custom styles for Hi Desert Sleep Disorders Center */

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

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Active state for revealed elements */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    border-radius: 50%;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.05) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
    border-radius: 50%;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    border-radius: 50%;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    background: rgba(13, 148, 136, 0.04);
    top: 30%;
    left: 5%;
    border-radius: 16px;
    transform: rotate(45deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(13, 148, 136, 0.04);
    top: 60%;
    right: 8%;
    transform: rotate(-15deg);
}

/* Navbar scroll behavior */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hero scroll indicator animation */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .geo-shape {
        animation: none;
    }
}

/* Service card hover lift */
.group:hover .group-hover\:bg-teal-500 {
    transition: background-color 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Print styles */
@media print {
    .fixed, .geo-shape, #navbar {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
