/* =========================================
   Clinic One - Landing Page Theme
   ========================================= */
:root {
    --primary: #00A8E8;
    --primary-dark: #007EA7;
    --primary-light: #e6f6fd;
    --secondary: #003459;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 52, 89, 0.1);
    
    --radius-md: 12px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    line-height: 1.3;
    font-weight: 700;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

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

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.text-white, .text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white p {
    color: var(--white);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.4);
}

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

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo.text-white {
    color: var(--white);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 5px;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

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

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
}

/* =========================================
   Services / Why Us
   ========================================= */
.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* =========================================
   About Section
   ========================================= */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-content {
    flex: 1;
}

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

.about-content > p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.about-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.about-list i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.about-list h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* =========================================
   Detailed Features
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* =========================================
   Stats Section
   ========================================= */
.stats {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

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

.stat-box h3 {
    font-size: 3.5rem;
    color: var(--white);
    display: inline-block;
}

.stat-box span {
    font-size: 2rem;
    font-weight: 700;
}

.stat-box p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* =========================================
   Pricing Section
   ========================================= */
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 400px;
    transition: var(--transition);
    position: relative;
}

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

.price-card.premium {
    background: var(--secondary);
    color: var(--white);
    border: none;
    transform: scale(1.05);
}

.price-card.premium:hover {
    transform: scale(1.05) translateY(-10px);
}

.price-card.premium h3, .price-card.premium p {
    color: var(--white);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translate(50%, -50%);
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.price-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.price {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.price span {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.price-features {
    margin-bottom: 40px;
}

.price-features li {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.price-features i {
    color: var(--success);
}

/* =========================================
   FAQ Section
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: right;
    padding: 20px 25px;
    background: var(--white);
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--white);
}

.faq-answer p {
    padding: 0 25px 25px;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-info > p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.1);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    margin: 20px 0;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

/* =========================================
   Toast Notification
   ========================================= */
.toast {
    position: fixed;
    bottom: 30px;
    right: -400px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    transition: var(--transition);
    border-right: 5px solid var(--success);
}

.toast.show {
    right: 30px;
}

.toast i {
    color: var(--success);
    font-size: 1.5rem;
}

/* =========================================
   Guide Section
   ========================================= */
.guide-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.video-placeholder:hover i {
    transform: scale(1.1);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.step-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.step-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* =========================================
   Clients Section
   ========================================= */
.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.client-logo {
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.client-logo i {
    font-size: 1.8rem;
    color: var(--primary);
}

/* =========================================
   Language Toggle
   ========================================= */
.lang-icon-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-family: inherit;
    transition: var(--transition);
}

.lang-icon-btn i {
    font-size: 1.5rem;
    color: var(--primary);
}

.lang-icon-btn:hover {
    color: var(--primary);
}

html[dir="ltr"] .reveal-left.active {
    animation: slideRightLTR 0.8s ease forwards;
}
html[dir="ltr"] .reveal-right.active {
    animation: slideLeftLTR 0.8s ease forwards;
}

@keyframes slideRightLTR {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeftLTR {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

html[dir="ltr"] .footer-links a:hover {
    padding-left: 10px;
    padding-right: 0;
}

html[dir="ltr"] .toast {
    border-left: 5px solid var(--success);
    border-right: none;
}

/* =========================================
   Animations
   ========================================= */
.reveal, .reveal-left, .reveal-right, .fade-up, .fade-in {
    opacity: 0;
}

.reveal.active, .fade-in.active {
    opacity: 1;
    animation: fadeIn 0.8s ease forwards;
}

.fade-up.active {
    opacity: 1;
    animation: fadeUp 0.8s ease forwards;
}

.reveal-left.active {
    opacity: 1;
    animation: slideRight 0.8s ease forwards; /* RTL: slide right from left */
}

.reveal-right.active {
    opacity: 1;
    animation: slideLeft 0.8s ease forwards; /* RTL: slide left from right */
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .hero-container, .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { max-width: 100%; margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    
    .about-list li { text-align: right; }
    
    .price-card.premium { transform: scale(1); }
    .price-card.premium:hover { transform: translateY(-10px); }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-about p { margin: 20px auto; }
    .social-links { justify-content: center; }
    .footer-links a:hover { padding-right: 0; }
    
    .info-item { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 120px 0 60px; }
    .stats-container { flex-direction: column; gap: 40px; }
    
    .services-grid, 
    .features-grid, 
    .clients-grid, 
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}
