/* 
   Pioneers Gate - Modern & Bold Design
   Main Stylesheet
*/

/* ===== VARIABLES ===== */
:root {
    --primary-color: #FF7A00;
    --primary-dark: #E56D00;
    --primary-light: #FFA64D;
    --secondary-color: #1A1A1A;
    --secondary-dark: #0F0F0F;
    --text-color: #333333;
    --light-text: #FFFFFF;
    --light-bg: #F9F9F9;
    --dark-bg: #121212;
    --gray-bg: #2A2A2A;
    --border-color: #E0E0E0;
    --gold-accent: #D4AF37;
    --gold-light: #F5E7A3;
    --gold-dark: #9E7C0C;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold-accent) 0%, var(--gold-dark) 100%);
    --gradient-dark: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    position: relative;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.rtl .section-title::after {
    left: auto;
    right: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--gold-accent), var(--primary-color));
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary {
    color: var(--light-text);
    box-shadow: 0 6px 15px rgba(255, 122, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 122, 0, 0.4);
}

.btn-primary:hover::before {
    opacity: 0;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-left: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.rtl .btn-secondary {
    margin-left: 0;
    margin-right: 15px;
}

.btn-secondary::before,
.btn-secondary::after {
    display: none;
}

.btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    border-color: var(--light-text);
}

.btn-language {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-language::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn-language:hover {
    color: var(--light-text);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.3);
    transform: translateY(-2px);
}

.btn-language:hover::before {
    opacity: 1;
}

.btn-language::after {
    content: '🌐';
    margin-left: 8px;
    font-size: 16px;
}

.rtl .btn-language::after {
    margin-left: 0;
    margin-right: 8px;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to right, rgba(18, 18, 18, 0.95), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 122, 0, 0.3), transparent);
}

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

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    box-shadow: 0 3px 10px rgba(255, 122, 0, 0.3);
    transition: var(--transition);
}

.rtl .logo-icon {
    margin-right: 0;
    margin-left: 10px;
}

.logo-icon i {
    color: var(--light-text);
    font-size: 20px;
}

.logo:hover .logo-icon {
    transform: rotate(15deg);
    background: var(--gradient-gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--light-text);
    position: relative;
    transition: var(--transition);
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.rtl .logo-text::after {
    left: auto;
    right: 0;
}

.logo:hover .logo-text::after {
    width: 50%;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

.rtl nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    transform-origin: left;
}

.rtl nav ul li a::after {
    left: auto;
    right: 0;
    transform-origin: right;
}

nav ul li a:hover {
    color: var(--primary-light);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    display: flex;
    align-items: center;
    text-align: left;
    overflow: hidden;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.animated-heading {
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: linear-gradient(to right, var(--light-text), var(--gold-light), var(--light-text));
    background-size: 200% auto;
    color: var(--light-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.rtl .hero {
    text-align: right;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0.9;
}

.hero .overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 122, 0, 0.2) 0%, transparent 70%);
    mix-blend-mode: overlay;
}

.rtl .hero .overlay {
    background: linear-gradient(225deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 0 20px;
    margin-top: 80px;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    color: var(--light-text);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    background: linear-gradient(to right, var(--light-text), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--gold-accent));
    border-radius: 2px;
}

.rtl .hero h1::after {
    left: auto;
    right: 0;
    background: linear-gradient(to left, var(--primary-color), var(--gold-accent));
}

.hero h1::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: pulse-width 2s infinite;
}

.rtl .hero h1::before {
    left: auto;
    right: 0;
}

@keyframes pulse-width {
    0% { width: 30px; }
    50% { width: 100px; }
    100% { width: 30px; }
}

.hero .subheading {
    color: var(--light-text);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 600px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
}

.rtl .hero .subheading {
    padding-left: 0;
    padding-right: 15px;
    border-left: none;
    border-right: 3px solid var(--primary-color);
}

