:root {
  /* Coastal Color Palette */
  --primary-blue: #2a7d9d;
  --light-blue: #5baec9;
  --pale-blue: #c2e4f0;
  --sand: #f8f5f0;
  --light-sand: #fcfaf7;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --text-medium: #5d6d7e;
  --text-light: #7f8c8d;
  --accent: #3498db;

  /* Dark Mode Colors */
  --dark-bg: #1a2835;
  --dark-card: #22303d;
  --dark-text: #e6e9ed;
  --dark-nav: #2c3e50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tajawal", sans-serif;
}

body {
  background-color: var(--sand);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  transition: all 0.4s ease;
}

body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header - Modernized */
header {
  background-color: var(--white);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode header {
  background-color: var(--dark-nav);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.dark-mode .logo {
  color: var(--pale-blue);
}

.logo i {
  margin-left: 8px;
  font-size: 1.8rem;
}
.logo {
    display: flex;
    align-items: center; /* يثبت كل العناصر في المنتصف العمودي */
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    gap: 8px;
}


/* لو حابب تزود أو تنقص المسافة بين الصورة والنص */
.logo .logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

.logo .logo-text {
    margin: 0; /* يزيل أي مسافات زائدة */
}
.logo-img {
    max-height: 50px;
    width: auto;
    display: block;
    transition: all 0.3s ease; /* علشان التغيير يكون سلس */
}
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin: 0 12px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  padding: 8px 0;
  font-size: 0.95rem;
}

.dark-mode .nav-links a {
  color: var(--dark-text);
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background-color: var(--primary-blue);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.nav-links a:hover:after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-blue);
}

.nav-links a.active:after {
  width: 100%;
}

.mobile-menu {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-dark);
}

.dark-mode .mobile-menu {
  color: var(--dark-text);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-dark);
  transition: all 0.3s;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dark-mode .theme-toggle {
  color: var(--dark-text);
}

.theme-toggle:hover {
  background-color: rgba(42, 125, 157, 0.1);
  transform: rotate(15deg);
}

/* تلميحات أزرار التنقل */
.nav-links a {
  position: relative;
}

.nav-links a::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  right: 50%;
  transform: translateX(50%);
  background-color: var(--primary-blue);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10;
}

.nav-links a:hover::before {
  opacity: 1;
}

/* تلميحات زر الوضع الليلي */
.theme-toggle::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  right: 50%;
  transform: translateX(50%);
  background-color: var(--primary-blue);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10;
}

.theme-toggle:hover::after {
  opacity: 1;
}

/* Hero Section - Modernized */
.hero {
  background: linear-gradient(rgba(42, 125, 157, 0.85), rgba(42, 125, 157, 0.7)),
    url("https://images.unsplash.com/photo-1545158535-c3f7168c28b6?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  margin-top: 70px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
}

.btn {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary-blue);
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: var(--light-sand);
}

/* Section Styles */
section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-dark);
  font-size: 2.2rem;
  font-weight: 600;
  position: relative;
}

.dark-mode .section-title {
  color: var(--dark-text);
}

.section-title:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--primary-blue);
  bottom: -15px;
  right: 50%;
  transform: translateX(50%);
  border-radius: 2px;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.8;
}

.dark-mode .about-text p {
  color: var(--dark-text);
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s;
  position: relative;
}

.dark-mode .about-image {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.about-image:hover {
  transform: translateY(-5px);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.about-image:hover img {
  transform: scale(1.03);
}

/* Services Section */
.services {
  background-color: var(--light-sand);
}

.dark-mode .services {
  background-color: var(--dark-card);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
}

.dark-mode .service-card {
  background-color: var(--dark-nav);
  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.1);
}

.service-icon {
  font-size: 2.8rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  display: inline-block;
  padding: 15px;
  background-color: var(--pale-blue);
  border-radius: 50%;
  transition: all 0.4s;
}

.dark-mode .service-icon {
  background-color: rgba(42, 125, 157, 0.2);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  background-color: var(--primary-blue);
  color: white;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--text-dark);
  font-size: 1.4rem;
  font-weight: 600;
}

.dark-mode .service-card h3 {
  color: var(--dark-text);
}

.service-card p {
  color: var(--text-medium);
  line-height: 1.7;
}

.dark-mode .service-card p {
  color: var(--dark-text);
}

/* تلميحات أزرار الخدمات */
.service-card::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -45px;
  right: 50%;
  transform: translateX(50%);
  background-color: var(--primary-blue);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10;
}

.service-card:hover::after {
  opacity: 1;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.dark-mode .gallery-item {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(42, 125, 157, 0.2));
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover:after {
  opacity: 1;
}

/* تلميحات صور المعرض */
.gallery-item::before {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-sand);
}

.dark-mode .testimonials {
  background-color: var(--dark-card);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 35px 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.dark-mode .testimonial-card {
  background-color: var(--dark-nav);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-medium);
}

.dark-mode .testimonial-text {
  color: var(--dark-text);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
}

.testimonial-author:before {
  content: "";
  width: 25px;
  height: 2px;
  background-color: var(--primary-blue);
  margin-left: 10px;
}

/* Form Section */
.form-section {
  background-color: var(--white);
}

.dark-mode .form-section {
  background-color: var(--dark-bg);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--light-sand);
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.dark-mode .form-container {
  background-color: var(--dark-card);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-title {
  text-align: center;
  margin-bottom: 35px;
  color: var(--text-dark);
  font-size: 1.8rem;
}

.dark-mode .form-title {
  color: var(--dark-text);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.dark-mode .form-group label {
  color: var(--dark-text);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  background-color: var(--white);
  color: var(--text-dark);
}

.dark-mode .form-control {
  background-color: var(--dark-bg);
  border-color: var(--dark-nav);
  color: var(--dark-text);
}

.form-control:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 2px rgba(42, 125, 157, 0.2);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  position: relative;
}

.submit-btn:hover {
  background-color: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 125, 157, 0.3);
}

/* تلميحات زر الإرسال */
.submit-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -40px;
  right: 50%;
  transform: translateX(50%);
  background-color: var(--primary-blue);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10;
}

.submit-btn:hover::after {
  opacity: 1;
}

/* Footer */
footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 50px 0 25px;
  text-align: center;
}

.dark-mode footer {
  background-color: var(--dark-nav);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  display: flex;
  margin-bottom: 25px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  margin: 0 8px;
  color: var(--white);
  font-size: 1.1rem;
  transition: all 0.3s;
  position: relative;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* Tooltip for accessibility */
.social-links a::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -40px;
  right: 50%;
  transform: translateX(50%);
  background-color: var(--primary-blue);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.social-links a:hover::after {
  opacity: 1;
}

.copyright {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}
