:root {
  --color-primary: #0a3d4f;
  --color-secondary: #0f5e73;
  --color-accent: #17a2b8;
  --color-light: #f4f4f4;
  --color-white: #ffffff;
  --color-text-dark: #222;
  --color-text-muted: #666;
  --color-bg-gray: #f9f9f9;
  
}
/* 🌙 Dark Mode Variables */
body.dark-mode {
  --color-bg: #112b3c;         
  --color-surface: #1c3c50;    
  --color-text-dark: #EAEAEA;
  --color-text-muted: #CCCCCC;
  --color-primary: #0A2A3A;
  --color-secondary: #12394C;
  --color-accent: #17a2b8;
  --color-accent-strong: #E18628;
  --color-white: #ffffff;
}


/* Reset and Box Sizing */
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;

}

html, body {
  max-width: 100%;
  overflow-x: clip;
}


 iframe, video {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Loader Background */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0C3A54;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
    perspective: 1000px;

}

/* Logo Spinner Animation */
.logo-spin {
  width: 320px;
  height: auto;
  border-radius: 35%;
  animation: spin 3s linear infinite;
  transform-style: preserve-3d;

}

/* Spin Animation */
@keyframes spin {
  0% {
    transform: rotateY(0deg) scale(1);
  }

  50% {
    transform: rotateY(180deg) scale(1.2);
  }

  100% {
    transform: rotateY(360deg) scale(1.3);
  }
}



/* ===== General Styles ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--color-light);  
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
}
h1, h2, h3 {
  color: var(--color-primary);
}
.btn-primary ,.about-container.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-light);
  padding: 12px;
  margin: 20px auto;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  width: 50%;
  align-self: center;
  transition: background-color 0.3s ease;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
  font-size: 14px;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--color-primary);
}

/* ===== Navbar ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.navbar h1 {
  font-size: 24px;
  font-weight: bold;
}
.navbar h1:hover {
  color: var(--color-secondary);
}
.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  width: 50px;
  height: 50px;
  border-radius: 35%;
}
.logo span {
  font-size: 20px;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
nav a:hover {
  opacity: 0.8;
  transform: scale(1.05);
}
nav a.active {
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
}



.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* Night mode button */

.dark-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: inherit;
  transition: background 0.3s ease, transform 0.2s ease;
}

.dark-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Button colors in Dark Mode */

.dark-mode .dark-toggle {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .dark-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}
/* Language Toggle Button */
.lang-toggle {
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 8px 20px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-size: 14px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none; /* Explicitly remove underline */
}

/* Hover state */
.lang-toggle:hover {
  background-color: var(--color-light);
  text-decoration: none; /* Ensure no underline on hover */
}

/* Active state */
.lang-toggle.active {
  background-color: var(--color-accent);
  color: var(--color-white);
  text-decoration: none; /* Ensure no underline when active */
}

/* Dark Mode Styles for Language Toggle */
body.dark-mode .lang-toggle {
  background-color: #0A2A3A; /* Match dark mode background */
  color: #E18628; /* Use accent color for text in dark mode */
  border: 1px solid #2C5874; /* Optional: subtle border for contrast */
  text-decoration: none; /* Ensure no underline in dark mode */
}

body.dark-mode .lang-toggle:hover {
  background-color: #146C94; /* Hover background in dark mode */
  color: #EAEAEA; /* Text color on hover */
  text-decoration: none; /* Ensure no underline on hover */
}

body.dark-mode .lang-toggle.active {
  background-color: #E18628; /* Active background in dark mode */
  color: #fff; /* White text for active state */
  text-decoration: none; /* Ensure no underline when active */
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* === Hero Section === */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  color: #fff;
  padding: 0 8%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #f2f0f0;


}

.hero-content h1 span {
  color: #ff5722;

}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}



/* === Projects Section === */
.home-projects {
  background: #f9f9f9;
  padding: 60px 8%;
  text-align: center;
}

.home-projects h2 {
  font-size: 2rem;
  color: var(--color-primary);
}


.home-projects .subtitle {
  color: #555;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.projects-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card h3 {
  margin: 15px;
  font-size: 1.1rem;
  color: #0b1f41;
}

.more-projects-btn {
  margin-top: 30px;
}


