/* XCEL Website - Premium Black & Green Theme */

:root {
  --primary-black: #000000;
  --dark-gray: #1a1a1a;
  --medium-gray: #333333;
  --light-gray: #f5f5f5;
  --accent-green: #00A651;
  --green-hover: #008a43;
  --green-light: #e6f5ed;
  --accent-gold: #d4af37;
  --white: #2a2a2a;
  --bg-grey: #2a2a2a;
  --bg-grey-light: #333333;
  --bg-grey-dark: #1f1f1f;
  --green-tint-light: rgba(0, 166, 81, 0.05);
  --green-tint-medium: rgba(0, 166, 81, 0.1);
  --green-tint-strong: rgba(0, 166, 81, 0.15);
  --gold-tint-light: rgba(212, 175, 55, 0.08);
  --gold-tint-medium: rgba(212, 175, 55, 0.14);
  --text-dark: #2c2c2c;
  --text-light: #666666;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-strong: rgba(0, 0, 0, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-grey);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: var(--accent-green);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--green-hover);
}

/* Header & Navigation */
header {
  background-color: var(--primary-black);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow-strong);
  height: 120px;
  display: flex;
  align-items: center;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 120px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100px;
  flex-shrink: 0;
}

.logo img {
  height: 100px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  filter: brightness(0.95) contrast(1.2);
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-menu a {
  color: #ffffff;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 0;
  position: relative;
  transition: color 0.3s ease;
  display: inline-block;
  line-height: 1.2;
}

.nav-menu a:hover {
  color: var(--accent-green);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-green);
  transition: width 0.3s ease;
}

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

.nav-menu a.active {
  color: var(--accent-green);
}

.nav-menu a.active::after {
  width: 100%;
}

/* Navigation Social Icons */
.nav-phone {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-phone a {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.nav-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  border-radius: 50%;
  position: relative;
}

.nav-social-link::after {
  display: none;
}

.nav-social-link:hover {
  color: #ffffff;
  background: rgba(0, 166, 81, 0.2);
  transform: translateY(-2px);
}

.nav-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: all 0.3s ease;
}

.nav-social-link:hover svg {
  fill: var(--accent-green);
  filter: drop-shadow(0 2px 4px rgba(0, 166, 81, 0.4));
}

/* Mobile drawer contact info (hidden on desktop) */
.nav-contact-info {
  display: none;
}

.nav-contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0.75rem 0;
}

.nav-contact-title {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.nav-contact-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  position: static;
}

.nav-contact-badge::after {
  display: none;
}

.nav-contact-badge img {
  display: block;
  height: 90px;
  width: auto;
  max-width: 45vw;
}

.nav-contact-badge:hover {
  opacity: 0.9;
}

.nav-contact-list {
  margin: 0;
}

.nav-contact-list dt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}

.nav-contact-list dd {
  margin: 0.25rem 0 0 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

.nav-contact-list a {
  color: rgba(255, 255, 255, 0.92);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  display: inline;
  padding: 0;
  position: static;
}

.nav-contact-list a::after {
  display: none;
}

.nav-contact-list a:hover {
  color: var(--accent-green);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  color: var(--white);
  padding: 8rem 2rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

/* Hero Carousel */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Home hero glow blobs (decorative) */
body[data-page="home"] .hero .home-glows {
  position: absolute;
  inset: 0;
  z-index: 1; /* between photos (0) and overlay/content */
  pointer-events: none;
  opacity: 0.9;
}

body[data-page="home"] .hero .home-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(48px);
  transform: translateZ(0);
  will-change: transform;
  opacity: 0.85;
}

body[data-page="home"] .hero .home-glow.glow-green {
  background: radial-gradient(circle at 30% 30%, rgba(0, 166, 81, 0.55) 0%, rgba(0, 166, 81, 0) 70%);
}

body[data-page="home"] .hero .home-glow.glow-gold {
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.55) 0%, rgba(212, 175, 55, 0) 70%);
}

/* "Random-ish" placements */
body[data-page="home"] .hero .home-glow.glow-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -140px;
  opacity: 0.65;
}

body[data-page="home"] .hero .home-glow.glow-2 {
  width: 460px;
  height: 460px;
  top: 10%;
  right: -160px;
  opacity: 0.55;
}

