/*Main Content*/
.main-content-container {
  height: 100%;
}
/* Root variables */
:root {
  --primary-color-rgb: 176, 135, 11; /* RGB equivalent of #b0870b */
}

/* Main content section */
.content {
  width: 100%;
  height: calc(100vh - 80px); /* Fixed height as required */
  background-color: var(--background-color);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.main-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header styling - 100px tall and full width */
.main-content-header {
  width: 100%;
  height: 100px;
}

.content h1 {
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--primary-color);
  text-align: center;
  position: relative;
  margin-bottom: 30px;
}

.content h1:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--primary-color-3);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* Navigation menu styling */
.main-content-nav {
  display: flex;
  width: 100%;
  height: 100px;
  background-color: var(--background-color-2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.main-content-nav-item {
  flex: 1;
  display: flex;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.main-content-nav-item:last-child {
  border-right: none;
}

.main-content-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 15px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color-2);
  background-color: var(--secondary-color);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-content-nav-link:hover {
  background-color: var(--secondary-color-2);
  transform: translateY(-3px);
}

.main-content-nav-item.active .main-content-nav-link {
  background-color: var(--primary-color-2);
  color: var(--text-color-2);
}

/* Content blocks container */
.main-content-blocks {
  flex: 1;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.main-content-block {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.main-content-block.active {
  display: block;
  opacity: 1;
  z-index: 1;
}

/* Projects grid - no spaces between cards */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Project cards styling */
.project-card {
  width: 25%; /* 4 cards per row */
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.project-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Image covers the entire card */
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* Project card hover effects */
.project-card:hover .project-image img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Inner glow effect on hover */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(12, 31, 42, 0.9) 0%,
    rgba(12, 31, 42, 0.6) 40%,
    rgba(12, 31, 42, 0.3) 70%,
    rgba(12, 31, 42, 0.1) 100%
  );
  z-index: 2;
  transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
  background: linear-gradient(
    to top,
    rgba(var(--primary-color-rgb), 0.8) 0%,
    rgba(var(--primary-color-rgb), 0.6) 40%,
    rgba(12, 31, 42, 0.3) 80%
  );
  box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.4); /* Inner glow effect */
}

/* Project info styling */
.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 3;
  transition: transform 0.3s ease;
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color-2);
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.project-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-color-4);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Project details on hover */
.project-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
  padding: 0;
  margin: 0;
}

.project-card:hover .project-details {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.project-details span {
  display: flex;
  align-items: center;
  margin: 5px;
  background-color: var(--primary-color-3);
  color: var(--text-color-2);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); /* Glow effect */
}

.project-details span i {
  color: var(--text-color-2);
  margin-right: 6px;
}

/* Project status tag */
.project-card::before {
  content: "New";
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--primary-color-2);
  color: var(--text-color-2);
  padding: 5px 40px;
  transform: rotate(45deg);
  z-index: 4;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
}

/* View more card specific styling */
.view-more {
  position: relative;
  overflow: hidden;
}

.view-more-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: var(--text-color-2);
  text-align: center;
  z-index: 5;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-color-rgb), 0.7) 0%,
    var(--background-color-tertiary) 100%
  );
}

.view-more:hover .view-more-content {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-color-rgb), 0.9) 0%,
    var(--background-color-tertiary) 100%
  );
  box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.3);
}

.view-more-content i {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--primary-color-4);
}

.view-more-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-more-content p {
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 16px;
  max-width: 80%;
}

.view-more .project-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-color-2)
  );
  color: var(--text-color-2);
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.view-more .project-btn:hover {
  background: transparent;
  border: 2px solid var(--primary-color-4);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.view-more::before {
  content: none;
}

/* No projects message styling */
.no-projects-message {
  grid-column: span 4;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.no-projects-message i {
  font-size: 2.5rem;
  color: var(--primary-color);
  opacity: 0.6;
}

.no-projects-message p {
  color: var(--text-color-3);
  font-size: 1.2rem;
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
  .project-card {
    width: 33.333%; /* 3 cards per row */
  }
}

@media screen and (max-width: 992px) {
  .content h1 {
    font-size: 2.5rem;
  }

  .main-content-nav-link {
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .content {
    height: auto; /* Allow content to expand */
    min-height: calc(100vh - 80px);
  }

  .main-content-header {
    height: auto;
  }

  /* 2x2 grid for mobile navigation */
  .main-content-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 200px;
  }

  .main-content-nav-item {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .main-content-nav-item:nth-child(2n) {
    border-right: none;
  }

  .main-content-nav-item:nth-child(3),
  .main-content-nav-item:nth-child(4) {
    border-bottom: none;
  }

  .main-content-blocks {
    height: auto;
  }

  .main-content-block {
    position: relative;
    height: auto;
  }

  .projects-grid {
    height: auto;
  }

  .project-card {
    width: 50%; /* 2 cards per row */
    height: 300px;
  }
}

@media screen and (max-width: 576px) {
  .content h1 {
    font-size: 1.8rem;
  }

  .project-card {
    width: 100%; /* 1 card per row */
    height: 280px;
  }

  .project-details span {
    padding: 4px 10px;
    font-size: 12px;
  }
}
