/* Fonts */
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/cairo-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/cairo-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for fixed header */
}

:root {
    --primary-color: #1A237E;
    /* Deep Blue */
    --secondary-color: #FFD700;
    /* Gold */
    --text-color: #333333;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-en);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html.rtl body {
    font-family: var(--font-ar);
    direction: rtl;
}

/* Glassmorphism Header */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar {
    background: #0a104d;
    color: var(--white);
    display: flex;
    align-items: center;
    padding: 5px 5%;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 20px;
}

.top-bar-contact a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.top-bar-contact a:hover,
.top-bar-social a:hover {
    color: var(--secondary-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--white);
}

.logo span.movers-text {
    font-weight: 300;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--secondary-color);
}

.lang-switch {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--white);
    color: var(--primary-color);
}

.nav-phone {
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    margin-right: 1.5rem;
    transition: var(--transition);
}

.nav-phone:hover {
    color: var(--secondary-color);
}

html.rtl .nav-phone {
    margin-right: 0;
    margin-left: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero_movers_dubai_1767703172712.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 5%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    animation: fadeInUp 1.2s ease;
}

.cta-btn {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.quote-phone {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .quote-phone {
    color: var(--white);
    font-size: 2.5rem;
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
}

.mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    display: none;
    grid-template-columns: 1fr 1fr;
    z-index: 1000;
}

.mobile-bar a {
    color: white;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 0.5rem 5%;
        justify-content: center;
        gap: 0.5rem;
    }

    .logo {
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
        white-space: nowrap;
    }

    header>div {
        width: 100%;
        justify-content: center;
        gap: 15px !important;
    }

    .nav-phone {
        font-size: 0.9rem;
    }

    .top-bar {
        display: none;
    }

    .hero {
        margin-top: 60px;
        height: auto;
        padding: 5rem 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .quote-phone {
        font-size: 1.5rem;
    }

    .hero .quote-phone {
        font-size: 1.8rem;
    }

    .mobile-bar {
        display: grid;
    }

    nav {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Sections Common */
section {
    padding: 80px 5%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-sub {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary-color);
}

.service-card i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    min-height: 2.4em;
    /* Reserve space for 2 lines if needed */
    display: flex;
    align-items: center;
}

.service-card p {
    min-height: 4.8em;
    /* Reserve space for ~3 lines */
}

/* About Section */
.about {
    background: var(--light-bg);
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
}

html.rtl .about {
    text-align: right;
}

.about-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.about-content {
    flex: 1;
}

@media (max-width: 992px) {
    .about {
        flex-direction: column;
        text-align: center;
    }

    html.rtl .about {
        text-align: center;
    }
}

/* Contact Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}

.contact-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.form-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.form-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: var(--transition);
    cursor: pointer;
}

html.rtl .blog-card {
    text-align: right;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    display: block;
}

.blog-content {
    padding: 1.5rem;
}

.blog-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    min-height: 3.5rem;
    /* ~2 lines of 1.25rem * 1.4 */
    max-height: 3.5rem;
}

html.rtl .blog-card h3 {
    line-height: 1.5;
    /* Slightly more breathing room for Cairo */
    min-height: 3.75rem;
    max-height: 3.75rem;
}

.blog-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Article Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    padding: 3rem 2rem 2rem;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

html.rtl .modal-close {
    right: auto;
    left: 1.5rem;
}

.modal-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

#modalTitle {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

#modalBody {
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
}

#modalBody strong {
    color: var(--primary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Grid & Map */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.map-container {
    background: var(--white);
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Article Page Layout */
.article-container {
    max-width: 900px;
    margin: 160px auto 60px;
    padding: 0 5%;
}

@media (max-width: 768px) {
    .article-container {
        margin: 100px auto 40px;
    }
}

@media (max-width: 768px) {
    .article-container {
        margin: 100px auto 40px;
    }
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.article-featured-img {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #eee;
}

.article-body {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body strong {
    color: var(--primary-color);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    color: var(--secondary-color);

    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

[dir="rtl"] .back-btn:hover {
    transform: translateX(5px);
}

.article-cta {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }

    .article-featured-img {
        height: 250px;
    }
}