/*
* Motrenii - Demolition & Remediation Services
* Main Stylesheet
* Version: 1.0
*/

/* ====================================
   1. CSS Variables (Color scheme, typography)
==================================== */
:root {
    --primary: #e94e1b;
    --primary-dark: #d3450f;
    --secondary: #1e3a6c;
    --secondary-dark: #152a50;
    --light: #f8f9fa;
    --dark: #212529;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* ====================================
   2. Base Styles
==================================== */
body {
    font-family: var(--font-secondary);
    color: var(--gray-800);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary);
    color: white;
}

/* ====================================
   3. Helper Classes
==================================== */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

/* Section styles */
.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    margin-top: 1rem;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ====================================
   4. Layout Components
==================================== */

/* 4.1 Header & Navigation */
.navbar {
    background-color: white;
    padding: 1rem 1rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.navbar-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.5s;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-800);
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.contact-info {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.contact-icon {
    background-color: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
    background-color: var(--gray-200);
    color: var(--primary);
}

.language-switcher a.active {
    font-weight: 700;
}

.language-switcher .divider {
    width: 1px;
    height: 20px;
    background-color: var(--gray-300);
    margin: 0 0.5rem;
}

/* 4.2 Hero Section */
.hero {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 85vh;
  color: white;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* 4.3 Page Header */
.page-header {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 8rem 0;
    color: white;
    text-align: center;
    margin-bottom: 0;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.breadcrumb {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* 4.4 Footer */
.footer {
    background-color: var(--secondary);
    color: white;
    padding-top: 4rem;
    margin-top: auto;
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
    margin-top: 0.5rem;
}

.footer-link {
    color: var(--gray-300);
    display: block;
    margin-bottom: 0.75rem;
}

.footer-link:hover {
    color: white;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: var(--secondary-dark);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* ====================================
   5. Component Styles
==================================== */

/* 5.1 Services Cards */
.service-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-image {
    height: 200px;
    object-fit: cover;
}

.service-card-large {
    padding: 3rem;
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.service-card-large:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-card-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(233, 78, 27, 0.2);
}

.service-card-large:hover h3,
.service-card-large:hover p,
.service-card-large:hover .service-icon-large {
    color: white;
}

.service-card-large:hover .btn-outline-primary {
    background-color: white;
    color: var(--primary);
    border-color: white;
}

.service-icon-large {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.service-feature-list {
    margin-top: 2rem;
    padding-left: 0;
    list-style: none;
}

.service-feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
}

.service-card-large:hover .service-feature-list li {
    color: white;
}

.service-card-large:hover .service-feature-list li::before {
    color: white;
}

/* 5.2 Project Cards */
.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background 0.3s ease;
}

.project-card:hover .project-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.9));
}

.project-title {
    color: white;
    margin-bottom: 0.5rem;
}

.project-category {
    color: var(--gray-300);
    font-size: 0.9rem;
}

/* Featured projects slider */
.project-slider {
    position: relative;
    overflow: hidden;
}

.project-slide {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
}

.project-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 3rem 2rem 2rem;
    color: white;
}

.project-slide-title {
    color: white;
    margin-bottom: 0.5rem;
}

.project-slide-text {
    max-width: 600px;
    margin-bottom: 1rem;
}

/* 5.3 Testimonial Cards */
.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 15px 0;
    height: 100%;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1rem;
}

.testimonial-content::before,
.testimonial-content::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    line-height: 1;
}

.testimonial-content::before {
    top: -20px;
    left: -10px;
}

