/* 
    ZOZ Clinic — Premium Medical Design System
    Dark Teal + Gold + Glass Morphism
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #F59E0B; /* Rich Gold/Orange */
    --primary-dark: #D97706;
    --primary-light: #FEF3C7;
    --accent: #10B981; /* Emerald for success/actions */
    --accent-dark: #059669;
    --bg-dark: #0F172A; /* Deep Ink */
    --bg-card: #1E293B;
    --bg-card-hover: #334155;
    --bg-glass: rgba(30, 41, 59, 0.7);
    --bg-glass-light: rgba(255, 255, 255, 0.05);
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --text-heading: #FFFFFF;
    --line-color: rgba(255, 255, 255, 0.1);
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.2);
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --paper: #F8F9FA;
    --ink: #0F172A;
}

/* Fix global select and input issues from screenshots */
input, select, textarea {
    width: 100% !important;
    display: block !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--line-color) !important;
    color: #fff !important;
    padding: 14px 16px !important;
    border-radius: var(--radius-md) !important;
    font-size: 1rem !important;
    -webkit-appearance: none;
    appearance: none;
}

select option {
    background: var(--bg-card) !important;
    color: #fff !important;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15) !important;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

/* ─── Remove notebook effect ─── */
.notebook-bg {
    background: var(--bg-dark);
    padding-right: 0;
}
.notebook-bg::before,
.notebook-bg::after { display: none; }

/* ─── Animated BG Particles ─── */
.bg-particles {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-particles .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}
.bg-particles .orb:nth-child(1) {
    width: 400px; height: 400px;
    background: var(--primary);
    top: -100px; right: -100px;
    animation-delay: 0s;
}
.bg-particles .orb:nth-child(2) {
    width: 350px; height: 350px;
    background: var(--accent);
    bottom: -80px; left: -80px;
    animation-delay: -7s;
}
.bg-particles .orb:nth-child(3) {
    width: 250px; height: 250px;
    background: #7C3AED;
    top: 50%; left: 30%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

/* ─── Layout ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}
.text-orange, .text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.5);
}

.btn-accent {
    background: var(--gradient-accent);
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(255, 183, 3, 0.3);
}
.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 183, 3, 0.5);
}

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

.btn-lg { padding: 18px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text-main); border: 1px solid var(--line-color); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ─── Navigation ─── */
nav#mainNav {
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

nav#mainNav.scrolled {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--line-color);
    padding: 10px 0;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-heading);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo i { color: var(--primary); font-size: 1.4rem; }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-btns { display: flex; align-items: center; gap: 10px; }

.mobile-toggle {
    display: none;
    background: none; border: none;
    color: var(--text-heading);
    font-size: 1.5rem; cursor: pointer;
}

/* ─── Hero ─── */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,180,216,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content { width: 100%; }

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 24px;
    line-height: 1.25;
    background: linear-gradient(135deg, #fff 0%, #90E0EF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}
.hero-stat {
    text-align: center;
    padding: 20px;
}
.hero-stat .number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
}
.hero-stat .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── Glass Cards ─── */
.glass-card {
    background: var(--gradient-glass);
    border: 1px solid var(--line-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    padding: 32px;
    transition: var(--transition);
}
.glass-card:hover {
    border-color: rgba(0, 180, 216, 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

/* ─── Features ─── */
.features {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(0,180,216,0.08) 0%, transparent 70%);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.feature-card:hover::before {
    width: 200px; height: 200px;
}

.feature-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.feature-icon.teal { background: rgba(0,180,216,0.12); color: var(--primary); }
.feature-icon.gold { background: rgba(255,183,3,0.12); color: var(--accent); }
.feature-icon.green { background: rgba(16,185,129,0.12); color: var(--success); }
.feature-icon.purple { background: rgba(124,58,237,0.12); color: #A78BFA; }

.feature-card i {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
    width: 56px; height: 56px;
    line-height: 56px;
    text-align: center;
    background: rgba(0,180,216,0.1);
    border-radius: var(--radius-md);
}
.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ─── Role Section ─── */
.roles-section { padding: 100px 0; }
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}
.role-card {
    background: var(--bg-card);
    border: 1px solid var(--line-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.role-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s;
}
.role-card:hover::after { transform: scaleX(1); }
.role-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }

.role-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.role-avatar.doctor { background: rgba(0,180,216,0.15); color: var(--primary); }
.role-avatar.secretary { background: rgba(255,183,3,0.15); color: var(--accent); }

.role-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.role-card p { color: var(--text-muted); margin-bottom: 20px; }

.role-features {
    list-style: none;
    text-align: right;
}
.role-features li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.role-features li i { color: var(--success); font-size: 0.8rem; }

/* ─── Pricing ─── */
.pricing {
    padding: 100px 0;
    position: relative;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.price-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-color);
    width: 340px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}
.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}
.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(180deg, rgba(0,180,216,0.05) 0%, var(--bg-card) 100%);
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.price-card .price {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    margin: 16px 0;
}
.price-card .price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ─── Booking CTA ─── */
.booking-cta {
    padding: 80px 0;
    text-align: center;
    position: relative;
}
.booking-cta-inner {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}
.booking-cta-inner::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.booking-cta h2 { font-size: 2rem; margin-bottom: 16px; }
.booking-cta p { color: rgba(255,255,255,0.8); margin-bottom: 30px; font-size: 1.05rem; }

/* ─── Contact ─── */
.contact-section {
    padding: 120px 0;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--line-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
}
.contact-card form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.contact-card .form-group.full { grid-column: span 2; }

@media (max-width: 768px) {
    .contact-card form { grid-template-columns: 1fr; }
    .contact-card .form-group.full { grid-column: span 1; }
}

/* ─── Forms ─── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
textarea.form-input { resize: vertical; min-height: 100px; }

/* ─── Footer ─── */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--line-color);
    padding: 60px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-heading);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--line-color);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ─── Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in { animation: fadeInUp 0.8s ease forwards; }
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Alert Messages ─── */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.alert-success { background: rgba(16,185,129,0.12); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.alert-error { background: rgba(239,68,68,0.12); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero { padding: 140px 0 60px; min-height: auto; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .nav-links { display: none; }
    .nav-btns .btn-outline { display: none; }
    .mobile-toggle { display: block; }
    .hero-stats { gap: 20px; }
    .hero-stat .number { font-size: 1.8rem; }
    .roles-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .price-card { width: 100%; }
    .price-card.featured { transform: scale(1); }
    .booking-cta-inner { padding: 40px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
