/* ===================================================================
   STETNER ELECTRIC INC - PROFESSIONAL DESIGN SYSTEM
   (C)2025 SNOOPS!
   =================================================================== */

/* ===================================================================
   1. DESIGN TOKENS (CSS CUSTOM PROPERTIES)
   =================================================================== */
:root {
  /* Brand Colors */
  --primary-color: #f39c12;
  --primary-gradient: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  --primary-gradient-hover: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  --secondary-color: #00356B;
  --secondary-gradient: linear-gradient(135deg, #00356B 0%, #1e3c72 100%);
  --secondary-gradient-hover: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  
  /* Neutral & Text Colors */
  --text-dark: #2c3e50;
  --text-light: #5d6d7e;
  --text-muted: #7f8c8d;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  
  /* RGB Values for Transparency */
  --primary-rgb: 243, 156, 18;
  --secondary-rgb: 0, 53, 107;
  --white-rgb: 255, 255, 255;
  --black-rgb: 0, 0, 0;
  --border-color-rgb: 226, 232, 240;
  
  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-brand: 'Vulgar Display', Impact, sans-serif;
  
  /* Spacing & Sizing */
  --section-padding: 100px;
  --section-padding-sm: 60px;
  --header-height: 90px; /* Base height for sticky header */
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 4px rgba(var(--black-rgb), 0.05);
  --shadow-md: 0 4px 12px rgba(var(--black-rgb), 0.08);
  --shadow-lg: 0 8px 25px rgba(var(--black-rgb), 0.12);
  --shadow-xl: 0 15px 35px rgba(var(--black-rgb), 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 15px;
  --radius-xl: 20px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Responsive Typography */
  --h1-size: clamp(2.2rem, 5vw, 3.5rem);
  --h2-size: clamp(1.8rem, 4vw, 2.75rem);
  --h3-size: clamp(1.5rem, 3vw, 2rem);
  --body-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* ===================================================================
   2. BASE STYLES & TYPOGRAPHY
   =================================================================== */
@font-face {
  font-family: 'Vulgar Display';
  src: url('../fonts/vulgar-display.regular.ttf') format('ttf'),
       url('../fonts/vulgar-display.woff') format('woff');
  font-weight: normal; font-style: normal; font-display: swap;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 400;
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height); /* Initial padding for fixed header */
  transition: padding-top var(--transition-normal); /* Smooth padding adjustment */
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: var(--body-size);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-normal);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Brand Typography */
.font-stetner,
.text-stetner {
  font-family: var(--font-brand);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
}

/* ===================================================================
   3. UTILITY CLASSES
   =================================================================== */
.section-padding {
  padding: var(--section-padding) 0;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================================================
   4. SECTION TITLES
   =================================================================== */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===================================================================
   5. BUTTON SYSTEM
   =================================================================== */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent; /* Added border for outline buttons */
  padding: 12px 28px; /* Adjusted padding */
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--white-rgb), 0.2), transparent);
  transition: left 0.5s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.3);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-outline-secondary {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--secondary-gradient-hover);
  color: var(--white);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  border: 2px solid rgba(var(--white-rgb), 0.8);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--secondary-color);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ===================================================================
   6. HEADER DESIGN
   =================================================================== */
.header-area {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1030;
  transition: all var(--transition-normal);
  background: rgba(var(--white-rgb), 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

/* Main Header */
.main-header {
  padding: 0.8rem 0;
  min-height: var(--header-height); /* Ensure minimum height */
  display: flex;
  align-items: center;
}

/* Enhanced Logo */
.logo-wrapper {
  max-width: 280px; /* Adjust max-width for logo container */
  width: 100%;
}

.logo-stetner {
  transition: all var(--transition-normal);
  display: block;
}

.logo-stetner:hover {
  transform: scale(1.02);
}

.logo-stetner svg {
  width: 100%;
  height: auto;
  max-height: 70px; /* Control max height of SVG */
  min-height: 50px; /* Control min height of SVG */
  transition: all var(--transition-normal);
}

/* Logo specific text/line adjustments for responsiveness */
.logo-stetner .logo-main {
    font-size: 39px; /* Base font size */
}
.logo-stetner .logo-sub {
    font-size: 11px; /* Base font size */
    letter-spacing: 4px;
}
.logo-stetner .logo-underline {
    stroke-width: 2;
    x2: 180; /* Adjust length of underline */
}
.logo-stetner .logo-year {
    font-size: 10px; /* Base font size */
    font-weight: bold;
    x: 185; /* Adjusted position to be closer to main text */
    display: none; /* Hidden by default, shown on larger screens */
}

/* STICKY STATE (if needed, though current design is always "sticky") */
.header-area.sticky {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  padding: 0.6rem 0;
}

.header-area.sticky .logo-stetner svg {
  max-height: 70px; /* Slightly smaller when sticky */
  min-height: 45px;
}

/* Logo hover effects */
.logo-stetner:hover svg text.logo-main {
  filter: url(#greyTextShadow) drop-shadow(0 2px 4px rgba(243, 156, 18, 0.3));
}

.logo-stetner:hover svg line.logo-underline {
  stroke-width: 3;
  filter: drop-shadow(0 1px 3px rgba(243, 156, 18, 0.4));
}

/* Enhanced Navigation */
.main-navigation .nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item .nav-link {
  display: flex; /* Enable flex for icon and text alignment */
  flex-direction: column; /* Stack icon and text */
  align-items: center; /* Center items horizontally */
  gap: 0.2rem; /* Space between icon and text */
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--secondary-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-item .nav-link .nav-icon {
  font-size: 1.1rem; /* Size of the icon */
  opacity: 0.9; /* Slightly faded icon */
  transition: all var(--transition-normal);
}

.nav-item .nav-link span {
  font-size: 0.75rem; /* Smaller text for menu item */
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.nav-item .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-normal);
  transform: translateX(-50%);
}

.nav-item.active .nav-link,
.nav-item .nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px); /* Lift effect on hover/active */
}

.nav-item.active .nav-link .nav-icon,
.nav-item .nav-link:hover .nav-icon {
  opacity: 1; /* Full opacity on hover/active */
  transform: scale(1.1); /* Slight scale on icon */
}

.nav-item.active .nav-link::after,
.nav-item .nav-link:hover::after {
  width: 70%; /* Line expands on hover/active */
}

/* Header CTA Buttons */
.header-cta-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1.5rem; /* Space between nav and buttons */
}

