:root {
    --primary-color: #e31837;
    /* Red */
    --primary-light: #ff4d4d;
    --primary-dark: #b31212;
    --primary-light-dark: #e31836cc;
    --accent-color: #1a1a1a;
    /* Black */
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-en: "Poppins", sans-serif;
    --font-ar: "Alexandria", sans-serif;
    /* Animation Timing Variables */
    --anim-duration: 0.7s;
    --anim-delay-base: 0.2s;
    --anim-delay-increment: 0.1s;
    --anim-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --anim-duration-slow: 1s;
    --anim-duration-fast: 0.4s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    cursor: default;
}

.container-fluid {
    max-width: 80% !important;
    margin: 0 auto;
    padding: 0 20px;
}

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


/* Header Styles */

.header {
    background-color: transparent;
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: var(--text-light);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scroll-down {
    transform: translateY(-100%);
}

.header.scroll-up {
    transform: translateY(0);
    background-color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    position: relative;
    z-index: 1;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05);
}

.logo h1 {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

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

.scrolled .logo h1,
.scroll-up .logo h1 {
    color: var(--primary-color);
}

.logo span {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.scrolled .logo span,
.scroll-up .logo span {
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.scrolled .main-nav a,
.scroll-up .main-nav a {
    color: var(--text-dark);
}

.main-nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    transform-origin: left;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--primary-color);
}


/* Language Toggle Container */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Common styles for language and theme buttons */
.lang-btn,
.theme-toggle {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hide language buttons by default */
.lang-btn {
    display: none;
}

/* Show language button based on current language */
[lang="en"] .lang-btn[data-show-when="en"],
[lang="ar"] .lang-btn[data-show-when="ar"] {
    display: inline-flex;
}

/* Theme Toggle specific styles */
.theme-toggle {
    background: var(--primary-color);
    border: none;
    height: 100%;
}

.theme-toggle i {
    font-size: 1rem;
    color: var(--text-light);
}

/* Active and hover states */
.lang-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.lang-btn:hover,
.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Scrolled state styles */
.scrolled .lang-btn,
.scrolled .theme-toggle,
.scroll-up .lang-btn,
.scroll-up .theme-toggle {
    border-color: var(--primary-color);
    color: var(--primary-light-dark);
}

/* Dark theme styles */
[data-theme="dark"] .theme-toggle {
    background: var(--primary-color);
}

[data-theme="dark"] .theme-toggle i {
    color: var(--text-light);
}

/* Mobile styles */
@media (max-width: 768px) {
    .header .container .language-toggle {
        display: none;
    }

    .main-nav .language-toggle {
        display: flex;
        margin-top: auto;
        padding: 1rem 0;
        border-top: 1px solid var(--gray-200);
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    /* Show only the relevant language button in mobile menu */
    .main-nav .lang-btn {
        display: none;
        padding: 0.8rem 1.5rem;
        width: 100%;
        max-width: 120px;
        text-align: center;
        border-color: var(--gray-300);
        color: var(--text-dark);
    }

    /* Show only the opposite language button based on current language */
    [lang="en"] .main-nav .lang-btn[data-lang="ar"],
    [lang="ar"] .main-nav .lang-btn[data-lang="en"] {
        display: block;
    }

    .main-nav .lang-btn.active {
        background: var(--primary-color);
        color: var(--text-light);
        border-color: var(--primary-color);
    }
}

@media (max-width: 992px) {
    .header {
        background-color: var(--text-light);
        padding: 1rem 0;
    }

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

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

    .main-nav a {
        color: var(--text-dark);
    }

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

@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .main-nav {
        display: none;
    }

    /* Hide language toggle in header for mobile */
    .header .container .language-toggle {
        display: none;
    }

    /* Show language toggle only when it's inside the mobile menu */
    .main-nav .language-toggle {
        display: flex;
        margin-top: 2rem;
        justify-content: center;
        padding: 1rem 0;
        border-top: 1px solid var(--gray-200);
        margin-bottom: 30px;
    }

    .main-nav .lang-btn {
        padding: 0.8rem 1.5rem;
        width: 100%;
        max-width: 150px;
        text-align: center;
        border-color: var(--gray-300);
        color: var(--text-dark);
    }

    .logo {
        margin: 0;
    }

    .logo h1 {
        font-size: 1.8rem;
    }
}


/* Hero Section */

.hero {
    background: url("../images/about.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-light);
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(227, 24, 55, 0.8), rgba(26, 26, 26, 0.8));
    z-index: 2;
    mix-blend-mode: multiply;
}

.hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: rotateIn var(--anim-duration) var(--anim-timing);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.9;
    animation: floatUp var(--anim-duration-slow) var(--anim-timing) backwards;
    animation-delay: var(--anim-delay-base);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: floatUp var(--anim-duration-slow) var(--anim-timing) backwards;
    animation-delay: calc(var(--anim-delay-base) * 2);
}

.hero-title {
    font-size: 4rem;
    /* Default for large screens */
}


/* For tablets and smaller laptops */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.3rem;
    }
}