.hero .additional-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 35px;
    max-width: 550px;
    font-weight: 300;
    line-height: 1.6;
    position: relative;
}

.cta-buttons {
    display: flex;
    margin-top: 30px;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 0;
    background-color: var(--light-bg);
}

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

.service-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--gold-accent));
    transition: var(--transition);
    z-index: -1;
    border-radius: 3px 0 0 3px;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover::before {
    width: 100%;
    opacity: 0;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 122, 0, 0.15);
    border-color: transparent;
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--light-text);
}

.service-card .btn-service-details {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    opacity: 0.8;
}

.service-card .btn-service-details i {
    margin-left: 8px;
    transition: var(--transition);
}

.rtl .service-card .btn-service-details i {
    margin-left: 0;
    margin-right: 8px;
}

.service-card:hover .btn-service-details {
    color: var(--light-text);
    opacity: 1;
}

.service-card .btn-service-details:hover i {
    transform: translateX(5px);
}

.rtl .service-card .btn-service-details:hover i {
    transform: translateX(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 122, 0, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-icon {
    color: var(--light-text);
    transform: translateY(-5px);
}

.service-card:hover .service-icon::after {
    transform: translate(-50%, -50%) scale(1.5);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.service-card:nth-child(1) .service-icon i {
    animation: float 4s ease-in-out infinite;
}

.service-card:nth-child(2) .service-icon i {
    animation: float 4s ease-in-out infinite 0.5s;
}

.service-card:nth-child(3) .service-icon i {
    animation: float 4s ease-in-out infinite 1s;
}

/* ===== STATS COUNTER SECTION ===== */
.stats-counter {
    position: relative;
    padding: 100px 0;
    background-image: url('../images/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    text-align: center;
    overflow: hidden;
}

.stats-counter .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.stats-counter .container {
    position: relative;
    z-index: 2;
}

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

.stat-item {
    padding: 30px 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--gold-accent);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--gold-accent);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--gold-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 30px 30px;
    opacity: 0.5;
}

.about .section-title {
    color: var(--light-text);
    position: relative;
    display: inline-block;
}

.about .section-title::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.rtl .about .section-title::before {
    left: auto;
    right: 0;
}

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

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.8s ease;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--gold-accent);
    border-radius: 12px;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.5s ease;
    z-index: 0;
}

.about-image img {
    transition: transform 0.8s ease;
    display: block;
    width: 100%;
    filter: brightness(0.9);
}

.about-image:hover {
    transform: perspective(1000px) rotateY(-5deg);
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.4);
}

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

.about-image:hover::before {
    opacity: 0.4;
}

.about-image:hover::after {
    opacity: 0.6;
    transform: scale(1);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #777;
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.filter-btn {
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    height: 300px;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.project-image {
    height: 100%;
    width: 100%;
}

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

.project-item:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-info {
    color: var(--light-text);
    width: 100%;
}

.project-info h3 {
    color: var(--light-text);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.project-info p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.btn-project-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    transition: var(--transition);
}

.btn-project-details:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(255, 122, 0, 0.05);
    z-index: 1;
}

.testimonials::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.05);
    z-index: 1;
}

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

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    min-width: 100%;
    padding: 20px;
}

.testimonial-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
}

.client-info {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.client-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
}

