/* Custom Styles for Ibrahim Heart Clinic */

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

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

::-webkit-scrollbar-track {
    background: #0d0d0f;
}

::-webkit-scrollbar-thumb {
    background: #2d0d16;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #591f2e;
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* Service card hover effect */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(13, 13, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(251, 191, 36, 0.1);
}

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

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

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

/* Menu icon animation */
.menu-active #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-active #line2 {
    opacity: 0;
}

.menu-active #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-color: rgba(251, 191, 36, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .service-card:hover {
        transform: none;
        transition: none;
    }
    
    .mobile-link {
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }
}

/* Print styles */
@media print {
    nav,
    #contact,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