/* === About Us Section === */
.about-us {
  padding: 50px 8%;
  text-align: center;
  color: #333;
  font-family: 'Arial', sans-serif; 
  border-radius: 10px;  
  margin: 20px auto;
  max-width: 1200px;
  transition: background-color 0.3s ease;
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);  

}
.about-us.visible {
  opacity: 1;
  transform: translateY(0);
}
.about-us h2 {
  font-size: 2rem;
  color: #0b1f41;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 1500px;
  margin: auto;
  padding: 20px;

}
.about-video iframe {
  width: 500px;
  height: 280px;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
  transform: scale(1);

}
.about-video iframe:hover {
  transform: scale(1.05);
}
.about-content {
  max-width: 600px;
  text-align: left;
  padding: 20px;
  border-radius: 10px;
  margin: 20px;
  flex: 1;
  line-height: 1.6;  
  

  

}
.about-content h1 {
  font-size: 1.8rem;
  color: #0b1f41;
}
.about-content p {
  margin: 20px 0;
  color: #555;
  line-height: 1.6;
}

/*===== vision and goals section =====*/
.tabs-container {
  max-width: 850px;
  margin: 50px auto;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #003366, #0055aa);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.tab.active {
  background: linear-gradient(135deg, #ff6600, #ff8800);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.tab-content {
  display: none;
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  margin-bottom: 10px;
  color: #003366;
}

.tab-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Contact Section  === */
.contact-section {
  padding: 60px 20px;
  background-color: var(--color-bg-gray);
  text-align: center;
}
.contact-section h2 {
  color: var(--color-primary);
  margin-bottom: 10px;
}
.contact-section .subtitle {
  color: var(--color-text-dark);
  font-size: 14px;
  margin-bottom: 40px;
}
.line {
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 10px auto 20px;
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  max-width: 1100px;
  margin: auto;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 280px;
  background: var(--color-bg-light);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
}
.contact-info {
  flex: 0.9;
}
.info-box {
  padding: 8px 0;
  margin-bottom: 10px;
  text-align: left;
}
.info-box h3 {
  color: var(--color-primary);
  margin-bottom: 4px;
  font-size: 16px;
}
.info-box p {
  font-size: 14px;
  color: var(--color-text-dark);
}
.map-box {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}
.map-box iframe {
  width: 100%;
  height: 250px;
  border: 0;
  display: block;
  border-radius: 10px;
}

.contact-form {
  flex: 1.3;
  min-width: 320px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
}


/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  font-size: 16px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.modal-button {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.modal-button:hover {
  background-color: var(--color-secondary);
}
.modal.active {
  display: flex;
}


/* testimonials section */

.testimonials {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.testimonials .subtitle {
  color: #666;
  margin-bottom: 40px;
}

.testimonial-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial {
  display: none;
  animation: fadeIn 1s ease-in-out;
}

.testimonial.active {
  display: block;
}

.testimonial img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.testimonial h3 {
  font-size: 1.2rem;
  margin: 5px 0;
}

.testimonial .role {
  color: #888;
  font-size: 0.9rem;
}

.testimonial .stars {
  color: #FFD700;
  font-size: 1.2rem;
  margin: 10px 0;
}

.testimonial .quote {
  font-style: italic;
  color: #444;
  max-width: 600px;
  margin: 0 auto;
}

.dots {
  margin-top: 20px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  display: inline-block;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background-color: #2bbba5;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Add Review Section */


.add-review {
  text-align: center;
  padding: 50px 20px;
  background: #f9f9f9;
  margin-top: 50px;
}


.add-review h2 {
  margin-bottom: 20px;
}

.add-review form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.add-review input,
.add-review textarea,
.add-review select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;

}
.add-review input:focus,
.add-review textarea:focus,
.add-review select:focus {
  border-color: var(--color-accent);
}   


.add-review button {
  padding: 12px;
  background: var(--color-accent);
  border: none;
  color: #fff;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.add-review button:hover {
  background: var(--color-secondary); 
}

 
/* ===== Facts Section ===== */
.facts {
  text-align: center;
  padding: 60px 8%;
}

.facts h2 {
  font-size: 2rem;
}

.facts .line {
  width: 40px;
  height: 3px;
  margin: 8px auto 20px;
  background-color: var(--color-accent);
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.facts .subtitle {
  color: #555;
  margin-bottom: 40px;
}

.facts-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}

.fact h3 {
  font-size: 2.5rem;
  font-weight: bold;
}

.fact p {
  color: #777;
  margin-top: 5px;
}
.facts .counter {
  color: var(--color-accent);
  font-size: 2.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
}
.facts .counter:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}
/* ===== FAQ Section ===== */

.faq {
  padding: 50px 20px;
  background: #f9f9f9;
}

.faq h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.faq-container {
  max-width: 800px;
  margin: auto;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  display: none;
  padding: 0 15px 15px;
  color: #555;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .arrow {
  transform: rotate(45deg);
}



/* ===== Scroll to Top Button ===== */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #26a69a;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, background 0.3s ease;
  z-index: 999;
}

#scrollTopBtn:hover {
  background-color: #1e867d;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 40px 8% 20px;
  font-size: 14px;
   /* opacity: 0; */
  transform: translateY(50px);
  transition: all 0.6s ease-in-out;
  flex-shrink: 0

}
.footer-visible {
  opacity: 1;
  transform: translateY(0);
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-about {
  max-width: 300px;
}


.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 35%;
  margin-bottom: 15px;
}

