/* ===========================
   General Styles
   =========================== */
   body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #353B46;
    background-color: #f9f9f9;
  }
  
  .background-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background-image: url(../images/precision.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
  }


/* MAIN CONTENT AREA */
.main-content {
display: flex;
justify-content: center;
align-items: center;
height: calc(100vh - 90px); /* 100vh minus the combined height of the header and nav */
text-align: left;
padding: 20px 0; /* Adjust padding to fit the content */
position: relative;
background-color: rgba(0, 0, 0, 0.5); /* Semi black background */
margin-top: 53px; /* To ensure it's pushed down below the fixed header */
margin-left: 0px;
margin-right: 0px;
}

/* Hero Section */
.hero {
display: flex;
justify-content: center;
align-items: center;
height: calc(100vh - 90px);
text-align: left;
padding: 20px 0;
position: relative;
background-color: rgba(0, 0, 0, 0.5);
margin-top: 2px;
margin-left: 0px;
margin-right: 0px;
}

.content-wrapper {
width: 1200px;
padding: 20px; /* Adjust padding as needed */
border-radius: 0px;
}

.hero h1 {
color: white;
font-size: 3em;
font-family: Roboto, sans-serif;
font-weight: 600;
margin-bottom: 30px;
text-align: right;
letter-spacing: 2px;
}

.hero p {
color: white;
font-size: 1.2em; /* Adjust paragraph font size */
font-family: Roboto, sans-serif;
margin-bottom: 20px;
text-align: right;
line-height: 30px;
letter-spacing: 1px;
}

.hero-cta-buttons {
display: flex;
flex-wrap: wrap;
justify-content: right;
gap: 20px;
margin-top: 50px;
}

.button {
padding: 10px 20px;
font-size: 1em;
font-family: Roboto, sans-serif;
border: none;
cursor: pointer;
border-radius: 20px;
text-transform: uppercase;
font-weight: bold;
margin-bottom: 40px;
}

.consult {
background-color:rgb(208, 43, 47);
color: white;
transition: background-color 0,3s ease;
}

.consult:hover {
background-color: white;
border: 2px solid white;
color: rgb(208, 43, 47);
}

.request {
background-color: transparent;
color: rgb(208, 43, 47);
border: 2px solid rgb(208, 43, 47);
}
.request:hover {
    color: white;
    background-color: rgb(208, 43, 47);
}


/* About Gosiame Section */
.about-container {
  margin-bottom: 120px;
  padding-top: 60px;
  background-color: white;
  height: 400px;
}

.about-header {
  margin-bottom: 80px;
}

.about-header h2 { 
  text-align: center;
  padding: 50px 20px;
  background: white;
  font-size: 32px;
  font-weight: 600;
}

.about-header h2 span {
  color: #D02B2F;
}

.about-header p {
  font-size: 20px;
  line-height: 1.6;
  background: #fff;
  margin-bottom: 40px;
  text-align: center;
}

/* About Section Content */
.about-section {
  margin-bottom: 60px;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px; /* Reduce space between text and image */
  align-items: center; /* Aligns text and image vertically */
  min-height: 300px; /* Reduce overall height */
}

/* About Text */
.about-text h3 {
  padding-bottom: 5px;
  font-size: 24px;
  font-weight: 600;
  text-align: left;
  padding-left: 80px;
  color: #D02B2F;
}

.about-text p {
  padding-top: 20px;
  text-align: left;
  margin-left: 80px;
  line-height: 1.6;
  font-size: 18px;
  margin-bottom: 5px;
}

/* About Image */
.about-image {
  padding: 20px; /* Reduce padding */
  height: auto; /* Allow it to shrink */
  display: flex; /* Centers the image inside */
  align-items: center; /* Aligns image to fill container */
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-height: 550px; /* Reduce image height */
  object-fit: cover; /* Ensures the image fully fills the box without distortion */
  border-radius: 8px; /* Optional: If you want rounded corners */
  transition: transform 0.5s ease-in-out;
}

.about-image img:hover {
  transform: scale(1.1);
}


/* Services Highlights Section */
.services {
  margin-bottom: 180px;
}

.service-intro {
  font-size: 1.2rem;
  margin-bottom: 80px;
  line-height: 1.6;
  text-align: center;
}

/* Services Section - Styled Like Case Studies */
.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Section Header */
.services-header {
  display: flex;
  align-items: center; /* Aligns items (dash & text) in a straight line */
  justify-content: center; /* Centers them horizontally */
  gap: 20px; /* Space between dash and text */
  text-align: center;
}

.red-dash {
  display: inline-block;
  width: 40px;
  height: 3px;
  background-color: red;
  flex-shrink: 0; /* Ensures the dash doesn't resize */
}

