/* ==========================================
   Dr. Phyllis Skolnik MD PA — Custom Styles
   ========================================== */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(135, 68, 116, 0.15);
    color: #361b2e;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5f9;
}
::-webkit-scrollbar-thumb {
    background: #dcb3d4;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b56fa8;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes floatCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation classes */
.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float-in {
    animation: floatIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float-card {
    animation: floatCard 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-gentle-float {
    animation: gentleFloat 4s ease-in-out infinite;
}

/* Intersection Observer revealed animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Navbar */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(135, 68, 116, 0.08);
}

.nav-scrolled .font-serif {
    color: #361b2e;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Link underline animation */
a {
    text-decoration: none;
}

/* Focus styles */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #b56fa8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image placeholder fallback */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions for interactive elements */
button, a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Print styles */
@media print {
    nav, #contact, .cta-section { display: none; }
    body { color: #000; background: #fff; }
}