/* For mobile devices */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
}


/* For very small screens */

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}


/* For tablets and smaller laptops */

@media (max-width: 1024px) {
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        min-width: 180px;
    }
}


/* For mobile devices */

@media (max-width: 768px) {
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        min-width: 160px;
        max-width: 300px;
        /* Set a max-width for smaller screens */
        margin: 0 auto;
        /* Center the button */
        display: block;
        /* Allow the button to behave as block-level for centering */
    }
}


/* For very small screens */

@media (max-width: 480px) {
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        min-width: 140px;
        max-width: 250px;
        /* Set a max-width for very small screens */
        margin: 0 auto;
        /* Center the button */
        display: block;
        /* Allow the button to behave as block-level for centering */
    }
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.cta-button:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
}

.cta-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(227, 24, 55, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    backdrop-filter: blur(5px);
}

.cta-button.secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Section Headers */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}


/* For mobile devices */

@media (max-width: 768px) {
    .section-subtitle {
        font-size: 2rem;
        font-weight: 700;
    }
}


/* For very small screens */

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 2rem;
        font-weight: 700;
    }
}


/* Remove letter-spacing for RTL */

[dir="rtl"] .section-subtitle {
    letter-spacing: normal;
    font-weight: 700;
}

.section-title {
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 1.5rem;
}


/* For tablets and smaller laptops */

@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
        font-weight: 500;
    }
}


/* For mobile devices */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        font-weight: 500;
    }
}


/* For very small screens */

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
        font-weight: 500;
    }
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}


/* About Section */

.about {
    padding: 8rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(227, 24, 55, 0.2), rgba(26, 26, 26, 0.2));
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-features {
    margin-top: 2rem;
}

.about-text .description {
    text-align: justify;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--text-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

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

.advantage-card {
    background: var(--text-light);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.advantage-icon i {
    font-size: 2rem;
    color: var(--text-light);
}

.advantage-card:hover .advantage-icon {
    transform: rotateY(180deg);
}

.advantage-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.advantage-card p {
    color: var(--gray-600);
    line-height: 1.6;
}


/* Products Section */

.products {
    padding: 8rem 0;
    background: var(--bg-light);
}

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

.product-card {
    background: var(--text-light);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-info p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.product-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
}

.product-link:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
}


/* Clients Section */

.clients {
    padding: 8rem 0;
    background: var(--text-light);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.client-logo {
    max-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

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


/* Services Section */

.services {
    padding: 8rem 0;
    background: var(--text-light);
}

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

.service-card {
    background: var(--text-light);
    border-radius: 15px;
    text-align: center;
    transition: all 0.5s var(--anim-timing);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    height: 400px;
    /* Fixed height for consistency */
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.service-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color));
    z-index: -1;
    border-radius: 17px;
    opacity: 0;
    transition: opacity 0.5s var(--anim-timing);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(227, 24, 55, 0.2);
}

.service-card:hover::before {
    opacity: 1;
    animation: borderGlow 2s linear infinite;
}

.service-front {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: all 0.5s var(--anim-timing);
    position: absolute;
    top: 0;
    left: 0;
    background: var(--text-light);
    z-index: 2;
    border-radius: 15px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.5s var(--anim-timing);
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.2);
}

.service-icon i {
    font-size: 2rem;
    color: var(--text-light);
    transition: all 0.5s var(--anim-timing);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
    box-shadow: 0 8px 25px rgba(227, 24, 55, 0.3);
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.service-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.5rem;
}

.service-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 50px;
}

.service-card .service-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light-dark));
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.5s var(--anim-timing);
    z-index: 1;
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-front {
    transform: translate3d(-100%, 0, 0);
}

.service-card:hover .service-description {
    transform: translate3d(0, 0, 0);
}

.service-card .service-description p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.customs-penalties {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    text-align: left;
}

.customs-penalties li {
    color: var(--text-light);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.customs-penalties li:last-child {
    border-bottom: none;
}


/* RTL Support for service cards */

[dir="rtl"] .service-card .service-description {
    transform: translate3d(-100%, 0, 0);
}

[dir="rtl"] .service-card:hover .service-front {
    transform: translate3d(100%, 0, 0);
}

[dir="rtl"] .service-card:hover .service-description {
    transform: translate3d(0, 0, 0);
}

[dir="rtl"] .customs-penalties {
    text-align: right;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .service-card {
        height: 350px;
    }

    .service-card .service-front,
    .service-card .service-description {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card .service-description p {
        font-size: 0.95rem;
    }
}


/* Contact & Branches Section */

.contact-branches {
    padding: 8rem 0;
    background: url(../images/about.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
}

.contact-branches::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(227, 24, 55, 0.85) 100%);
    z-index: 1;
}

.contact-branches .container {
    position: relative;
    z-index: 2;
}

.contact-branches .section-header {
    margin-bottom: 4rem;
}

.contact-branches .section-title {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-branches .section-title::after {
    background-color: var(--text-light);
    width: 80px;
    height: 4px;
}

.contact-branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.contact-branch-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s var(--anim-timing);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.contact-branch-card .card-front {
    padding: 2rem;
    transform: translateY(0) translateZ(0);
    transition: all 0.5s var(--anim-timing);
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-branch-card .card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light-dark));
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.5s var(--anim-timing);
    z-index: 1;
    overflow-y: auto;
    max-height: 100%;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--anim-timing);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-content {
    flex-grow: 1;
}

