/* ============================================
   CSS Variables - Logo Colors
   ============================================ */
:root {
    --primary-orange: #E67E22;
    --primary-brown: #5D4037;
    --dark-brown: #3E2723;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-dark: #212121;
    --text-light: #757575;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-orange);
    color: var(--white);
}

.lang-toggle {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
    border-radius: 3px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-brown) 50%, var(--dark-brown) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-orange);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 Q300,0 600,60 T1200,60 L1200,120 L0,120 Z" fill="%23ffffff"/></svg>') repeat-x;
    background-size: 1200px 120px;
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    font-weight: 700;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-brown));
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background-color: var(--light-gray);
}

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

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-brown);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-brown));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    background-color: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.2);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.service-icon {
    font-size: 3.5rem;
    margin: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.service-card h3,
.service-card p {
    padding: 0 2rem;
}

.service-card p {
    padding-bottom: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Vision & Mission Section
   ============================================ */
.vision-mission {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

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

.vm-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-brown));
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.vm-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.vm-card h2 {
    font-size: 1.8rem;
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.vm-card p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

.vm-card ul {
    list-style: none;
    padding: 0;
}

.vm-card ul li {
    padding: 0.8rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.8;
}

.vm-card ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background-color: var(--light-gray);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px var(--shadow);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-orange);
}

.contact-details h3 {
    color: var(--primary-brown);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details a {
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-brown);
    text-decoration: underline;
}

.contact-details p {
    color: var(--text-dark);
    margin: 0.3rem 0;
}

.contact-map-wrapper {
    margin-bottom: 2rem;
}

.map-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 15px;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-group label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
    background-color: var(--white);
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    right: 0.8rem;
    font-size: 0.85rem;
    color: var(--primary-orange);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.footer-info {
    text-align: center;
    flex: 1;
}

.footer-info p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-brown);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .about-stats {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 768px) {
    .logo-text {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo img {
        height: 50px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

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

/* ============================================
   RTL Support
   ============================================ */
[dir="rtl"] .contact-item:hover {
    transform: translateX(-10px);
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

[dir="ltr"] .form-group label {
    right: auto;
    left: 1rem;
}

[dir="ltr"] .form-group input:focus + label,
[dir="ltr"] .form-group input:valid + label,
[dir="ltr"] .form-group textarea:focus + label,
[dir="ltr"] .form-group textarea:valid + label {
    right: auto;
    left: 0.8rem;
}

[dir="ltr"] .vm-card ul li {
    padding-right: 0;
    padding-left: 1.5rem;
}

[dir="ltr"] .vm-card ul li::before {
    right: auto;
    left: 0;
}

/* ============================================
   Image Loading & Optimization
   ============================================ */
.service-image img,
.hero-image img {
    transition: transform 0.5s ease;
}

/* Special styling for Western Union and MoneyGram images */
.service-card:nth-last-child(2) .service-image,
.service-card:nth-last-child(1) .service-image {
    background: var(--white);
    padding: 1.5rem;
}

.service-card:nth-last-child(2) .service-image img,
.service-card:nth-last-child(1) .service-image img {
    filter: none;
    object-fit: contain;
}

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

