/* Custom styles for Dr. Umut Murat Caglar D.D.S. website */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0612;
}
::-webkit-scrollbar-thumb {
    background: #330f33;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4d164d;
}

/* Selection color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* Pulse animation for hero orbs */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Scroll line animation */
@keyframes scroll-line {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        height: 32px;
        opacity: 1;
    }
    100% {
        height: 32px;
        opacity: 0;
    }
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-color 0.5s ease, 
                box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(245, 158, 11, 0.1);
}

/* Testimonial card hover effects */
.testimonial-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-color 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(245, 158, 11, 0.08);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Mobile menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-open #menuBtn .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
body.menu-open #menuBtn .menu-line:nth-child(2) {
    opacity: 0;
}
body.menu-open #menuBtn .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* Scroll reveal base state (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion support */
@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;
    }
    
    .animate-pulse-slow {
        animation: none;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}
