/* Custom CSS for Green Shifa Hospital Website */

/* Global Styles */
:root {
    --primary-color: #20b2aa;
    --primary-dark: #008b8b;
    --primary-light: #40e0d0;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* H1 Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes typewriter {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: var(--primary-color);
    }
    51%, 100% {
        border-color: transparent;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(32, 178, 170, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(32, 178, 170, 0.6), 0 0 30px rgba(32, 178, 170, 0.4);
    }
}

/* H1 Animation Classes */
.animate-h1 {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.animate-h1-slide {
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0;
}

.animate-h1-typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: typewriter 2s steps(40, end) forwards, blink 1s infinite;
    width: 0;
}

.animate-h1-glow {
    animation: fadeInUp 1s ease-out forwards, glow 3s ease-in-out infinite 1s;
    opacity: 0;
}

/* Delay classes for staggered animations */
.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Card Styles */
.feature-card,
.service-card,
.doctor-card,
.contact-card,
.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover,
.service-card:hover,
.doctor-card:hover,
.contact-card:hover,
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Button Styles */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #006666 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.2);
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(32, 178, 170, 0.25);
}

.form-control-lg,
.form-select-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Statistics */
.stat-item h2 {
    font-size: 3.5rem;
    font-weight: 700;
}

/* Timeline Styles */
.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Doctor Cards */
.doctor-image-container {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.1) 0%, rgba(0, 139, 139, 0.1) 100%);
}

/* Service Cards */
.service-detail {
    transition: all 0.3s ease;
}

.service-detail:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Specialty Cards */
.specialty-card {
    transition: all 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* Contact Form */
.card {
    border-radius: 1rem;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Working Hours */
.hour-item {
    padding: 1rem 0;
}

.hour-item:last-child {
    border-bottom: none !important;
}

/* Map Placeholder */
.map-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Emergency Section */
.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c82333 100%) !important;
}

/* Department Contact Cards */
.department-contact {
    transition: all 0.3s ease;
}

.department-contact:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* Social Links */
.social-links a {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #212529 100%);
}

footer .social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .stat-item h2 {
        font-size: 2.5rem;
    }
    
    .timeline-year {
        width: 60px !important;
        height: 60px !important;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}