/* Mobile Menu Toggle */
.navbar-toggler {
  background: transparent;
  border: none;
  padding: 0.5rem;
  position: relative;
  width: 45px;
  height: 45px;
  display: flex;
  margin-left: auto; /* Pushes it to the right inside a flex container */
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform-origin: center;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Offcanvas Mobile Menu */
.offcanvas {
  background: var(--secondary-gradient);
  color: var(--white);
}

.offcanvas-header {
  border-bottom: 1px solid rgba(var(--white-rgb), 0.1);
  padding: 1.5rem;
}

.offcanvas-title {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 600;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.offcanvas-body {
  background: var(--secondary-gradient);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.offcanvas-body nav {
  flex-grow: 1; /* Pushes CTA buttons to bottom */
}

.offcanvas-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.offcanvas-body ul li a {
  border-radius: var(--radius-md);
  margin: 0.5rem 0;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  display: block;
  color: var(--white);
  font-weight: 500;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offcanvas-body ul li a:hover {
  background: var(--primary-gradient);
  transform: translateX(10px);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.offcanvas-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--white-rgb), 0.1);
}

/* ===================================================================
   7. HERO SECTION
   =================================================================== */
.hero-area {
  position: relative;
  height: 600px; /* Fixed height for consistency */
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1e3c72 100%);
  padding-top: 0; /* Handled by body padding-top */
}

.hero-area .carousel,
.hero-area .carousel-inner,
.hero-area .carousel-item {
  height: 100%;
  width: 100%;
}

.hero-area .carousel-item {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  background-attachment: fixed; /* Parallax effect */
  will-change: transform;
}

.hero-area .carousel-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--secondary-rgb), 0.85) 0%,
    rgba(30, 60, 114, 0.75) 30%,
    rgba(var(--primary-rgb), 0.3) 70%,
    rgba(var(--secondary-rgb), 0.6) 100%
  );
  z-index: 1;
}

.hero-area .carousel-caption {
  position: relative;
  z-index: 2;
  text-align: center; /* Centered for all screen sizes */
  width: 100%;
  color: var(--white);
  bottom: auto;
  left: auto;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
}

.hero-content {
  max-width: 800px; /* Constrain content width for readability */
  margin: 0 auto; /* Center the content block */
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(var(--black-rgb), 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(var(--white-rgb), 0.95);
  margin-bottom: 2.5rem;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(var(--black-rgb), 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease 0.2s;
}

.hero-content .buttons {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease 0.4s;
  display: flex; /* Ensure buttons are flex for centering/spacing */
  justify-content: center; /* Center buttons horizontally */
  gap: 1rem; /* Space between buttons */
}

.hero-content .buttons .btn {
  min-width: 160px;
}

/* Hero Carousel Controls */
.hero-area .carousel-control-prev,
.hero-area .carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(var(--primary-rgb), 0.9);
  border-radius: 50%;
  opacity: 0.8;
  transition: all var(--transition-normal);
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
}

.hero-area .carousel-control-prev:hover,
.hero-area .carousel-control-next:hover {
  opacity: 1;
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.hero-area .carousel-control-prev { left: 40px; }
.hero-area .carousel-control-next { right: 40px; }

/* ===================================================================
   8. TRUST SIGNALS SECTION
   =================================================================== */
.trust-signals-section {
  background: linear-gradient(135deg, #f8f9fa 0%, rgba(var(--primary-rgb), 0.05) 100%);
}

.trust-badge {
  text-align: center;
  padding: 1rem 1rem;
  border-radius: var(--radius-lg); /* Using variable for consistency */
  background: rgba(255, 255, 255, 0.95); /* Slightly less transparent to make it "stick out" */
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  height: 100%; /* Ensure consistent height within row */
  border: 1px solid rgba(255, 255, 255, 0.3);

  /* Apply the "hover" effect to the default state */
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg); /* Use the larger shadow */

  /* Ensure consistent size and content alignment */
  width: 100%;
  min-height: 160px; /* Set a minimum height to make them consistent */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
}

.trust-badge:hover {
  /* Subtle change on hover to indicate interactivity, but keep the "stick out" effect */
  background: rgba(255, 255, 255, 1); /* Slightly more opaque */
  transform: translateY(-7px); /* Lift a tiny bit more on hover */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Slightly more pronounced shadow on hover */
}

.trust-badge i {
  font-size: 2.5rem; /* Larger icon size */
  color: var(--secondary-color); /* Blue color for icons */
  margin-bottom: 0.5rem; /* Space below icon */
  transition: all var(--transition-normal);
  filter: drop-shadow(0 2px 4px rgba(var(--secondary-rgb), 0.2)); /* Subtle shadow for icons */
}

.trust-badge:hover i {
  transform: scale(1.05); /* Slight scale on icon hover */
}

/* New styling for the 5 stars */
.trust-badge .rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.1rem; /* Tighter gap for stars */
    margin-bottom: 0.75rem; /* Consistent margin below icons */
    line-height: 1; /* Prevent extra line height */
}

.trust-badge .rating-stars .bi-star-fill {
    font-size: 1.2rem; /* Smaller than main icons, but still prominent */
    color: #ffc107; /* Ensure warning color is applied */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for stars */
}

.trust-badge strong {
  font-size: 1.1rem; /* Adjust font size for bold text */
  color: var(--text-dark); /* Darker text for bold part */
  line-height: 1.3;
  margin-bottom: 0.2rem; /* Space between bold and small text */
  display: block; /* Ensure it takes its own line */
}

.trust-badge p.small {
  font-size: 0.85rem; /* Adjust font size for small text */
  color: var(--text-light); /* Lighter text for small part */
  line-height: 1.3;
  margin-bottom: 0; /* Remove default paragraph margin */
}

/* ===================================================================
   9. ABOUT SECTION
   =================================================================== */
.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.02);
}

.about-content h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}

.about-list {
  margin: 2rem 0;
  padding-left: 0;
  list-style: none;
}

.about-list li {
  margin-bottom: 1rem;
  padding-left: 35px;
  position: relative;
  font-size: 1.05rem;
  color: var(--text-light);
}