.rtl .client-image {
    margin-right: 0;
    margin-left: 15px;
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.client-details p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background-color: var(--light-bg);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.contact-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-intro {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.rtl .contact-icon {
    margin-right: 0;
    margin-left: 15px;
}

.contact-icon i {
    color: var(--light-text);
    font-size: 20px;
}

.contact-text h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-text p {
    margin-bottom: 0;
    color: #777;
}

.contact-form-wrapper {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px 0 0 10px;
}

.rtl .contact-form-wrapper::before {
    left: auto;
    right: 0;
    border-radius: 0 10px 10px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.contact-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
}

.contact-form button i {
    transition: var(--transition);
}

.contact-form button:hover i {
    transform: translateX(5px);
}

.rtl .contact-form button:hover i {
    transform: translateX(-5px);
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
}

/* ===== ALERT STYLES ===== */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-out;
}

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

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.alert-success::before {
    background-color: #4CAF50;
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #c62828;
}

.alert-error::before {
    background-color: #F44336;
}

/* ===== NEWSLETTER STYLES ===== */
.footer-newsletter {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form .form-group {
    position: relative;
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--light-text);
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.rtl .newsletter-form input {
    padding-right: 20px;
    padding-left: 60px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.2);
}

.newsletter-form button {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    border: none;
    color: var(--light-text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
}

.rtl .newsletter-form button {
    right: auto;
    left: 5px;
}

.newsletter-form button:hover {
    background: linear-gradient(to right, var(--gold-accent), var(--primary-color));
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 122, 0, 0.4);
}

.newsletter-form button i {
    transition: transform 0.3s ease;
}

.newsletter-form button:hover i {
    transform: translateX(3px);
}

.rtl .newsletter-form button:hover i {
    transform: translateX(-3px);
}

.alert {
    margin-top: 15px;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(255, 122, 0, 0.1) 0%, transparent 70%);
    animation: pulse-bg 2s infinite;
}

