/* DoctorProfile Theme Custom Styles */

body {
    font-family: 'Cairo', sans-serif;
}

.font-heading {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(30,58,95,0.75) 35%, rgba(30,58,95,0.5) 60%, rgba(30,58,95,0.3) 100%);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Mobile Menu Animations */
.mobile-nav-link {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-link:focus,
.mobile-nav-link:focus-visible,
.mobile-submenu-toggle:focus,
.mobile-submenu-toggle:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.mobile-nav-link.opacity-100 {
    transform: translateX(0) !important;
}
#mobileMenuContent {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
}
#mobileMenuContent * {
    -webkit-tap-highlight-color: transparent;
}

/* Submenu Animations */
.submenu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.submenu-arrow {
    transition: transform 0.3s ease;
}
.submenu-arrow.rotate-180 {
    transform: rotate(180deg);
}
.submenu-link {
    animation: submenuSlideIn 0.3s ease forwards;
    opacity: 0;
}
.submenu:not(.hidden) .submenu-link {
    opacity: 1;
}
.submenu:not(.hidden) .submenu-link:nth-child(1) { animation-delay: 0.05s; }
.submenu:not(.hidden) .submenu-link:nth-child(2) { animation-delay: 0.1s; }
.submenu:not(.hidden) .submenu-link:nth-child(3) { animation-delay: 0.15s; }
.submenu:not(.hidden) .submenu-link:nth-child(4) { animation-delay: 0.2s; }
.submenu:not(.hidden) .submenu-link:nth-child(5) { animation-delay: 0.25s; }
.submenu:not(.hidden) .submenu-link:nth-child(6) { animation-delay: 0.3s; }

@keyframes submenuSlideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Desktop Mega Menu Styles */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #14B8A6;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mega Menu Visibility */
.mega-menu {
    pointer-events: none;
}
.dropdown-active .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto;
}
.dropdown-active .dropdown-arrow {
    transform: rotate(180deg);
}
.dropdown-active .dropdown-trigger {
    color: #14B8A6 !important;
}
.dropdown-active .dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: #14B8A6;
}

/* Slider Animations */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slide.prev {
    opacity: 0;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@keyframes smoothZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-slide.active img {
    animation: smoothZoom 20s ease-in-out infinite alternate;
}

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

.hero-content-animated {
    animation: fadeIn 1s ease-out 0.5s both;
}

/* Dot button styles */
.slider-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}
.slider-dot:hover {
    transform: scale(1.3);
}
.slider-dot.active {
    background: white !important;
    transform: scale(1.2);
}

/* Medical themed card hover effects */
.medical-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.medical-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(13, 148, 136, 0.2);
}

/* Pulse line animation */
@keyframes pulseLine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}
.pulse-animation {
    animation: pulseLine 2s ease-in-out infinite;
}

/* Button hover glow */
.btn-glow {
    transition: all 0.3s ease;
}
.btn-glow:hover {
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.4);
}

/* Service card active state */
.service-card.active {
    border-color: #0D9488 !important;
}
.service-card.active .service-indicator {
    opacity: 1 !important;
}
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
    transform: translateY(-2px);
}
.service-card:hover .fa-arrow-left {
    animation: arrowSlide 0.6s ease infinite;
}

@keyframes arrowSlide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}