.about-list li .bi {
  color: var(--primary-color);
  font-size: 1.2em;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* ===================================================================
   10. SERVICES SECTION
   =================================================================== */
.services-section {
  background: linear-gradient(135deg, var(--light-bg) 0%, rgba(var(--primary-rgb), 0.02) 100%);
}

/* Modern Service Box Design */
.service-box {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 1px 8px rgba(0, 0, 0, 0.05);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(243, 156, 18, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* Top gradient border indicator */
.service-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f39c12, #e67e22, #d35400);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Enhanced hover effects */
.service-box:hover {
  transform: translateY(-15px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.12),
    0 10px 25px rgba(243, 156, 18, 0.1);
}

.service-box:hover::before {
  transform: scaleX(1);
}

/* Service specialty badges */
.service-specialty {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--secondary-color), #1e3c72);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Service Box Icon - Redesigned */
.service-box .icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary-color), #e67e22);
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  position: relative;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
  transition: all 0.3s ease;
  z-index: 2;
}

/* Inner glow effect */
.service-box .icon::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 100%);
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

/* Enhanced shimmer effect */
.service-box .icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -200%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 20%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 55%,
    transparent 80%
  );
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: rotate(30deg);
  pointer-events: none;
  opacity: 0;
}

/* Icon hover animations */
.service-box:hover .icon {
  transform: translateY(-5px) scale(1.1) rotate(5deg);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.15),
    0 6px 15px rgba(0, 0, 0, 0.1),
    0 0 0 4px rgba(var(--primary-rgb), 0.15);
}

.service-box:hover .icon::before {
  left: 200%;
  opacity: 1;
}

.service-box:hover .icon::after {
  opacity: 0.8;
}

/* Service Box Content */
.service-box h4 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  flex-grow: 0;
  position: relative;
  z-index: 2;
  font-weight: 600;
  line-height: 1.3;
  transition: color var(--transition-normal);
}

.service-box:hover h4 {
  color: var(--primary-color);
}

.service-box p {
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1rem;
  flex-grow: 1;
  position: relative;
  z-index: 2;
  transition: color var(--transition-normal);
}

.service-box:hover p {
  color: var(--text-dark);
}

.service-box .btn {
  margin-top: auto;
  align-self: center;
  position: relative;
  z-index: 2;
  transition: all var(--transition-normal);
}

/* Pulse animation for emphasis */
.service-box .icon.pulse {
  animation: iconPulse 2.5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.15),
      0 0 0 8px rgba(var(--primary-rgb), 0.1);
  }
}

/* ===================================================================
   11. COUNTER SECTION - Enhanced
   =================================================================== */
.counter-section {
  padding: 6rem 0;
  background: var(--secondary-gradient);
  position: relative;
  overflow: hidden;
}

/* Enhanced background pattern */
.counter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.02) 50%, transparent 60%);
  background-size: 60px 60px, 40px 40px, 100% 100%;
  animation: backgroundMove 20s linear infinite;
}


/* Floating particles effect */
.counter-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.2), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: float 15s linear infinite;
  pointer-events: none;
}

.counter-box {
  text-align: center;
  color: var(--white);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.counter-box:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.counter-box .icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: all var(--transition-normal);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.counter-box:hover .icon {
  transform: scale(1.15) rotate(5deg);
  filter:
    drop-shadow(0 8px 20px rgba(var(--primary-rgb), 0.4))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.counter-box h3.counter {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-family: var(--font-secondary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-normal);
}

.counter-box:hover h3.counter {
  transform: scale(1.05);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.counter-box p {
  font-size: 1.1rem;
  margin: 0;
  text-transform: uppercase;
  color: rgba(var(--white-rgb), 0.9);
  letter-spacing: 1px;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.counter-box:hover p {
  color: var(--white);
  letter-spacing: 1.5px;
}

/* ===================================================================
   12. PROJECTS SECTION - Enhanced Version
   =================================================================== */

/* Enhanced Project Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
    rgba(var(--primary-rgb), 0.1) 0%,
    transparent 50%,
    rgba(var(--secondary-rgb), 0.1) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: var(--radius-xl);
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.project-card:hover::before {
  opacity: 1;
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: brightness(1) contrast(1.05) saturate(1.1);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.project-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #00356B;
  margin-bottom: 1rem;
  transition: color var(--transition-normal);
}

.project-card:hover .project-title {
  color: var(--primary-color);
}

.project-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  transition: color var(--transition-normal);
}

.project-card:hover .project-description {
  color: var(--text-dark);
}

.project-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.project-client {
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}

.project-year {
  background: #f8f9fa;
  color: #00356B;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===================================================================
   13. TESTIMONIAL SECTION - Enhanced Version
   =================================================================== */
.testimonial-section {
  background:
    radial-gradient(circle at 20% 80%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(var(--secondary-rgb), 0.1) 0%, transparent 50%),
    linear-gradient(135deg, var(--light-bg) 0%, rgba(var(--secondary-rgb), 0.02) 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

/* Animated background pattern */
.testimonial-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 25% 25%, rgba(var(--primary-rgb), 0.05) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(var(--secondary-rgb), 0.05) 1px, transparent 1px);
  background-size: 80px 80px, 60px 60px;
  animation: patternFloat 20s linear infinite;
  pointer-events: none;
}

@keyframes patternFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-80px, -80px); }
}

/* Enhanced testimonial box */
.testimonial-box {
  background: rgba(var(--white-rgb), 0.95);
  padding: 4rem 3rem 3rem;
  border-radius: var(--radius-xl);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-align: center;
  margin: 2rem auto;
  position: relative;
  max-width: 900px;
  transition: all var(--transition-normal);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid var(--primary-color); /* Stronger top border */
}

/* Gradient border effect (optional, can be combined with top border) */
.testimonial-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(var(--primary-rgb), 0.1),
    rgba(var(--secondary-rgb), 0.1),
    rgba(var(--primary-rgb), 0.1)
  );
  border-radius: var(--radius-xl);
  padding: 1px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.testimonial-box:hover {
  transform: translateY(-8px) scale(1.01); /* Slightly less scale */
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.15),
    0 15px 30px rgba(0, 0, 0, 0.1),
    0 0 40px rgba(var(--primary-rgb), 0.1);
}

