/* Custom Fonts */
@font-face {
    font-family: 'NotoKufiArabic';
    src: url('../fonts/NotoKufiArabic-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'NotoKufiArabic';
    src: url('../fonts/NotoKufiArabic-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'NotoKufiArabic';
    src: url('../fonts/NotoKufiArabic-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'NotoKufiArabic';
    src: url('../fonts/NotoKufiArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'NotoKufiArabic';
    src: url('../fonts/NotoKufiArabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'NotoKufiArabic';
    src: url('../fonts/NotoKufiArabic-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'NotoKufiArabic';
    src: url('../fonts/NotoKufiArabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'NotoKufiArabic';
    src: url('../fonts/NotoKufiArabic-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'NotoKufiArabic';
    src: url('../fonts/NotoKufiArabic-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* Reset & Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --font-family: 'NotoKufiArabic', 'Cairo', sans-serif;
}

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

html, body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: transparent; /* Transparent to show fixed background */
    position: relative; /* Ensure body is relative for fixed background if needed */
    overflow-x: hidden; /* Fix horizontal scrollbar */
    width: 100%;
    margin: 0;
    padding: 0;
}

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

ul {
    list-style: none;
}

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

/* Custom CSS Background (Skyscrapers, Stock Arrows) */
.custom-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -999;
    opacity: 0.15;
    pointer-events: none;
    overflow: hidden;
    background: #f4f6f8; /* Light neutral background instead of flag */
}

/* Moving Skyscrapers Layer */
.skyscrapers-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%; /* Wider to allow scrolling */
    height: 100%;
    background: 
        /* Skyscrapers (Bottom) */
        linear-gradient(to top, #2c3e50 0%, #2c3e50 20%, transparent 20%) 5% 100% / 40px 100% no-repeat,
        linear-gradient(to top, #34495e 0%, #34495e 30%, transparent 30%) 15% 100% / 50px 100% no-repeat,
        linear-gradient(to top, #2c3e50 0%, #2c3e50 25%, transparent 25%) 25% 100% / 45px 100% no-repeat,
        linear-gradient(to top, #34495e 0%, #34495e 35%, transparent 35%) 35% 100% / 60px 100% no-repeat,
        linear-gradient(to top, #2c3e50 0%, #2c3e50 15%, transparent 15%) 45% 100% / 40px 100% no-repeat,
        linear-gradient(to top, #34495e 0%, #34495e 40%, transparent 40%) 55% 100% / 55px 100% no-repeat,
        linear-gradient(to top, #2c3e50 0%, #2c3e50 22%, transparent 22%) 65% 100% / 42px 100% no-repeat,
        linear-gradient(to top, #34495e 0%, #34495e 32%, transparent 32%) 75% 100% / 48px 100% no-repeat,
        linear-gradient(to top, #2c3e50 0%, #2c3e50 18%, transparent 18%) 85% 100% / 38px 100% no-repeat,
        linear-gradient(to top, #34495e 0%, #34495e 28%, transparent 28%) 95% 100% / 52px 100% no-repeat;
    
    background-repeat: repeat-x;
    animation: move-skyscrapers 30s linear infinite;
    opacity: 0.1; /* Subtle opacity for skyscrapers */
}

@keyframes move-skyscrapers {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Algeria Flag Overlay - Removed */

/* Falling Items Styles */
.falling-items {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -998; /* Just above background */
    pointer-events: none;
    overflow: hidden;
}

.falling-item {
    position: absolute;
    top: -100px;
    left: var(--l);
    font-size: 30px;
    animation: fall 5s linear infinite;
    animation-delay: var(--d);
    opacity: 0.6;
}

.text-gold { color: #f1c40f; }
.text-blue { color: #3498db; }
.text-purple { color: #9b59b6; }
.text-green { color: #2ecc71; }
.text-red { color: #e74c3c; }

@keyframes fall {
    0% { top: -100px; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { top: 110%; opacity: 0; }
}

/* Algeria Star and Crescent Wrapper */
.dz-flag-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

.dz-crescent {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: transparent;
    box-shadow: 25px 0 0 0 #d21034;
}

.dz-star {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%) rotate(-18deg);
    width: 100px;
    height: 100px;
    background-color: #d21034;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Pulsing Icons */
@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

i.fas, i.fab, i.fa {
    animation: pulse-icon 2s infinite ease-in-out;
    display: inline-block;
}

/* Header */
/* Mobile Menu Toggle (Default Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
}

/* Ticker Styles */
.ticker-wrap {
    width: 100%;
    background-color: #2c3e50;
    overflow: hidden;
    height: 40px;
    box-sizing: border-box; /* Fixed width calculation */
}

.ticker {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    white-space: nowrap;
    padding-left: 100%; /* Push start off-screen */
    box-sizing: content-box;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-name: ticker;
    animation-duration: 80s;
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
    font-size: 14px;
    color: white;
}

.text-green { color: #2ecc71; }
.text-red { color: #e74c3c; }

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

header {
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    max-height: 100px;
    width: auto;
    display: block;
}

/* Removed old text logo styles */
/*
.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.logo .highlight {
    color: var(--secondary-color);
}
*/

nav ul {
    display: flex;
    gap: 15px;
    align-items: center;
}

nav a {
    position: relative;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    padding: 8px 16px;
    transition: all 0.4s ease;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

nav a:not(.btn-primary):hover {
    color: var(--secondary-color);
    background-color: rgba(231, 76, 60, 0.05);
}

nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:not(.btn-primary):hover::after {
    width: 70%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #c0392b 100%);
    color: var(--white) !important;
    padding: 12px 30px !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, var(--secondary-color) 100%);
}

/* Slider Section */
.slider-container {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 10s ease;
}

.slide.active .slide-bg {
    transform: scale(1.15); /* Slow Zoom Effect */
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay */
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 20px;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.slide.active .slide-content h2 {
    animation: fadeInUpGlow 1.5s forwards 0.5s;
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
}

.slide.active .slide-content p {
    animation: fadeInUp 1.5s forwards 0.8s;
}

@keyframes fadeInUpGlow {
    to {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6);
    }
}

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

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.dot {
    width: 15px;
    height: 15px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: var(--white);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 3;
    font-size: 18px;
    border-radius: 50%;
    transition: background 0.3s;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.6);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Video Section */
.glass-box {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}

.watermark-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #ffffff; /* Solid white for depth */
    padding: 15px 25px; /* Increased padding */
    border-top-left-radius: 20px; /* Larger radius */
    box-shadow: 0 0 20px rgba(0,0,0,0.2); /* Deeper shadow */
    z-index: 10;
    pointer-events: none;
}

.watermark-overlay img {
    height: 40px; /* Adjust based on logo size */
    width: auto;
    display: block;
}

/* About Us & Stats */
.stat-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.stat-box:hover {
    transform: translateY(-10px);
}

.stat-box i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: inline-block;
}

.stat-box .count {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-box p {
    color: #777;
    font-size: 14px;
    margin: 0;
}

/* Markets Grid */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.market-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.market-card:hover::before {
    transform: scaleX(1);
}

.market-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.market-flag {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 20px;
    color: #555;
}

.market-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.market-info span {
    font-size: 13px;
    color: #888;
}

.market-price {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Use number-friendly font */
}

.market-change {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-change.up { color: #2ecc71; }
.market-change.down { color: #e74c3c; }

.market-chart-mini {
    margin-top: 15px;
    height: 40px;
    opacity: 0.5;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.client-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 30px;
    color: #cbd5e0;
}

.client-info h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
}

.client-info span {
    color: var(--secondary-color);
    font-size: 14px;
}

.testimonial-card p {
    color: #666;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.stars {
    color: #f1c40f;
    font-size: 14px;
}

/* Partners */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.partner-item {
    font-size: 50px;
    color: #95a5a6;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.partner-item:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Form */
.contact-section {
    padding: 60px 0;
    background-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 36px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    animation: titleAppear 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 150px;
}

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

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(253, 253, 253, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.2);
    outline: none;
    transform: scale(1.01);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background 0.3s;
}

/* Service Box Styles */
.service-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background: #ffffff;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-box:hover::before {
    transform: scaleX(1);
}

/* Project Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.project-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border: none;
    width: 80%;
    max-width: 700px;
    border-radius: 15px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 20px;
    left: 30px; /* Adjusted for RTL */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

#modalTitle {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
    font-weight: 800;
}

#modalTitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

#modalDescription {
    color: #4a5568;
    line-height: 1.8;
    font-size: 16px;
    text-align: right;
}

/* Modal Intro Text */
.modal-intro {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
    border-right: 4px solid var(--secondary-color);
    padding-right: 15px;
    background: linear-gradient(to left, rgba(231, 76, 60, 0.05), transparent);
    padding: 10px 15px 10px 0;
    border-radius: 4px;
}

/* Styled Modal List */
.modal-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    counter-reset: modal-counter;
}

.modal-list li {
    position: relative;
    padding: 15px 60px 15px 15px; /* Right padding for number space */
    margin-bottom: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.modal-list li:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    border-color: rgba(231, 76, 60, 0.3);
}

.modal-list li::before {
    counter-increment: modal-counter;
    content: counter(modal-counter);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    font-family: 'Cairo', sans-serif;
}

/* Colorful Numbering Gradients */
.modal-list li:nth-child(1)::before { background: linear-gradient(135deg, #FF6B6B, #EE5253); }
.modal-list li:nth-child(2)::before { background: linear-gradient(135deg, #4ECDC4, #45B7D1); }
.modal-list li:nth-child(3)::before { background: linear-gradient(135deg, #a8e063, #56ab2f); }
.modal-list li:nth-child(4)::before { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.modal-list li:nth-child(5)::before { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

/* Modal Outro Text */
.modal-outro {
    margin-top: 25px;
    font-style: italic;
    color: #7f8c8d;
    border-top: 1px dashed #e0e0e0;
    padding-top: 20px;
    text-align: center;
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

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

button[type="submit"]:hover {
    background-color: #c0392b;
}

/* Footer */
footer {
    background-color: rgba(44, 62, 80, 0.85);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .slide-content h2 { font-size: 32px; }
    .slide-content p { font-size: 18px; }
    
    header .container { 
        flex-wrap: wrap; /* Allow wrapping */
        height: auto; 
        padding: 15px; 
        /* Removed flex-direction: column to keep logo and burger in row */
    }
    
    .mobile-menu-toggle {
        display: flex; /* Use flex to center icon */
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 20px;
        color: var(--primary-color);
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        outline: none;
        padding: 0; /* Reset padding to rely on width/height */
        margin-left: 10px; /* Space from edge or logo */
    }

    .mobile-menu-toggle i {
        line-height: 1; /* Ensure icon is vertically centered */
    }

    .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
        background: #ffffff;
        color: var(--secondary-color);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    nav {
        width: 100%; /* Full width for the dropdown */
        order: 3; /* Ensure it drops below logo/toggle */
    }

    nav ul { 
        display: none; /* Hidden by default */
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        margin-top: 15px;
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-top: 15px;
    }
    
    nav ul.show {
        display: flex; /* Show when toggled */
    }
    
    .ticker-item {
        font-size: 12px;
        padding: 0 10px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    /* Make grids single column on mobile */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Adjust flex containers */
    div[style*="display: flex"] {
        flex-direction: column;
    }
    
    /* Fix specific flex containers that shouldn't be column */
    header .container {
        flex-direction: row !important; /* Force row for header container */
    }
    
    nav ul.show {
        flex-direction: column !important; /* Keep menu vertical */
    }

    .slider-nav {
        flex-direction: row !important;
    }
}

@media (max-width: 480px) {
    .slide-content h2 { font-size: 24px; }
    .slide-content p { font-size: 14px; }
    .ticker-wrap { display: none; } /* Hide ticker on very small screens */
}

@media (max-width: 768px) {
    /* Modal Responsiveness */
    .project-modal-content {
        width: 95%;
        margin: 15% auto; /* More top margin for mobile */
        padding: 20px;
        max-height: 80vh; /* Prevent overflow */
        overflow-y: auto; /* Enable scrolling */
        border-radius: 10px;
    }

    .close-modal {
        top: 10px;
        left: 15px;
        font-size: 24px;
        background: rgba(0,0,0,0.05);
        width: 30px;
        height: 30px;
        text-align: center;
        line-height: 30px;
        border-radius: 50%;
    }

    #modalTitle {
        font-size: 20px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    #modalDescription {
        font-size: 14px;
        line-height: 1.6;
        text-align: right; /* Ensure RTL alignment */
    }

    .modal-intro {
        font-size: 14px;
        padding: 10px;
        margin-bottom: 15px;
    }

    .modal-list {
        margin: 15px 0;
    }

    .modal-list li {
        padding: 12px 45px 12px 12px; /* Reduce padding */
        font-size: 13px;
        margin-bottom: 10px;
    }

    .modal-list li::before {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 13px;
        right: 10px;
    }

    .modal-outro {
        font-size: 13px;
        padding: 10px;
        margin-top: 15px;
    }

    /* Offer Image in Modal */
    #modalDescription img {
        margin-bottom: 15px !important;
    }

    /* General Box Responsiveness */
    .glass-box, .stat-box, .service-box, .market-card, .testimonial-card {
        padding: 20px !important;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .slider-container {
        height: 400px; /* Reduced height for mobile */
    }
}