.contact-info-content h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.contact-info-content p,
.contact-info-content a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.contact-info-content a:hover {
    color: var(--text-light);
    transform: translateX(5px);
}

.contact-branch-card:hover .card-front {
    transform: translateY(-100%);
}

.contact-branch-card:hover .card-back {
    transform: translateY(0);
}

.contact-branch-card:hover .contact-info-list {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-branch-card {
        min-height: 180px;
    }

    .contact-branch-card .card-front,
    .contact-branch-card .card-back {
        padding: 1.5rem;
    }

    .contact-info-item {
        padding: 0.8rem 0;
    }

    .contact-info-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .contact-info-content p,
    .contact-info-content a {
        font-size: 0.95rem;
    }
}


/* Footer Styles */

.footer {
    background: var(--text-light);
    color: var(--text-dark);
    padding: 5rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

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

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 70px;
}

.footer-section p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-section a {
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section a i {
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info i {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-info li:hover i {
    background: var(--primary-color);
    color: var(--text-light);
}

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

/* Mobile Footer Styles */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1rem;
    }

    .footer-content {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 2rem;
    }

    /* First section (About) takes full width */
    .footer-content .footer-section:first-child {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

    /* Quick Links and Services sections */
    .footer-content .footer-section:nth-child(2),
    .footer-content .footer-section:nth-child(3) {
        width: 100%;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    /* Last section (Contact) takes full width */
    .footer-content .footer-section:last-child {
        width: 100%;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul {
        text-align: left;
    }

    .footer-section ul li a {
        font-size: 0.9rem;
    }
}

/* Very small screens adjustment */
@media (max-width: 480px) {
    .footer-content .footer-section:nth-child(2),
    .footer-content .footer-section:nth-child(3) {
        width: 1000%;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section ul li a {
        font-size: 0.85rem;
    }
}

/* RTL Support for Footer */
[dir="rtl"] .footer-section {
    text-align: right;
}

[dir="rtl"] .footer-section h3::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .footer-section ul {
    text-align: right;
}

[dir="rtl"] .footer-section a:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .footer-section ul li a i {
    transform: rotate(180deg);
    margin-right: 0;
    margin-left: 0.5rem;
}

/* RTL Support for Mobile Footer */
@media (max-width: 768px) {
    [dir="rtl"] .footer-section ul {
        text-align: right;
    }

    [dir="rtl"] .footer-section h3::after {
        right: 50% !important;
        left: auto;
        transform: translateX(50%);
    }
}


/* Dark mode adjustments for mobile */
@media (max-width: 768px) {
    [data-theme="dark"] .footer {
        background: var(--bg-dark);
    }

    [data-theme="dark"] .footer-section h3 {
        color: var(--text-light);
    }

    [data-theme="dark"] .footer-section ul li a,
    [data-theme="dark"] .footer-section p,
    [data-theme="dark"] .contact-info a {
        color: var(--gray-500);
    }

    [data-theme="dark"] .social-links a {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-light);
    }

    [data-theme="dark"] .footer-bottom {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

/* Dark mode footer adjustments */
[data-theme="dark"] .footer {
    background-color: var(--card-bg);
}

[data-theme="dark"] .footer-section h3 {
    color: var(--text-light);
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section a {
    color: var(--gray-600);
}

[data-theme="dark"] .social-links a {
    background: var(--bg-light);
    color: var(--text-light);
}

[data-theme="dark"] .social-links a:hover {
    background: var(--primary-color);
}


/* RTL Support */

[dir="rtl"] {
    direction: rtl;
    unicode-bidi: bidi-override;
    font-family: var(--font-ar);
}

[dir="rtl"] .info-item i {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .service-link i {
    transform: rotate(180deg);
}

[dir="rtl"] .feature i {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .footer-section h3::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-section a:hover {
    transform: translateX(-5px);
}


/* WhatsApp Floating Icon */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Default for LTR */
    z-index: 1000;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 2rem;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}


/* RTL Support for WhatsApp float */

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}


/* Responsive Design for WhatsApp float */

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
        bottom: 20px;
        right: 20px;
    }

    [dir="rtl"] .whatsapp-float {
        right: auto;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }

    [dir="rtl"] .whatsapp-float {
        right: auto;
        left: 15px;
    }
}


/* Header Controls */

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* Mobile Menu Toggle */

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}


/* Theme Toggle */

.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: transparent;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.theme-toggle i {
    font-size: 1rem;
    color: var(--text-light);
}

.scrolled .theme-toggle i,
.scroll-up .theme-toggle i {
    color: var(--text-light);
}

/* Dark theme styles */
[data-theme="dark"] .theme-toggle i {
    color: var(--text-light);
}

[data-theme="dark"] .scrolled .theme-toggle i,
[data-theme="dark"] .scroll-up .theme-toggle i {
    color: var(--text-light);
}

/* Mobile styles for theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        padding: 0.8rem 1.5rem;
        width: 100%;
        max-width: 120px;
        text-align: center;
        border-color: var(--gray-300);
    }
    
    .theme-toggle i {
        color: var(--text-dark);
    }

    [data-theme="dark"] .theme-toggle i {
        color: var(--text-light);
    }
}


/* Loading Animation */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Skip Link */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px;
    z-index: 9999;
    transition: 0.3s;
}

.skip-link:focus {
    top: 0;
}


/* Scroll to Top */

.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

[dir="rtl"] .scroll-top {
    right: 30px;
}


/* Cookie Banner */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    transition: 0.3s ease;
    z-index: 9998;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
}


/* Mobile Responsive Styles */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    /* Hide header controls in mobile view */
    .header .container .header-controls {
        display: none;
    }

    /* Hide language toggle in header for mobile */
    .header .container .language-toggle {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--text-light);
        transition: 0.3s ease;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
        display: flex;
        flex-direction: column-reverse;
        visibility: visible;
        /* Ensure visibility */
    }

    .main-nav.active {
        right: 0;
        display: flex;
        /* Ensure display when active */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
        order: 1;
        list-style: none;
        padding: 0;
    }

    .main-nav a {
        color: var(--text-dark);
        font-size: 1.1rem;
        padding: 0.8rem 0;
        display: block;
        border-bottom: 1px solid var(--gray-200);
        text-decoration: none;
    }

    .main-nav a:hover {
        color: var(--primary-color);
        transform: translateX(10px);
    }

    /* Show language toggle inside mobile menu */
    .main-nav .language-toggle {
        display: flex;
        margin-top: auto;
        /* Push to bottom */
        padding: 1rem 0;
        border-top: 1px solid var(--gray-200);
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    /* Show only the relevant language button in mobile menu */
    .main-nav .lang-btn {
        display: none;
        padding: 0.8rem 1.5rem;
        width: 100%;
        max-width: 120px;
        text-align: center;
        border-color: var(--gray-300);
        color: var(--text-dark);
    }

    /* Show only the opposite language button based on current language */
    [lang="en"] .main-nav .lang-btn[data-lang="ar"],
    [lang="ar"] .main-nav .lang-btn[data-lang="en"] {
        display: block;
    }

    .main-nav .lang-btn.active {
        background: var(--primary-color);
        color: var(--text-light);
        border-color: var(--primary-color);
    }

    [dir="rtl"] .main-nav {
        right: auto;
        left: -100%;
    }

    [dir="rtl"] .main-nav.active {
        left: 0;
    }

    [dir="rtl"] .main-nav a:hover {
        transform: translateX(-10px);
    }

    /* Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        backdrop-filter: blur(3px);
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .scroll-top {
        bottom: 90px;
    }
}


/* Print Styles */

@media print {

    .header,
    .footer,
    .whatsapp-float,
    .scroll-top,
    .cookie-banner {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .hero,
    .about,
    .services,
    .products {
        page-break-inside: avoid;
    }
}


/* Custom Scrollbar */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    margin: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(227, 24, 55, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(227, 24, 55, 0.5);
}


/* For Firefox */

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(227, 24, 55, 0.3) transparent;
}


/* Hide scrollbar for specific elements while maintaining functionality */

.service-card .service-description {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.service-card .service-description::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}


/* Custom Cursors */

body {
    cursor: default;
}


/* Links and Buttons */

a,
button,
.cta-button,
.service-link,
.product-link,
.lang-btn,
.mobile-menu-toggle,
.scroll-top,
.whatsapp-float {
    cursor: pointer;
}


/* Text Selection */

::selection {
    background: var(--primary-color);
    color: var(--text-light);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-light);
}


/* Hover Effects with Cursor */

.service-card,
.product-card,
.advantage-card,
.client-logo,
.social-links a {
    cursor: pointer;
}


/* Form Elements */

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    cursor: text;
}