.testimonial-box:hover::before {
  opacity: 1;
}

/* Enhanced quote icon */
.quote-icon {
  width: 90px;
  height: 90px;
  background: var(--secondary-gradient); /* Changed to secondary gradient */
  color: var(--white);
  font-size: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 5px 15px rgba(var(--secondary-rgb), 0.3); /* Adjusted shadow color */
  transition: all var(--transition-normal);
}

/* Rotating border effect for quote icon */
.quote-icon::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg,
    var(--secondary-color), /* Changed to secondary color */
    var(--primary-color), /* Changed to primary color */
    var(--secondary-color) /* Changed to secondary color */
  );
  background-size: 200% 200%;
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.testimonial-box:hover .quote-icon {
  transform: translateX(-50%) scale(1.1) rotate(5deg);
}

.testimonial-box:hover .quote-icon::before {
  opacity: 1;
}

/* Star rating */
.rating {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.rating .star {
  color: #ffc107; /* Explicit gold color */
  font-size: 1.5rem; /* Larger stars */
  transition: all var(--transition-normal);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Subtle shadow for depth */
}

.testimonial-box:hover .rating .star {
  transform: scale(1.1);
}

/* Enhanced testimonial text */
.testimonial-text {
  margin-bottom: 3rem;
  font-size: 1.3rem;
  color: var(--text-dark);
  line-height: 1.8;
  font-style: italic;
  position: relative;
}

/* Quote marks */
.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 4rem;
  color: rgba(var(--primary-rgb), 0.2);
  position: absolute;
  font-family: serif;
  line-height: 1;
}

.testimonial-text::before {
  top: -20px;
  left: -20px;
}

.testimonial-text::after {
  bottom: -40px;
  right: -20px;
}

/* Enhanced author section */
.author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--border-color-rgb), 0.3);
}

/* New author avatar icon styling */
.author-avatar-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary-color); /* Background for the icon circle */
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem; /* Size of the person icon */
  border: 3px solid var(--primary-color);
  transition: all var(--transition-normal);
}

.testimonial-box:hover .author-avatar-icon {
  transform: scale(1.1);
  border-color: var(--secondary-color);
}

.author-info h5 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
  font-weight: 700;
  transition: color var(--transition-normal);
}

.testimonial-box:hover .author-info h5 {
  color: var(--primary-color);
}

.author-info p {
  color: var(--primary-color);
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
}

.author-info .company {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Enhanced carousel controls */
.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
  background: var(--secondary-gradient); /* Changed to secondary gradient */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  opacity: 0.9;
  transition: all var(--transition-normal);
  top: 50%;
  transform: translateY(-50%);
  border: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(var(--secondary-rgb), 0.3); /* Adjusted shadow color */
}

.testimonial-carousel .carousel-control-prev:hover,
.testimonial-carousel .carousel-control-next:hover {
  opacity: 1;
  background: var(--secondary-gradient-hover); /* Darker gradient on hover */
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 12px 30px rgba(var(--secondary-rgb), 0.4); /* Adjusted shadow color */
}

.testimonial-carousel .carousel-control-prev:focus,
.testimonial-carousel .carousel-control-next:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  filter: none; /* Ensure no filter interferes with default white icon */
}

/* Enhanced indicators */
.testimonial-carousel .carousel-indicators {
  bottom: -60px;
  margin-bottom: 0;
}

.testimonial-carousel .carousel-indicators button {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--border-color), rgba(var(--border-color-rgb), 0.5));
  border-radius: 50%;
  margin: 0 10px;
  border: none;
  opacity: 0.6;
  transition: all var(--transition-normal);
  position: relative;
}

.testimonial-carousel .carousel-indicators button::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid transparent;
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.testimonial-carousel .carousel-indicators button.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 1;
  transform: scale(1.3);
}

.testimonial-carousel .carousel-indicators button:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.testimonial-carousel .carousel-indicators button.active::before {
  border-color: rgba(var(--primary-rgb), 0.3);
}

/* ===================================================================
   14. CONTACT SECTION
   =================================================================== */
.contact-section {
  background: linear-gradient(135deg, var(--light-bg) 0%, rgba(var(--primary-rgb), 0.02) 100%);
}

.contact-info-box {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-bottom: 2rem;
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.contact-info-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.contact-info-box:hover::before {
  transform: scaleX(1);
}

.contact-info-box .icon {
  width: 70px;
  height: 70px;
  background: var(--primary-gradient);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  transition: all var(--transition-normal);
}

.contact-info-box:hover .icon {
  background: var(--secondary-color);
  transform: scale(1.1) rotate(5deg);
}

.contact-info-box h5 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.contact-info-box p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: 1.05rem;
}

.contact-info-box p a {
  color: var(--primary-color);
  transition: color var(--transition-normal);
}

.contact-info-box p a:hover {
  color: var(--secondary-color);
}

/* ===================================================================
   15. SERVICE MODALS - Complete Modal System
   =================================================================== */

/* Modal Base Styles */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  overflow-x: hidden;
}

.service-modal.active {
  visibility: visible;
  opacity: 1;
}

/* Modal Overlay */
.service-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

/* Modal Container */
.service-modal-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--white);
  z-index: 2;
  transform: translateY(50px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-modal.active .service-modal-container {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.service-modal-header {
  position: sticky;
  top: 0;
  background: rgba(var(--white-rgb), 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(var(--border-color-rgb), 0.3);
  z-index: 100;
  display: flex;
  justify-content: between;
  align-items: center;
}

.service-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-normal);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-modal-close:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: rotate(90deg);
}

.service-modal-breadcrumb {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-modal-breadcrumb i {
  font-size: 0.7rem;
  margin: 0 0.5rem;
  color: var(--primary-color);
}

/* Modal Content */
.service-modal-content {
  position: relative;
}

/* Modal Hero Section */
.service-modal-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--secondary-gradient);
}

.service-modal-hero .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.service-modal-hero .hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--secondary-rgb), 0.85) 0%,
    rgba(var(--primary-rgb), 0.3) 70%,
    rgba(var(--secondary-rgb), 0.7) 100%
  );
  z-index: 2;
}