.footer-about p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.social-icons a {
  display: inline-block;
  margin-right: 8px;
  font-size: 16px;
  color: var(--color-white);
  transition: color 0.3s ease;
}
.social-icons a:hover {
  color: var(--color-accent);
}

.footer-column h4,
.footer-newsletter h4 {
  color: var(--color-accent);
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column li {
  margin-bottom: 6px;
}
.footer-column a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-column a:hover {
  color: var(--color-accent);
}

.footer-newsletter form {
  display: flex;
  gap: 10px;
}
.footer-newsletter input {
  flex: 1;
  padding: 10px;
  border-radius: 4px;
  border: none;
  outline: none;
}
.footer-newsletter button {
  background-color: #ff5a5f;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 150px;
}
.footer-newsletter button:hover {
  background-color: #e04c50;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-bottom p {
  margin: 5px 0;
}
.footer-bottom a {
  color: var(--color-accent);
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}



/* 🌙 Dark Mode Inspired by Logo */
body.dark-mode {
  background-color: #0A2A3A; /* الأزرق الداكن */
  color: #EAEAEA;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ===== نصوص عامة ===== */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
  color: #FFFFFF;
}


body.dark-mode p,
body.dark-mode span,
body.dark-mode li {
  color: #EAEAEA;
}
body.dark-mode a {
  color: #E18628;
}
body.dark-mode a:hover {
  color: #146C94;
}
body.dark-mode .subtitle {
  color: #CCCCCC;
}
 


/* ===== Navbar ===== */
body.dark-mode .navbar {
  background: linear-gradient(90deg, #0A2A3A, #12394C);
}
body.dark-mode .navbar a {
  color: #EAEAEA;
}
body.dark-mode .navbar a.active {
  background-color: rgba(225,134,40,0.15);
  color: #E18628;
}

/* ===== Hero ===== */
body.dark-mode .hero-overlay {
  background: rgba(10, 42, 58, 0.85);
}
body.dark-mode .hero-content h1 {
  color: #fff;
}
body.dark-mode .hero-content span {
  color: #E18628;
}
body.dark-mode .hero-content p {
  color: #EAEAEA;
}


body.dark-mode .btn-primary {
  background-color: #E18628;
  color: #fff;
}
body.dark-mode .btn-primary:hover {
  background-color: #146C94;
}

/* ===== Sections / Cards ===== */
body.dark-mode .home-projects,
body.dark-mode .about-us,
body.dark-mode .tab-content,
body.dark-mode .contact-info,
body.dark-mode .contact-form,
body.dark-mode .faq,
body.dark-mode .facts,
body.dark-mode .testimonials,
body.dark-mode .add-review {
  background: #12394C;
  color: #EAEAEA;
  border-color: rgba(255,255,255,0.15);
}
body.dark-mode .project-card {
  background: #0A2A3A;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
body.dark-mode .project-card h3 {
  color: #EAEAEA;
}
body.dark-mode .info-box h3 {
  color: #E18628;
}
body.dark-mode .info-box p {
  color: #EAEAEA;
}



/* ===== Forms & Inputs ===== */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #0A2A3A;
  color: #fff;
  border: 1px solid #2C5874;
}
body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
  border-color: #E18628;
}


/* ===== Buttons ===== */
body.dark-mode .btn-primary,
body.dark-mode .add-review button,
body.dark-mode .modal-button,
body.dark-mode .footer-newsletter button,
body.dark-mode #scrollTopBtn {
  background: #E18628;
  color: #fff;
}
body.dark-mode .btn-primary:hover,
body.dark-mode .add-review button:hover,
body.dark-mode .modal-button:hover,
body.dark-mode .footer-newsletter button:hover,
body.dark-mode #scrollTopBtn:hover {
  background: #146C94;
  color: #fff;
}


