:root {
    --primary-color: #0f4c81;
    /* Deep Authoritative Blue */
    --secondary-color: #008ba8;
    /* Teal/Cyan for accents */
    --gold: #c5a059;
    /* Premium Gold */
    --gold-gradient: linear-gradient(135deg, #c5a059 0%, #e6c88b 100%);
    --dark-text: #1a2a3a;
    --light-text: #586e82;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --blur: blur(12px);
    --shadow-soft: 0 10px 30px rgba(15, 76, 129, 0.08);
    --shadow-hover: 0 20px 40px rgba(15, 76, 129, 0.15);
    --border-radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark-text);
    background-color: #f4f7fa;
    line-height: 1.7;
    overflow-x: hidden;
    padding-bottom: 70px;
    /* Space for mobile sticky footer */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Glassmorphism */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo p {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons - Premium Feel */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    background-image: linear-gradient(135deg, #0f4c81 0%, #1a5f9a 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 76, 129, 0.3);
}

.btn-secondary {
    background: var(--gold-gradient);
    color: var(--white);
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0;
    background-color: #f4f7fa;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/clinic_interior.png');
    /* Fallback */
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

/* Modern Gradient Blob Background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 139, 168, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 650px;
    animation: fadeUp 0.8s ease-out forwards;
}

.hero-text h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 900;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 550px;
    /* Fancy shape mask or border radius */
    border-radius: 300px 300px 20px 20px;
    border-bottom: 10px solid var(--white);
    box-shadow: var(--shadow-soft);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

.pulse-anim {
    animation: pulse-glow 2s infinite;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.line {
    width: 80px;
    height: 5px;
    background: var(--gold-gradient);
    margin: 0 auto;
    border-radius: 10px;
}

/* About Cards - Glassmorphism */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.about-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card .icon {
    font-size: 3rem;
    background: -webkit-linear-gradient(var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.about-card h4 {
    margin-bottom: 15px;
    color: var(--dark-text);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Services Tags */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-item {
    background: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid #e1e8ed;
    transition: 0.3s;
}

.service-item:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Location Box */
.location-wrapper {
    display: flex;
    gap: 40px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 15px;
    align-items: stretch;
}

.contact-info {
    flex: 1;
    padding: 40px;
    background-color: var(--white);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
    padding: 15px;
    border-radius: 12px;
    transition: 0.3s;
}

.info-item:hover {
    background-color: #f9fcff;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: 5px;
    background: rgba(197, 160, 89, 0.1);
    padding: 12px;
    border-radius: 50%;
}

.phone-link {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-family: 'Arial', sans-serif;
    /* Clear numbers */
    margin-top: 5px;
    display: inline-block;
}

.map-container {
    flex: 1.2;
    min-height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Footer - Dark */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0 90px 0;
    text-align: center;
    position: relative;
}

.footer p {
    opacity: 0.8;
}

/* Mobile Sticky Buttons */
.footer-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    padding: 15px 20px;
    gap: 15px;
}

@media (min-width: 769px) {
    .footer-cta-mobile {
        display: none;
    }

    .footer {
        padding-bottom: 30px;
    }
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(15, 76, 129, 0.4);
}

.sticky-btn.whatsapp {
    background: #25D366;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
        text-align: center;
    }

    .hero-content {
        flex-direction: column-reverse;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .hero-image img {
        max-height: 400px;
        border-radius: 200px 200px 20px 20px;
    }

    .location-wrapper {
        flex-direction: column;
        padding: 5px;
    }

    .map-container {
        min-height: 300px;
    }

    .header-cta {
        display: none;
    }
}