/* Custom Styles for Dr. Fabella Medical Website */

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

/* Section Labels */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7B2D3B;
    margin-bottom: 1rem;
}

/* Navbar Scroll Effect */
.nav-scrolled {
    background: rgba(253, 248, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

/* Scroll Indicator Animation */
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(160%); }
}

.scroll-line {
    animation: scrollLine 1.8s ease-in-out infinite;
}

/* Service Card Hover */
.service-card {
    transition: transform 0.4s ease, background 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

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

.mobile-nav-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mobile Menu Button Animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

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

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* About Image Container */
.about-image-container {
    position: relative;
}

/* Hero Badge */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
}

/* Hero Content */
.hero-content {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-content p {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-content .cta-group {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

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

/* Custom Focus Styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-line {
        animation: none;
    }
    
    .reveal,
    .reveal-hidden {
        opacity: 1;
        transform: none;
    }
    
    .hero-badge,
    .hero-content,
    .hero-content h1,
    .hero-content p,
    .hero-content .cta-group {
        animation: none;
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-label {
        font-size: 0.7rem;
    }
}