.service-modal-hero .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-modal-hero .hero-content {
  position: relative;
  z-index: 3;
  container: 100%;
  padding: 0 2rem;
  color: var(--white);
  max-width: 1200px;
  margin: 0 auto;
}

.service-modal-hero .service-category {
  display: inline-block;
  background: var(--primary-gradient);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.service-modal-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(var(--black-rgb), 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-modal-hero h1 i {
  font-size: 0.8em;
  color: var(--primary-color);
  filter: drop-shadow(0 2px 8px rgba(var(--black-rgb), 0.3));
}

.service-modal-hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(var(--white-rgb), 0.95);
  line-height: 1.6;
  max-width: 800px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(var(--black-rgb), 0.3);
}

/* Modal Body */
.service-modal-body {
  padding: 5rem 0;
  background: var(--white);
}

/* Service Content Styles */
.service-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--secondary-color);
  margin-bottom: 2rem;
  font-weight: 700;
}

.service-content h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--secondary-color);
  margin: 3rem 0 1.5rem;
  font-weight: 600;
}

.service-content h4 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Service Features */
.service-features {
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(var(--primary-rgb), 0.03);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  background: rgba(var(--primary-rgb), 0.05);
  transform: translateX(10px);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.feature-item div {
  flex: 1;
}

.feature-item h4 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.feature-item p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

/* Service Stats */
.service-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--secondary-gradient);
  border-radius: var(--radius-xl);
  color: var(--white);
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(var(--black-rgb), 0.2);
}

.stat-item p {
  margin: 0;
  font-size: 1rem;
  color: rgba(var(--white-rgb), 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Technology Showcase */
.technology-showcase,
.industrial-sectors,
.coordination-benefits,
.upgrade-benefits {
  margin: 3rem 0;
}

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

.tech-item,
.sector-item,
.benefit-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 2px solid rgba(var(--border-color-rgb), 0.3);
  transition: all var(--transition-normal);
}

.tech-item:hover,
.sector-item:hover,
.benefit-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.tech-item i,
.sector-item i,
.benefit-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.tech-item h4,
.sector-item h4,
.benefit-item h4 {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.tech-item p,
.sector-item p,
.benefit-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Process Steps */
.service-process {
  margin: 3rem 0;
}

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

.process-step {
  position: relative;
  padding: 2rem;
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
  transition: all var(--transition-normal);
}

.process-step:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 2rem;
  width: 30px;
  height: 30px;
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.process-step h4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.process-step p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

/* Service Sidebar */
.service-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.contact-card {
  background: var(--secondary-gradient);
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.contact-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.contact-card p {
  color: rgba(var(--white-rgb), 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Service Gallery */
.service-gallery,
.certifications,
.standards,
.warning-signs,
.security-features,
.emergency-service,
.coordination-features {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border: 1px solid rgba(var(--border-color-rgb), 0.3);
}

.service-gallery h4,
.certifications h4,
.standards h4,
.warning-signs h4,
.security-features h4,
.emergency-service h4,
.coordination-features h4 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

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

.gallery-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Certifications Lists */
.certifications ul,
.standards ul,
.warning-signs ul,
.security-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.certifications li,
.standards li,
.warning-signs li,
.security-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(var(--border-color-rgb), 0.3);
}

.certifications li:last-child,
.standards li:last-child,
.warning-signs li:last-child,
.security-features li:last-child {
  border-bottom: none;
}

.certifications li i,
.standards li i,
.security-features li i {
  color: var(--primary-color);
  font-size: 1rem;
}

.warning-signs li i {
  color: #ffc107;
  font-size: 1rem;
}

/* Emergency Service Features */
.emergency-features {
  margin-top: 1rem;
}

.emergency-features .feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: var(--radius-md);
}

.emergency-features .feature i {
  color: var(--primary-color);
  font-size: 1rem;
}

/* Compliance Grid */
.compliance-section {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(var(--secondary-rgb), 0.03);
  border-radius: var(--radius-lg);
}

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

.compliance-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--secondary-rgb), 0.1);
}

.compliance-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.compliance-item span {
  font-weight: 500;
  color: var(--text-dark);
}

