/* ====================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  font-size: 16px;
  background-color: var(--secondary-color);
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

:root {
  /* Primary palette */
  --primary-color: #022c43;     /* Dark navy - brand color */
  --primary-light: #033e5e;     /* Lighter navy for hover states */
  --secondary-color: #ffffff;   /* White for contrast */
  --accent-color: #f77f00;      /* Bright orange - vibrant accent */
  --accent-light: #ff9a33;      /* Lighter orange for hover effects */
  
  /* Neutral palette */
  --bg-light: #f5f5f5;          /* Very light gray for backgrounds */
  --bg-alt: #e9eef2;            /* Light blue-gray for alternating sections */
  --bg-dark: #f0f4f7;           /* Slightly darker blue-gray */
  --text-dark: #333333;         /* Dark color for main text */
  --text-muted: #666666;        /* Lighter color for secondary text */
  
  /* Feedback colors */
  --success: #28a745;           /* Green for success messages */
  --danger: #dc3545;            /* Red for errors/important alerts */
  
  /* Other variables */
  --border-radius: 8px;         /* Consistent border radius */
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07); /* Shadow for cards and elements */
  --transition-speed: 0.3s;
  --header-height: 100px;        /* Increased from 80px to accommodate larger logo */
  --header-bg-color: #333333;    /* New dark gray color for header */
}

/* =====================================================
   Typography
====================================================== */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Remove text shadows for cleaner modern look */
h1, h2, h3, p {
  text-shadow: none;
}

/* Hero heading - special treatment */
.hero h1, 
.company-name {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--primary-color);
  text-align: center;
}

/* Paragraph refinements */
p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Section intro text */
.section-intro {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* Link styling */
a {
  color: var(--primary-color);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-color);
}

/* List styling */
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Special content */
.highlight {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.5rem;
  background-color: rgba(247, 127, 0, 0.05);
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* =====================================================
   Header & Navigation
====================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  color: var(--secondary-color);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: none;
}

/* We can keep the scroll effect for subtle enhancement */
/* New scrolled header code: */
header.scrolled {
  background-color: var(--header-bg-color);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
/* For pages without a full-height hero section, add this class */
.inner-page header {
  background-color: var(--header-bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: var(--header-height);
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Make logo text orange on hover */
.logo:hover,
.logo:hover span {
  color: var(--accent-color);
}

.logo img {
  height: 150px;
  margin-right: 0.2rem;
  background-color: transparent; /* Keep this transparent */
  padding: 10px;
  border-radius: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu li {
  position: relative;
}

/* Navigation text color */
.nav-menu a {
  color: var(--secondary-color);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover effect with underline */
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Make hover and active states orange for contrast */
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-color);
}

/* Hamburger Menu for Mobile */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--secondary-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* =====================================================
   Hero Section
====================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  overflow: hidden;
}

/* Video background */
#heroVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Overlay to darken video for better text visibility */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  color: var(--secondary-color);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Call to action buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Inner pages hero section - smaller height */
.inner-page .hero {
  height: 50vh;
  min-height: 400px;
  background-color: var(--primary-color); /* Fallback if no image */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Remove video background from inner pages */
.inner-page #heroVideo {
  display: none;
}

/* Fix hero content on inner pages */
.inner-page .hero-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.inner-page .hero-content h1 {
  color: var(--secondary-color);
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.inner-page .hero-content p {
  color: var(--secondary-color);
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Service page specific hero adjustments */
.service-page .hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/service-hero.jpg');
}

/* Contact page specific hero adjustments */
.contact-page .hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/contact-hero.jpg');
}

/* =====================================================
   Enhanced Service Hero Section
====================================================== */
/* Make service hero image bigger */
.services-page .hero {
  min-height: 500px; /* Increased from default */
}

.services-page .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85; /* Slightly less transparent for better visibility */
}

.services-page .hero-content {
  max-width: 1000px; /* Wider content area */
  width: 90%;
  padding: 3rem;
  background-color: rgba(0, 0, 0, 0.6); /* Slightly darker background for text */
  border-radius: var(--border-radius);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.services-page .hero-content h1 {
  font-size: 4rem; /* Larger heading */
  margin-bottom: 1.5rem;
}

.services-page .hero-content p {
  font-size: 1.5rem; /* Larger subheading */
  margin-bottom: 2rem;
}

/* =====================================================
   Button Styling
====================================================== */
.btn,
.hero-content .btn,
#inspection .btn,
.contact-section button,
.contact .btn-submit,
.service-section .btn,
.service-card .btn,
.cta-section .btn,
.benefits-list .btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn:hover,
.hero-content .btn:hover,
#inspection .btn:hover,
.contact-section button:hover,
.contact .btn-submit:hover,
.service-section .btn:hover,
.service-card .btn:hover,
.cta-section .btn:hover,
.benefits-list .btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active,
.hero-content .btn:active,
#inspection .btn:active,
.contact-section button:active,
.contact .btn-submit:active,
.service-section .btn:active,
.service-card .btn:active,
.cta-section .btn:active,
.benefits-list .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button with ripple effect */
.btn::after,
.hero-content .btn::after,
#inspection .btn::after,
.contact-section button::after,
.contact .btn-submit::after,
.service-section .btn::after,
.service-card .btn::after,
.cta-section .btn::after,
.benefits-list .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after,
.hero-content .btn:hover::after,
#inspection .btn:hover::after,
.contact-section button:hover::after,
.contact .btn-submit:hover::after,
.service-section .btn:hover::after,
.service-card .btn:hover::after,
.cta-section .btn:hover::after,
.benefits-list .btn:hover::after {
  width: 300%;
  height: 300%;
}

.btn-light {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-light:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--secondary-color);
}

.btn-accent:hover {
  background-color: var(--accent-light);
}

/* Button with icon */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon i {
  font-size: 0.9rem;
}

/* =====================================================
   Section Base Styling
====================================================== */
section {
  padding: 60px 0;
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
}

section h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  display: block;
  margin: 0.5rem auto 0;
}