body[data-page="home"] .hero .home-glow.glow-3 {
  width: 640px;
  height: 640px;
  bottom: -240px;
  left: 10%;
  opacity: 0.55;
}

body[data-page="home"] .hero .home-glow.glow-4 {
  width: 560px;
  height: 560px;
  bottom: -220px;
  right: 6%;
  opacity: 0.45;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--primary-black);
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(26, 26, 26, 0.3) 100%);
  z-index: 2;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
}

.hero-tagline {
  color: var(--accent-green);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: opacity 0.5s ease-in-out;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  transition: opacity 0.5s ease-in-out;
}

.hero-title-white {
  color: #ffffff;
}

.hero-title-green {
  color: var(--accent-green);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  line-height: 1.6;
  font-weight: 400;
  margin-left: auto;
  margin-right: auto;
  display: inline-block;
  padding: 0.85rem 1.1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.5s ease-in-out;
}

/* Desktop: increase hero subhead (the paragraph under the hero title) */
@media (min-width: 992px) {
  .hero-tagline {
    font-size: 1.1rem;
    color: #ffffff;
    background: var(--accent-green);
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    letter-spacing: 0.06em;
    text-shadow: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }

  .hero p {
    font-size: 1.35rem;
    max-width: 720px;
  }
}

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

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 4;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.hero-indicator.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  width: 32px;
  border-radius: 6px;
}

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

.section {
  padding: 3rem 0;
}

/* More compact sections for facilities page */
.facilities-section {
  padding: 2rem 0;
}

/* Reduce spacing in equipment sections - more compact layout */
.hero ~ .section {
  padding: 1.75rem 0;
}

.hero ~ .section .section-title {
  margin-bottom: 1.25rem;
}

.hero ~ .section .equipment-grid {
  margin-top: 1.25rem;
}

/* Reduce top padding for services section immediately after hero */
.hero + .section {
  padding-top: 5rem;
  background: var(--bg-grey);
  background-image: none;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title h2 {
  color: #ffffff;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

/* Collapsible Sections */
.collapsible-header {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 3rem;
}

.collapsible-header h2 {
  margin: 0;
}

.collapse-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--accent-green);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  z-index: 10;
}

.collapse-toggle:hover {
  background: rgba(0, 166, 81, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.collapse-toggle:focus {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.collapse-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  color: var(--accent-green);
  font-size: 1rem;
  line-height: 1;
}

.collapsible-header.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.collapsible-content {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
  max-height: 5000px;
  opacity: 1;
  margin-top: 1.25rem;
}

.collapsible-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Services Section */
.services-section {
  background: var(--bg-grey);
  padding: 5rem 0;
}

.services-section .section-title {
  margin-bottom: 4rem;
}

/* Asymmetric Services Grid */
.services-grid-asymmetric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-grey-light);
  border: 2px solid var(--medium-gray);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.1) 0%, rgba(0, 166, 81, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 166, 81, 0.3), 0 0 0 1px var(--accent-green) inset;
  border-color: var(--accent-green);
}

/* Combined Card Container */
.service-card-combined {
  background: var(--bg-grey-light);
  border: 2px solid var(--accent-green);
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 600px;
}

.service-card-combined:hover {
  box-shadow: 0 12px 40px rgba(0, 166, 81, 0.3), 0 0 0 1px var(--accent-green) inset;
  transform: translateY(-4px);
}

/* Service Divider */
.service-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--accent-green) 20%, 
    var(--accent-green) 80%, 
    transparent 100%
  );
  margin: 0;
  position: relative;
  flex-shrink: 0;
}

.service-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 166, 81, 0.6);
}

/* Featured Cards inside combined container */
.service-card-combined .service-card {
  background: transparent;
  border: none;
  padding: 3rem 4rem;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.service-card-combined .service-card:first-child {
  padding-bottom: 2rem;
}

.service-card-combined .service-card:last-child {
  padding-top: 2rem;
}

.service-card-combined .service-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.service-card-combined .service-card::before {
  display: none;
}

.service-card-combined .service-card .service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
}

.service-card-combined .service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card-combined .service-card p {
  font-size: 1rem;
  line-height: 1.7;
}

.service-card-combined .service-card .service-accent {
  display: none;
}

