/* ===================================
   Dr. Stephanie Youngblood — Custom Styles
   =================================== */

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

/* Custom selection color */
::selection {
    background-color: #C06C4A;
    color: #fff;
}

/* ===================================
   Navbar
   =================================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 243, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ===================================
   Reveal Animations
   =================================== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered delays for children */
.reveal-up:nth-child(1) { transition-delay: 0.05s; }
.reveal-up:nth-child(2) { transition-delay: 0.12s; }
.reveal-up:nth-child(3) { transition-delay: 0.19s; }
.reveal-up:nth-child(4) { transition-delay: 0.26s; }
.reveal-up:nth-child(5) { transition-delay: 0.33s; }

/* ===================================
   Mobile Menu
   =================================== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* ===================================
   Image hover effects
   =================================== */
.group img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================
   Form focus styles
   =================================== */
input:focus,
textarea:focus {
    outline: none;
}

/* ===================================
   Subtle image zoom on scroll
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-right img {
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* ===================================
   Utility
   =================================== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
