body {
  font-family: 'Poppins', sans-serif;
  background-color: #101820;
  color: #333;
  margin: 0;
  padding-top: 70px;
  scroll-behavior: smooth;
}

.page-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.navbar {
  background-color: #111;
  border-bottom: 2px solid #d32f2f;
  height: 70px;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  margin-left: 10px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #d32f2f !important;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  padding: 2rem;
  transition: background-image 1s ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-slider-content {
  z-index: 2;
  max-width: 400px;
}

.hero-slider h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero-slider p {
  font-size: 1rem;
  color: #ddd;
}

.section-title {
  font-weight: 700;
  font-size: 2rem;
  color: #d32f2f;
}

.service-card {
  border: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.icon-box {
  font-size: 2rem;
  color: #d32f2f;
}

.project-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: scale(1.015);
}

.project-card img {
  width: 100%;
  margin-bottom: 8px;
  border-radius: 6px;
  transition: transform 0.3s ease-in-out;
  object-fit: cover;
}

.project-card:hover img {
  transform: scale(1.02);
}

.project-card .description-box {
  background-color: #fff3f3;
  border-left: 4px solid #d32f2f;
  padding: 10px 14px;
  border-radius: 6px;
  color: #333;
  font-weight: 500;
}

.grayscale-hover {
  filter: grayscale(100%);
  transition: filter 0.3s ease-in-out;
}

.grayscale-hover:hover {
  filter: grayscale(0%);
}

/* Modal */
#projectModal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

#projectModal .modal-content {
  background-color: #fff;
  padding: 20px;
  max-width: 800px;
  width: 100%;
  border-radius: 10px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

#projectModal .modal-content img {
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 6px;
}

#projectModal .modal-content .description {
  font-size: 1rem;
  color: #333;
  background-color: #fff3f3;
  border-left: 4px solid #d32f2f;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 500;
}

#projectModal .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #d32f2f;
  background: #fff;
  border: 2px solid #d32f2f;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image size adjustment based on orientation */
.vertical-image {
  max-height: 60vh;
  width: auto;
}

.horizontal-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
}

footer {
  font-size: 0.875rem;
  background-color: #f0f0f0;
  color: #666;
}
