/* ============================================
   Al-Hulul Al-Sahiha - The Right Solutions
   Auto Parts Company Website
   Main Stylesheet
   ============================================ */

/* ============================================
   CSS Variables & Root Styles
   ============================================ */
:root {
    /* Brand Colors */
    --primary-color: #042a4c;
    --primary-dark: #021a30;
    --primary-light: #0a4a7c;
    --secondary-color: #d30f15;
    --secondary-dark: #a80c11;
    --secondary-light: #e63946;

    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-dark: #212529;
    --text-light: #495057;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(4, 42, 76, 0.08);
    --shadow-md: 0 4px 12px rgba(4, 42, 76, 0.12);
    --shadow-lg: 0 8px 24px rgba(4, 42, 76, 0.16);
    --shadow-xl: 0 12px 48px rgba(4, 42, 76, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* RTL Body Styles */
body.rtl {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    direction: rtl;
    text-align: right;
}

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
}

/* ============================================
   Layout & Container
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.section-header p {
    max-width: 600px;
    margin: 20px auto 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(211, 15, 21, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 15, 21, 0.4);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(4, 42, 76, 0.3);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 42, 76, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-dark:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.header.scrolled .nav-link {
    color: var(--text-dark);
}

.header.scrolled .logo-light {
    display: none;
}

.header.scrolled .logo-dark {
    display: block;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-dark {
    display: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .company-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.header.scrolled .logo-text .company-name {
    color: var(--primary-color);
}

.logo-text .company-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.header.scrolled .logo-text .company-tagline {
    color: var(--text-light);
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header.scrolled .lang-switcher {
    background: var(--light-gray);
    color: var(--primary-color);
    border-color: var(--medium-gray);
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header.scrolled .lang-switcher:hover {
    background: var(--medium-gray);
}

.lang-switcher i {
    font-size: 1rem;
}

.header-cta {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-normal);
}

.header.scrolled .menu-toggle span {
    background: var(--primary-color);
}

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

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

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

/* ============================================
   Hero Section / Slider
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(4, 42, 76, 0.9) 0%, rgba(4, 42, 76, 0.7) 50%, rgba(211, 15, 21, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(211, 15, 21, 0.2);
    border: 1px solid rgba(211, 15, 21, 0.5);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    color: var(--secondary-color);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: flex;
    gap: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-number span {
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.rtl .slider-nav {
    right: auto;
    left: 40px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.slider-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-normal);
}

.slider-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

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

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

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-image-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.rtl .about-image-badge {
    right: auto;
    left: -30px;
}

.about-image-badge .years {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.about-image-badge .text {
    font-size: 0.85rem;
    text-align: center;
    padding: 0 15px;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1.2rem;
}

.about-feature h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.about-feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-link:hover {
    gap: 12px;
}

/* ============================================
   Why Choose Us / Advantages Section
   ============================================ */
.advantages {
    background: var(--primary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(211, 15, 21, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.advantages .section-header h2 {
    color: var(--white);
}

.advantages .section-header h2::after {
    background: linear-gradient(90deg, var(--secondary-color), var(--white));
}

.advantages .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.advantage-card {
    text-align: center;
    padding: 40px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--white);
}

.advantage-card h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.advantage-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   Branches Section
   ============================================ */
.branches {
    background: var(--light-gray);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.branch-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.branch-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.branch-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.rtl .branch-number {
    left: auto;
    right: 15px;
}

.branch-content {
    padding: 25px;
}

.branch-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.branch-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.branch-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.branch-info-item i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.branch-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.branch-action {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-normal);
}

.branch-action.call {
    background: var(--secondary-color);
    color: var(--white);
}

.branch-action.call:hover {
    background: var(--secondary-dark);
}

.branch-action.directions {
    background: var(--light-gray);
    color: var(--primary-color);
}

.branch-action.directions:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.cta-phone-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    animation: pulse 2s infinite;
}

.cta-phone-text {
    text-align: left;
}

.rtl .cta-phone-text {
    text-align: right;
}

.cta-phone-text span {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.cta-phone-text a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    color: var(--white);
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.contact-info-text h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-info-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-info-text a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info-text a:hover {
    color: var(--white);
}

.contact-social {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(4, 42, 76, 0.1);
}

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

.contact-form .btn {
    width: 100%;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
    margin-bottom: 25px;
}

.footer-about .logo-text .company-name {
    color: var(--white);
}

.footer-about .logo-text .company-tagline {
    color: rgba(255, 255, 255, 0.6);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.rtl .footer h4::after {
    left: auto;
    right: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.footer-links a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--secondary-color);
}

.rtl .footer-links a::before {
    content: '\f053';
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.rtl .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.footer-contact-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ============================================
   Page Header (Inner Pages)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: var(--secondary-color);
}

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

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 15, 21, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(211, 15, 21, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 15, 21, 0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.bg-light {
    background: var(--light-gray);
}

.bg-dark {
    background: var(--primary-color);
}

.text-white {
    color: var(--white);
}

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

.text-secondary {
    color: var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    cursor: pointer;
}

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

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-dark);
    transform: translateY(-5px);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
