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

:root {
    --primary: #3C9D9B;
    --primary-dark: #2A7371;
    --text-dark: #1E2E35;
    --text-light: #66747B;
    --bg-light: #F4FAFA;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Vazirmatn', Tahoma, sans-serif; background-color: var(--bg-light); color: var(--text-light); line-height: 1.8; direction: rtl; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ANIMATIONS */
@keyframes floatAnim {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.reveal { opacity: 0; visibility: hidden; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; visibility: visible; transform: translateY(0); }
.float-anim { animation: floatAnim 6s ease-in-out infinite; }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Top Bar & Header */
.top-bar { background: var(--text-dark); color: #fff; padding: 8px 0; font-size: 13px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #fff; display: inline-flex; align-items: center; gap: 8px; margin-left: 20px; opacity: 0.9; }
.top-bar a:hover { opacity: 1; color: var(--primary); }

.header { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.04); padding: 15px 0; transition: 0.3s; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 45px; height: 45px; background: linear-gradient(135deg, var(--primary), #52c7c2); border-radius: 12px; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 24px; }
.logo-text h2 { color: var(--text-dark); font-size: 20px; font-weight: 800; margin-bottom: -5px; }
.logo-text span { color: var(--text-light); font-size: 11px; }

.navbar ul { display: flex; gap: 30px; }
.navbar a { font-weight: 700; color: var(--text-dark); position: relative; padding: 5px 0; }
.navbar a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--primary); transition: 0.3s; border-radius: 2px; }
.navbar a:hover::after { width: 100%; }
.navbar a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 15px; }
.lang-switcher { display: flex; background: #eef5f5; border-radius: 20px; overflow: hidden; direction: ltr; border: 1px solid #e0ebeb; }
.lang-btn { background: transparent; border: none; padding: 6px 12px; font-size: 12px; font-weight: bold; color: var(--text-light); cursor: pointer; transition: 0.3s; }
.lang-btn.active { background: var(--primary); color: #fff; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; background: linear-gradient(135deg, var(--primary), #52c7c2); color: #fff; border-radius: 50px; font-weight: 700; box-shadow: 0 10px 25px rgba(60,157,155,0.3); transition: 0.3s; border: 2px solid transparent; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(60,157,155,0.4); color: #fff; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border: 2px solid var(--primary); color: var(--primary); border-radius: 50px; font-weight: 700; transition: 0.3s; background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; box-shadow: 0 10px 25px rgba(60,157,155,0.2); }
.btn-nav { padding: 10px 24px; font-size: 14px; box-shadow: none; }

/* Glassmorphism */
.glass { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 25px; box-shadow: 0 20px 40px rgba(0,0,0,0.03); transition: 0.4s; }

/* Hero */
.premium-hero { position: relative; padding: 120px 0; overflow: hidden; background: linear-gradient(135deg, #fdfefe, #e8f5f5); }
.hero-bg-circle { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; pointer-events: none; z-index: 1; }
.hero-circle-1 { width: 500px; height: 500px; background: #6fe3dd; top: -150px; right: -150px; }
.hero-circle-2 { width: 400px; height: 400px; background: #f0a3c2; bottom: -100px; left: -100px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 5; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: rgba(60, 157, 155, 0.1); border-radius: 50px; color: var(--primary); font-weight: 800; font-size: 13px; margin-bottom: 25px; border: 1px solid rgba(60, 157, 155, 0.2); }
.hero-content h1 { font-size: 42px; color: var(--text-dark); line-height: 1.5; margin-bottom: 25px; font-weight: 900; }
.hero-content h1 span { color: var(--primary); }
.hero-content p { font-size: 16px; margin-bottom: 35px; max-width: 95%; line-height: 2.2; text-align: justify; }
.hero-buttons { display: flex; gap: 15px; }

.hero-image { position: relative; }
.hero-image-wrapper { padding: 15px; transform: rotate(2deg); transition: 0.5s; }
.hero-image-wrapper:hover { transform: rotate(0deg) translateY(-10px); }
.hero-floating-card { position: absolute; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-radius: 15px; padding: 15px 20px; display: flex; align-items: center; gap: 15px; box-shadow: 0 15px 30px rgba(0,0,0,0.08); border: 1px solid rgba(255,255,255,1); z-index: 10; }
.hero-floating-card.card-left { bottom: 30px; left: -30px; }
.hero-floating-card i { font-size: 24px; color: var(--primary); background: rgba(60, 157, 155, 0.1); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

/* Sections */
.section-padding { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-header span { color: var(--primary); font-weight: 800; font-size: 14px; background: rgba(60, 157, 155, 0.1); padding: 6px 15px; border-radius: 30px; display: inline-block; margin-bottom: 15px; }
.section-header h2 { font-size: 36px; color: var(--text-dark); margin-bottom: 20px; font-weight: 900; }
.section-header p { line-height: 2; }

/* Doctors Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.doctor-card { padding: 35px; display: flex; gap: 20px; align-items: flex-start; border: 1px solid #eaefef; }
.doctor-card:hover { transform: translateY(-8px); border-color: rgba(60,157,155,0.3); }
.doctor-avatar { width: 70px; height: 70px; border-radius: 20px; background: rgba(60,157,155,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 32px; flex-shrink: 0; }
.doctor-info h3 { font-size: 20px; color: var(--text-dark); margin-bottom: 5px; font-weight: 800; }
.doctor-info h4 { font-size: 14px; color: var(--primary); margin-bottom: 15px; font-weight: 700; }
.doctor-info p { font-size: 13px; line-height: 2; text-align: justify; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { padding: 40px 30px; text-align: center; border: 1px solid #eaefef; }
.service-card:hover { transform: translateY(-10px); border-color: rgba(60, 157, 155, 0.3); }
.service-icon { width: 80px; height: 80px; margin: 0 auto 25px; background: linear-gradient(135deg, rgba(60, 157, 155, 0.1), rgba(60, 157, 155, 0.05)); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--primary); transition: 0.3s; }
.service-card:hover .service-icon { background: var(--primary); color: #fff; transform: scale(1.05); }
.service-card h3 { font-size: 22px; color: var(--text-dark); margin-bottom: 15px; font-weight: 800; }
.service-card p { font-size: 14px; margin-bottom: 25px; line-height: 2.2; text-align: justify; }
.service-link { color: var(--primary); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.service-link:hover { gap: 10px; }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 30px; right: 10%; width: 80%; height: 2px; background: dashed 2px rgba(60, 157, 155, 0.3); z-index: 1; }
.process-step { text-align: center; position: relative; z-index: 2; padding: 0 15px; }
.step-num { width: 60px; height: 60px; margin: 0 auto 20px; background: #fff; border: 3px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; color: var(--primary); box-shadow: 0 5px 15px rgba(60, 157, 155, 0.2); transition: 0.3s; }
.process-step:hover .step-num { background: var(--primary); color: #fff; transform: scale(1.1); }
.process-step h4 { color: var(--text-dark); font-size: 18px; margin-bottom: 10px; }
.process-step p { font-size: 13px; line-height: 2; }

/* QUICK ACCESS SLIDER / GRID */
.quick-access-section { padding: 60px 0; background: #f8fcfc; border-top: 1px solid #edf2f2; }
.quick-slider-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.qa-card { padding: 25px 20px; text-align: center; border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 1px solid rgba(60,157,155,0.15); transition: 0.35s; }
.qa-card:hover { transform: translateY(-5px); background: #fff; border-color: var(--primary); box-shadow: 0 15px 30px rgba(60,157,155,0.15); }
.qa-card i { font-size: 32px; color: var(--primary); }
.qa-card h4 { font-size: 16px; color: var(--text-dark); margin: 0; font-weight: 800; }
.qa-card span { font-size: 11px; color: var(--text-light); }

/* Contact Page Grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.contact-info { padding: 40px; border-radius: 25px; }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.info-item i { font-size: 24px; color: var(--primary); background: rgba(60, 157, 155, 0.1); width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-item strong { display: block; color: var(--text-dark); margin-bottom: 5px; font-size: 15px; }
.info-item span { font-size: 14px; }

/* Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 16px; border-radius: 15px; border: 1px solid #e0ebeb; background: rgba(255, 255, 255, 0.6); font-family: inherit; font-size: 14px; color: var(--text-dark); transition: 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(60, 157, 155, 0.1); }

/* Footer */
.footer { background: #fff; padding: 70px 0 20px; border-top: 1px solid #edf2f2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--text-dark); font-size: 20px; margin-bottom: 20px; font-weight: 800; }
.footer-col p { font-size: 14px; line-height: 2; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-light); font-size: 14px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); padding-right: 8px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; font-size: 14px; }
.footer-contact i { color: var(--primary); font-size: 18px; }
.footer-bottom { text-align: center; border-top: 1px solid #edf2f2; padding-top: 25px; font-size: 13px; color: #99aab3; }

/* FLOATING BUTTONS (WhatsApp & Up Arrow) */
.float-btn { position: fixed; right: 25px; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.15); z-index: 999; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: none; }
.float-btn:hover { transform: scale(1.1) translateY(-5px); }
.float-whatsapp { bottom: 25px; background: linear-gradient(135deg, #25D366, #128C7E); }
.float-whatsapp:hover { box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4); }
.float-up { bottom: 95px; background: var(--primary); opacity: 0; visibility: hidden; pointer-events: none; }
.float-up.visible { opacity: 1; visibility: visible; pointer-events: auto; }
.float-up:hover { box-shadow: 0 15px 25px rgba(60, 157, 155, 0.4); }

/* MOBILE MENU SIDEBAR */
.menu-toggle { display: none; }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); z-index: 9998; opacity: 0; visibility: hidden; transition: 0.3s; }
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-sidebar { position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: #fff; z-index: 9999; box-shadow: -5px 0 25px rgba(0,0,0,0.1); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.mobile-sidebar.active { transform: translateX(0); }
[dir="ltr"] .mobile-sidebar { right: auto; left: 0; transform: translateX(-100%); box-shadow: 5px 0 25px rgba(0,0,0,0.1); }
[dir="ltr"] .mobile-sidebar.active { transform: translateX(0); }

.mobile-sidebar-header { padding: 25px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #edf2f2; }
.close-menu { background: #f4fafa; border: none; width: 40px; height: 40px; border-radius: 50%; color: var(--primary); font-size: 20px; cursor: pointer; transition: 0.3s; }
.close-menu:hover { background: #fee; color: #e74c3c; transform: rotate(90deg); }
.mobile-nav-list { padding: 20px; list-style: none; }
.mobile-nav-list li { margin-bottom: 15px; }
.mobile-nav-list a { display: flex; align-items: center; gap: 15px; font-size: 16px; color: var(--text-dark); font-weight: 700; padding: 12px 15px; border-radius: 12px; transition: 0.3s; }
.mobile-nav-list a i { font-size: 20px; color: var(--primary); }
.mobile-nav-list a:hover { background: var(--bg-light); color: var(--primary); padding-right: 25px; }
[dir="ltr"] .mobile-nav-list a:hover { padding-right: 15px; padding-left: 25px; }


/* Responsive Rules */
@media (max-width: 992px) {
    .hero-grid, .footer-grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .hero-buttons { justify-content: center; }
    .navbar, .btn-nav { display: none; }
    .menu-toggle { display: flex; background: #f4fafa; width: 45px; height: 45px; align-items: center; justify-content: center; border-radius: 12px; border: none; font-size: 26px; color: var(--primary); cursor: pointer; transition: 0.3s; }
    .grid-3, .quick-slider-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; gap: 40px; }
    .process-steps::before { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .hero-floating-card { display: none; }
}

@media (max-width: 768px) {
    .top-bar .container { flex-direction: column; gap: 10px; justify-content: center; }
    .doctor-card, .leader-credential-card { flex-direction: column; align-items: center; text-align: center; }
    .doctor-avatar, .prominent-avatar { margin-bottom: 15px; }
    .hero-content h1 { font-size: 32px; }
    .premium-hero { padding: 80px 0; }
}

img { max-width: 100%; height: auto; }
