/* 
==============================================
AI Brains - Main Stylesheet
==============================================
*/

/* 
==============================================
Table of Contents:
----------------------------------------------
1. General Styles & Variables
2. Preloader
3. Header & Navigation
4. Hero Section
5. Section Styles
6. About Section
7. Features Section
8. Facts Section
9. Partners Section
10. Services Section
11. Video Section
12. Portfolio Section
13. Contact Section
14. Footer
15. Back to Top Button
16. Language Switcher
17. RTL Styles
18. Responsive Styles
==============================================
*/

/* 
==============================================
1. General Styles & Variables
==============================================
*/
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #00ffff;
    --dark-color: #1a1a2e;
    --light-color: #ffffff;
    --gray-color: #f5f5f5;
    --text-color: #333333;
    --text-light: #777777;
    --border-color: #e0e0e0;
    --gradient-primary: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --gradient-secondary: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-color);
  }
  
  /* Arabic language font */
  html[lang="ar"] body {
    font-family: 'Tajawal', sans-serif;
  }
  
  body.loaded #preloader {
    visibility: hidden;
    opacity: 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark-color);
  }
  
  /* Arabic language heading font */
  html[lang="ar"] h1,
  html[lang="ar"] h2,
  html[lang="ar"] h3,
  html[lang="ar"] h4,
  html[lang="ar"] h5,
  html[lang="ar"] h6 {
    font-family: 'Tajawal', sans-serif;
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  p {
    margin-bottom: 15px;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--secondary-color);
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  ul, ol {
    list-style: none;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  section {
    padding: 80px 0;
    position: relative;
  }
  
  .btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
  }
  
  .btn-primary {
    background: var(--gradient-primary);
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
  }
  
  .btn-primary:hover {
    background: var(--gradient-secondary);
    color: var(--light-color);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.4);
    transform: translateY(-3px);
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
  }
  
  .section-header h2 span {
    color: var(--primary-color);
  }
  
  .section-header.light h2,
  .section-header.light h2 span {
    color: var(--light-color);
  }
  
  .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
  }
  
  .divider i {
    color: var(--primary-color);
    font-size: 24px;
    margin: 0 15px;
  }
  
  .divider .line {
    height: 2px;
    width: 60px;
    background: var(--primary-color);
    display: inline-block;
  }
  
  .section-header.light .divider i,
  .section-header.light .divider .line {
    color: var(--light-color);
    background: var(--light-color);
  }
  
  /* 
  ==============================================
  2. Preloader
  ==============================================
  */
  #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  
  .loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(106, 17, 203, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    z-index: 10000;
  }
  
  .loader-section {
    position: fixed;
    top: 0;
    width: 51%;
    height: 100%;
    background: var(--light-color);
    z-index: 9999;
  }
  
  .loader-section.section-left {
    left: 0;
  }
  
  .loader-section.section-right {
    right: 0;
  }
  
  body.loaded .loader-section.section-left {
    transform: translateX(-100%);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  }
  
  body.loaded .loader-section.section-right {
    transform: translateX(100%);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* 
  ==============================================
  3. Header & Navigation
  ==============================================
  */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
  }
  
  header.scrolled {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    padding: 15px 0;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-left: 20px;
  }
  
  .logo img {
    margin-right: 10px;
  }
  
  html[dir="rtl"] .logo img {
    margin-right: 0;
    margin-left: 10px;
  }
  
  .logo span {
    color: var(--primary-color);
  }
  
  .nav-left {
    display: flex;
    align-items: center;
  }
  
  .nav-menu {
    display: flex;
    background-color: rgb(0, 0, 0);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .nav-menu li {
    margin: 0 15px;
  }
  
  html[dir="rtl"] .nav-menu li {
    margin: 0 15px;
  }
  
  .nav-menu li a {
    color: white;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
  }
  
  .nav-menu li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
  }
  
  html[dir="rtl"] .nav-menu li a:after {
    left: auto;
    right: 0;
  }
  
  .nav-menu li a:hover:after,
  .nav-menu li a.active:after {
    width: 100%;
  }
  
  .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
  }
  
  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
  }
  
  /* 
  ==============================================
  4. Hero Section
  ==============================================
  */
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
  }
  
  #vanta-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  .hero-content {
    max-width: 700px;
    color: var(--light-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
  }
  
  html[dir="rtl"] .hero-content {
    text-align: right;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
  }
  
  .hero-content h1 span {
    color: var(--accent-color);
  }
  
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }
  
  /* 
  ==============================================
  5. Section Styles
  ==============================================
  */
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
  }
  
  /* 
  ==============================================
  6. About Section
  ==============================================
  */
  .about {
    background-color: var(--gray-color);
  }
  
  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }
  
  .about-video {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
  }
  
  .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    font-size: 24px;
    z-index: 2;
    transition: var(--transition);
  }
  
  .video-play-btn:hover {
    background: var(--secondary-color);
    transform: translate(-50%, -50%) scale(1.1);
  }
  
  .about-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  html[dir="rtl"] .about-text {
    text-align: right;
  }
  
  .mission, .vision {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .mission h3, .vision h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
  }
  
  .mission h3 span, .vision h3 span {
    color: var(--primary-color);
  }
  
  /* 
  ==============================================
  7. Features Section
  ==============================================
  */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .feature-box {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
  }
  
  .feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .feature-icon img {
    max-width: 60px;
    max-height: 60px;
  }
  
  .feature-box h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
  }
  
  /* 
  ==============================================
  8. Facts Section
  ==============================================
  */
  .facts {
    background: url('images/facts-bg.jpg') no-repeat center center/cover;
    position: relative;
    color: var(--light-color);
  }
  
  .facts .container {
    position: relative;
    z-index: 2;
  }
  
  .facts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .fact-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
  }
  
  .fact-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
  }
  
  .fact-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--accent-color);
  }
  
  .fact-content h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--light-color);
  }
  
  /* 
  ==============================================
  9. Partners Section
  ==============================================
  */
  .partners {
    background-color: var(--gray-color);
    padding: 50px 0;
  }
  
  /* Bootstrap Carousel Custom Styling */
  #partners-carousel {
    margin: 0 auto;
    max-width: 1000px;
  }
  
  .partners-slide {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0;
  }
  
  .partner {
    padding: 15px;
    margin: 10px;
    flex: 1;
    min-width: 160px;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
  }
  
  .partner:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
  }
  
  .partner img {
    max-width: 100%;
    max-height: 500px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
  }
  
  .carousel-control-prev {
    left: -5px;
  }
  
  .carousel-control-next {
    right: -5px;
  }
  
  .carousel-control-prev:hover,
  .carousel-control-next:hover {
    opacity: 1;
    background-color: var(--secondary-color);
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }
  
  .carousel-indicators {
    bottom: -40px;
  }
  
  .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
    margin: 0 5px;
  }
  
  .carousel-indicators button.active {
    opacity: 1;
    background-color: var(--primary-color);
  }
  
  /* 
  ==============================================
  10. Services Section
  ==============================================
  */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .service-box {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }
  
  .service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .service-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
  }
  
  html[dir="rtl"] .service-box:before {
    transform-origin: right;
  }
  
  .service-box:hover:before {
    transform: scaleX(1);
  }
  
  .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .service-icon img {
    max-width: 60px;
    max-height: 60px;
  }
  
  .service-box h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
  }
  
  /* 
  ==============================================
  11. Video Section
  ==============================================
  */
  .video-showcase {
    position: relative;
    /* height: 500px; */
    overflow: hidden;
    padding: 0;
  }
  
  .video-showcase video {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
  }
  
  /* .video-showcase .overlay {
    background: rgba(0, 0, 0, 0.5);
  } */
  
  /* 
  ==============================================
  12. Portfolio Section
  ==============================================
  */
  .portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
  }
  
  .filter-btn {
    padding: 8px 20px;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
  }
  
  .filter-btn.active, .filter-btn:hover {
    background: var(--gradient-primary);
    color: var(--light-color);
    border-color: transparent;
  }
  
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
  }
  
  .portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  
  .portfolio-img {
    position: relative;
    overflow: hidden;
    height: 250px;
  }
  
  .portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
  }
  
  .portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(106, 17, 203, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
  }
  
  .portfolio-item:hover .portfolio-overlay {
    opacity: 1;
  }
  
  .portfolio-links {
    display: flex;
    gap: 15px;
  }
  
  .portfolio-links a {
    width: 45px;
    height: 45px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 18px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
  }
  
  .portfolio-item:hover .portfolio-links a {
    transform: translateY(0);
    opacity: 1;
  }
  
  .portfolio-links a:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
  }
  
  .portfolio-links a:nth-child(1) {
    transition-delay: 0.1s;
  }
  
  .portfolio-links a:nth-child(2) {
    transition-delay: 0.2s;
  }
  
  /* 
  ==============================================
  13. Contact Section
  ==============================================
  */
  .map-container {
    height: 450px;
    margin-bottom: -200px;
    position: relative;
    z-index: 1;
  }
  
  .map-container iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .contact-wrapper {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
  }
  
  .contact-info h3,
  .contact-form h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
  }
  
  html[dir="rtl"] .contact-info,
  html[dir="rtl"] .contact-form {
    text-align: right;
  }
  
  .contact-details {
    margin: 30px 0;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }
  
  html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
  }
  
  .contact-item i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    margin-right: 15px;
  }
  
  html[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 15px;
  }
  
  .social-links {
    display: flex;
    gap: 15px;
  }
  
  html[dir="rtl"] .social-links {
    justify-content: flex-end;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    transition: var(--transition);
  }
  
  .social-links a:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px);
  }
  
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    transition: var(--transition);
  }
  
  html[dir="rtl"] .form-group input,
  html[dir="rtl"] .form-group textarea {
    font-family: 'Tajawal', sans-serif;
    text-align: right;
  }
  
  .form-group textarea {
    height: 150px;
    resize: none;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
  }
  
  /* 
  ==============================================
  14. Footer
  ==============================================
  */
  footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 30px 0;
    text-align: center;
  }
  
  footer a {
    color: var(--accent-color);
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  
  /* 
  ==============================================
  15. Back to Top Button
  ==============================================
  */
  .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
  }
  
  html[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
  }
  
  .back-to-top.active {
    opacity: 1;
    visibility: visible;
  }
  
  .back-to-top:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px);
    color: var(--light-color);
  }
  
  /* 
  ==============================================
  16. Language Switcher
  ==============================================
  */
  .language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
  }
  
  html[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 20px;
  }
  
  .lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    width: 70px;
    height: 35px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .lang-icon {
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    background-color: var(--primary-color);
  }
  
  .lang-icon img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .lang-icon.lang-en {
    left: 0;
    opacity: 0.7;
  }
  
  .lang-icon.lang-ar {
    right: 0;
    opacity: 0.7;
  }
  
  .lang-icon.active {
    opacity: 1;
    transform: scale(1.1);
    z-index: 2;
  }
  
  /* 
  ==============================================
  17. RTL Styles
  ==============================================
  */
  html[dir="rtl"] .logo {
    margin-left: 0;
    margin-right: 20px;
  }
  
  html[dir="rtl"] .nav-menu {
    direction: rtl;
  }
  
  /* 
  ==============================================
  18. Responsive Styles
  ==============================================
  */
  @media (max-width: 1200px) {
    .container {
      max-width: 960px;
    }
    
    h1 {
      font-size: 3rem;
    }
    
    h2 {
      font-size: 2.2rem;
    }
  }
  
  @media (max-width: 992px) {
    .container {
      max-width: 720px;
    }
    
    section {
      padding: 60px 0;
    }
    
    .about-content,
    .contact-wrapper {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    
    .about-video {
      margin-bottom: 30px;
    }
    
    .hero-content h1 {
      font-size: 2.8rem;
    }
  }
  
  @media (max-width: 768px) {
    .container {
      max-width: 540px;
    }
    
    h1 {
      font-size: 2.5rem;
    }
    
    h2 {
      font-size: 2rem;
    }
    
    .menu-toggle {
      display: flex;
    }
    
    .nav-left {
      display: none;
    }
    
    .nav-menu {
      position: fixed;
      top: 80px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 80px);
      background-color: var(--light-color);
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding-top: 40px;
      transition: var(--transition);
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    html[dir="rtl"] .nav-menu {
      left: auto;
      right: -100%;
    }
    
    .nav-menu.active {
      left: 0;
    }
    
    html[dir="rtl"] .nav-menu.active {
      left: auto;
      right: 0;
    }
    
    .nav-menu li {
      margin: 15px 0;
    }
    
    .hero-content {
      text-align: center;
    }
    
    html[dir="rtl"] .hero-content {
      text-align: center;
    }
    
    .features-grid,
    .services-grid,
    .portfolio-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .form-row {
      grid-template-columns: 1fr;
    }
    
    .map-container {
      margin-bottom: -100px;
    }
    
    /* Responsive carousel */
    .partners-slide {
      flex-direction: column;
    }
    
    .partner {
      margin: 10px auto;
    }
  }
  
  @media (max-width: 576px) {
    .container {
      width: 100%;
      padding: 0 20px;
    }
    
    section {
      padding: 50px 0;
    }
    
    h1 {
      font-size: 2.2rem;
    }
    
    h2 {
      font-size: 1.8rem;
    }
    
    .hero-content p {
      font-size: 1rem;
    }
    
    .btn {
      padding: 10px 25px;
    }
    
    .section-header {
      margin-bottom: 40px;
    }
    
    .features-grid,
    .services-grid,
    .portfolio-grid {
      grid-template-columns: 1fr;
    }
    
    .facts-container {
      grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
      padding: 30px 20px;
    }
    
    .map-container {
      height: 300px;
      margin-bottom: -50px;
    }
    
    .back-to-top {
      bottom: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      font-size: 16px;
    }
    
    html[dir="rtl"] .back-to-top {
      right: auto;
      left: 20px;
    }
  }
  /* Update mobile menu styles */
  @media (max-width: 768px) {
    .nav-menu {
      background-color: white;
      padding: 20px;
    }
    
    .nav-left {
      margin-right: 0;
    }
    
    .logo {
      margin-left: 0;
    }
    
    html[dir="rtl"] .logo {
      margin-right: 0;
    }
    
    .nav-menu li a {
      color: var(--dark-color);
    }
  }