.testimonial-content::after {
    content: '"';
    bottom: -50px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.testimonial-author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author-title {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* 5.4 Team Cards */
.team-card {
    height: 100%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.team-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-card-image img {
    transform: scale(1.1);
}

.team-card-body {
    padding: 1.5rem;
    text-align: center;
}

.team-card-name {
    margin-bottom: 0.5rem;
}

.team-card-position {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-social-links {
    margin-top: 1rem;
}

.team-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--light);
    border-radius: 50%;
    color: var(--secondary);
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.team-social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* 5.5 Stats & Counters */
.stats-item {
    text-align: center;
    margin-bottom: 2rem;
}

.stats-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stats-title {
    color: var(--gray-700);
}

/* 5.6 CTA Section */
.cta-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    color: white;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    color: white;
    margin-bottom: 1.5rem;
}

/* 5.7 Contact Cards */
.contact-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-card-header {
    background-color: var(--secondary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: white;
    color: var(--primary);
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-card-body {
    padding: 2rem;
    text-align: center;
}

.contact-card-body p {
    margin-bottom: 0.5rem;
}

.contact-card-body a {
    font-weight: 500;
}

/* 5.8 Form Styles */
.contact-form {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 3rem;
}

.form-control {
    height: 50px;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--gray-300);
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(233, 78, 27, 0.25);
}

textarea.form-control {
    height: auto;
    min-height: 150px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-select {
    height: 50px;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--gray-300);
    margin-bottom: 1.5rem;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(233, 78, 27, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: block;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/* 5.9 Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year {
    position: absolute;
    left: -115px;
    top: -2px;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.timeline-title {
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 5.10 Values Cards */
.values-card {
    height: 100%;
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.values-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.values-card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* 5.11 Mission Cards */
.mission-card {
    height: 100%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.mission-card-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(233, 78, 27, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.mission-card-header {
    background-color: var(--secondary);
    color: white;
    padding: 2rem;
    text-align: center;
}

.mission-card-body {
    padding: 2rem;
}

/* 5.12 Process Step */
.process-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.process-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.process-step-content {
    border-left: 2px dashed var(--gray-300);
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
}

.process-step:last-child .process-step-content {
    border-left: none;
}

/* 5.13 Certification Badges */
.certification-badge {
    background-color: white;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.certification-badge:hover {
    transform: translateY(-10px);
}

.certification-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

/* 5.14 Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* 5.15 Page Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--gray-300);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 5.16 Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 99;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle:hover {
    background-color: var(--primary);
}

.dark-mode-toggle .fa-sun {
    display: none;
}

body.dark-mode .dark-mode-toggle .fa-moon {
    display: none;
}

body.dark-mode .dark-mode-toggle .fa-sun {
    display: block;
}

/* ====================================
   6. Dark Mode Styles
==================================== */
body.dark-mode {
    background-color: var(--gray-900);
    color: var(--gray-300);
}

body.dark-mode .navbar,
body.dark-mode .service-card,
body.dark-mode .service-card-large,
body.dark-mode .testimonial-card,
body.dark-mode .team-card,
body.dark-mode .values-card,
body.dark-mode .mission-card,
body.dark-mode .timeline-content,
body.dark-mode .contact-card,
body.dark-mode .contact-form,
body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: var(--gray-800);
    color: var(--gray-300);
    border-color: var(--gray-700);
}

body.dark-mode .navbar-nav .nav-link,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, 
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6,
body.dark-mode .card-title {
    color: var(--gray-300);
}

body.dark-mode .bg-light {
    background-color: var(--gray-800) !important;
}

body.dark-mode .text-dark {
    color: var(--gray-300) !important;
}

body.dark-mode .text-secondary {
    color: var(--gray-400) !important;
}

body.dark-mode .border {
    border-color: var(--gray-700) !important;
}

body.dark-mode .team-social-links a {
    background-color: var(--gray-700);
    color: var(--gray-300);
}

body.dark-mode .timeline-item::before {
    border-color: var(--gray-800);
}

/* ====================================
   7. Accessibility Features
==================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ====================================
   8. RTL Support
==================================== */
[dir="rtl"] .section-title::after,
[dir="rtl"] .footer-title::after,
[dir="rtl"] .service-detail-content h2::after {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .service-feature-list li {
    padding-right: 2rem;
    padding-left: 0;
}

[dir="rtl"] .service-feature-list li::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .process-step {
    padding-left: 0;
    padding-right: 60px;
}

[dir="rtl"] .process-step-number {
    left: auto;
    right: 0;
}

[dir="rtl"] .process-step-content {
    border-left: none;
    border-right: 2px dashed var(--gray-300);
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .process-step:last-child .process-step-content {
    border-right: none;
}

[dir="rtl"] .timeline {
    padding-left: 0;
    padding-right: 50px;
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .timeline-item::before {
    left: auto;
    right: -50px;
}

[dir="rtl"] .timeline-year {
    left: auto;
    right: -115px;
}

[dir="rtl"] .social-links a {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .contact-icon {
    margin-right: 0;
    margin-left: 10px;
}

/* ====================================
   9. Responsive Styles
==================================== */
@media (max-width: 1199px) {
    /* Adjustments for large screens */
}

@media (max-width: 991px) {
    /* Tablet and smaller laptop styles */
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .contact-header {
        display: none;
    }
    
    .service-card-large {
        padding: 2rem;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-item::before {
        left: -30px;
    }
    
    .timeline-year {
        position: relative;
        left: auto;
        top: auto;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
    
    [dir="rtl"] .timeline {
        padding-right: 30px;
    }
    
    [dir="rtl"] .timeline-item::before {
        right: -30px;
    }
    
    body.dark-mode .navbar-collapse {
        background-color: var(--gray-800);
    }
}

@media (max-width: 767px) {
    /* Mobile styles */
    .section {
        padding: 4rem 0;
    }
    
    .section-lg {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .page-header {
        padding: 5rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .project-card {
        margin-bottom: 20px;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
    }
    
    .experience-badge-number {
        font-size: 2rem;
    }
    
    .experience-badge-text {
        font-size: 0.75rem;
    }
    
    .contact-card {
        margin-bottom: 2rem;
    }
    
    .map-container {
        height: 350px;
        margin-top: 2rem;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .process-number::after {
        top: 50px;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 575px) {
    /* Small mobile styles */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item::before {
        left: -20px;
        width: 15px;
        height: 15px;
    }
    
    [dir="rtl"] .timeline {
        padding-right: 20px;
    }
    
    [dir="rtl"] .timeline-item::before {
        right: -20px;
    }
}