/* ============================================
   Montshire Pediatrics — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    background-color: #06131f;
    color: #d1d9e6;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
}

.geo-circle-1 {
    top: 15%;
    left: -4%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px solid rgba(74, 222, 128, 0.08);
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 20%;
    right: -3%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 2px solid rgba(74, 222, 128, 0.06);
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    top: 40%;
    right: 8%;
    width: 80px;
    height: 80px;
    background: rgba(74, 222, 128, 0.04);
    border: 1px solid rgba(74, 222, 128, 0.1);
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-triangle-1 {
    top: 60%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(74, 222, 128, 0.04);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-ring-1 {
    top: 25%;
    right: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(74, 222, 128, 0.05);
    animation: pulse-slow 8s ease-in-out infinite;
}

/* ============================================
   Floating Animations
   ============================================ */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

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

.animate-float-delayed {
    animation: float-slow 7s ease-in-out infinite;
    animation-delay: -2s;
}

.animate-float-delayed-2 {
    animation: float-slow 8s ease-in-out infinite;
    animation-delay: -4s;
}

/* ============================================
   Navigation
   ============================================ */
.nav-scrolled {
    background: rgba(6, 19, 31, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 222, 128, 0.08);
}

.nav-scrolled .nav-link {
    position: relative;
}

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

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

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

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

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* When JS is disabled, content is always visible */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

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

::-webkit-scrollbar-track {
    background: #06131f;
}

::-webkit-scrollbar-thumb {
    background: #1e3f60;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d5580;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #f0f4f8;
}

/* ============================================
   Select Dropdown Styling
   ============================================ */
select option {
    background: #0c1f31;
    color: #d1d9e6;
}

/* ============================================
   Focus Visible for Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-square-1,
    .geo-triangle-1,
    .geo-ring-1 {
        display: none;
    }
}
