/* Add these styles at the top of the file */
html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
 

}

body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Update main styles */
main {
  flex: 1 0 auto;
}

main > .page:last-child,
.page:last-of-type {
  padding-bottom: 2rem !important; /* Or whatever value matches your design */
  margin-bottom: 0 !important;
}

/* Update section styles */
.page {
  margin: 0;
  padding: 2rem 0 !important;
}

.page:last-of-type {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Update footer styles */
footer {
  flex-shrink: 0;
  margin-top: 0;
  width: 100%;
  padding: 2rem 0;
  background-color: var(--primary-color);
  color: var(--light-color);
}

footer .container {
  padding: 1rem 2rem;
}

/* --- Hero Section --- */
.hero {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--primary-color);
  padding: 0; /* Remove excessive padding */
  text-align: center;
  border-radius: 10px;
  margin-bottom: 0;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;

  min-height: 70vh; /* Consistent hero height */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Hero Background Video --- */
.hero-video,
.hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1; /* FULL opacity to keep vivid colors */
}

/* --- Hero Fallback --- */
.hero-fallback {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: none;
}

/* --- Hero Overlay --- */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
  z-index: 2;
}

/* --- Hero Content --- */
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  padding: 2rem;
}

.hero-content h1 {
  font-family: 'Libre Baskerville', serif; /* Use Libre Baskerville font */
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
  color: white !important; /* Force white text */
  line-height: 1.1;
  text-align: center;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.8;
  margin-bottom: 3rem;
  color: white !important;  /* Force white text */
  opacity: 0.9;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-content i,
.hero-content svg {
    color: white !important;
    fill: white !important;
}


/* --- Page Titles --- */
.page h2 {
  font-family: var(--font-family-heading);
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  border-bottom: 4px solid var(--secondary-color);
  padding-bottom: 1.2rem;
  text-align: left;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}

.contact-info p {
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #222; /* fallback */
  color: var(--text-color);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.contact-form {
  margin-top: 0;
}

.contact-form h3 {
  font-family: var(--font-family-heading);
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-form label {
  margin-top: 1rem;
  display: block;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 90%;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1.1rem;
  background-color: var(--light-color);
  color: #222; /* fallback */
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-form button {
  margin-top: 0.5rem;
}

/* Match placeholder font style */
textarea::placeholder,
input::placeholder {
  font-family: var(--font-family-base); /* Use the same font as other inputs */
  font-size: 1.1rem; /* Match the font size */
  color: #222; /* fallback */
  color: var(--text-color); /* Match the text color */
  opacity: 0.7; /* Slightly lighter color for placeholders */
}

/* Match textarea styling with input fields */
textarea {
  resize: vertical; /* Allow resizing only vertically */
  max-height: 300px; /* Set a maximum height */
  min-height: 150px; /* Set a minimum height */
  width: 90%; /* Keep the width consistent */
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1.1rem;
  background-color: var(--light-color);
  color: #222; /* fallback */
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Disable textarea resizing */
textarea {
  resize: vertical; /* Allow resizing only vertically */
}

@media screen and (max-width: 600px) {
  .contact-info p {
      font-size: 1.05rem;
  }

  .contact-form h3 {
      font-size: 1.6rem;
  }
}

/* --- Services Section --- */
.services-list li {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.services-list li:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
  .services-list li {
      background-color: #0a0a0a;
      box-shadow: 0 3px 7px rgba(255, 255, 255, 0.1);
      border-color: var(--border-color);
  }

  .services-list li:hover {
      box-shadow: 0 5px 12px rgba(255, 255, 255, 0.1);
  }
}

.services-list li i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.services-list li h3 {
  font-family: var(--font-family-base);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.8rem;
}

.services-list li p {
  color: #222; /* fallback */
  color: var(--text-color);
  line-height: 1.8;
}

/* --- Process Section --- */
#process .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}
.step-number {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-family: var(--font-family-heading);
  text-align: center;
}

.step {
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  min-width: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s;
  margin-bottom: 3rem;
  color: #222; /* fallback */
  color: var(--text-color);
  font-family: var(--font-family-base);
}

.step-number {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-family: var(--font-family-heading);
  text-align: center;
}

.step h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--primary-color);
  font-family: var(--font-family-heading);
}

.step p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #222; /* fallback */
  color: var(--text-color);
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
  .step {
      background-color: #0a0a0a;
      box-shadow: 0 3px 7px rgba(255, 255, 255, 0.1);
      border-color: var(--border-color);
  }

  .step:hover {
      box-shadow: 0 5px 12px rgba(255, 255, 255, 0.1);
  }
}