/* ===== Testimonials ===== */
body.dark-mode .testimonial .quote {
  color: #EAEAEA;
}
body.dark-mode .testimonial .role {
  color: #E18628;
}
body.dark-mode .dot.active {
  background: #E18628;
}
/* ===== Facts ===== */
body.dark-mode .fact p {
  color: #EAEAEA;
}
body.dark-mode .facts .counter {
  color: #E18628;
}
body.dark-mode .facts .counter:hover {
  color: #146C94;
}
/*=== contact section ===*/
body.dark-mode .contact-section {
  background-color: #12394C;
}
body.dark-mode .contact-section h2 {
  color: #EAEAEA;
}
body.dark-mode .contact-section .subtitle {
  color: #CCCCCC;
}
body.dark-mode .line {
  background-color: #E18628;
}
body.dark-mode .info-box h3 {
  color: #E18628;
}
body.dark-mode .info-box p {
  color: #EAEAEA;
}
body.dark-mode .map-box iframe {
  filter: grayscale(30%) brightness(50%);
}
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #0A2A3A;
  color: #fff;
  border: 1px solid #2C5874;
}
body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
  border-color: #E18628;
}




/* ===== FAQ ===== */
body.dark-mode .faq-answer {
  color: #EAEAEA;
}
body.dark-mode .faq-question {
  color: #EAEAEA;
  background: #0A2A3A;
  border: 1px solid #2C5874;
}
body.dark-mode .faq-question:hover {
  background: #146C94;
}
body.dark-mode .arrow {
  border-color: #EAEAEA;
}


/* ===== Footer ===== */
body.dark-mode .footer {
  background: #0A2A3A;
  color: #EAEAEA;
}
body.dark-mode .footer a {
  color: #EAEAEA;
}
body.dark-mode .footer a:hover {
  color: #E18628;
}

body.dark-mode .footer-column h4,
body.dark-mode .footer-newsletter h4 {
  color: #EAEAEA;
}
body.dark-mode .footer-column a {
  color: #EAEAEA;
}
body.dark-mode .footer-column a:hover {
  color: #E18628;
}
body.dark-mode .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
}
body.dark-mode .footer-bottom a {
  color: #EAEAEA;
}
body.dark-mode .footer-bottom a:hover {
  color: #E18628;
}


/*========responsive styles========*/

@media (max-width: 768px) {

  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 15px;
    max-width: 100%;
  }

  .navbar nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;      /* بدل right:30px */
    right: 0;     /* يمين كمان */
    width: 100%;  /* تملى الشاشة */
    max-width: 100%;
    background: var(--color-primary);
    flex-direction: column;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

  .navbar nav.active {
    display: flex;
  }

  .navbar nav ul {
    flex-direction: column;
    gap: 0;
  }

  .navbar nav li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .navbar nav li:last-child {
    border-bottom: none;
  }

  .navbar nav a {
    padding: 12px 15px;
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.active {
    color: var(--color-accent);
  }

  .hero {
    padding: 0 20px;
    min-height: 70vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .home-projects .projects-preview {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .about-container {
    flex-direction: column;
    padding: 10px;
  }

  .about-video iframe {
    width: 100%;
    height: auto;
  }
  .about-content {
    max-width: 100%;
    text-align: center;
    padding: 10px;
  }
  .tabs-container {
    padding: 10px;
  }
  .tabs {
    flex-direction: column;
    gap: 10px;
  }
  .tab {
    width: 100%;
    text-align: center;
  }
  .tab-content {
    padding: 15px;
  }
  .contact-container {
    flex-direction: column;
    padding: 0 15px;
  }
  
  .contact-info,
  .contact-form {
    width: 100%;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
  }

  .add-review form {
    width: 100%;
    padding: 0 15px;
  }
  .facts-container {
    flex-direction: column;
    gap: 30px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-about {
    max-width: none;
  }
    
}

@media screen and (max-width: 600px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .navbar h1 {
    font-size: 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .btn-primary,
  .about-container.btn-primary {
    width: 70%;
    font-size: 12px;
    padding: 10px;
  }

  .facts-container {
    flex-direction: column;
    gap: 30px;
  }

  .hero {
    padding: 0 15px;
  }

  .about-container {
    flex-direction: column;
    padding: 0 15px;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }

  .tabs {
    flex-direction: column;
    gap: 10px;
  }

  .tab {
    width: 100%;
    text-align: center;
  }

  .add-review form {
    width: 100%;
    padding: 0 15px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 15px;
  }

  .navbar h1 {
    font-size: 20px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .btn-primary,
  .about-container.btn-primary {
    width: 70%;
    font-size: 12px;
    padding: 10px;
  }

  .facts-container {
    flex-direction: column;
    gap: 30px;
  }

  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about {
    max-width: none;
  }
}

/* Smooth transitions for dark mode toggle */
body, .navbar, .hero, .home-projects, .about-us, .tab {
  transition: background-color 0.3s, color 0.3s;
}