/* =========================================
   Hospital Profile V2 - Modern Design
   ========================================= */

@font-face {
    font-family: 'FontBold';
    src: url('../fonts/Euclid_Circular_A_Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'FontNormal';
    src: url('../fonts/Euclid_Circular_A_Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'FontMedium';
    src: url('../fonts/Euclid_Circular_A_Medium.ttf') format('truetype');
}

:root {
    --color-primary: #EF3067;
    --color-primary-dark: #D62958;
    --color-text: #002935;
    --color-text-light: #6B7280;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'FontBold', sans-serif;
}

/* Full Width Hero */
.hero-fullwidth {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(135deg, #EF3067 0%, #002935 100%);
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 48, 103, 0.85) 0%, rgba(0, 41, 53, 0.75) 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2rem 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* Stats in Hero */
.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-family: 'FontBold', sans-serif;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--color-primary);
    font-family: 'FontMedium', sans-serif;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: white;
    font-family: 'FontMedium', sans-serif;
    font-size: 1rem;
    border: 2px solid white;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: white;
    color: var(--color-primary);
}

.btn-outline {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--color-primary);
    font-family: 'FontMedium', sans-serif;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-white {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--color-primary);
    font-family: 'FontMedium', sans-serif;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-white-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: white;
    font-family: 'FontMedium', sans-serif;
    border: 2px solid white;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-white-outline:hover {
    background: white;
    color: var(--color-primary);
}

/* Features Strip */
.features-strip {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-family: 'FontMedium', sans-serif;
    color: var(--color-text);
}

/* Section Styling */
.section-padding {
    padding: 5rem 0;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #FFF1F4;
    color: var(--color-primary);
    font-family: 'FontMedium', sans-serif;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--color-text);
}

.prose-custom p {
    color: var(--color-text-light);
    line-height: 1.75;
}

/* Stat Boxes */
.stat-box {
    background: white;
    border: 2px solid #FFC0CA;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(239, 48, 103, 0.15);
}

.stat-box-number {
    font-family: 'FontBold', sans-serif;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-box-label {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Department Cards */
.dept-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(239, 48, 103, 0.12);
    border-color: var(--color-primary);
}

.dept-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFE5EC 0%, #FFC0CA 100%);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.dept-icon svg {
    color: #EF3067;
    filter: drop-shadow(0 2px 4px rgba(239, 48, 103, 0.2));
}

