/* ============================================
   Steven J. Smith, DMD — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Geometric Background Blobs
   ============================================ */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.blob--plum {
    background: rgba(123, 45, 139, 0.08);
}

.blob--amber {
    background: rgba(245, 158, 11, 0.06);
}

.blob.top {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
}

.blob.mid {
    width: 400px;
    height: 400px;
    top: 40%;
    right: -100px;
}

.blob.low {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: 20%;
}

/* ============================================
   Geometric Shapes (Hero & Section Decorations)
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle--lg {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(123, 45, 139, 0.3), rgba(245, 158, 11, 0.2));
}

.geo-circle--md {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(123, 45, 139, 0.2));
}

.geo-circle--sm {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(123, 45, 139, 0.4), rgba(245, 158, 11, 0.3));
}

.geo-square--md {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(123, 45, 139, 0.2));
    border-radius: 20px;
}

.geo-square--sm {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(123, 45, 139, 0.4), rgba(245, 158, 11, 0.3));
    border-radius: 12px;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(245, 158, 11, 0.2);
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-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);
    }

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

    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Always visible for reduced motion or no-JS */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 139, 0.08);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(123, 45, 139, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B2D8B, #F59E0B);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

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

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu {
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 500px;
    opacity: 1;
}

#mobileMenu.closed {
    max-height: 0;
    opacity: 0;
}

.mobile-nav-link {
    display: block;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(123, 45, 139, 0.2);
    color: #3d1348;
}

/* ============================================
   Focus Styles
   ============================================ */
:focus-visible {
    outline: 2px solid #7B2D8B;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7B2D8B, #a02fb8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5c1f6a, #7B2D8B);
}

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

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(10px) rotate(-2deg); }
}

.geo-shape {
    animation: float 6s ease-in-out infinite;
}

.geo-circle--md {
    animation: float-reverse 8s ease-in-out infinite;
}

.geo-square--sm {
    animation: float 7s ease-in-out infinite;
}
