/* ============================================
   Belvidere Clinic — 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;
}

/* --- Navbar --- */
.nav-fixed {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(126, 34, 206, 0.08);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-fixed.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-logo-text {
    text-shadow: none;
}

.nav-fixed.scrolled .nav-logo-text {
    text-shadow: none;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7e22ce, #f59e0b);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #7e22ce 0%, #9333ea 50%, #a855f7 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 34, 206, 0.4);
    background: linear-gradient(135deg, #6b21a8 0%, #7e22ce 50%, #9333ea 100%);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-hero-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
    color: #3b0764;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    color: #3b0764;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
}

.btn-hero-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

/* --- Blobs --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob--plum {
    background: #7e22ce;
}

.blob--amber {
    background: #fbbf24;
    animation-delay: -3s;
    animation-duration: 10s;
}

.blob--plum-light {
    background: #c084fc;
    animation-delay: -5s;
    animation-duration: 12s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Geometric Shapes --- */
.geo-shape {
    position: absolute;
    opacity: 0.12;
}

.geo-circle {
    border-radius: 50%;
    border: 3px solid;
}

.geo-circle--1 {
    width: 200px;
    height: 200px;
    top: 15%;
    left: 8%;
    border-color: #fbbf24;
    animation: geoFloat 12s ease-in-out infinite;
}

.geo-circle--2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    border-color: #c084fc;
    animation: geoFloat 8s ease-in-out infinite reverse;
}

.geo-circle--3 {
    width: 300px;
    height: 300px;
    bottom: -5%;
    left: -5%;
    border-color: #fbbf24;
    animation: geoFloat 15s ease-in-out infinite;
}

.geo-square {
    border-radius: 20px;
    border: 3px solid;
}

.geo-square--1 {
    width: 100px;
    height: 100px;
    top: 25%;
    right: 5%;
    background: #fbbf24;
    border-color: transparent;
    animation: geoSpin 20s linear infinite;
    transform-origin: center;
}

.geo-square--2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    border-color: #c084fc;
    animation: geoSpin 15s linear infinite reverse;
    transform-origin: center;
}

.geo-square--3 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 20%;
    background: #c084fc;
    border-color: transparent;
    animation: geoSpin 18s linear infinite;
    transform-origin: center;
}

.geo-triangle {
    width: 0;
    height: 0;
    border: none;
}

.geo-triangle--1 {
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid #fbbf24;
    top: 40%;
    left: 5%;
    animation: geoFloat 10s ease-in-out infinite;
    opacity: 0.15;
}

.geo-triangle--2 {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 69px solid #c084fc;
    bottom: 15%;
    right: 8%;
    animation: geoFloat 9s ease-in-out infinite reverse;
    opacity: 0.15;
}

.geo-ring {
    border-radius: 50%;
    border: 4px solid;
    background: transparent !important;
}

.geo-ring--1 {
    width: 160px;
    height: 160px;
    top: 20%;
    right: 15%;
    border-color: #fbbf24;
    animation: geoSpin 25s linear infinite;
}

@keyframes geoFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

@keyframes geoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Dots Pattern --- */
.dots-pattern {
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 20px 20px;
    width: 120px;
    height: 120px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Service Cards --- */
.service-card {
    opacity: 1;
}

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

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

.mobile-menu-link {
    position: relative;
    padding-left: 0;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(126, 34, 206, 0.08), transparent);
    border-radius: 8px;
    transition: width 0.2s ease;
}

.mobile-menu-link:hover::before {
    width: calc(100% - 0px);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6b21a8, #7e22ce);
}

/* --- Selection --- */
::selection {
    background: rgba(126, 34, 206, 0.2);
    color: #3b0764;
}
