/* Custom styles for Dr. Rashid's practice */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 251, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(127, 28, 28, 0.08);
}

/* Hero geometric animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

.hero-float-1 {
    animation: float 6s ease-in-out infinite;
}

.hero-float-2 {
    animation: float-reverse 8s ease-in-out infinite;
}

/* Geometric accent shapes */
.geo-square {
    position: absolute;
    border-radius: 1rem;
    opacity: 0.6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #b92b2b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7f1c1c;
}

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

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Service card hover effect */
.group:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    transition: transform 0.3s ease;
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    translate: 0;
    pointer-events: all;
}

/* Pulse animation for the dot */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.animate-pulse {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Form input transitions */
input, select, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Print styles */
@media print {
    #navbar, #back-to-top, .scroll-reveal { display: none !important; }
    body { background: white; color: black; }
}