/* Standard Cards - No longer needed as all are combined */

/* Service Icon */
.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  color: var(--accent-green);
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 166, 81, 0.3));
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
  color: #ffffff;
}

.service-card:hover .service-icon svg {
  filter: drop-shadow(0 4px 16px rgba(0, 166, 81, 0.6));
}

.service-card-featured .service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
}

/* Service Content */
.service-card h3 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.service-card-featured h3 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
}

.service-card:hover h3 {
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(0, 166, 81, 0.5);
}

.service-card p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
  font-size: 1.05rem;
}

.service-card-featured p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.95);
}

/* Service Accent Line */
.service-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-green), rgba(0, 166, 81, 0.5));
  transition: width 0.4s ease;
  z-index: 1;
}

.service-card:hover .service-accent {
  width: 100%;
}

/* Blog Preview Section */
.blog-preview {
  background: var(--bg-grey-light);
  padding: 5rem 0 8rem 0;
}

.blog-preview .section-title h2 {
  color: #ffffff;
}

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

.blog-card {
  background: var(--bg-grey);
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-medium);
  border-color: var(--accent-green);
}

.blog-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  color: var(--accent-green);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.blog-card-title {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  flex-grow: 1;
  line-height: 1.7;
}

.blog-card-link {
  color: var(--accent-green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.blog-card-link:hover {
  gap: 1rem;
}

.blog-card-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.blog-card-link:hover::after {
  transform: translateX(5px);
}

/* Company Info Section */
.company-info {
  background: var(--bg-grey);
  position: relative;
  overflow: hidden;
}

.company-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.company-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 5rem;
  position: relative;
  z-index: 1;
}

.company-info .section-title {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
}

.company-info .section-title::after {
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  width: 120px;
  height: 4px;
}

.company-info .section-title h2 {
  color: #ffffff;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 10px rgba(0, 166, 81, 0.3);
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.title-icon {
  color: var(--accent-green);
  font-size: 1.5rem;
  opacity: 0.6;
  animation: pulse 2s ease-in-out infinite;
}

.title-icon:nth-child(3) {
  animation-delay: 0.5s;
}

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

.company-text {
  font-size: 1.15rem;
  line-height: 2;
  color: #ffffff;
}

.company-text.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.company-text.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.company-text .text-block {
  margin-bottom: 1.5rem;
}

.company-text .text-block.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.company-text .text-block.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.company-text .text-block.scroll-animate:nth-child(1) {
  transition-delay: 0.2s;
}

.company-text .text-block.scroll-animate:nth-child(2) {
  transition-delay: 0.4s;
}

.company-text .text-block.scroll-animate:nth-child(3) {
  transition-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.company-text p {
  color: #ffffff;
  margin-bottom: 0;
  font-weight: 400;
}

.company-text .highlight-text {
  color: var(--accent-green);
  font-weight: 600;
  font-size: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
}

.company-text .highlight-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background: var(--accent-green);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 166, 81, 0.5);
}

.text-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-tint-medium), transparent);
  margin: 2rem 0;
}

.text-separator.scroll-animate {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.text-separator.scroll-animate.animate-in {
  opacity: 1;
}

.text-separator.scroll-animate:nth-child(2) {
  transition-delay: 0.3s;
}

.text-separator.scroll-animate:nth-child(4) {
  transition-delay: 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.quote-wrapper {
  position: relative;
}

.quote-wrapper.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.quote-wrapper.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Welcome Section Social Links */
.welcome-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 166, 81, 0.12) inset;
  margin: 0 0 1.5rem 0;
  background: rgba(255, 255, 255, 0.02);
}

.welcome-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.welcome-social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  margin-top: -2rem;
  align-items: center;
}

.welcome-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.welcome-social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-green) 0%, rgba(0, 166, 81, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 50%;
}

.welcome-social-links a:hover::before {
  opacity: 1;
}

.welcome-social-links a:hover {
  color: #ffffff;
  border-color: var(--accent-green);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 
    0 8px 20px rgba(0, 166, 81, 0.4),
    0 4px 12px rgba(0, 166, 81, 0.3);
}

.welcome-social-links a svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.welcome-social-links a:hover svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transform: scale(1.1);
}