/* Add some subtle texture to the background sections */
#about, #serviceoffered, #services, #contact {
  position: relative;
}

/* Subtle pattern overlay for visual texture */
#about::before, #serviceoffered::before, #services::before, #contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* Section background colors */
#about {
  background-color: var(--secondary-color);
}

#serviceoffered {
  background-color: var(--bg-alt);
}

#services {
  background-color: var(--bg-dark);
}

#contact {
  background-color: var(--bg-alt);
}

/* Common styling for alternating sections */
.section-container.about,
.section-container.servicesoffered,
.section-container.inspection {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Ensure consistent section spacing */
.inner-page section:first-of-type {
  padding-top: 60px;
}

/* Fix for potential overlap issues */
.inner-page main section:first-of-type {
  margin-top: 0;
}

/* =====================================================
   About Section
====================================================== */
.about-text {
  flex: 1;
  text-align: left;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-video,
.inspection-image {
  flex: 1;
}

.about-video {
  width: 100%;
  max-width: 600px;
  margin-bottom: 20px;
}

#about video {
  width: 100%;
  height: auto;
}

.about img {
  width: 100%;
  border-radius: 10px;
}

/* About Page Specific Styles */
.about-section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.about-container.reverse {
  flex-direction: row-reverse;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* =====================================================
   Values Section
====================================================== */
.values-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  padding: 1.5rem;
  border-radius: 8px;
  background-color: var(--bg-light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.value-card:hover i {
  transform: scale(1.2);
  color: var(--accent-color);
}

.value-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* =====================================================
   Timeline
====================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--accent-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  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: 20px;
  background-color: var(--bg-light);
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* =====================================================
   Feature List
====================================================== */
.feature-list {
  counter-reset: feature-counter;
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 2rem;
}

.feature-list li::before {
  counter-increment: feature-counter;
  content: counter(feature-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.feature-list h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* =====================================================
   Services & Card Styling
====================================================== */
/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Service section */
.service-section {
  background-color: var(--secondary-color);
  padding: 4rem 2rem;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Modern Card Styling */
.card {
  background: var(--secondary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.card-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Service Cards with Flip Effect */
.service-card {
  position: relative;
  height: 400px;
  perspective: 1000px;
  margin-bottom: 30px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.service-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.card-front {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.card-back {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: rotateY(180deg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-front h3, .card-back h3 {
  margin-top: 0;
  text-align: center;
  position: relative;
}

.card-front h3 {
  color: var(--primary-color);
}

.card-back h3 {
  color: var(--secondary-color);
}

.card-front h3::after, .card-back h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.card-back ul {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
}

.card-back li {
  margin-bottom: 0.8rem;
}

.card-indicator {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.card-indicator i {
  animation: pulse 2s infinite;
}

/* Slide Reveal Cards */
.slide-reveal {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 250px;
  transition: all 0.3s ease;
}

.slide-reveal:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.slide-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.slide-reveal:hover img {
  transform: scale(1.05);
}

.slide-reveal-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  transform: translateY(100%);
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slide-reveal:hover .slide-reveal-content {
  transform: translateY(0);
}

.slide-reveal-content h3 {
  color: var(--secondary-color);
  margin: 0;
  font-size: 1.2rem;
}

.slide-reveal-content p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* =====================================================
   Services Offered Section
====================================================== */
.servicesoffered-text {
  flex: 1;
  text-align: left;
  order: 1;
  max-width: 45%;
}

.servicesoffered-cards {
  flex: 1;
  order: 2;
}

.servicesoffered-text ol {
  list-style-type: disc;
  padding-left: 20px;
}

.servicesoffered-cards .services-grid {
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* =====================================================
   Inspection Section
====================================================== */
#inspection .section-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.inspection-image {
  order: 1;
}

.inspection-text {
  flex: 1;
  text-align: left;
  order: 2;
}

.inspection-image img {
  width: 100%;
  border-radius: 10px;
}

#inspection h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#inspection p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* =====================================================
   Before/After Carousel Styles
====================================================== */
.before-after-carousel {
  max-width: 1200px;
  margin: 2rem auto;
  position: relative;
  height: 450px;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.comparison-set {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
  padding: 20px;
}

.before-container, .after-container {
  flex: 1;
  position: relative;
}

.before-container img, .after-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 14px;
}

/* =====================================================
   Testimonials Section
====================================================== */
.testimonials {
  background: var(--primary-color);
  color: var(--secondary-color);
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  min-width: 100%;
  padding: 4rem 2rem;
  text-align: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial span {
  display: block;
  font-weight: bold;
  font-size: 1rem;
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
  will-change: transform;
}

.slider-controls button {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background var(--transition-speed);
}

.slider-controls button:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Testimonial cards for services page */
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.testimonial-card {
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: left;
}

.testimonial-card blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
}

.testimonial-card blockquote::before {
  content: '"';
  font-size: 3rem;
  color: var(--accent-color);
  opacity: 0.3;
  position: absolute;
  top: -1.5rem;
  left: -1rem;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-weight: bold;
  margin-top: 1rem;
}

/* =====================================================
   Contact Section
====================================================== */
.contact form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact .form-group {
  margin-bottom: 1.5rem;
}

.contact label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--secondary-color);
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  transition: border-color var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

.contact input:focus,
.contact textarea:focus {
  outline: 0;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(2, 44, 67, 0.15);
}

.contact textarea {
  resize: vertical;
  min-height: 150px;
}

/* Form validation styles */
input.is-valid,
textarea.is-valid {
  border-color: var(--success);
}

input.is-invalid,
textarea.is-invalid {
  border-color: var(--danger);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--danger);
}

.was-validated .invalid-feedback {
  display: block;
}

/* =====================================================
   CTA Section
====================================================== */
.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  color: var(--secondary-color);
  text-align: center;
  background: linear-gradient(to bottom, #555555, #333333);
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.cta-section p {
  color: var(--secondary-color);
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* =====================================================
   Footer Section
====================================================== */
footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 4rem 0 0;
  position: relative;
}

/* Add a subtle pattern or texture */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  text-align: left;
}

.footer-section h3 {
  color: var(--secondary-color);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

.footer-section p,
.footer-section ul {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  width: 100%;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.7rem;
  width: 100%;
}

/* Quick links specific styling */
.quick-links li a {
  display: block;
  padding: 0.2rem 0;
}

/* Social media icons */
.social-media {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: 100%;
}

.social-media a {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.2rem 0;
  margin-bottom: 0.5rem;
}

.social-media a i {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.social-media a:hover i {
  transform: translateX(3px);
}

/* Footer links styling */
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* Keep the focus styles for footer links for accessibility */
.footer-section a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Copyright section */
.copyright {
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  background-color: rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =====================================================
   Accessibility
====================================================== */
/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 8px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles for interactive elements */
.nav-menu a:focus,
.btn:focus,
.hero-content .btn:focus,
.footer-section a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* =====================================================
   Animations
====================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Scroll animation classes */
.hidden-left,
.hidden-right,
.hidden-bottom,
.hidden-top {
  opacity: 0;
  will-change: transform, opacity;
}

.slide-in-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.slide-in-right {
  animation: fadeInRight 0.8s ease forwards;
}

.fade-up {
  animation: fadeInUp 0.8s ease forwards;
}

.fade-down {
  animation: fadeInDown 0.8s ease forwards;
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

/* Staggered animations for service items */
.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }

/* =====================================================
   Image Handling
====================================================== */
/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Add lazy loading for all images that support it */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* =====================================================
   Contact Page & Form Fixes
====================================================== */
/* Center all content on contact page */
.contact-page main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

/* Ensure the contact section container is centered */
#contact .section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Make sure the form is centered in the container */
.contact form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact section on inner pages */
.contact-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Ensure contact section heading is centered */
.contact-section h2,
#contact h2 {
  text-align: center;
  width: 100%;
}

/* Center form elements */
.form-group {
  width: 100%;
  text-align: left;
}

/* Make sure the button is centered */
.contact .btn-submit {
  display: block;
  margin: 0 auto;
  min-width: 200px;
}

/* Contact form styling - making form elements larger */
.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 16px;
  font-size: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.contact-form textarea {
  min-height: 180px;
}

.contact-form button.btn-primary {
  padding: 16px 32px;
  font-size: 1.2rem;
  background-color: #022c43;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button.btn-primary:hover {
  background-color: #e05f00;
}

/* Make form elements stand out more on focus */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #FF6B00;
  box-shadow: 0 0 8px rgba(255, 107, 0, 0.3);
}

/* =====================================================
   Responsive Adjustments
====================================================== */
@media (max-width: 1200px) {
  .servicesoffered-cards .services-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 992px) {
  .section-container.servicesoffered {
    flex-direction: column;
  }
  
  .servicesoffered-text {
    max-width: 100%;
    margin-bottom: 20px;
  }
  
  .servicesoffered-cards .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Mobile navigation */
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--header-bg-color);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    gap: 2rem;
    z-index: 1050;
  }
  
  .nav-menu.show {
    right: 0;
  }
  
  .nav-menu a {
    display: block;
    width: 100%;
    font-size: 1.2rem;
  }
  
  /* Full width for each menu item */
  .nav-menu li {
    width: 100%;
  }
  
  /* Adjust animation for mobile */
  .nav-menu a::after {
    bottom: -5px;
  }
}

@media (max-width: 768px) {
  .servicesoffered-cards .services-grid {
    grid-template-columns: 1fr;
  }
  
  .section-container.servicesoffered,
  .section-container.about,
  .section-container.inspection {
    flex-direction: column;
  }
  
  .servicesoffered-text,
  .about-text,
  .inspection-text {
    order: 0;
    max-width: 100%;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  footer {
    padding-top: 3rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-section {
    align-items: center;
    text-align: center;
  }
  
  .footer-section h3 {
    margin-bottom: 1rem;
  }
  
  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-media a {
    justify-content: center;
  }
  
  .copyright {
    margin-top: 2rem;
  }

  .contact form {
    padding: 1.5rem;
  }
  
  .contact .btn-submit {
    width: 100%;
  }
  
  .inner-page .hero {
    min-height: 300px;
  }
  
  .inner-page .hero-content h1 {
    font-size: 2rem;
  }
  
  .inner-page .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .section-container {
    padding: 30px 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hidden-left,
  .hidden-right,
  .hidden-bottom,
  .hidden-top {
    opacity: 1;
    transform: none;
  }
  
  .carousel-slide {
    transition: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}