/* Coordination Process */
.coordination-process {
  margin-top: 2rem;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.process-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

.process-number {
  width: 30px;
  height: 30px;
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.process-item span:last-child {
  color: var(--text-dark);
  font-weight: 500;
}

/* Project Types Grid */
.project-types {
  margin: 3rem 0;
}

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

.project-type {
  padding: 2rem;
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.project-type:hover {
  background: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-type i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: block;
}

.project-type h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.project-type p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===================================================================
   16. FOOTER
   =================================================================== */
.footer-area {
  background: var(--secondary-gradient);
  padding: 5rem 0 0;
  color: rgba(var(--white-rgb), 0.8);
  position: relative;
  overflow: hidden;
}

.footer-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='rgba(255,255,255,0.02)' fill-rule='evenodd'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5; /* Make pattern subtle */
}

.footer-widget {
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-widget h4 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  font-weight: 600;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.footer-widget p {
  line-height: 1.8;
  color: rgba(var(--white-rgb), 0.8);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.footer-social li a {
  width: 45px;
  height: 45px;
  background: rgba(var(--white-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.footer-social li a:hover {
  background: var(--primary-gradient);
  color: var(--white);
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
  padding-left: 25px;
  position: relative;
}

.footer-links li::before {
  content: "\F285"; /* Bootstrap icon for arrow right */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: bold;
}

.footer-links li a {
  color: rgba(var(--white-rgb), 0.8);
  transition: all var(--transition-normal);
}

.footer-links li a:hover {
  color: var(--primary-color);
  padding-left: 8px;
}

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  margin-bottom: 1rem;
  padding-left: 35px;
  position: relative;
  line-height: 1.8;
}

.footer-contact li i.bi {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 25px;
  text-align: center;
}

.footer-contact li a {
  color: rgba(var(--white-rgb), 0.8);
  transition: color var(--transition-normal);
}

.footer-contact li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid rgba(var(--white-rgb), 0.1);
  margin-top: 3rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  margin: 0;
  color: rgba(var(--white-rgb), 0.7);
}

.footer-bottom a {
  color: var(--primary-color);
  transition: color var(--transition-normal);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ===================================================================
   17. BACK TO TOP BUTTON
   =================================================================== */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 30px;
  bottom: 30px;
  z-index: 1020;
  background: var(--primary-gradient);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

.back-to-top i.bi {
  font-size: 1.3rem;
  color: var(--white);
  line-height: 0;
}

.back-to-top:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

/* ===================================================================
   18. ANIMATIONS
   =================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.6;
  }
}

@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-15deg); }
  20% { transform: rotate(15deg); }
}

/* Animate-in class for Intersection Observer */
.service-box, .project-card, .about-content, .section-title, .trust-badge, .counter-box, .contact-info-box, .footer-widget {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.service-box.animate-in, .project-card.animate-in, .about-content.animate-in, .section-title.animate-in, .trust-badge.animate-in, .counter-box.animate-in, .contact-info-box.animate-in, .footer-widget.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================================
   19. RESPONSIVE DESIGN
   =================================================================== */
@media (min-width: 1200px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1140px; /* Standard Bootstrap large container */
  }
  .logo-stetner .logo-year { display: block; } /* Show year on large screens */
}

@media (max-width: 1199.98px) {
  :root {
    --section-padding: 80px;
    --header-height: 80px;
  }

  .logo-wrapper {
    max-width: 320px;         /* increased from 240px */
    width: 100%;
}
.logo-stetner svg {
    max-height: 90px;         /* increased from 60px */
    min-height: 70px;         /* increased from 50px */
    width: 140%;
}
  .logo-stetner .logo-main { font-size: 34px; }
  .logo-stetner .logo-sub { font-size: 10px; letter-spacing: 3px; }
  .logo-stetner .logo-underline { x2: 160; }
  .logo-stetner .logo-year { display: none; } /* Hide year on smaller desktops */

  .main-navigation .nav-menu { gap: 0.3rem; }
  .nav-item .nav-link { padding: 0.5rem 0.8rem; font-size: 0.9rem; }
  .nav-item .nav-link .nav-icon { font-size: 1rem; }
  .nav-item .nav-link span { font-size: 0.7rem; }

  .header-cta-buttons { margin-left: 1rem; gap: 0.5rem; }
  .btn { padding: 10px 20px; font-size: 0.85rem; }
  .btn-lg { padding: 14px 30px; font-size: 0.95rem; }

  .hero-area .carousel-control-prev { left: 20px; }
  .hero-area .carousel-control-next { right: 20px; }
  .hero-content { max-width: 550px; }
  .hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
  .hero-content p { font-size: clamp(0.9rem, 1.8vw, 1.2rem); }

  .service-box { padding: 2rem 1.5rem; }
  .project-gallery { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

  /* Modal Responsive Adjustments */
  .service-modal-hero { height: 50vh; min-height: 400px; }
  .service-modal-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
  .service-modal-hero .lead { font-size: clamp(1rem, 1.8vw, 1.2rem); }
  .service-modal-body { padding: 4rem 0; }
  .service-sidebar { position: relative; top: auto; margin-top: 3rem; }
}

@media (max-width: 991.98px) {
  :root {
    --section-padding: 60px;
    --header-height: 75px;
  }
  body { padding-top: var(--header-height); } /* Adjust body padding for smaller header */

  .logo-wrapper { max-width: 200px; }
  .logo-stetner svg { max-height: 60px; min-height: 50px; }
  .logo-stetner .logo-main { font-size: 38px; }
  .logo-stetner .logo-sub { font-size: 14px; letter-spacing: 2px; }


  .hero-area { height: 500px; min-height: 400px; }
  .hero-area .carousel-caption { text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-content h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .hero-content p { font-size: clamp(0.9rem, 4vw, 1.1rem); margin-bottom: 1.5rem; }
  .hero-content .buttons { justify-content: center; }

  .about-content { margin-top: 2rem; text-align: center; }
  .about-content .section-title { text-align: center; }
  .about-list li { text-align: left; } /* Keep list items left-aligned */

  .footer-widget { text-align: center; }
  .footer-widget h4::after { left: 50%; transform: translateX(-50%); }
  .footer-social { justify-content: center; }

  /* Modal Responsive Adjustments */
  .service-modal-hero { height: 45vh; min-height: 350px; }
  .service-modal-header { padding: 1rem 1.5rem; }
  .service-modal-close { top: 1rem; right: 1.5rem; }
  .service-modal-hero .hero-content { padding: 0 1.5rem; }
  .service-modal-body { padding: 3rem 0; }
  .tech-grid, .sector-grid, .benefits-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .service-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  :root {
    --section-padding: 20px;
    --header-height: 45px;
  }
  body { padding-top: var(--header-height); }

  .logo-wrapper { max-width: 2000px; }
  .logo-stetner svg { max-height: 60px; min-height: 50px; }
  .logo-stetner .logo-main { font-size: 38px; }
  .logo-stetner .logo-sub { font-size: 14px; letter-spacing: 1px; }
 
  .logo-stetner .logo-year { display: block; font-size: 13px; }

  .hero-area { height: 400px; min-height: 350px; }
  .hero-content h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); margin-bottom: 0.5rem; }
  .hero-content p { display: none; } /* Hide paragraph on smallest screens for cleaner hero */
  .hero-content .buttons { flex-direction: column; gap: 0.8rem; }
  .hero-content .buttons .btn { width: 90%; max-width: 280px; }
  .hero-area .carousel-control-prev, .hero-area .carousel-control-next { display: none; } /* Hide carousel controls on mobile */

  .trust-signals-section .row > div { margin-bottom: 1.5rem !important; } /* Adjust spacing for badges */

  .service-box { padding: 1.5rem; }
  .service-box .icon { width: 70px; height: 70px; font-size: 1.8rem; margin-bottom: 1rem; }
  .service-box h4 { font-size: 1.5rem; margin-bottom: 0.8rem; }
  .service-box p { font-size: 0.9rem; margin-bottom: 1rem; }
  .service-box .btn { padding: 10px 20px; font-size: 0.8rem; }

  .counter-box { margin-bottom: 2rem; }
  .counter-box .icon { font-size: 2.5rem; }
  .counter-box h3.counter { font-size: 2.8rem; }
  .counter-box p { font-size: 0.95rem; }

  .project-gallery { gap: 1.5rem; }
  .project-image { height: 200px; }
  .project-content { padding: 1rem; }
  .project-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
  .project-description { font-size: 0.85rem; margin-bottom: 1rem; }
  .project-details { font-size: 0.75rem; }

  .testimonial-box { padding: 2.5rem 1.5rem 2rem; }
  .quote-icon { width: 60px; height: 60px; font-size: 1.8rem; top: -30px; }
  .rating .star { font-size: 1.2rem; }
  .testimonial-text { font-size: 1.1rem; margin-bottom: 1.5rem; }
  .testimonial-text::before, .testimonial-text::after { font-size: 3rem; }
  .testimonial-text::before { top: -10px; left: -10px; }
  .testimonial-text::after { bottom: -20px; right: -10px; }
  .author { flex-direction: column; gap: 0.5rem; }
  .author-avatar-icon { width: 50px; height: 50px; font-size: 1.5rem; }
  .author-info h5 { font-size: 1.1rem; }
  .author-info p { font-size: 0.9rem; }
  .author-info .company { font-size: 0.8rem; }
  .testimonial-carousel .carousel-control-prev, .testimonial-carousel .carousel-control-next { display: none; } /* Hide carousel controls on mobile */
  .testimonial-carousel .carousel-indicators { bottom: -40px; }

  .contact-info-box { padding: 1.5rem; }
  .contact-info-box .icon { width: 60px; height: 60px; font-size: 1.4rem; margin-bottom: 1rem; }
  .contact-info-box h5 { font-size: 1.1rem; }
  .contact-info-box p { font-size: 0.95rem; }

  .footer-widget { margin-bottom: 2rem; }
  .footer-bottom { text-align: center; }
  .footer-bottom .col-md-6:last-child { margin-top: 0.5rem; }

  /* Modal Mobile Responsive */
  .service-modal-hero { height: 40vh; min-height: 300px; }
  .service-modal-header { padding: 1rem; }
  .service-modal-close { top: 1rem; right: 1rem; width: 35px; height: 35px; font-size: 1.2rem; }
  .service-modal-hero .hero-content { padding: 0 1rem; }
  .service-modal-hero h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); gap: 0.5rem; flex-direction: column; }
  .service-modal-hero h1 i { font-size: 1.5rem; }
  .service-modal-hero .lead { font-size: clamp(0.9rem, 3vw, 1.1rem); }
  .service-modal-body { padding: 2rem 0; }

  .service-content h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 1.5rem; }
  .service-content h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); margin: 2rem 0 1rem; }
  .service-content p { font-size: 1rem; }

  .feature-item { padding: 1rem; flex-direction: column; text-align: center; }
  .feature-item i { margin-top: 0; margin-bottom: 0.5rem; }

  .service-stats { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.5rem; }
  .stat-item h3 { font-size: 2rem; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 150px; }

  .contact-card { padding: 2rem 1.5rem; }
  .contact-card h3 { font-size: 1.2rem; }
  .contact-card .btn { font-size: 0.9rem; padding: 12px 20px; }
 
}

@media (max-width: 575.98px) {
    .trust-badge { margin-bottom: 1rem; }
    .project-gallery { grid-template-columns: 1fr; }

    /* Modal Extra Small Mobile */
    .service-modal-hero { height: 35vh; min-height: 250px; }
    .service-modal-breadcrumb { font-size: 0.8rem; }
    .service-modal-breadcrumb i { margin: 0 0.3rem; }

    .service-content { padding: 0 1rem; }
    .service-content h2 { font-size: 1.4rem; }
    .service-content h3 { font-size: 1.2rem; }

    .service-stats { padding: 1.5rem 1rem; }
    .process-steps { gap: 1rem; }
    .process-step { padding: 1.5rem 1rem; }

    .service-sidebar { margin-top: 2rem; }
    .contact-card { padding: 1.5rem 1rem; }
    .service-gallery, .certifications, .standards, .warning-signs, .security-features, .emergency-service, .coordination-features { padding: 1.5rem 1rem; }
}

/* ===================================================================
   20. PERFORMANCE & ACCESSIBILITY
   =================================================================== */

/* Optimize images for loading */
img {
  loading: lazy;
  decoding: async;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-area .carousel {
    animation: none !important;
  }

  .service-box,
  .project-card,
  .testimonial-box,
  .carousel-control-prev,
  .carousel-control-next,
  .service-modal-container {
    transition: none;
  }

  .service-box:hover,
  .project-card:hover {
    transform: none;
  }

  .testimonial-box:hover {
    transform: translateY(-2px);
  }

  .quote-icon::before {
    animation: none;
  }

  .service-modal.active .service-modal-container {
    transform: none;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Focus management for accessibility */
.service-box:focus-within,
.project-card:focus-within,
.testimonial-box:focus-within,
.service-modal:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-dark: #000000;
    --text-light: #000000;
    --border-color: #000000;
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================================================================
   21. PRINT STYLES
   =================================================================== */
@media print {
  .header-area,
  .back-to-top,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators,
  .service-modal {
    display: none !important;
  }

  .hero-area {
    height: auto !important;
    min-height: auto !important;
    padding-top: 0 !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    padding-top: 0;
  }

  .section-padding {
    padding: 2rem 0;
  }

  .service-modal-container {
    position: static;
    transform: none;
    box-shadow: none;
  }
}

/* ===================================================================
   22. MODAL LOADING & TRANSITION STATES
   =================================================================== */

/* Modal Loading State */
.service-modal.loading .service-modal-container {
  opacity: 0.5;
}

.service-modal.loading .service-modal-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(var(--primary-rgb), 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1000;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal Entry Animation Variants */
.service-modal.slide-up .service-modal-container {
  transform: translateY(100%);
}

.service-modal.slide-up.active .service-modal-container {
  transform: translateY(0);
}

.service-modal.fade-scale .service-modal-container {
  transform: scale(0.8);
  opacity: 0;
}

.service-modal.fade-scale.active .service-modal-container {
  transform: scale(1);
  opacity: 1;
}

/* ===================================================================
   23. UTILITY CLASSES FOR MODALS
   =================================================================== */

/* Modal Spacing Utilities */
.modal-mt-1 { margin-top: 0.5rem; }
.modal-mt-2 { margin-top: 1rem; }
.modal-mt-3 { margin-top: 1.5rem; }
.modal-mt-4 { margin-top: 2rem; }
.modal-mt-5 { margin-top: 3rem; }

.modal-mb-1 { margin-bottom: 0.5rem; }
.modal-mb-2 { margin-bottom: 1rem; }
.modal-mb-3 { margin-bottom: 1.5rem; }
.modal-mb-4 { margin-bottom: 2rem; }
.modal-mb-5 { margin-bottom: 3rem; }

.modal-p-1 { padding: 0.5rem; }
.modal-p-2 { padding: 1rem; }
.modal-p-3 { padding: 1.5rem; }
.modal-p-4 { padding: 2rem; }
.modal-p-5 { padding: 3rem; }

/* Modal Text Utilities */
.modal-text-center { text-align: center; }
.modal-text-left { text-align: left; }
.modal-text-right { text-align: right; }

.modal-text-primary { color: var(--primary-color); }
.modal-text-secondary { color: var(--secondary-color); }
.modal-text-dark { color: var(--text-dark); }
.modal-text-light { color: var(--text-light); }

/* Modal Background Utilities */
.modal-bg-primary { background: var(--primary-color); color: var(--white); }
.modal-bg-secondary { background: var(--secondary-color); color: var(--white); }
.modal-bg-light { background: var(--light-bg); }
.modal-bg-white { background: var(--white); }

/* Modal Border Utilities */
.modal-border { border: 1px solid var(--border-color); }
.modal-border-primary { border: 2px solid var(--primary-color); }
.modal-border-secondary { border: 2px solid var(--secondary-color); }
.modal-border-rounded { border-radius: var(--radius-md); }
.modal-border-rounded-lg { border-radius: var(--radius-lg); }

/* Modal Shadow Utilities */
.modal-shadow-sm { box-shadow: var(--shadow-sm); }
.modal-shadow-md { box-shadow: var(--shadow-md); }
.modal-shadow-lg { box-shadow: var(--shadow-lg); }
.modal-shadow-xl { box-shadow: var(--shadow-xl); }

/* ===================================================================
   24. MODAL INTERACTION ENHANCEMENTS
   =================================================================== */

/* Smooth scroll within modals */
.service-modal-container {
  scroll-behavior: smooth;
}

/* Enhanced focus trap */
.service-modal.active {
  isolation: isolate;
}

/* Improved scrollbar styling for modal content */
.service-modal-container::-webkit-scrollbar {
  width: 8px;
}

.service-modal-container::-webkit-scrollbar-track {
  background: rgba(var(--border-color-rgb), 0.1);
}

.service-modal-container::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-rgb), 0.3);
  border-radius: 4px;
}

.service-modal-container::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--primary-rgb), 0.5);
}

