/* Common styles for UVGermX */

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  overflow-x: hidden;
}

/* Navigation */
nav {
  background-color: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f4989; /* Blue for "UV" */
  font-family: 'Arial', sans-serif; /* Keep Arial for logo */
}
.logo a {text-decoration:none; color:#1f4989;}

.logo span {
  color: #479751; /* Green for "Germ" */
}

.logo .span2 {
  color: #ab2d26; /* Red for "X" */
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #479751; /* Green for nav text */
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.3s;
}

/* Animated underline effect */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #479751;
  transition: width 0.3s;
}

.nav-links a:hover {
  color: #3b7a3f; /* Darker green on hover */
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Remove underline from quote button */
.quote-btn::after {
  content: none !important;
}

/* Quote Button Overrides - Remove Animation */
.quote-btn {
  background: #479751; /* Green button background */
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  transition: none; /* Remove transition */
}

.quote-btn:hover {
  background: #3b7a3f; /* Darker green on hover */
  color: white;
  transform: none; /* Remove hover transform */
}

/* Hamburger Icon Animation */
.hamburger {
  display: none;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 24px;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: #479751;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  top: 20px;
}

.hamburger.active span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(33,76,139,0.7), rgba(33,76,139,0.7)), url('../images/bg.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  margin-top: 70px; /* Account for fixed nav */
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Shorter hero for subpages */
.about .hero,
.services .hero,
.gallery .hero,
.clients .hero,
.quote .hero {
  min-height: 250px;
  padding: 4rem 2rem;
}

.hero-content {
  max-width: 880px;
  width: 100%;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.hero-buttons a {
  display: inline-flex;
  align-items: center;
  background: #479751;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
  font-size: 1rem;
  font-weight: 500;
}

.hero-buttons a:hover {
  background: #3b7a3f;
}

.hero-buttons a.call-btn {
  background: #fff;
  color: #479751;
  padding: 0.75rem 1.5rem;
}

.hero-buttons a.call-btn:hover {
  background: #f0f0f0;
}

.hero-buttons a .email-icon {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

/* Modified Hero for Internal Pages */
.hero.internal-page {
  padding: 4rem 2rem;
  min-height: 300px;
}

/* Services Section - Home Page */
.index .services {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.services-img {
  flex: 1;
  max-width: 50%;
}

.services-img img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.services-content {
  flex: 1;
  text-align: left;
}

.services-content .logo {
  font-size: 30px;
}

.services h2 {
  color: #1f4989;
  margin-bottom: 1rem;
  font-weight: 700;
}

.services p {
  margin-bottom: 1rem;
}

.services-list {
  list-style: none;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Services Page */
.services-section {
  padding: 3rem 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  text-align: center;
  margin: 0 0 1rem;
  color: #1f4989;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 25%;
  width: 50%;
  height: 3px;
  background-color: #479751;
}

.service-cards {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

/* Alternate service card layout */
.service-card:nth-child(even) {
  flex-direction: row-reverse;
}

.service-image {
  flex: 0 0 40%;
  max-width: 40%;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.service-content {
  flex: 1;
}

/* Quote Page Styles */
.quote-section {
  padding: 3rem 0;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #555;
  font-size: 1.1rem;
}

.quote-form-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1f4989;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #479751;
  outline: none;
}

.submit-btn {
  background-color: #479751;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.submit-btn:hover {
  background-color: #3b7a3f;
}

.service-content h3 {
  color: #479751;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Gallery Page */
.gallery-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  aspect-ratio: 1 / 1;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 0.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .caption {
  transform: translateY(0);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  overflow: hidden;
}

.lightbox-content {
  position: relative;
  width: 80%;
  max-width: 1000px;
  margin: 5% auto;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  display: block;
  border: 5px solid white;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.lightbox-caption {
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 1.2rem;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1101;
}

.lightbox-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev,
.lightbox-next {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  width: 100%;
  text-align: center;
  color: white;
}

/* Clients Page */
.container {
  max-width: 1200px;
  margin: 100px auto 2rem;
  padding: 0 2rem;
}

.section {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.section h2 {
  color: #1f4989;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: relative;
}

.testimonial p:first-child {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial strong {
  color: #1f4989;
}

/* About Us Page */
.about-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.about-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.about-intro p {
  font-size: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.value-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.value-icon {
  font-size: 3rem;
  color: #1f4989;
  margin-bottom: 1rem;
}

.value-card h3 {
  color: #479751;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.value-card p {
  line-height: 1.7;
}

/* About Features Section */
.about-features {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.about-content {
  margin: 2rem auto;
  max-width: 900px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: left;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  flex: 0 0 30%;
  min-width: 250px;
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
}

.step-icon {
  width: 50px;
  height: 50px;
  background: #1f4989;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.process-step h3 {
  color: #479751;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.process-step p {
  font-size: 1rem;
  line-height: 1.6;
}

.history-section {
  margin: 4rem auto;
  max-width: 1000px;
  padding: 0 2rem;
  text-align: center;
}

.timeline {
  position: relative;
  margin: 3rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #1f4989;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 10px 50px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 1.5rem;
  background-color: white;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-content h3 {
  color: #479751;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  line-height: 1.6;
}

.timeline-date {
  display: inline-block;
  color: white;
  background-color: #1f4989;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #479751;
  top: 30px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even)::before {
  left: -8px;
}

.timeline-item:nth-child(odd)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid white;
  right: 40px;
  top: 30px;
}

.timeline-item:nth-child(even)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid white;
  left: 40px;
  top: 30px;
}

.cta-section {
  background-color: #1f4989;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.cta-btn {
  display: inline-block;
  background-color: #479751;
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #3b7a3f;
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 2rem;
  text-align: center;
}

.social-links a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
}

/* Modal styles removed in favor of dedicated quote page */

/* Loading spinner animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    padding: 0rem 2rem;
    width: 100%;
    text-align: center;
    font-size: 18px;
  }

  .quote-btn {
    margin: .2rem auto;
    padding: .5rem 2rem !important;
    border-radius: 15px;
    display: block;
    max-width: 95%;
    width: fit-content;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .services {
    flex-direction: column;
    text-align: center;
  }

  .services-img {
    max-width: 100%;
  }

  .services-content {
    text-align: center;
  }

  .service-card, 
  .service-card:nth-child(even) {
    flex-direction: column;
    padding: 1.5rem;
  }

  .service-image {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .lightbox-content {
    width: 90%;
    margin: 15% auto;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .process-step {
    width: 100%;
    max-width: 300px;
  }

  .timeline::before {
    left: 40px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 60px;
    border-right: 10px solid white;
    border-left: none;
  }

  .timeline-item::before {
    left: 27px;
    right: auto;
  }

  .timeline-item:nth-child(even)::before {
    left: 27px;
  }
}
/* Add these styles to your existing styles.css */

.text-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.text-content {
  flex: 1;
  min-width: 300px; /* Prevents text from getting too narrow */
}

.badge-image {
  max-width: 250px;
  width: 100%;
}
.quote-section a {
color:#1f4989;
}

/* Mobile view - stack vertically */
@media (max-width: 768px) {
  .text-badge-container {
    flex-direction: column;
    align-items: center;
  }
  
  .badge-image {
    order: 2; /* Puts image below text on mobile */
  }
  
  .text-content {
    order: 1;
    width: 100%;
  }
  .about-features {padding: 20px 15px;}
  .clientsection {padding:10px 0 0 0;}
  .container {padding:0px;margin-top:0px !important;}
}

/* Desktop view - side by side */
@media (min-width: 769px) {
  .text-badge-container {
    flex-direction: row;
  }
  
  .badge-image {
    order: 2; /* Puts image on right */
  }
  
  .text-content {
    order: 1;
  }
}