/* Disabled Elements */

button:disabled,
input:disabled,
.disabled {
    cursor: not-allowed;
}


/* Loading State */

.loader {
    cursor: wait;
}


/* Animation Keyframes */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Animation Classes */

.animate {
    opacity: 0;
    animation-duration: var(--anim-duration);
    animation-fill-mode: both;
    animation-timing-function: var(--anim-timing);
}

.delay-1 {
    animation-delay: calc(var(--anim-delay-base));
}

.delay-2 {
    animation-delay: calc(var(--anim-delay-base) + var(--anim-delay-increment));
}

.delay-3 {
    animation-delay: calc(var(--anim-delay-base) + var(--anim-delay-increment) * 2);
}

.delay-4 {
    animation-delay: calc(var(--anim-delay-base) + var(--anim-delay-increment) * 3);
}

.delay-5 {
    animation-delay: calc(var(--anim-delay-base) + var(--anim-delay-increment) * 4);
}

.fade-up {
    animation-name: fadeInUp;
}

.fade-down {
    animation-name: fadeInDown;
}

.fade-left {
    animation-name: fadeInLeft;
}

.fade-right {
    animation-name: fadeInRight;
}

.scale-in {
    animation-name: scaleIn;
}


/* Apply animations to elements */

.hero h2 {
    animation: rotateIn var(--anim-duration) var(--anim-timing);
}

