/* modern medical style.css */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --accent: #0ea5e9;
    --success: #10b981;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

/* Global Transitions */
a, button, .service-card, .doctor-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
}

nav ul li a:hover {
    color: var(--primary);
}

.nav-btns {
    display: flex;
    gap: 1rem;
}

.btn-login {
    background: var(--primary);
    color: white !important;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-logout {
    background: #fee2e2;
    color: #ef4444 !important;
    width: 45px;
    height: 45px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
    margin-right: 0.75rem;
}

.btn-logout:hover {
    background: #ef4444;
    color: white !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 10rem 5% 5rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 90vh;
    background: radial-gradient(circle at top right, #e0e7ff, transparent);
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: var(--primary-hover);
}

.btn-secondary {
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Services */
.services {
    padding: 8rem 5%;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 4rem 2rem;
    background: var(--background);
    border-radius: 2rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 8rem 5%;
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content ul li {
    margin-bottom: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Doctors Section */
.doctors {
    padding: 8rem 5%;
    background: #f1f5f9;
}

/* Doctors Horizontal Layout */
.doctors-horizontal-container {
    width: 100%;
    overflow-x: auto;
    padding: 2rem 0;
}

.doctor-row {
    display: flex;
    gap: 2rem;
    min-width: max-content;
    padding: 1rem;
}

.doctor-card-horizontal {
    background: white;
    width: 450px;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-md);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
}

.doctor-card-horizontal:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.doctor-card-horizontal img {
    width: 120px;
    height: 120px;
    border-radius: 1.5rem;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.doc-details h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.doc-details .specialty {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.doc-details .doc-bio {
    font-size: 0.85rem;
    color: var(--secondary);
    line-height: 1.5;
}

/* Hide scrollbar but keep functionality */
.doctors-horizontal-container::-webkit-scrollbar {
    height: 8px;
}
.doctors-horizontal-container::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero, .about {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .hero-content h1 { font-size: 2.8rem; }
    .cta-group { justify-content: center; }
    nav ul { display: none; }
}