/* ============================================
   SIRECI MEDICAL GROUP — Custom Styles
   ============================================ */

/* Base & Utilities */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
    background: #F9ADA6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #781F2E;
}

/* Navigation */
.nav-link {
    position: relative;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(120, 31, 46, 0.08);
}

nav.scrolled .nav-link {
    color: #374151;
}

nav.scrolled .nav-link:hover {
    color: #781F2E;
    background: #fdf0f2;
}

nav.scrolled .mobile-link {
    color: #374151;
}

/* Mobile Menu */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* Hero */
#hero {
    position: relative;
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #781F2E, #F9ADA6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Approach Steps */
.approach-step::after {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
    height: 2px;
    background: repeating-linear-gradient(90deg, #F9ADA6, #F9ADA6 8px, transparent 8px, transparent 16px);
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: #F9ADA6;
    opacity: 0.3;
    line-height: 1;
    pointer-events: none;
}

/* Buttons */
button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button[type="submit"]:active::after {
    width: 300px;
    height: 300px;
}

/* Form Inputs */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(120, 31, 46, 0.1);
}

/* Floating Animation for Decorative Elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

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

/* Scroll Reveal Animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal[data-reveal="left"] {
        transform: translateX(-30px);
    }
    
    .reveal[data-reveal="right"] {
        transform: translateX(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: none;
    }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
}
