/* ==========================================================================
   Modern UI Override for Alshalabi Clinic
   This file enhances the visual aesthetics of the original design.
   ========================================================================== */

:root {
    --primary-blue: #0f172a;
    --bright-blue: #2563eb;
    --accent-blue: #3b82f6;
    --light-blue: #eff6ff;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-hover: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseSoft {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn-header, .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--white);
}

.btn-header:hover, .btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    color: var(--white);
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--bright-blue);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    background: linear-gradient(-45deg, #0f172a, #1e3a8a, #2563eb, #3b82f6);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url('data:image/svg+xml;utf8,<svg opacity="0.05" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="white"/></svg>') repeat;
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-content {
    animation: fadeUp 1s ease-out forwards;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 600;
}

.hero-highlight {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.3s ease;
}

.hero-highlight:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* Cards (Features, Services) */
.feature-card, .service-card, .testimonial-card, .feature-item, .faq-item {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.feature-card::after, .service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.feature-card:hover, .service-card:hover, .testimonial-card:hover, .feature-item:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::after, .service-card:hover::after {
    transform: scaleX(1);
}

.service-card {
    background: var(--white);
    border-right: none;
}

.feature-icon, .service-icon {
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: var(--light-blue);
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon, .service-card:hover .service-icon {
    animation: pulseSoft 1s infinite;
}

/* Quick Contact Strip */
.quick-contact-card {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--light-blue);
}

.quick-contact-card:hover {
    background: var(--bright-blue);
    color: var(--white) !important;
    transform: translateY(-5px);
}

.quick-contact-card:hover span, .quick-contact-card:hover strong {
    color: var(--white);
}

/* Gallery Update */
.gallery-slide img {
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0) 100%);
    border-radius: 0 0 16px 16px;
}

/* Form Styling */
.form-group input, .form-group textarea {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    background: var(--white);
    border-color: var(--bright-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* About Section Enhancements */
.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
}

/* Apply staggered fade up to grid items */
.features-grid .feature-card:nth-child(1) { animation: fadeUp 0.6s ease-out 0.1s both; }
.features-grid .feature-card:nth-child(2) { animation: fadeUp 0.6s ease-out 0.2s both; }
.features-grid .feature-card:nth-child(3) { animation: fadeUp 0.6s ease-out 0.3s both; }
.features-grid .feature-card:nth-child(4) { animation: fadeUp 0.6s ease-out 0.4s both; }

.services-grid .service-card:nth-child(1) { animation: fadeUp 0.6s ease-out 0.1s both; }
.services-grid .service-card:nth-child(2) { animation: fadeUp 0.6s ease-out 0.2s both; }
.services-grid .service-card:nth-child(3) { animation: fadeUp 0.6s ease-out 0.3s both; }

/* Booking Card Update */
.booking-info {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Footer Enhancements */
footer {
    background: #0f172a !important; /* Deep dark blue */
    color: #ffffff !important;
    padding: 60px 0 30px !important;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    color: #ffffff !important;
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--bright-blue);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #ffffff !important;
    transform: translateX(-8px);
    padding-right: 5px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6) !important;
}

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