.hero p {
    animation: floatUp var(--anim-duration-slow) var(--anim-timing) backwards;
    animation-delay: var(--anim-delay-base);
}

.hero-buttons {
    animation: floatUp var(--anim-duration-slow) var(--anim-timing) backwards;
    animation-delay: calc(var(--anim-delay-base) * 2);
}

.advantage-card {
    opacity: 0;
}

.advantage-card.animate {
    animation: scaleIn 0.8s ease-out forwards;
}

.service-card {
    opacity: 0;
}

.service-card.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.product-card {
    opacity: 0;
}

.product-card.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.client-logo {
    opacity: 0;
}

.client-logo.animate {
    animation: scaleIn 0.8s ease-out forwards;
}

.feature {
    opacity: 0;
}

.feature.animate {
    animation: slideInLeft var(--anim-duration) var(--anim-timing) forwards;
}

.contact-info .info-card {
    opacity: 0;
}

.contact-info .info-card.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.footer-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.footer-section.animate {
    animation: floatUp var(--anim-duration) var(--anim-timing) forwards;
}

.footer-section .about-image {
    width: 120px;
    height: auto;
    margin: 1rem 0;
    border-radius: 0;
    overflow: visible;
}

.footer-section .about-image::after {
    display: none;
}

.footer-section .about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-section .about-image:hover img {
    transform: scale(1.1);
}


/* Enhanced Animation Keyframes */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-15deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}


/* Animation Base Class */

.animate {
    opacity: 0;
    animation-duration: var(--anim-duration);
    animation-fill-mode: both;
    animation-timing-function: var(--anim-timing);
}


/* Delay Classes with Variables */

.delay-1 {
    animation-delay: calc(var(--anim-delay-base));
}

.delay-2 {
    animation-delay: calc(var(--anim-delay-base) + var(--anim-delay-increment));
}

.delay-3 {
    animation-delay: calc(var(--anim-delay-base) + var(--anim-delay-increment) * 2);
}

.delay-4 {
    animation-delay: calc(var(--anim-delay-base) + var(--anim-delay-increment) * 3);
}

.delay-5 {
    animation-delay: calc(var(--anim-delay-base) + var(--anim-delay-increment) * 4);
}


/* Speed Variations */

.anim-slow {
    animation-duration: var(--anim-duration-slow);
}

.anim-fast {
    animation-duration: var(--anim-duration-fast);
}


/* Apply alternating animations to cards */

.advantage-card:nth-child(odd).animate {
    animation: slideInLeft var(--anim-duration-slow) var(--anim-timing) forwards;
}

.advantage-card:nth-child(even).animate {
    animation: slideInRight var(--anim-duration-slow) var(--anim-timing) forwards;
}

.service-card:nth-child(odd).animate {
    animation: slideInLeft var(--anim-duration) var(--anim-timing) forwards;
}

.service-card:nth-child(even).animate {
    animation: slideInRight var(--anim-duration) var(--anim-timing) forwards;
}

.product-card:nth-child(odd).animate {
    animation: slideInLeft var(--anim-duration-slow) var(--anim-timing) forwards;
}

.product-card:nth-child(even).animate {
    animation: slideInRight var(--anim-duration-slow) var(--anim-timing) forwards;
}


/* Special animations for specific elements */

.hero h2 {
    animation: rotateIn var(--anim-duration) var(--anim-timing);
}

.hero p {
    animation: floatUp var(--anim-duration-slow) var(--anim-timing) backwards;
    animation-delay: var(--anim-delay-base);
}

.hero-buttons {
    animation: floatUp var(--anim-duration-slow) var(--anim-timing) backwards;
    animation-delay: calc(var(--anim-delay-base) * 2);
}

.feature.animate {
    animation: slideInLeft var(--anim-duration) var(--anim-timing) forwards;
}

.client-logo:nth-child(odd).animate {
    animation: slideInLeft var(--anim-duration) var(--anim-timing) forwards;
}

.client-logo:nth-child(even).animate {
    animation: slideInRight var(--anim-duration) var(--anim-timing) forwards;
}

.contact-info .info-card:nth-child(1).animate {
    animation: slideInLeft var(--anim-duration-slow) var(--anim-timing) forwards;
}

.contact-info .info-card:nth-child(2).animate {
    animation: floatUp var(--anim-duration-slow) var(--anim-timing) forwards;
}

.contact-info .info-card:nth-child(3).animate {
    animation: slideInRight var(--anim-duration-slow) var(--anim-timing) forwards;
}

.footer-section.animate {
    animation: floatUp var(--anim-duration) var(--anim-timing) forwards;
}


