:root {
    /* Light Theme (Default) */
    --primary-hue: 145;
    /* Sage green approx */
    --secondary-hue: 14;
    /* Terracotta approx */

    --bg-body: #FAF9F6;
    --bg-card: #FFFFFF;
    --bg-nav: rgba(250, 249, 246, 0.9);

    --text-main: #2C3E50;
    --text-muted: #64748B;
    --text-light: #FFFFFF;

    --color-primary: #558B6E;
    /* Sage Green */
    --color-primary-dark: #3E6651;
    --color-secondary: #DDA15E;
    /* Warm Beige/Gold */
    --color-accent: #E76F51;
    /* Terracotta */

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --radius: 12px;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-body: #1F2937;
    /* Charcoal */
    --bg-card: #2D3748;
    --bg-nav: rgba(31, 41, 55, 0.9);

    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;

    --color-primary: #81C784;
    /* Lighter Sage */
    --color-primary-dark: #66BB6A;
    --color-secondary: #F4D03F;
    --color-accent: #FF8A65;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

[dir="rtl"] {
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: inline-block;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    margin-inline-start: 1rem;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--text-light);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.toggles {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn,
.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
}

.icon-btn:hover,
.lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
}

.lang-btn {
    font-size: 1rem;
    font-weight: 700;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--text-muted);
}

.mobile-only {
    display: none;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* LTR default */
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    /* LTR default */
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

[dir="rtl"] .mobile-menu {
    right: auto;
    left: -100%;
    transition: left 0.4s ease;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
    /* LTR */
}

[dir="rtl"] .mobile-menu.active {
    left: 0;
    right: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.mobile-nav-links li {
    margin-bottom: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(85, 139, 110, 0.1), transparent 60%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: rgba(85, 139, 110, 0.1);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    margin-bottom: 3rem;
}

.trust-indicators {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.trust-item i {
    color: var(--color-secondary);
    font-size: 1.2rem;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.main-img {
    width: 100%;
    height: auto;
    border-radius: 40px 0 40px 0;
    /* Asymmetric for modern look */
    object-fit: cover;
}

[dir="rtl"] .main-img {
    border-radius: 0 40px 0 40px;
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
    max-width: 200px;
}

[data-theme="dark"] .floating-card {
    background: rgba(45, 55, 72, 0.9);
}

[dir="rtl"] .floating-card {
    left: auto;
    right: -30px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.icon-love {
    font-size: 2rem;
    color: var(--color-accent);
}

.fc-content {
    display: flex;
    flex-direction: column;
}

.fc-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fc-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-body);
}

.about-container {
    max-width: 800px;
    text-align: center;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.credentials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cred-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
}

.cred-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

/* Services */
.services {
    padding: 100px 0;
    background: var(--bg-card);
    /* Alternating bg */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-body);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(85, 139, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testi-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stars {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testi-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.testi-card h4 {
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blog */
.blog {
    padding: 80px 0;
    background: var(--bg-card);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-body);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-content {
    padding: 2rem;
}

.category {
    font-size: 0.8rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.read-more {
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contact */
.contact {
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.contact-details i {
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--text-muted);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(85, 139, 110, 0.2);
}

/* Footer */
footer {
    background: var(--bg-body);
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    font-size: 1.2rem;
    color: var(--text-main);
}

.socials a:hover {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 992px) {

    .hero-container,
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .image-wrapper {
        margin: 2rem auto;
        max-width: 500px;
    }

    .floating-card {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        animation: none;
    }

    [dir="rtl"] .floating-card {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }

    .nav-links {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .trust-indicators {
        justify-content: center;
    }

    .contact-container {
        text-align: start;
        /* Don't center form labels */
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        display: inline-block;
        text-align: start;
    }

    [dir="rtl"] .contact-details {
        text-align: right;
    }
}

@media (max-width: 600px) {
    .btn {
        width: 100%;
        margin: 0.5rem 0;
        margin-inline-start: 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}