/* Featured Title */
.service-intro-headline {
  display: flex;
  align-items: center; /* Ensures vertical alignment */
  justify-content: center; /* Centers both elements */
  font-size: 24px;
  font-weight: bold;
  gap: 10px; /* Space between the dash and text */
  margin-top: 10px;
  margin-bottom: 80px;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns */
  gap: 140px 30px; /* Space between items */
  margin-top: 30px;
}

/* Individual Service */
.service-card {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: visible;
}

/* Wraps the image & applies overflow hidden */
.service-card-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.service-card img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease-in-out; /* Smooth zoom effect */
}

/* Only the image swells on hover */
.service-card:hover .service-card-image img {
  transform: scale(1.1);
}

/* Overlapping Info Box */
.service-card-text {
  position: absolute;
  bottom: -80px;
  margin-left: -57px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  padding-bottom: 40px;
  border-radius: 0px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 10; /* Brings the text box in front */
}

.service-card-text h3 {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  gap: 20px; /* Space between the dash and text */
  padding-top: 10px;
  padding-left: 10px;
  margin-bottom: 20px;
  margin-left: 10px;
}

.service-card-text p {
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
  padding-left: 20px;
}

/* Learn More Link */
.learn-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 16px;
  color: #d32f2f;
  text-decoration: none;
  font-weight: bold;
}

.learn-more:hover {
  text-decoration: underline;
}



/* Testimonials Section */
.testimonials {
  text-align: center;
  padding: 60px 20px;
  background: rgb(238, 244, 247);
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #353B46;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  height: 400px;
}

.testimonial {
  position: absolute;
  width: 100%;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #353B46;
  padding: 40px;
  opacity: 0;  /* Initially hidden */
  visibility: hidden;  /* Hide from layout */
  transform: translateX(-100%); /* Initially off-screen */
  transition: opacity 1s ease-in-out, transform 1s ease-in-out; /* For smooth fade and slide */
}

.testimonial.active {
  opacity: 1;
  visibility: visible;  /* Make it visible */
  transform: translateX(0); /* Center it on-screen */
}

/* Animation for sliding in from the left */
@keyframes slideIn {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animation for sliding out to the right */
@keyframes slideOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.quote-symbol {
  font-size: 5rem;
  color: #A0A0A0;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: serif;
}

.testimonial-text {
  font-weight: 400;
  font-style: italic;
  margin-top: 40px;
}

.quote-underline {
  width: 40px;
  height: 3px;
  background: #D02B2F;
  margin: 20px auto;
}

.client-name {
  font-weight: bold;
  font-size: 1.2rem;
  color: #D02B2F;
}

.client-designation {
  font-size: 1rem;
  color: #666;
}

/* Testimonial Dots */
.testimonial-dots {
  margin-top: 20px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 5px;
  background: #A0A0A0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #D02B2F;
}


/* Call to Action Section */
.cta-section {
  background-color: #f5f5f5;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  height: 600;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: #353B46;
  margin-top: 20px;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.2rem;
  color: #666;
  margin-top: 40px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.cta-buttons {
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  font-size: 1.2rem;
  padding: 15px 30px;
  margin: 10px;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.cta-button.primary {
  background-color: #D02B2F;
  color: white;
}

.cta-button.primary:hover {
  background-color: #A32026;
}

.cta-button.secondary {
  background-color: transparent;
  border: 2px solid #D02B2F;
  color: #D02B2F;
}

.cta-button.secondary:hover {
  background-color: #D02B2F;
  color: white;
}

.cta-social-proof {
  font-size: 1rem;
  color: #A0A0A0;
  margin-top: 20px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background-color: #c40000;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  display: none;
  z-index: 1000;
}


/* ===========================
   Responsive Design
   =========================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
  .content-wrapper {
    width: 90%;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1.1em;
  }

  .about-text h3,
  .about-text p {
    padding-left: 40px;
    margin-left: 0;
  }

  .service-grid {
    gap: 100px 20px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
    padding: 60px 20px;
    text-align: center;
  }

  .hero h1,
  .hero p {
    text-align: center;
  }

  .hero-cta-buttons {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text h3 {
    text-align: center;
    padding-left: 0;
  }

  .about-text p {
    margin-left: 0;
    padding-left: 0;
    text-align: center;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    height: 300px;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8em;
  }

  .hero p {
    font-size: 1em;
    line-height: 1.5em;
  }

  .button {
    font-size: 0.9em;
    padding: 8px 16px;
  }

  .about-header h2 {
    font-size: 24px;
  }

  .about-header p,
  .about-text p {
    font-size: 16px;
  }

  .service-intro-headline {
    font-size: 20px;
    flex-direction: column;
    gap: 6px;
  }

  .service-grid {
    gap: 80px 0;
  }
}