.quote {
  background: linear-gradient(135deg, var(--accent-green) 0%, #0d7a3d 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.3rem;
  color: #ffffff;
  position: relative;
  box-shadow: 
    0 10px 40px rgba(0, 166, 81, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.quote::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.quote:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 166, 81, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.quote:hover::before {
  opacity: 1;
}

.quote-icon {
  font-size: 4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: Georgia, serif;
  font-weight: bold;
}

.quote-text {
  position: relative;
  z-index: 1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.quote-author {
  margin-top: 1.5rem;
  text-align: right;
  font-style: normal;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Home CTA Section */
.home-cta {
  background: var(--bg-grey-dark);
  position: relative;
  overflow: hidden;
}

.home-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 166, 81, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
}

.home-cta .container {
  position: relative;
  z-index: 1;
}

.cta-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.cta-text h2 {
  color: #ffffff;
  font-size: 2.25rem;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.02em;
}

.cta-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.8;
}

.cta-buttons {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-cta .quote {
  margin: 0;
}

@media (max-width: 768px) {
  .cta-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cta-text h2 {
    font-size: 1.9rem;
  }

  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* Industries Section */
.industries {
  background: var(--bg-grey-light);
  position: relative;
  overflow: hidden;
}

.industries::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.industries .section-title h2 {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.industry-item {
  background: var(--bg-grey);
  border: none;
  padding: 0;
  text-align: center;
  border-radius: 16px;
  /* Layered shadows for depth */
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Gradient border using pseudo-element */
  isolation: isolate;
}

/* Gradient border effect */
.industry-item::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    var(--medium-gray) 0%,
    var(--medium-gray) 50%,
    var(--medium-gray) 100%
  );
  border-radius: 16px;
  z-index: -1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.industry-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 166, 81, 0.15) 0%,
    rgba(0, 166, 81, 0.08) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.industry-item:hover::before {
  opacity: 1;
}

.industry-item:hover::after {
  background: linear-gradient(
    135deg,
    var(--accent-green) 0%,
    rgba(0, 166, 81, 0.8) 50%,
    var(--accent-green) 100%
  );
  opacity: 1;
  box-shadow: 
    0 0 20px rgba(0, 166, 81, 0.4),
    0 0 40px rgba(0, 166, 81, 0.2);
}

.industry-item:hover {
  transform: translateY(-10px) scale(1.03);
  /* Enhanced layered shadows on hover */
  box-shadow: 
    0 20px 60px rgba(0, 166, 81, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 166, 81, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.industry-item:active {
  transform: translateY(-6px) scale(1.015);
}

.industry-icon {
  width: 88px;
  height: 88px;
  margin: 2rem auto 1rem;
  color: var(--accent-green);
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle icon background with refined gradient */
.industry-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: 
    radial-gradient(circle at 30% 30%, rgba(0, 166, 81, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0, 166, 81, 0.05) 0%, transparent 50%),
    rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  z-index: -1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.4;
  border: 1px solid rgba(0, 166, 81, 0.1);
}

.industry-icon svg {
  width: 64px;
  height: 64px;
  position: relative;
  z-index: 1;
  /* Refined, subtle shadow */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  stroke-width: 1.5;
}

.industry-item:hover .industry-icon {
  transform: scale(1.08);
  color: #ffffff;
}

.industry-item:hover .industry-icon::before {
  background: 
    radial-gradient(circle at 30% 30%, rgba(0, 166, 81, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0, 166, 81, 0.15) 0%, transparent 50%),
    rgba(0, 166, 81, 0.1);
  opacity: 0.8;
  border-color: rgba(0, 166, 81, 0.3);
  box-shadow: 
    0 0 0 1px rgba(0, 166, 81, 0.2),
    inset 0 0 20px rgba(0, 166, 81, 0.1);
}

.industry-item:hover .industry-icon svg {
  filter: drop-shadow(0 4px 12px rgba(0, 166, 81, 0.4));
  stroke-width: 2;
}

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

.industry-content h4 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  transition: color 0.4s ease;
}

.industry-item:hover .industry-content h4 {
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(0, 166, 81, 0.5);
}

.industry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 166, 81, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0.6;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.industry-item:hover .industry-overlay {
  opacity: 0.8;
}

/* Industry-specific background gradients with depth */
.industry-item[data-industry="aerospace"] {
  background: 
    radial-gradient(circle at 20% 30%, rgba(15, 52, 96, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(22, 33, 62, 0.3) 0%, transparent 50%),
    linear-gradient(
      135deg,
      #1a1a2e 0%,
      #16213e 30%,
      #0f3460 60%,
      #16213e 100%
    );
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

.industry-item[data-industry="automotive"] {
  background: 
    radial-gradient(circle at 30% 40%, rgba(99, 110, 114, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(45, 52, 54, 0.4) 0%, transparent 50%),
    linear-gradient(
      135deg,
      #2d3436 0%,
      #636e72 30%,
      #2d3436 60%,
      #636e72 100%
    );
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

.industry-item[data-industry="medical"] {
  background: 
    radial-gradient(circle at 25% 35%, rgba(42, 82, 152, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 75% 65%, rgba(30, 60, 114, 0.3) 0%, transparent 50%),
    linear-gradient(
      135deg,
      #1e3c72 0%,
      #2a5298 30%,
      #1e3c72 60%,
      #2a5298 100%
    );
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

.industry-item[data-industry="electronics"] {
  background: 
    radial-gradient(circle at 35% 30%, rgba(52, 73, 94, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 65% 70%, rgba(44, 62, 80, 0.4) 0%, transparent 50%),
    linear-gradient(
      135deg,
      #2c3e50 0%,
      #34495e 30%,
      #2c3e50 60%,
      #34495e 100%
    );
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

.industry-item[data-industry="defense"] {
  background: 
    radial-gradient(circle at 20% 40%, rgba(45, 45, 45, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(26, 26, 26, 0.3) 0%, transparent 50%),
    linear-gradient(
      135deg,
      #1a1a1a 0%,
      #2d2d2d 30%,
      #1a1a1a 60%,
      #2d2d2d 100%
    );
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

.industry-item[data-industry="industrial"] {
  background: 
    radial-gradient(circle at 30% 35%, rgba(74, 74, 74, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 65%, rgba(61, 61, 61, 0.4) 0%, transparent 50%),
    linear-gradient(
      135deg,
      #3d3d3d 0%,
      #4a4a4a 30%,
      #3d3d3d 60%,
      #4a4a4a 100%
    );
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

/* Scroll animation for industry items */
.industry-item.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.industry-item.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.industry-item.scroll-animate:nth-child(1) {
  transition-delay: 0.1s;
}

.industry-item.scroll-animate:nth-child(2) {
  transition-delay: 0.2s;
}

.industry-item.scroll-animate:nth-child(3) {
  transition-delay: 0.3s;
}

.industry-item.scroll-animate:nth-child(4) {
  transition-delay: 0.4s;
}

.industry-item.scroll-animate:nth-child(5) {
  transition-delay: 0.5s;
}

.industry-item.scroll-animate:nth-child(6) {
  transition-delay: 0.6s;
}

/* Footer */
footer {
  background: var(--primary-black);
  color: #ffffff;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--accent-green);
}

/* Compact Quick Links */
.footer-section h4 {
  margin-bottom: 0.75rem;
}

.footer-section p {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.footer-iso {
  margin: 0.75rem 0 0.25rem;
}

.footer-iso img {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
}

/* Quick Links - Horizontal Layout */
.footer-content > .footer-section:nth-child(2) > p {
  display: inline-block;
  margin-right: 1.5rem;
  margin-bottom: 0;
  vertical-align: top;
}

.footer-content > .footer-section:nth-child(2) > p:last-child {
  margin-right: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: var(--medium-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #ffffff;
}

.social-links a:hover {
  background: var(--accent-green);
  transform: translateY(-3px);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.4);
}

.social-links a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}


.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--medium-gray);
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-bottom p {
  color: #ffffff;
}

/* Equipment Grid and Cards */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.equipment-card {
  background: var(--bg-grey-light);
  border: 2px solid var(--medium-gray);
  border-radius: 10px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.equipment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 166, 81, 0.05) 0%,
    rgba(0, 166, 81, 0.02) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.equipment-card:hover::before {
  opacity: 0.6;
}

.equipment-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    var(--medium-gray) 0%,
    var(--medium-gray) 100%
  );
  border-radius: 12px;
  z-index: -1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.equipment-card:hover::after {
  background: linear-gradient(
    135deg,
    var(--accent-green) 0%,
    rgba(0, 166, 81, 0.8) 50%,
    var(--accent-green) 100%
  );
  box-shadow: 
    0 0 20px rgba(0, 166, 81, 0.4),
    0 0 40px rgba(0, 166, 81, 0.2);
}

.equipment-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-green);
  background: var(--bg-grey-light);
  box-shadow: 
    0 20px 60px rgba(0, 166, 81, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 166, 81, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.equipment-card-content {
  padding: 1.25rem 1.5rem;
  position: relative;
  z-index: 2;
  background: transparent;
}

.equipment-card-content h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.4s ease, text-shadow 0.4s ease, filter 0.4s ease;
}

.equipment-card:hover .equipment-card-content h3 {
  color: #ffffff;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.9);
  font-weight: 700;
}

.equipment-card-content .equipment-specs {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.equipment-card:hover .equipment-card-content .equipment-specs {
  color: #ffffff;
  text-shadow: 
    0 1px 4px rgba(0, 0, 0, 0.8),
    0 1px 2px rgba(0, 0, 0, 0.9);
  font-weight: 500;
}

.equipment-card-content .equipment-year {
  display: inline-block;
  background: rgba(0, 166, 81, 0.2);
  color: var(--accent-green);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  border: 1px solid rgba(0, 166, 81, 0.3);
  transition: all 0.4s ease;
  position: relative;
  z-index: 3;
}

.equipment-card:hover .equipment-card-content .equipment-year {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border-color: var(--accent-green);
  box-shadow: 
    0 0 10px rgba(0, 166, 81, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Legacy table styles - kept for backwards compatibility */
.table-container {
  overflow-x: auto;
  margin-top: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.equipment-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-grey);
  border: 1px solid var(--medium-gray);
}

.equipment-table thead {
  background: linear-gradient(135deg, var(--accent-green) 0%, #0d7a3d 100%);
}

.equipment-table th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.equipment-table tbody tr {
  border-bottom: 1px solid var(--medium-gray);
  transition: background-color 0.3s ease;
}

.equipment-table tbody tr:last-child {
  border-bottom: none;
}

.equipment-table tbody tr:hover {
  background-color: var(--green-tint-light);
}

.equipment-table td {
  padding: 0.875rem 1.25rem;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent-green);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.4);
}

.btn-outline {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--accent-green);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-grid-asymmetric {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .service-card-combined {
    min-height: auto;
  }

  .service-card-combined .service-card {
    padding: 2.5rem 3rem;
  }

  .service-card-combined .service-card:first-child {
    padding-bottom: 1.5rem;
  }

  .service-card-combined .service-card:last-child {
    padding-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    height: 85px;
    padding: 0;
  }

  nav {
    height: 85px;
  }

  .logo {
    height: 70px;
  }

  .logo img {
    height: 70px;
    max-width: 200px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 85px;
    left: -100%;
    width: 100%;
    background: var(--primary-black);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-strong);
    min-height: auto;
    align-items: stretch;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.active {
    left: 0;
  }

  /* Big button navigation tiles (only the main page links) */
  .nav-menu > li > a[data-page] {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    line-height: 1.1;
  }

  .nav-menu > li > a[data-page]::after {
    display: none; /* disable underline animation on tile buttons */
  }

  .nav-menu > li > a[data-page]:hover {
    background: rgba(0, 166, 81, 0.14);
    border-color: rgba(0, 166, 81, 0.5);
    color: #ffffff;
  }

  .nav-menu > li > a[data-page].active {
    background: rgba(0, 166, 81, 0.22);
    border-color: rgba(0, 166, 81, 0.75);
    color: #ffffff;
  }

  .nav-phone {
    display: none; /* phone is included in the "Get in Touch" block on mobile */
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    width: 100%;
  }

  .nav-contact-info {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    grid-column: 1 / -1;
  }

  .nav-social {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    grid-column: 1 / -1;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding-top: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
    min-height: 500px;
    margin-top: 0;
  }

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

  .hero-title-white,
  .hero-title-green {
    display: block;
  }

  .hero-content {
    padding: calc(85px + 0.5rem) 1rem 0 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

  .hero-indicators {
    bottom: 1.5rem;
  }

  .hero-indicator {
    width: 10px;
    height: 10px;
  }

  .hero-indicator.active {
    width: 24px;
  }

  .hero-slide {
    background-size: 95% auto;
  }

  body[data-page="home"] .hero .home-glow {
    filter: blur(40px);
  }

  body[data-page="home"] .hero .home-glow.glow-1 {
    width: 420px;
    height: 420px;
    top: -160px;
    left: -180px;
  }

  body[data-page="home"] .hero .home-glow.glow-2 {
    width: 380px;
    height: 380px;
    right: -180px;
    top: 12%;
  }

  body[data-page="home"] .hero .home-glow.glow-3 {
    width: 460px;
    height: 460px;
    bottom: -240px;
    left: -40px;
  }

  body[data-page="home"] .hero .home-glow.glow-4 {
    width: 420px;
    height: 420px;
    bottom: -240px;
    right: -60px;
  }

  .section {
    padding: 3rem 0;
  }

  .company-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .welcome-social-links {
    margin-bottom: 1rem;
    margin-top: 0;
  }

  .welcome-image {
    margin-bottom: 1.25rem;
  }

  .welcome-social-links a {
    width: 44px;
    height: 44px;
  }

  .welcome-social-links a svg {
    width: 28px;
    height: 28px;
  }

  .company-info .section-title h2 {
    font-size: 2rem;
  }

  .title-decoration {
    gap: 1rem;
  }

  .title-icon {
    font-size: 1.2rem;
  }

  .company-text {
    font-size: 1rem;
    line-height: 1.8;
  }

  .company-text .highlight-text {
    font-size: 1.1rem;
    padding-left: 1rem;
  }

  .quote {
    padding: 2rem 1.5rem;
    font-size: 1.1rem;
    margin: 1rem 0;
  }

  .quote-icon {
    font-size: 3rem;
    top: 0.5rem;
    left: 1rem;
  }

  .quote-text {
    font-size: 1.1rem;
  }

  .quote-author {
    font-size: 0.95rem;
  }

  .text-separator {
    margin: 1.5rem 0;
  }

  .services-grid-asymmetric {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem;
  }

  .service-card-combined {
    min-height: auto;
  }

  .service-card-combined .service-card {
    padding: 2rem;
  }

  .service-card-combined .service-card:first-child {
    padding-bottom: 1.5rem;
  }

  .service-card-combined .service-card:last-child {
    padding-top: 1.5rem;
  }

  .service-card-combined .service-card h3 {
    font-size: 1.5rem;
  }

  .service-card-combined .service-card .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
  }

  .service-card {
    padding: 2rem;
    min-height: auto;
  }

  .service-card h3 {
    font-size: 1.5rem;
  }

  .service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
  }

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

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

  .industry-item {
    min-height: 160px;
    border-radius: 12px;
  }

  .industry-item::after {
    border-radius: 12px;
  }

  .industry-item:hover {
    transform: translateY(-6px) scale(1.015);
  }

  .industry-icon {
    width: 60px;
    height: 60px;
    margin: 1.25rem auto 0.75rem;
  }

  .industry-icon::before {
    width: 62px;
    height: 62px;
  }

  .industry-icon svg {
    width: 48px;
    height: 48px;
  }

  .industry-item:hover .industry-icon {
    transform: scale(1.05);
  }

  .industry-content {
    padding: 0 0.75rem 1rem;
  }

  .industry-content h4 {
    font-size: 1.1rem;
  }

  .equipment-table th,
  .equipment-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .equipment-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }

  .equipment-card-content {
    padding: 1.25rem 1.25rem;
  }

  .equipment-card-content h3 {
    font-size: 1rem;
  }

  .equipment-card-content .equipment-specs {
    font-size: 0.85rem;
  }

  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card-combined .service-card {
    padding: 1.5rem;
  }

  .service-card-combined .service-card:first-child {
    padding-bottom: 1.25rem;
  }

  .service-card-combined .service-card:last-child {
    padding-top: 1.25rem;
  }

  .service-card h3 {
    font-size: 1.25rem;
  }

  .service-card-combined .service-card h3 {
    font-size: 1.25rem;
  }

  .service-icon {
    width: 48px;
    height: 48px;
  }

  .service-card-combined .service-card .service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0.75rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }

  .blog-card-content {
    padding: 1.5rem;
  }

  .company-info .section-title h2 {
    font-size: 1.75rem;
  }

  .title-icon {
    font-size: 1rem;
  }

  .company-text {
    font-size: 0.95rem;
  }

  .company-text .highlight-text {
    font-size: 1rem;
  }

  .quote {
    padding: 1.5rem 1.25rem;
    font-size: 1rem;
  }

  .quote-icon {
    font-size: 2.5rem;
  }

  .quote-text {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .quote-author {
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  .welcome-social-links {
    margin-bottom: 0.75rem;
    margin-top: 0;
  }

  .welcome-image {
    border-radius: 12px;
  }

  .welcome-social-links a {
    width: 40px;
    height: 40px;
  }

  .welcome-social-links a svg {
    width: 24px;
    height: 24px;
  }

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

  .industry-item {
    min-height: 135px;
    border-radius: 12px;
  }

  .industry-item::after {
    border-radius: 12px;
  }

  .industry-item:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .industry-icon {
    width: 50px;
    height: 50px;
    margin: 0.875rem auto 0.5rem;
  }

  .industry-icon::before {
    width: 52px;
    height: 52px;
  }

  .industry-icon svg {
    width: 40px;
    height: 40px;
  }

  .industry-item:hover .industry-icon {
    transform: scale(1.04);
  }

  .industry-content {
    padding: 0 0.5rem 0.75rem;
  }

  .industry-content h4 {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }

  .equipment-table th,
  .equipment-table td {
    padding: 0.875rem;
    font-size: 0.85rem;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .equipment-card-content {
    padding: 1rem;
  }

  .equipment-card-content h3 {
    font-size: 0.95rem;
  }

  .equipment-card-content .equipment-specs {
    font-size: 0.8rem;
  }

  .equipment-card:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .collapsible-header {
    padding-right: 2.5rem;
  }

  .collapse-toggle {
    width: 36px;
    height: 36px;
  }

  .collapse-icon {
    font-size: 0.9rem;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  .social-links a svg {
    width: 20px;
    height: 20px;
  }

}

/* Media Gallery Section */
.media-gallery-section {
  background: var(--bg-grey);
  padding: 5rem 0;
}

.media-gallery-section .section-title {
  margin-bottom: 3rem;
}

.media-gallery-section .section-title h2 {
  color: #ffffff;
}

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

.media-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-grey-light);
  border: 2px solid var(--medium-gray);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
  aspect-ratio: 1;
  isolation: isolate;
}

.media-gallery-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    var(--medium-gray) 0%,
    var(--medium-gray) 100%
  );
  border-radius: 12px;
  z-index: -1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.media-gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 166, 81, 0.1) 0%,
    rgba(0, 166, 81, 0.05) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.media-gallery-item:hover::after {
  opacity: 1;
}

.media-gallery-item:hover::before {
  background: linear-gradient(
    135deg,
    var(--accent-green) 0%,
    rgba(0, 166, 81, 0.8) 50%,
    var(--accent-green) 100%
  );
  box-shadow: 
    0 0 20px rgba(0, 166, 81, 0.4),
    0 0 40px rgba(0, 166, 81, 0.2);
}

.media-gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-green);
  box-shadow: 
    0 20px 60px rgba(0, 166, 81, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 166, 81, 0.3);
}

.media-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 0;
}

.media-gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--accent-green);
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: 2px solid var(--accent-green);
  color: #ffffff;
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover {
  background: var(--accent-green);
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.4);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 166, 81, 0.3);
  border: 2px solid var(--accent-green);
  color: #ffffff;
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  line-height: 1;
  padding: 0;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent-green);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.4);
}

/* Responsive Media Gallery */
@media (max-width: 1024px) {
  .media-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .media-gallery-section {
    padding: 3rem 0;
  }

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

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 2.5rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-image {
    max-width: 95%;
    max-height: 85%;
  }
}

@media (max-width: 480px) {
  .media-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .media-gallery-item {
    aspect-ratio: 4/3;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    font-size: 1.75rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}

