/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white-color: #ffffff;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --whatsapp-color: #25d366;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    direction: rtl;
    text-align: right;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Header and Navigation */
.header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-decoration: none;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--white-color);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--light-color);
}

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

.feature-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.content-article h2 {
    color: var(--dark-color);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.content-article h3 {
    color: var(--dark-color);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.4rem;
}

.content-article p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-article ul {
    margin: 1rem 0 1rem 2rem;
    list-style: disc;
}

.content-article ul li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.content-article strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Preview */
.services-preview {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.services-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

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

.service-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Services Content */
.services-content {
    padding: 4rem 0;
}

.service-detail {
    margin-bottom: 3rem;
}

.service-detail h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.service-detail h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.4rem;
}

.service-detail p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.service-detail ul {
    margin: 1rem 0 1rem 2rem;
    list-style: disc;
}

.service-detail ul li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* About Content */
.about-content {
    padding: 4rem 0;
}

.about-content article h2 {
    color: var(--dark-color);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.about-content article p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-content article ul {
    margin: 1rem 0 1rem 2rem;
    list-style: disc;
}

.about-content article ul li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Contact Content */
.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: 10px;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-container h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-form {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form button {
    width: 100%;
}

/* Quick Contact */
.quick-contact {
    padding: 3rem 0;
    background-color: var(--light-color);
    text-align: center;
}

.quick-contact h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.quick-contact p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.quick-contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-contact-buttons .btn span {
    margin-left: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.faq-section h2 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.faq-item {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item p {
    line-height: 1.6;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
}

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

.blog-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.blog-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.blog-content h2 a {
    color: var(--dark-color);
}

.blog-content h2 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Blog Article */
.blog-article {
    padding: 4rem 0;
}

.blog-article article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-featured-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.blog-article h1 {
    color: var(--dark-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-article h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.blog-article h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
}

.blog-article p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.blog-article ul {
    margin: 1rem 0 1rem 2rem;
    list-style: disc;
}

.blog-article ul li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.blog-article strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

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

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.float-btn {
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.float-btn:hover {
    transform: scale(1.05);
}

.whatsapp-float {
    background-color: var(--whatsapp-color);
    color: var(--white-color);
}

.call-float {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--white-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 1rem 2rem;
        border-radius: 0;
        color: var(--text-color);
        text-decoration: none;
        display: block;
        width: 100%;
        text-align: right;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--primary-color);
        background-color: var(--light-color);
        text-decoration: none;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .floating-buttons {
        left: 10px;
        bottom: 10px;
    }

    .float-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Fix menu text decoration */
    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.75rem 1.75rem;
        font-size: 1rem;
    }
}