/* Hover animations */

.service-card:hover {
    animation: floatUp 0.5s var(--anim-timing);
}

.product-card:hover {
    animation: floatUp 0.5s var(--anim-timing);
}

.advantage-card:hover {
    animation: floatUp 0.5s var(--anim-timing);
}


/* Add smooth transitions for all animated elements */

.service-card,
.product-card,
.advantage-card,
.feature,
.client-logo,
.info-card,
.footer-section {
    transition: transform 0.5s var(--anim-timing), opacity 0.5s var(--anim-timing), box-shadow 0.3s var(--anim-timing);
}


/* What We Do Section */

.what-we-do {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: url(../images/about.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.what-we-do::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(227, 24, 55, 0.85) 100%);
    z-index: 1;
}

.what-we-do .container {
    position: relative;
    z-index: 2;
}

.what-we-do .section-header {
    margin-bottom: 3rem;
}

.what-we-do .section-title {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.what-we-do .section-title::after {
    background-color: var(--text-light);
    width: 80px;
    height: 4px;
}

.what-we-do .content {
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 2rem;
}

.what-we-do p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .what-we-do {
        padding: 4rem 0;
    }

    .what-we-do .section-title {
        font-size: 2.2rem;
    }

    .what-we-do p {
        font-size: 1.1rem;
    }

    .what-we-do .content {
        padding: 1.5rem;
    }
}


/* Branches Section */

.branches {
    padding: 6rem 0;
    background: var(--bg-light);
}

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

.branch-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.branch-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.branch-location {
    margin-bottom: 1.5rem;
}

.branch-location:last-child {
    margin-bottom: 0;
}

.branch-location h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.branch-location p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.branch-location a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.branch-location a:hover {
    color: var(--primary-dark);
}


/* Updated Services Section */

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

.service-card {
    padding: 2rem;
}

.customs-penalties {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.customs-penalties li {
    color: var(--text-light);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.7rem;
}

.customs-penalties li:last-child {
    border-bottom: none;
}


/* Updated Contact Section */

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

.contact-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.contact-card p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card i {
    color: var(--primary-color);
}

.contact-card a {
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-color);
}


/* RTL Specific Styles */

[dir="rtl"] .branch-location p {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-card p {
    flex-direction: row-reverse;
}


/* Responsive Styles */

@media (max-width: 768px) {
    .what-we-do {
        padding: 4rem 0;
    }

    .what-we-do p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

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

    .branch-card,
    .contact-card {
        padding: 1.5rem;
    }
}


/* Add icon styles for contact section */

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

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.card-title {
    margin-bottom: 1rem;
}

.card-title h3 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 300;
}


/* Contact info icons */

.contact-info-item i {
    font-size: 1.2rem;
    color: var(--text-light);
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon i {
        font-size: 1.5rem;
    }

    .card-title h3 {
        font-size: 1.5rem;
    }

    .card-title p {
        font-size: 1rem;
    }

    .contact-info-item i {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}


/* Add shimmer effect */

.service-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.service-card:hover::after {
    animation: shimmer 1.5s infinite;
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }

    100% {
        transform: rotate(45deg) translateX(100%);
    }
}


/* RTL Specific Styles */

[dir="rtl"] .footer-content {
    text-align: right;
    /* Align content to right for RTL */
}

[dir="rtl"] .footer-section h3::after {
    right: 0;
    /* Move the underline to right */
    left: auto;
}

[dir="rtl"] .footer-section {
    text-align: right;
    /* Ensure footer section content aligns right */
}

[dir="rtl"] .social-links {
    justify-content: flex-start;
    /* Align social links to right */
}


/* RTL Specific Styles for Footer */

[dir="rtl"] .footer-content {
    text-align: right;
}

[dir="rtl"] .footer-section {
    text-align: right;
}

[dir="rtl"] .footer-section h3::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .footer-section ul {
    padding-right: 0;
    /* Remove default padding */
}

[dir="rtl"] .footer-section ul li a i {
    margin-left: 0.5rem;
    margin-right: 0;
    transform: rotate(180deg);
    /* Flip chevron icons */
}

[dir="rtl"] .social-links {
    justify-content: flex-end;
    /* Align social icons to the right */
}

[dir="rtl"] .footer-section .about-image {
    margin-right: 0;
    margin-left: auto;
}


/* Fix for mobile view */

@media (max-width: 768px) {
    [dir="rtl"] .footer-content {
        text-align: right;
    }

    [dir="rtl"] .social-links {
        justify-content: flex-end;
    }
}

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    transform: scale(1.5);
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    z-index: 9999;
    transition: width 0.2s ease;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    animation: arrows 1.5s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

@keyframes arrows {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-100%);
    animation: revealText 1s var(--anim-timing) forwards;
}

@keyframes revealText {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}


/* Dark Mode Variables */

:root {
    /* Light Mode (default) */
    --bg-light: #f8f9fa;
    --text-dark: #333;
    --text-light: #fff;
    --primary-color: #e31837;
    --primary-dark: #c41430;
    --gray-600: #666;
}