@keyframes pulse-bg {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

.loader {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    animation: pulse 1.5s infinite;
    position: relative;
}

.loader-logo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.7;
    animation: ripple 1.5s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.loader-logo i {
    color: var(--light-text);
    font-size: 40px;
}

.loader-text {
    color: var(--light-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.loader-spinner {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.spinner-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(255, 122, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    color: var(--light-text);
    padding: 100px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="0" y="0" width="50" height="50" fill="rgba(255,255,255,0.02)"/></svg>');
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-logo .logo-text {
    margin-bottom: 20px;
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, var(--light-text), var(--gold-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4,
.footer-newsletter h4 {
    color: var(--light-text);
    margin-bottom: 25px;
    font-size: 18px;
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.rtl .footer-links h4::after,
.rtl .footer-contact h4::after,
.rtl .footer-social h4::after,
.rtl .footer-newsletter h4::after {
    left: auto;
    right: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.footer-links ul li a {
    color: #aaa;
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-5px);
}

.rtl .footer-links ul li a {
    padding-left: 0;
    padding-right: 15px;
}

.rtl .footer-links ul li a::before {
    content: '←';
    left: auto;
    right: 0;
    transform: translateX(5px);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-links ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links ul li:hover {
    transform: translateX(5px);
}

.rtl .footer-links ul li:hover {
    transform: translateX(-5px);
}

.footer-contact p {
    margin-bottom: 18px;
    color: #aaa;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.footer-contact p i {
    margin-right: 12px;
    color: var(--primary-color);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.rtl .footer-contact p i {
    margin-right: 0;
    margin-left: 12px;
}

.footer-contact p:hover {
    color: var(--light-text);
}

.footer-contact p:hover i {
    transform: scale(1.2);
}

.whatsapp-link {
    color: #25D366;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1em;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: rgba(37, 211, 102, 0.1);
    display: inline-block;
}

.whatsapp-link:hover {
    color: #20BD5C;
    text-decoration: underline;
    background-color: rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.2);
}

.footer-contact p.whatsapp-contact-line {
    background-color: rgba(37, 211, 102, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #25D366;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.rtl .footer-contact p.whatsapp-contact-line {
    border-left: none;
    border-right: 4px solid #25D366;
}

.footer-contact p .fab.fa-whatsapp {
    color: #25D366;
    font-size: 1.5em;
    margin-right: 10px;
    animation: subtle-bounce 2s infinite ease-in-out;
    display: inline-block;
}

@keyframes subtle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.rtl .footer-contact p .fab.fa-whatsapp {
    margin-right: 0;
    margin-left: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-bg);
    color: var(--light-text);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
    transform: scale(0);
    border-radius: 50%;
}

.social-icons a:hover {
    color: var(--light-text);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.3);
}

.social-icons a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.social-icons a.whatsapp-icon {
    background-color: #25D366;
    color: white;
    transform: scale(1.3);
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.social-icons a.whatsapp-icon i {
    font-size: 1.4em;
}

.social-icons a.whatsapp-icon::before {
    background: linear-gradient(to right, #25D366, #20BD5C);
}

.social-icons a.whatsapp-icon:hover {
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transform: scale(1.4) rotate(10deg);
}

.social-icons a.whatsapp-icon:hover i {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(10deg); }
}

.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    padding-bottom: 15px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.footer-bottom p {
    position: relative;
    display: inline-block;
}

.footer-bottom p::before,
.footer-bottom p::after {
    content: '•';
    color: var(--primary-color);
    margin: 0 10px;
    opacity: 0.7;
}

/* ===== RESPONSIVE STYLES ===== */

/* Extra small devices (phones, 320px and up) */
@media (min-width: 320px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
}

/* Very small devices (small phones, under 400px) */
@media (max-width: 400px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .service-card {
        padding: 25px 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-icon i {
        font-size: 14px;
    }
    
    .btn-language {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .services, .about {
        padding: 50px 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .container {
        max-width: 95%;
    }
    
    .hero-content {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.3rem;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
        transition: all 0.4s ease;
        z-index: 999;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        backdrop-filter: blur(10px);
    }
    
    .rtl nav {
        left: auto;
        right: -100%;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    nav.active {
        left: 0;
    }
    
    .rtl nav.active {
        left: auto;
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px;
    }
    
    nav ul li {
        margin: 20px 0;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
        transition-delay: 0.1s;
    }
    
    .rtl nav ul li {
        transform: translateX(20px);
    }
    
    nav.active ul li {
        opacity: 1;
        transform: translateX(0);
    }
    
    nav.active ul li:nth-child(1) { transition-delay: 0.1s; }
    nav.active ul li:nth-child(2) { transition-delay: 0.2s; }
    nav.active ul li:nth-child(3) { transition-delay: 0.3s; }
    nav.active ul li:nth-child(4) { transition-delay: 0.4s; }
    nav.active ul li:nth-child(5) { transition-delay: 0.5s; }
    
    nav ul li a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        height: auto;
        padding: 150px 0 100px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .rtl .hero-content {
        text-align: center;
    }
    
    .hero h1::after,
    .rtl .hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-newsletter {
        grid-column: span 2;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .language-switch {
        margin-right: 50px;
    }
    
    .rtl .language-switch {
        margin-right: 0;
        margin-left: 50px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .rtl .btn-secondary {
        margin-right: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon i {
        font-size: 16px;
    }
    
    .services, .about {
        padding: 60px 0;
    }
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    position: relative;
}

.modal-content.modal-lg {
    max-width: 1000px;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
    border-radius: 10px 10px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-text h4 {
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.modal-text p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.modal-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.modal-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.modal-text ul li i {
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

.rtl .modal-text ul li {
    padding-left: 0;
    padding-right: 25px;
}

.rtl .modal-text ul li i {
    left: auto;
    right: 0;
}

/* Project Modal Specific Styles */
.project-modal-gallery {
    margin-bottom: 30px;
}

.project-main-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.project-thumbnails {
    display: flex;
    gap: 10px;
}

.project-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.project-thumbnails img.active,
.project-thumbnails img:hover {
    border-color: var(--primary-color);
}

.project-modal-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.project-details {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.detail-item p {
    margin-bottom: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .project-modal-info {
        grid-template-columns: 1fr;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.3);
    z-index: 999;
}

.rtl .back-to-top {
    right: auto;
    left: 30px;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.back-to-top:hover {
    background: var(--gradient-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.back-to-top.clicked {
    animation: pulse-up 0.3s ease-out;
}

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