/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* HEADER & NAV */
.site-header {
  position: sticky;
  top: 0;
  background-color: #000;
  padding: 15px 0;
  z-index: 999;
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  margin: 0 20px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: color 0.3s, transform 0.3s;
}

.nav-links li a:hover {
  color: #ddd;
  transform: scale(1.05);
}

@media only screen and (max-width: 600px) {
  /* Adjust header padding */
  .site-header {
    padding: 10px 0;
  }

  /* Stack navigation links vertically */
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
  
  /* Adjust navigation links for mobile */
  .nav-links li a {
    margin: 8px 0;     /* Provide vertical spacing instead of horizontal */
    font-size: 14px;   /* Slightly smaller font for limited space */
  }
}



/* HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero-image-container {
  width: 100%;
  height: 100%;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-cta {
  padding: 10px 25px;
  background-color: #e74c3c;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.hero-cta:hover {
  background-color: #c0392b;
}
@media only screen and (max-width: 600px) {
  /* Reduce height of the hero section on smaller screens */
  .hero-section {
    height: 60vh;
  }

  /* Adjust hero overlay padding for better spacing */
  .hero-overlay {
    padding: 15px;
  }

  /* Scale down the header and paragraph font sizes for readability */
  .hero-overlay h1 {
    font-size: 2.5rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  /* Adjust the CTA button size and padding */
  .hero-cta {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* INFO ROW SECTIONS - GRID APPROACH */
.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.info-text {
  padding: 0 10px;
}

.info-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
  text-align: center;
}

.info-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.info-image img {
  width: 100%;
  border-radius: 5px;
  object-fit: cover;
}

/* For reversed sections */
.info-row.reverse .info-text {
  grid-column: 2;
  grid-row: 1;
}

.info-row.reverse .info-image {
  grid-column: 1;
  grid-row: 1;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }
  
  .info-row {
    grid-template-columns: 1fr;
  }
  
  .info-row.reverse .info-text,
  .info-row.reverse .info-image {
    grid-column: 1;
  }
  
  .info-row.reverse .info-text {
    grid-row: 2;
  }
  
  .info-row.reverse .info-image {
    grid-row: 1;
  }
}
/* PROJECT GALLERY SECTION */
.project-gallery-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.project-gallery-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
}

.project-gallery-section p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  grid-auto-rows: 250px; /* Set a fixed height for all rows */
}

.gallery-grid figure {
  overflow: hidden;
  border-radius: 5px;
  height: 100%; /* Ensure the figure takes up the full grid cell height */
  margin: 0; /* Remove default margin */
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This maintains aspect ratio while filling the container */
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* For a more advanced layout with alternating sizes (optional) */
.gallery-grid.featured {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-auto-rows: 200px; /* Slightly shorter on mobile */
  }
}

/* FOOTER */
.site-footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
}

.site-footer .footer-content {
  max-width: 800px;
  margin: 0 auto;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }
  .info-row, 
  .info-row.reverse {
    flex-direction: column;
  }
  .info-text, 
  .info-image {
    flex: unset;
    width: 100%;
  }
}

/* CONTACT FORM SECTION */
.contact-form-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.contact-form-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
}

.contact-form-section p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.5;
}

.contact-form-section .form-container {
  width: 100%;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.contact-form-section iframe {
  display: block;
  width: 100%;
  border: none;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  .contact-form-section .container {
    padding: 0 10px;
  }
}

/* Button styling */
.button-container {
  margin-top: 25px;
  text-align: center;
}

.info-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #e74c3c;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.info-button:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

.info-button:active {
  transform: translateY(0);
}
.values-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.values-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #222;
}

.values-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #e74c3c;
}

/* Add this wrapper div to your HTML around each image */
.value-card .image-wrapper {
  width: 100%;
  height: 250px; /* Fixed height for all images */
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 15px;
}

.value-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintains aspect ratio while filling container */
  object-position: center; /* Centers the focus of the image */
  border-radius: 0; /* Remove border-radius as it's on the wrapper */
}

.value-card p {
  font-size: 1rem;
  color: #555;
  margin-top: auto; /* Pushes text to bottom if cards are different heights */
}

/* Responsive Behavior */
@media (max-width: 768px) {
  .values-container {
    grid-template-columns: 1fr;
  }
  
  .value-card .image-wrapper {
    height: 220px; /* Slightly smaller on mobile */
  }
}

/* Reviews Section */
.reviews-section {
  padding: 60px 20px 30px;
  background-color: #fff;
  text-align: center;
}

.reviews-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #222;
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Review Card */
.review-card {
  position: relative;
  margin-bottom: 20px;
  padding: 20px 22px; /* Modified: extra horizontal padding added */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.review-header {
  margin-bottom: 10px;
}

.review-header h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #e74c3c;
}

.review-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 15px;
  display: block;
}

/* Full review content: no truncation applied and left-aligned */
.review-text .review-content {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  text-align: left; /* Modified: force left-alignment for review text */
}


/* Responsive Adjustments for Mobile Devices */
@media only screen and (max-width: 600px) {
  .reviews-section {
    padding: 40px 15px 25px;
  }
  
  .reviews-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .reviews-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .review-card {
    padding: 20px 22px; /* Keeps extra horizontal padding consistent */
  }
  
  .review-text .review-content {
    font-size: 0.9rem;
  }
}

/* Developer credit remains if needed */
.developer-credit {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 5px;
}
