:root {
    --primary: #B2560D;
    --primary-light: #d67123;
    --secondary: #181818;
    --accent: #EFEBE3;
    --bg: #FDFCFB;
    --text: #2B1D14;
    --glass-bg: rgba(253, 252, 251, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(253, 252, 251, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* Header */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo { font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.logo-placeholder-header { width: 50px; height: 50px; }

#animated-logo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    transform-origin: top left;
    filter: drop-shadow(0 15px 35px rgba(178, 86, 13, 0.4));
    will-change: transform, width, opacity;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--secondary); font-weight: 700; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

.cta-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}
.cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Map Background */
.map-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(135deg, var(--bg) 0%, var(--accent) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.map-background svg {
    width: 100%;
    height: 100%;
    max-width: 900px;
    opacity: 0.85;
    transform: translateX(-20%);
}

.country-syria { fill: #8b624e; stroke: #fdfcfb; stroke-width: 3; stroke-linejoin: round; }
.country-jordan { fill: #d49a62; stroke: #fdfcfb; stroke-width: 3; stroke-linejoin: round; }
.border-red-dashed { fill: none; stroke: #e63946; stroke-width: 4; stroke-dasharray: 8, 8; stroke-linecap: round; }
.country-name { font-size: 50px; font-weight: 900; fill: #2b1d14; text-anchor: middle; opacity: 0.8; }
.city-name { font-size: 28px; font-weight: bold; fill: var(--secondary); }

#route-path {
    fill: transparent;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.5s ease-out;
}

/* Map Stages */
.map-stage {
    opacity: 0;
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-stage.active {
    opacity: 1;
}
.map-stage .stage-box {
    fill: var(--bg);
    stroke: var(--primary);
    stroke-width: 3;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}
.map-stage .stage-check {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    transition: stroke-dashoffset 0.5s ease-out 0.2s;
}
.map-stage.active .stage-check {
    stroke-dashoffset: 0;
}
.map-stage .stage-label {
    opacity: 0;
    font-size: 20px;
    font-weight: 900;
    fill: var(--text);
    text-shadow: 0px 0px 5px rgba(253, 252, 251, 0.8), 0px 0px 10px rgba(253, 252, 251, 0.6);
    transition: opacity 0.5s ease-out 0.3s, transform 0.5s ease-out 0.3s;
}
.map-stage[id="map-stage-1"] .stage-label { transform: translateX(-10px); }
.map-stage:not([id="map-stage-1"]) .stage-label { transform: translateX(10px); }

.map-stage.active .stage-label {
    opacity: 1;
    transform: translateX(0);
}

/* Final Green Checkmark */
.final-green-check {
    opacity: 0;
    transform: scale(0);
    transform-origin: 0 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
}

#map-stage-5.active .final-green-check {
    opacity: 1;
    transform: scale(1.2);
}

.final-check-bg {
    filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.8));
}

.final-check-mark {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
}

#map-stage-5.active .final-check-mark {
    animation: drawCheck 0.4s ease-out 0.8s forwards;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

/* Content Layout */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the right (RTL) */
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    padding: 40px;
    animation: slideUp 1s ease-out forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    background: rgba(178, 86, 13, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 15px; }

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
    font-family: 'Cairo', sans-serif;
    display: inline-block;
}
.btn-primary:hover { 
    background: var(--primary-light); 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(178, 86, 13, 0.3); 
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-placeholder-hero {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
}

/* Timeline Section */
.timeline-section {
    margin-top: 50px;
    width: 100%;
    max-width: 650px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 40px;
    display: inline-block;
    padding: 10px 30px;
}

.timeline-container {
    position: relative;
    padding-right: 40px;
}

.timeline-line {
    position: absolute;
    right: 18px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(178, 86, 13, 0.2);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    opacity: 0.4;
    transform: translateX(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    right: -40px;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid var(--primary);
    z-index: 2;
    transition: 0.3s;
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(178, 86, 13, 0.2);
}

.timeline-content {
    padding: 25px;
    transition: 0.3s;
    border-right: 4px solid transparent;
}

.timeline-item .glass-panel {
    background: rgba(253, 252, 251, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.timeline-item.active .timeline-content {
    border-right-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: scale(1.02);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.timeline-content p {
    color: var(--text);
}

/* Other Services Section */
.other-services-section {
    padding: 60px 20px;
    z-index: 2;
    position: relative;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s transform, 0.3s box-shadow;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.service-card.glass-panel {
    background: rgba(253, 252, 251, 0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(253, 252, 251, 0.6);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-title {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
}

/* Footer */
.main-footer {
    padding: 15px 20px;
    text-align: center;
    margin: 100px auto 10px auto;
    max-width: 600px; /* Reduced width */
    width: 90%;
    font-weight: 700;
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
}

.main-footer.glass-panel {
    background: rgba(253, 252, 251, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.footer-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.contact-link:hover {
    color: var(--secondary);
    transform: scale(1.05);
}

.contact-divider {
    color: var(--secondary);
    opacity: 0.5;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: bounceIn 1s ease-out;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128C7E;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .floating-whatsapp svg {
        width: 25px;
        height: 25px;
    }
    .contact-divider {
        display: none;
    }
    .footer-contacts {
        flex-direction: column;
        gap: 5px;
    }

    .hero-content {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .content-wrapper { padding-top: 150px; padding-left: 15px; padding-right: 15px; align-items: center; }
    .map-background svg { transform: translateX(0%); opacity: 0.5; width: 100%; height: 125vw; max-height: 100vh; }
    
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
        min-height: auto;
    }
    
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-content { padding: 25px; }
    .logo-placeholder-hero { max-width: 200px; margin: 0 auto; height: 200px; }
    
    .hero-actions { justify-content: center; }
    
    .glass-header { padding: 12px 20px; width: 95%; top: 10px; border-radius: 20px; flex-wrap: wrap; }
    .logo { font-size: 1.4rem; }
    .logo-placeholder-header { width: 35px; height: 35px; }
    
    .timeline-section, .main-footer { max-width: 100%; text-align: center; }
    .timeline-container { padding-right: 0; padding-top: 40px; }
    .timeline-line { right: 50%; top: 0; bottom: 0; transform: translateX(50%); }
    .timeline-dot { right: 50%; transform: translateX(50%); top: -30px; }
    .timeline-content { text-align: center; border-right: none; border-top: 4px solid transparent; padding: 15px; }
    .timeline-item.active .timeline-content { border-top-color: var(--primary); }
    
    .nav-links { 
        display: flex; 
        width: 100%; 
        order: 3; 
        justify-content: center; 
        margin-top: 10px; 
        gap: 15px; 
        flex-wrap: wrap; 
    }
    .nav-links a {
        font-size: 0.95rem;
    }
}