/* Dark Mode Colors */

[data-theme="dark"] {
    --bg-light: #1a1a1a;
    --text-dark: #f8f9fa;
    --text-light: #f8f9fa;
    --gray-600: #aaa;
    --card-bg: #2a2a2a;
    --border-color: #404040;
}


/* Section-specific Dark Mode Styles */

[data-theme="dark"] .hero {
    background-color: var(--bg-light);
}

[data-theme="dark"] .about {
    background-color: var(--bg-light);
}

[data-theme="dark"] .what-we-do {
    background-color: #222;
}

[data-theme="dark"] .services {
    background-color: var(--bg-light);
}

[data-theme="dark"] .service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .partners {
    background-color: #222;
}

[data-theme="dark"] .contact-branches {
    background-color: var(--bg-light);
}

[data-theme="dark"] .contact-branch-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .footer {
    background-color: #111;
}




/* Dark mode text colors */

[data-theme="dark"] .section-title,
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .about-text p,
[data-theme="dark"] .contact-branch-card h3,
[data-theme="dark"] .contact-info-item {
    color: var(--text-light);
}

[data-theme="dark"] .service-description p,
[data-theme="dark"] .about-text .lead {
    color: var(--gray-600);
}


/* Dark Mode Styles for Navigation */

[data-theme="dark"] .header {
    background-color: var(--bg-light);
}

