:root {
  --primary-color: #007bff;
  --dark-bg: #121212;
  --card-bg: #1e1e1e;
  --text-light: #f8f9fa;
}

.light_mode {
 /* قيد التطوير */
  --primary-color: #007bff; 
  --light-bg: #ffffff; 
  --card-bg: #ffffff; 
  --text-light: #000000; 
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding-right: 15px;
    padding-left: 15px;
  }

  .row {
    margin-right: -15px;
    margin-left: -15px;
    flex-wrap: wrap;
  }

  [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
  }
}

body {
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: "Segoe UI", Tahoma, sans-serif;
  overflow-x: hidden;
}
body::-webkit-scrollbar {
  display: none;
}
.navbar {
  background-color: rgba(18, 18, 18, 0.9) !important;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link {
  color: var(--text-light) !important;
  margin: 0 10px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hero {
  padding: 100px 0;
  position: relative;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero-img {
  max-width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0069d9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.section {
  padding: 80px 0;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 50px;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

.portfolio-item img {
  transition: all 0.5s ease;
  width: 100%;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.contact-form input,
.contact-form textarea {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(0, 123, 255, 0.3) 0%,
    rgba(0, 123, 255, 0) 70%
  );
  border-radius: 50%;
  filter: blur(20px);
  z-index: 0;
}

.hero-glow {
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
}

.profile-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(0, 123, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-right: 6rem;
}

@media (max-width: 767px) {
  .hero {
    text-align: center;
    padding: 80px 0;
  }

  .hero-text {
    margin-bottom: 40px;
  }

  .section {
    padding: 60px 0;
  }
  .Logo {
    padding-left: 24px;
  }
}