.dept-card:hover .dept-icon {
    background: linear-gradient(135deg, #EF3067 0%, #D62958 100%);
    transform: scale(1.1);
}

.dept-card:hover .dept-icon svg {
    color: white;
}

.dept-title {
    font-family: 'FontBold', sans-serif;
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.dept-desc {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Doctor Cards V2 */
.doctors-scroll-wrapper {
    overflow: hidden;
    margin: 0 -1rem;
}

.doctors-scroll {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.doctors-scroll::-webkit-scrollbar {
    display: none;
}

.doctor-card-v2 {
    flex: 0 0 320px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.doctor-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(239, 48, 103, 0.15);
}

.doctor-image-v2 {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.doctor-image-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.doctor-info-v2 {
    padding: 1.5rem;
}

.doctor-name-v2 {
    font-family: 'FontBold', sans-serif;
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.doctor-specialty-v2 {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.doctor-rating-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #FFC107;
    font-size: 0.875rem;
}

.rating-text {
    color: var(--color-text-light);
    font-size: 0.75rem;
}

.doctor-link-v2 {
    color: var(--color-primary);
    font-family: 'FontMedium', sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.doctor-link-v2:hover {
    color: var(--color-primary-dark);
}

/* Facility Cards V2 */
.facility-card-v2 {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.facility-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.facility-icon-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FFE5EC 0%, #FFC0CA 100%);
    border-radius: 16px;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.facility-icon-v2 svg {
    color: #EF3067;
    filter: drop-shadow(0 2px 4px rgba(239, 48, 103, 0.2));
}

.facility-card-v2:hover .facility-icon-v2 {
    background: linear-gradient(135deg, #EF3067 0%, #D62958 100%);
    transform: scale(1.1);
}

.facility-card-v2:hover .facility-icon-v2 svg {
    color: white;
}

.facility-title-v2 {
    font-family: 'FontBold', sans-serif;
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.facility-desc-v2 {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Contact Items */
.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: #FFF1F4;
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    font-family: 'FontMedium', sans-serif;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-family: 'FontMedium', sans-serif;
    color: var(--color-text);
}

/* Map */
.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 5rem 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-fullwidth {
        height: 80vh;
        min-height: 500px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-fullwidth {
        height: 70vh;
        min-height: 450px;
    }
    
    .hero-content-wrapper {
        padding-top: 6rem !important;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
}

/* =========================================
   PREMIUM ANIMATIONS & EFFECTS
   ========================================= */

/* Smooth Transitions for All Interactive Elements */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient Animation for Hero */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(239, 48, 103, 0.85) 0%, rgba(0, 41, 53, 0.75) 50%, rgba(239, 48, 103, 0.85) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Floating Animation for Logo Badge */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.main-section .inline-flex.items-center.justify-center {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation for Quick Stats */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.main-section .grid > div {
    animation: pulse 2s ease-in-out infinite;
}

.main-section .grid > div:nth-child(1) {
    animation-delay: 0s;
}

.main-section .grid > div:nth-child(2) {
    animation-delay: 0.2s;
}

.main-section .grid > div:nth-child(3) {
    animation-delay: 0.4s;
}

.main-section .grid > div:nth-child(4) {
    animation-delay: 0.6s;
}

/* Shimmer Effect for Feature Icons */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.features-strip .inline-flex {
    position: relative;
    overflow: hidden;
}

.features-strip .inline-flex::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 3s infinite;
}

/* Glow Effect on Hover */
.department-card:hover,
.facility-card:hover {
    box-shadow: 0 15px 40px rgba(239, 48, 103, 0.2),
                0 0 30px rgba(239, 48, 103, 0.1);
}

/* Icon Rotation on Hover */
.department-card:hover svg,
.facility-card:hover svg {
    animation: iconRotate 0.6s ease;
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

/* Stat Box Number Animation */
.stat-box-number {
    background: linear-gradient(135deg, #EF3067 0%, #D62958 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Ripple Effect */
.btn-primary,
.btn-outline,
.btn-white {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-outline::before,
.btn-white::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-outline:hover::before,
.btn-white:hover::before {
    width: 300px;
    height: 300px;
}

/* Doctor Card Image Zoom */
.doctor-card-v2:hover .doctor-image-v2 img {
    transform: scale(1.1);
    transition: transform 0.6s ease;
}

.doctor-image-v2 img {
    transition: transform 0.6s ease;
}

/* Badge Bounce on Hover */
.doctor-card-v2:hover .doctor-badge {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(-7px);
    }
}

/* Scroll Indicator Animation */
@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* Section Label Slide In */
.section-label {
    position: relative;
    overflow: hidden;
}

.section-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.section-label:hover::before {
    left: 100%;
}

/* Contact Icon Pulse */
.contact-icon {
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(239, 48, 103, 0.3);
}

/* Map Wrapper Hover Effect */
.map-wrapper {
    transition: all 0.3s ease;
}

.map-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* CTA Banner Gradient Animation */
.cta-banner {
    background: linear-gradient(135deg, #EF3067 0%, #D62958 50%, #EF3067 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

/* Staggered Fade In for Grid Items */
.grid > * {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

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

.grid > *:nth-child(1) { animation-delay: 0.1s; }
.grid > *:nth-child(2) { animation-delay: 0.2s; }
.grid > *:nth-child(3) { animation-delay: 0.3s; }
.grid > *:nth-child(4) { animation-delay: 0.4s; }
.grid > *:nth-child(5) { animation-delay: 0.5s; }
.grid > *:nth-child(6) { animation-delay: 0.6s; }
.grid > *:nth-child(7) { animation-delay: 0.7s; }
.grid > *:nth-child(8) { animation-delay: 0.8s; }
.grid > *:nth-child(9) { animation-delay: 0.9s; }

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

/* Link Underline Animation */
a {
    position: relative;
}

a[href^="#"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

a[href^="#"]:hover::after {
    width: 100%;
}

/* Video Overlay Pulse */
@keyframes overlayPulse {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

.main-section > div[style*="background-color"] {
    animation: overlayPulse 4s ease-in-out infinite;
}

/* Doctors Scroll Smooth Scrolling */
.doctors-scroll {
    scroll-behavior: smooth;
}

/* Enhanced Shadow on Scroll */
@keyframes shadowGrow {
    from {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    to {
        box-shadow: 0 20px 60px rgba(239, 48, 103, 0.2);
    }
}

/* Toggle Button Animation */
#toggleDepartments {
    transition: all 0.3s ease;
}

#toggleDepartments:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(239, 48, 103, 0.3);
}

#toggleDepartments:active {
    transform: scale(0.98);
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    /* Reduce animation intensity on mobile */
    .main-section .inline-flex.items-center.justify-center {
        animation: float 4s ease-in-out infinite;
    }
    
    .main-section .grid > div {
        animation: none;
    }
    
    .hero-overlay {
        animation: gradientShift 20s ease infinite;
    }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-overlay,
    .cta-banner {
        animation: none !important;
    }
}

/* Loading State Shimmer */
@keyframes shimmerLoading {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.loading-shimmer {
    animation: shimmerLoading 1.2s ease-in-out infinite;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 800px 104px;
}

/* Smooth Page Transitions */
body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Utility Classes for Text Styling */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-gray-600 {
    color: #6B7280;
}

.text-gray-700 {
    color: #4B5563;
}

.text-gray-900 {
    color: #111827;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.mb-2 {
    margin-bottom: 0.5rem;
}
