/* Modern "Life" Theme - Blue, Green, White */
:root {
    /* Vibrant Palette */
    --primary: #0066CC;
    /* Medical Blue - Trust */
    --primary-light: #4D94FF;
    --primary-dark: #004C99;

    --secondary: #00C896;
    /* Life Green - Growth & Health */
    --secondary-light: #5CFFD1;
    --secondary-dark: #009670;

    --accent: #FFB347;
    /* Warmth - Care */

    --bg-white: #FFFFFF;
    --bg-light: #F0F9FF;
    /* Very light blue tint */
    --bg-gradient: linear-gradient(135deg, #E0F7FA 0%, #F0F9FF 100%);

    --text-dark: #1A202C;
    --text-gray: #4A5568;
    --text-light: #FFFFFF;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 102, 204, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 102, 204, 0.15);

    --font-en: 'Inter', system-ui, -apple-system, sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

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

body {
    font-family: var(--font-en);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
    font-family: var(--font-ar);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h1 {
    font-size: 3rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.25rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--secondary);
    margin-top: 8px;
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

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

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.text-center h2::after {
    margin: 8px auto 0;
}

.hidden {
    display: none;
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: var(--bg-gradient);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(0, 200, 150, 0.1);
    border-radius: 50%;
    blur(50px);
}

.hero-content {
    max-width: 600px;
    z-index: 10;
    position: relative;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-55%);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Services Section */
.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
}

/* Page Headers */
.page-header {
    background: var(--primary);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: var(--text-light);
    background: none;
    -webkit-text-fill-color: initial;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

footer h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu needed */
    .hero {
        padding: 4rem 0;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-image {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }
}