/* Firefox scrollbar styling */
.service-modal-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-rgb), 0.3) rgba(var(--border-color-rgb), 0.1);
}

/* ===================================================================
   25. FINAL POLISHING & BROWSER COMPATIBILITY
   =================================================================== */

/* Safari specific fixes */
@supports (-webkit-appearance: none) {
  .service-modal-container {
    -webkit-overflow-scrolling: touch;
  }

  .service-box,
  .project-card,
  .testimonial-box {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Edge/IE compatibility */
@supports not (backdrop-filter: blur(10px)) {
  .service-modal-overlay {
    background: rgba(0, 0, 0, 0.9);
  }

  .service-modal-header {
    background: var(--white);
  }

  .trust-badge,
  .counter-box {
    background: rgba(255, 255, 255, 0.9);
  }
}

/* Firefox specific optimizations */
@-moz-document url-prefix() {
  .service-box .icon,
  .contact-info-box .icon {
    background-attachment: scroll;
  }
}

/* Chrome/Webkit specific optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .service-modal-container {
    will-change: transform;
  }

  .hero-area .carousel-item {
    background-attachment: scroll; /* Fallback for mobile webkit */
  }
}

/* Force hardware acceleration for smooth animations */
.service-box,
.project-card,
.testimonial-box,
.service-modal-container,
.hero-content {
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Prevent text selection during animations */
.service-modal.active * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.service-modal.active input,
.service-modal.active textarea,
.service-modal.active [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* End of CSS File */
/* ===================================================================
   MOBILE FIXES - Add these styles to your existing CSS
   =================================================================== */

/* Fix modal close button z-index and touch issues */
.service-modal-close {
  z-index: 1000 !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: fixed !important; /* Force fixed positioning on mobile */
}

/* Improve modal overlay touch handling */
.service-modal-overlay {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

/* Fix modal container positioning on mobile */
@media (max-width: 767.98px) {
  .service-modal-container {
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .service-modal-header {
    position: sticky;
    top: 0;
    z-index: 999;
  }
  
  .service-modal-close {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 1001 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    backdrop-filter: blur(10px);
  }
}

/* Mobile logo size fixes */
@media (max-width: 767.98px) {
  :root {
    --header-height: 70px; /* Increase header height */
  }
  
  .logo-wrapper { 
    max-width: 350px !important; /* Bigger logo */
  }
  
  .logo-stetner svg { 
    max-height: 90px !important; 
    min-height: 90px !important; 
  }
  
  .logo-stetner .logo-main { 
    font-size: 45px !important; /* Bigger main text */
  }
  
  .logo-stetner .logo-sub { 
    font-size: 12px !important; 
    letter-spacing: 2px !important; 
  }
  
  /* Reduce header padding */
  .main-header {
    padding: 0.5rem 0 !important; /* Less padding */
  }
  
  /* Adjust body padding for new header height */
  body {
    padding-top: 70px !important;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 575.98px) {
  .logo-wrapper { 
    max-width: 300px !important; /* Even bigger on smallest screens */
  }
  
  .logo-stetner svg { 
    max-height: 70px !important; 
    min-height: 60px !important; 
  }
  
  .logo-stetner .logo-main { 
    font-size: 45px !important; 
  }
}

/* Fix modal body scroll lock on mobile */
body.modal-open {
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  touch-action: none !important;
}

/* Ensure modal is above everything */
.service-modal {
  z-index: 9999 !important;
}

.service-modal.active {
  z-index: 9999 !important;
}

