body {
  font-family: 'Open Sans', sans-serif;
  overflow-x: hidden;
}

#navbar {
  transition: all 0.3s ease;
  background: transparent;
}

#navbar.navbar-scrolled {
  background: #1a1a2e !important;
  padding: 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#navbar .nav-link {
  padding: 8px 15px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

#navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

#navbar .nav-link:hover::after,
#navbar .nav-link.active::after {
  transform: scaleX(1);
}

#navbar .dropdown-menu {
  background: #1a1a2e;
}

#navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
}

#navbar .dropdown-item:hover {
  background: var(--bs-primary);
  color: #fff;
}

.hero {
  background: url('images/omar_hero.jpg') center center / cover no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.typed-cursor {
  color: #fff;
  font-weight: 100;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.section-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--bs-primary);
}

.about-text .section-underline::after,
.contact-title-underline::after,
.skill-title::after {
  left: 0;
  transform: none;
  width: 35px;
}

.contact-title-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: #fff;
}

.skill-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--bs-primary);
}

.service-icon {
  width: 70px;
  height: 70px;
  transition: all 0.3s ease;
}

.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15) !important;
}

.service-card:hover .service-icon {
  background: var(--bs-primary) !important;
}

.service-card:hover .service-icon i {
  color: #fff !important;
}

.counter-section {
  background: url('images/counters-bg.jpg') center center / cover no-repeat fixed;
}

.counter-overlay {
  background: rgba(0, 120, 255, 0.75);
}

.portfolio-img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.1);
}

.testimonials-section {
  background: url('images/overlay-bg.jpg') center center / cover no-repeat fixed;
}

.testimonials-overlay {
  background: rgba(0, 120, 255, 0.8);
}

.blog-img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.contact-section {
  background: url('images/overlay-bg.jpg') center center / cover no-repeat fixed;
}

.contact-overlay {
  background: rgba(0, 120, 255, 0.8);
}

.form-control:focus {
  box-shadow: none;
  border-bottom-color: var(--bs-primary) !important;
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991.98px) {
  .ps-md-3 {
    padding-left: 0 !important;
    margin-top: 2rem;
  }
}