[data-theme="dark"] .header.scrolled,
[data-theme="dark"] .header.scroll-up {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .main-nav a {
    color: var(--text-light);
}


/* Dark Mode Styles for About Section */

[data-theme="dark"] .about {
    background-color: var(--bg-light);
}

[data-theme="dark"] .feature {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .about-text .lead,
[data-theme="dark"] .about-text .description {
    color: var(--gray-600);
}


/* Dark Mode Styles for Services Cards */

[data-theme="dark"] .services {
    background-color: var(--bg-light);
}

[data-theme="dark"] .service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .service-front {
    background-color: var(--card-bg);
}

[data-theme="dark"] .service-description {
    background: linear-gradient(135deg, var(--card-bg), var(--bg-light));
}


/* Dark Mode Styles for Footer */

[data-theme="dark"] .footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section a {
    color: var(--gray-600);
}

[data-theme="dark"] .footer-section h3 {
    color: var(--text-light);
}

[data-theme="dark"] .social-links a {
    background: var(--bg-light);
    color: var(--text-light);
}

[data-theme="dark"] .social-links a:hover {
    background: var(--primary-color);
}


/* Dark Mode Styles for Mobile Menu */

@media (max-width: 768px) {
    [data-theme="dark"] .main-nav {
        background-color: var(--bg-dark);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    [data-theme="dark"] .main-nav a {
        color: var(--text-light);
        border-bottom: 1px solid var(--border-color);
    }

    [data-theme="dark"] .main-nav .language-toggle {
        border-top: 1px solid var(--border-color);
    }

    [data-theme="dark"] .menu-overlay {
        background: rgba(0, 0, 0, 0.8);
    }

    [data-theme="dark"] .theme-toggle {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    [data-theme="dark"] .theme-toggle i {
        color: var(--text-light);
    }

    [data-theme="dark"] .mobile-menu-toggle {
        color: var(--text-light);
    }
}


/* Tooltip Styles */

.tooltip {
    position: relative;
    display: inline-block;
    /* Add this */
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    /* Add this */
    margin-bottom: 5px;
    /* Add this */
}

.tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    /* Add this */
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
    /* Add translation */
}


/* Footer-specific tooltip adjustments */

.footer-section .tooltip::before {
    bottom: auto;
    /* Add this */
    top: -30px;
    /* Add this */
}

.footer-section .tooltip::after {
    bottom: auto;
    /* Add this */
    top: -10px;
    /* Add this */
}


/* Dark Mode Tooltip - keep existing styles */

[data-theme="dark"] .tooltip::before {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .tooltip::after {
    border-top-color: var(--card-bg);
}


/* Update Tooltip Styles */

.tooltip::before {
    max-width: 250px;
    /* Add maximum width */
    line-height: 1.4;
    /* Improve readability */
    text-align: center;
    /* Center the text */
    padding: 8px 12px;
    /* Slightly larger padding */
    font-size: 0.85rem;
    /* Slightly larger font */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Add shadow */
}


/* RTL Support for Tooltips */

[dir="rtl"] .tooltip::before {
    text-align: right;
    direction: rtl;
}


/* Update Tooltip Styles for Dynamic Width */

.tooltip::before {
    width: auto;
    /* Make width dynamic */
    min-width: 200px;
    /* Minimum width */
    max-width: 300px;
    /* Maximum width */
    white-space: normal;
    /* Allow text to wrap */
    line-height: 1.4;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    hyphens: auto;
    /* Enable hyphenation */
    word-wrap: break-word;
    /* Break long words */
}


/* RTL Support for Dynamic Tooltips */

[dir="rtl"] .tooltip::before {
    text-align: right;
    direction: rtl;
}


/* Adjust tooltip arrow position */

.tooltip::after {
    margin-left: -6px;
    /* Center the arrow */
}


/* Mobile adjustments */

@media (max-width: 768px) {
    .tooltip::before {
        max-width: 250px;
        /* Slightly smaller on mobile */
        font-size: 0.8rem;
    }
}


/* Remove old tooltip styles and add these new styles */

.expandable-item {
    margin-bottom: 10px;
}

.expand-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.expand-trigger i {
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    margin-top: 0;
    opacity: 0;
}

.expandable-item.active .expand-trigger i {
    transform: rotate(90deg);
}

.expandable-item.active .expand-content {
    max-height: fit-content;
    padding: 10px 20px;
    margin-top: 8px;
    opacity: 1;
}

.expand-content p {
    margin: 5px 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.expand-content i {
    margin-right: 8px;
    color: var(--primary-color);
}


/* Dark mode styles */

[data-theme="dark"] .expand-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}


/* Contact Link Styles */

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}


/* Make sure links are visible in dark mode */

[data-theme="dark"] .contact-link {
    color: var(--gray-600);
}

[data-theme="dark"] .contact-link:hover {
    color: var(--primary-color);
}


/* Add hover effect */

.expand-content p:hover .contact-link {
    color: var(--primary-color);
}


/* RTL Footer Adjustments */

[dir="rtl"] .footer-section .expand-trigger i {
    margin-right: 0;
    margin-left: 8px;
    transform: rotate(180deg);
}

[dir="rtl"] .footer-section .expand-content i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .expandable-item.active .expand-trigger i {
    transform: rotate(-90deg);
}

[dir="rtl"] .footer-section ul li a i {
    transform: rotate(180deg);
    margin-right: 0;
    margin-left: 8px;
}


/* Additional RTL Footer Fixes */

[dir="rtl"] .footer-section {
    text-align: right;
}

[dir="rtl"] .footer-section .expand-content {
    text-align: right;
}

[dir="rtl"] .footer-section .expand-content i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .footer-section .social-links {
    justify-content: flex-start;
}

[dir="rtl"] .footer-bottom {
    text-align: center;
}

[dir="rtl"] .contact-info li {
    text-align: right;
}

[dir="rtl"] .contact-info i {
    margin-right: 0;
    margin-left: 10px;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Mobile styles for About section */
@media (max-width: 768px) {
    .about {
        padding: 4rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1; /* Move image to top */
        width: 100%;
        margin-bottom: 2rem;
    }

    .about-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

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

    .about-text .lead {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .about-features {
        margin-top: 1.5rem;
    }
}

/* Very small screens adjustment */
@media (max-width: 480px) {
    .about {
        padding: 3rem 0;
    }

    .about-content {
        gap: 1.5rem;
    }

    .about-image {
        margin-bottom: 1.5rem;
    }
}

.w-250 {
    min-width: 250px !important;
}

.expand-content {
    display: none;
    padding: 10px 0;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 5px;
}

.expandable-item.active .expand-content {
    display: block;
}

.expand-content p {
    margin: 8px 0;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expand-content i {
    width: 16px;
    /* color: var(--primary); */
}

/* Mobile styles for expandable content */
@media (max-width: 768px) {
    .expand-content {
        background: var(--bg-light);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .expand-content p {
        margin: 12px 0;
        padding: 8px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .expand-content p:last-child {
        border-bottom: none;
    }

    .expand-content i {
        width: 20px;
        font-size: 1.1em;
    }

    .expand-content .contact-link {
        font-size: 0.7em;
        word-break: break-word;
    }

    .expand-content p[style*="padding-left"] {
        padding-left: 35px !important;
    }

    .expandable-item .expand-trigger i {
        transition: transform 0.3s ease;
    }

    .expandable-item.active .expand-trigger i {
        transform: rotate(90deg);
    }
}

/* Dark theme support for expandable content */
[data-theme="dark"] .expand-content {
    background: var(--bg-dark);
}

[data-theme="dark"] .expand-content p {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* RTL support for expandable content */
[dir="rtl"] .expand-content p[style*="padding-left"] {
    padding-right: 35px !important;
    padding-left: 0 !important;
}

[dir="rtl"] .expandable-item .expand-trigger i {
    transform: rotate(180deg);
}

[dir="rtl"] .expandable-item.active .expand-trigger i {
    transform: rotate(270deg);
}

/* Mobile Theme Toggle Styles */
@media (max-width: 768px) {
    .mobile-theme-toggle {
        margin-left: 1rem;
        background-color: var(--primary-color);
        border: none;
        padding: 0.8rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-theme-toggle i {
        font-size: 1rem;
        color: var(--text-light);
    }

    [data-theme="dark"] .mobile-theme-toggle {
        background-color: var(--primary-color);
    }

    [data-theme="dark"] .mobile-theme-toggle i {
        color: var(--text-light);
    }

    /* Hide desktop theme toggle in mobile view */
    .header-controls .theme-toggle {
        display: none;
    }
}