/**
 * Boudreau Painting LLC - Premium Modern Design
 * Inspired by maman-corp.com aesthetic
 */

/* ===================================
   CSS Variables
=================================== */
:root {
  --color-dark: #1d1d1b;
  --color-darker: #141413;
  --color-light: #ffffff;
  --color-gray: #f5f5f5;
  --color-gray-dark: #888888;
  --color-accent: #cc1616;
  --color-accent-hover: #a51212;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --container-width: 1200px;
  --section-padding: 120px;
  --transition: all 0.3s ease;
}

/* ===================================
   Base Styles
=================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-dark);
  background: var(--color-light);
  overflow-x: hidden;
}

/* ===================================
   Page Transition Overlay
=================================== */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
  display: flex;
}

/* Split screen elements */
.transition-split {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-size: 200% 100%;
  background-repeat: no-repeat;
  opacity: 0;
}

.transition-split.left {
  left: 0;
  background-position: left center;
}

.transition-split.right {
  right: 0;
  background-position: right center;
}

/* Rectangle element for fly-off effect */
.transition-rectangle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform-origin: center center;
}

/* ===============================
   EFFECT 1: Split Screen
   Left goes up, right goes down
================================ */
.page-transition.split-screen.active .transition-split.left {
  animation: splitSlideUp 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.page-transition.split-screen.active .transition-split.right {
  animation: splitSlideDown 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.page-transition.split-screen.active .transition-rectangle {
  display: none;
}

@keyframes splitSlideUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(-100%);
  }
}

@keyframes splitSlideDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(100%);
  }
}

/* ===============================
   EFFECT 2: Rectangle Fly-Off
   Shrinks to rectangle and flies off screen
================================ */
.page-transition.rectangle-flyoff.active .transition-split {
  display: none;
}

.page-transition.rectangle-flyoff.active .transition-rectangle {
  animation: rectangleFlyOff 0.9s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes rectangleFlyOff {
  0% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
    border-radius: 0;
  }
  40% {
    opacity: 1;
    transform: scale(0.4) translate(0, 0);
    border-radius: 20px;
  }
  100% {
    opacity: 1;
    transform: scale(0.3) translate(150%, -80%);
    border-radius: 20px;
  }
}

/* ===============================
   EFFECT 3: Split Reverse
   Left goes down, right goes up
================================ */
.page-transition.split-reverse.active .transition-split.left {
  animation: splitSlideDown 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.page-transition.split-reverse.active .transition-split.right {
  animation: splitSlideUp 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.page-transition.split-reverse.active .transition-rectangle {
  display: none;
}

/* ===============================
   EFFECT 4: Horizontal Lines Slide
   Multiple horizontal bars slide across at staggered times
================================ */
.transition-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.transition-line {
  flex: 1;
  width: 100%;
  transform: translateX(-100%);
  opacity: 0;
}

.transition-line:nth-child(1) { background: var(--color-dark); }
.transition-line:nth-child(2) { background: var(--color-accent); } /* Red accent line */
.transition-line:nth-child(3) { background: var(--color-dark); }
.transition-line:nth-child(4) { background: #2a2a28; }
.transition-line:nth-child(5) { background: var(--color-dark); }

.page-transition.lines-slide.active .transition-split,
.page-transition.lines-slide.active .transition-rectangle {
  display: none;
}

.page-transition.lines-slide.active .transition-line {
  animation: lineSlideAcross 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Staggered timing for each line */
.page-transition.lines-slide.active .transition-line:nth-child(1) {
  animation-delay: 0s;
}
.page-transition.lines-slide.active .transition-line:nth-child(2) {
  animation-delay: 0.08s;
}
.page-transition.lines-slide.active .transition-line:nth-child(3) {
  animation-delay: 0.16s;
}
.page-transition.lines-slide.active .transition-line:nth-child(4) {
  animation-delay: 0.24s;
}
.page-transition.lines-slide.active .transition-line:nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes lineSlideAcross {
  0% {
    opacity: 1;
    transform: translateX(-100%);
  }
  45% {
    opacity: 1;
    transform: translateX(0);
  }
  55% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(100%);
  }
}

/* Legacy active class fallback */
.page-transition.active:not(.split-screen):not(.rectangle-flyoff):not(.split-reverse):not(.lines-slide) .transition-split.left {
  animation: splitSlideUp 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.page-transition.active:not(.split-screen):not(.rectangle-flyoff):not(.split-reverse):not(.lines-slide) .transition-split.right {
  animation: splitSlideDown 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* ===================================
   Vertical Decorative Lines
=================================== */
.vertical-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.v-line {
  position: absolute;
  top: 0;
  height: 100%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.05) 80%,
    transparent 100%
  );
}

.v-line.line-1 { left: 25%; }
.v-line.line-2 { left: 50%; }
.v-line.line-3 { left: 75%; }

/* Lines adapt to light sections */
.light-section .v-line,
.intro-section ~ .v-line,
.about-section ~ .v-line,
.clients-section ~ .v-line,
.contact-section ~ .v-line {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 20%,
    rgba(0, 0, 0, 0.05) 80%,
    transparent 100%
  );
}

@media (max-width: 768px) {
  .vertical-lines {
    display: none;
  }
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===================================
   Typography
=================================== */
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 30px;
}

.section-headline.light {
  color: var(--color-light);
}

.section-headline.small {
  font-size: clamp(24px, 3vw, 36px);
}

.section-headline .accent {
  color: var(--color-accent);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.section-label.light {
  color: rgba(255, 255, 255, 0.6);
}

.section-desc {
  font-size: 18px;
  color: var(--color-gray-dark);
  max-width: 500px;
}

.section-desc.light {
  color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   Buttons
=================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--color-accent) !important;
  color: var(--color-light) !important;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--color-accent) !important;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: transparent !important;
  color: var(--color-light) !important;
  border-color: var(--color-light) !important;
  transform: translateY(-2px);
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus:active,
.btn-primary:focus-visible {
  background: var(--color-light) !important;
  color: var(--color-dark) !important;
  border-color: var(--color-light) !important;
  outline: none !important;
  box-shadow: none !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: var(--color-light);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--color-light);
  color: var(--color-dark);
  border-color: var(--color-light);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--color-dark);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--color-dark);
  color: var(--color-light);
}

.btn-outline.light {
  color: var(--color-light);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline.light:hover {
  background: var(--color-light);
  color: var(--color-dark);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  transition: var(--transition);
}

.link-arrow:hover {
  color: var(--color-accent);
  gap: 16px;
}

.link-arrow svg {
  transition: var(--transition);
}

/* ===================================
   Header
=================================== */
.header-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.header-modern.scrolled {
  background: var(--color-light);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: var(--transition);
}

.header-modern.scrolled .logo img {
  filter: none;
}

.navbar-modern {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar-modern ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: opacity 0.3s ease;
}

.navbar-modern .nav-link {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-light);
  padding: 8px 0;
  position: relative;
}

.header-modern.scrolled .nav-link {
  color: var(--color-dark);
}

.navbar-modern .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: var(--transition);
}

.navbar-modern .nav-link:hover::after,
.navbar-modern .nav-link.active::after {
  width: 100%;
}

/* Hide nav links when scrolled, show hamburger */
.header-modern.scrolled .navbar-modern ul {
  opacity: 0;
  pointer-events: none;
}

.header-modern.scrolled .mobile-nav-toggle {
  display: flex;
}

/* When hamburger is active (menu open), show the nav */
.header-modern.scrolled .navbar-modern.active ul {
  opacity: 1;
  pointer-events: auto;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 20, 19, 0.98);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 1000;
}

.header-modern.scrolled .navbar-modern.active .nav-link {
  color: var(--color-light);
  font-size: 28px;
  letter-spacing: 2px;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-light);
  transition: var(--transition);
  position: relative;
}

.mobile-nav-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.mobile-nav-toggle span:nth-child(3) {
  transform: translateY(6px);
}

/* Hamburger animation to X */
.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-2px) rotate(-45deg);
}

.header-modern.scrolled .mobile-nav-toggle span {
  background: var(--color-dark);
}

/* When menu is open, X should always be white (visible against dark menu background) */
.mobile-nav-toggle.active span {
  background: var(--color-light) !important;
}

.header-modern.scrolled .mobile-nav-toggle.active span {
  background: var(--color-light) !important;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .navbar-modern ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 19, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }

  .navbar-modern.active ul {
    display: flex;
  }

  .navbar-modern.active .nav-link {
    color: var(--color-light);
    font-size: 24px;
  }
}

/* ===================================
   Section Navigation Dots
=================================== */
.section-nav {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.section-counter {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.5s ease;
  font-weight: 400;
}

.section-counter .current {
  color: var(--color-light);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.section-nav ul li {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* Extend hover area to include label */
  padding-right: 80px;
  margin-right: -80px;
}

.section-dot {
  display: block;
  position: relative;
  width: 16px;
  height: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Outer ring for active state */
.section-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 16px;
  height: 16px;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-dot span {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(-5px);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  /* Fade out with longer hang time */
  transition: opacity 0.4s ease 1.2s, transform 0.3s ease 1.2s;
}

/* Show label on li hover (covers both dot and label area) */
.section-nav ul li:hover .section-dot span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  transition: opacity 0.2s ease 0s, transform 0.2s ease 0s;
}

.section-dot:hover::before {
  border-color: rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.4);
}

/* Active state with grow effect */
.section-dot.active::before {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 0 10px rgba(204, 22, 22, 0.4);
}

.section-dot.active::after {
  transform: translate(-50%, -50%) scale(1);
  border-color: rgba(204, 22, 22, 0.3);
}

/* Pulse animation for active dot */
.section-dot.active::before {
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204, 22, 22, 0.4); }
  50% { box-shadow: 0 0 10px 2px rgba(204, 22, 22, 0.2); }
}

/* Dark section awareness */
.section-nav.on-light .section-counter {
  color: rgba(0, 0, 0, 0.3);
}

.section-nav.on-light .section-counter .current {
  color: var(--color-dark);
}

.section-nav.on-light .section-dot::before {
  border-color: rgba(0, 0, 0, 0.2);
}

.section-nav.on-light .section-dot::after {
  border-color: rgba(0, 0, 0, 0.1);
}

.section-nav.on-light .section-dot span {
  color: rgba(0, 0, 0, 0.7);
}

.section-nav.on-light .section-dot:hover::before {
  border-color: var(--color-dark);
}

.section-nav.on-light .section-dot.active::after {
  border-color: rgba(204, 22, 22, 0.3);
}

@media (max-width: 991px) {
  .section-nav {
    display: none;
  }
}

/* ===================================
   Hero Section
=================================== */
.hero-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg video,
.hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  display: none;
  background: url('../img/hero-bg.jpg') center center / cover no-repeat;
}

.no-video .hero-fallback {
  display: block;
}

.no-video .hero-bg video {
  display: none;
}

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

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 800px;
}

.hero-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-light);
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: fixed;
  bottom: 120px;
  right: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 998;
  cursor: pointer;
  transition: var(--transition);
}

.scroll-indicator:hover .scroll-arrow {
  transform: translateY(8px);
}

.scroll-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.5s ease;
}

.scroll-arrow {
  position: relative;
  transition: transform 0.3s ease;
  color: var(--color-accent);
}

.scroll-arrow svg {
  display: block;
  animation: arrowFloat 2.5s ease-in-out infinite;
}

/* Subtle line extending from arrow */
.scroll-arrow::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, var(--color-accent));
  opacity: 0.5;
}

@keyframes arrowFloat {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(15px);
    opacity: 1;
  }
}

/* Light section awareness for scroll indicator */
.scroll-indicator.on-light .scroll-text {
  color: rgba(0, 0, 0, 0.5);
}

/* Hide near footer */
.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding-top: 100px;
  }

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

  .scroll-indicator {
    display: none;
  }
}

/* ===================================
   Intro Section
=================================== */
.intro-section {
  padding: var(--section-padding) 0;
  background: var(--color-light);
}

.intro-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.intro-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-gray-dark);
  margin-bottom: 30px;
}

/* ===================================
   Dark Section
=================================== */
.dark-section {
  background: var(--color-dark);
  padding: var(--section-padding) 0;
}

/* ===================================
   Services Section
=================================== */
.services-section {
  padding: var(--section-padding) 0;
}

.section-header {
  margin-bottom: 80px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-headline {
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.service-item {
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.service-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
}

.service-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.service-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-light);
  margin-bottom: 16px;
}

.service-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

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

.service-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-list li:last-child {
  border-bottom: none;
}

/* ===================================
   Stats Section
=================================== */
.stats-section {
  padding: 80px 0;
  background: var(--color-gray);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

@media (max-width: 991px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-item {
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-item:hover {
  transform: scale(1.1);
}

.stat-item:hover .stat-number {
  animation: statBounce 0.5s ease;
}

@keyframes statBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.15); }
  50% { transform: scale(0.95); }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.stat-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
  transition: text-shadow 0.3s ease;
}

.stat-item:hover .stat-number {
  text-shadow: 0 0 20px rgba(204, 22, 22, 0.4);
}

.stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gray-dark);
  transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
  color: var(--color-dark);
}

/* ===================================
   About Section
=================================== */
.about-section {
  padding: var(--section-padding) 0;
  background: var(--color-light);
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -30px;
  right: 30px;
  background: var(--color-accent);
  color: var(--color-light);
  padding: 20px 30px;
  text-align: center;
}

.badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.badge-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-content {
  margin-bottom: 40px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-gray-dark);
  margin-bottom: 16px;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray);
  border-radius: 50%;
  color: var(--color-accent);
}

/* ===================================
   Projects Section
=================================== */
.projects-section {
  padding: var(--section-padding) 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.project-item.large {
  grid-column: span 2;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-category {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-light);
}

@media (max-width: 991px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-item.large {
    grid-column: span 1;
  }
}

@media (max-width: 575px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Clients Section
=================================== */
.clients-section {
  padding: var(--section-padding) 0;
  background: var(--color-gray);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
}

@media (max-width: 991px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.client-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===================================
   Team/Careers Section
=================================== */
.team-section {
  padding: var(--section-padding) 0;
}

.team-text {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 500px;
}

/* Animated accent text in team section */
.team-section .section-headline .accent {
  position: relative;
  display: inline-block;
}

.team-section .section-headline .accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-accent);
  animation: accentUnderline 1s ease 0.8s forwards;
}

@keyframes accentUnderline {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.team-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Enhanced button effects for team section */
.team-actions .btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(204, 22, 22, 0.3);
}

.team-actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.team-actions .btn-primary:hover::before {
  left: 100%;
}

.team-actions .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(204, 22, 22, 0.5);
}

/* Auto-highlight effect - simulates hover on page load */
.team-actions .btn-primary.auto-highlight {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(204, 22, 22, 0.5);
  animation: buttonPulseGlow 1.5s ease;
}

.team-actions .btn-primary.auto-highlight::before {
  animation: shineAcross 0.8s ease forwards;
}

@keyframes buttonPulseGlow {
  0% {
    box-shadow: 0 4px 15px rgba(204, 22, 22, 0.3);
  }
  50% {
    box-shadow: 0 8px 30px rgba(204, 22, 22, 0.7);
  }
  100% {
    box-shadow: 0 4px 15px rgba(204, 22, 22, 0.3);
  }
}

@keyframes shineAcross {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.team-actions .btn-outline {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.team-actions .btn-outline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.team-actions .btn-outline:hover::after {
  width: 80%;
}

.team-actions .btn-outline:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.benefit-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  padding-left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.4s ease;
  cursor: default;
}

.benefit-item::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.5s ease;
}

.benefit-item:hover::before {
  width: 100%;
}

.benefit-item:hover {
  transform: translateX(10px);
  padding-left: 10px;
}

.benefit-item:last-child {
  border-bottom: none;
  padding-bottom: 24px;
}

.benefit-number {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-accent);
  line-height: 1;
  transition: all 0.4s ease;
  text-shadow: 0 0 0 transparent;
}

.benefit-item:hover .benefit-number {
  text-shadow: 0 0 20px rgba(204, 22, 22, 0.6);
  transform: scale(1.1);
}

.benefit-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-light);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.benefit-item:hover .benefit-content h4 {
  color: var(--color-accent);
}

.benefit-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  transition: all 0.3s ease;
}

.benefit-item:hover .benefit-content p {
  color: rgba(255, 255, 255, 0.9);
}

/* Click to replay animation */
.benefit-item.replay-animation {
  animation: benefitPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.benefit-item.replay-animation .benefit-number {
  animation: numberPulse 0.6s ease;
}

.benefit-item.replay-animation .benefit-content h4 {
  animation: textSlideIn 0.5s ease 0.1s both;
}

.benefit-item.replay-animation .benefit-content p {
  animation: textSlideIn 0.5s ease 0.2s both;
}

@keyframes benefitPop {
  0% {
    transform: scale(1) translateX(0);
  }
  30% {
    transform: scale(0.95) translateX(-5px);
  }
  60% {
    transform: scale(1.02) translateX(15px);
  }
  100% {
    transform: scale(1) translateX(0);
  }
}

@keyframes numberPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 transparent;
  }
  50% {
    transform: scale(1.3);
    text-shadow: 0 0 30px rgba(204, 22, 22, 0.8);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 transparent;
  }
}

@keyframes textSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: 0;
}

.modal-header {
  border-bottom: 1px solid var(--color-gray);
  padding: 24px 30px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}

.modal-body {
  padding: 30px;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-gray);
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.download-btn:hover {
  background: var(--color-accent);
  color: var(--color-light);
}

.eoe-notice {
  font-size: 13px;
  color: var(--color-gray-dark);
  font-style: italic;
  margin-top: 20px;
  margin-bottom: 0;
}

/* ===================================
   Contact Section
=================================== */
.contact-section {
  padding: var(--section-padding) 0;
  background: var(--color-light);
}

.contact-intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-gray-dark);
  margin-bottom: 40px;
}

.contact-info-list {
  margin-bottom: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray);
  border-radius: 50%;
  color: var(--color-accent);
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.info-content p {
  font-size: 15px;
  color: var(--color-gray-dark);
  margin: 0;
}

.info-content a {
  color: var(--color-dark);
}

.info-content a:hover {
  color: var(--color-accent);
}

.map-container {
  margin-top: 30px;
}

.map-container iframe {
  width: 100%;
  height: 200px;
  border: none;
  filter: grayscale(100%);
  transition: var(--transition);
}

.map-container iframe:hover {
  filter: grayscale(0%);
}

/* Contact Form */
.contact-form {
  background: var(--color-gray);
  padding: 50px;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 30px;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 575px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #e0e0e0;
  background: var(--color-light);
  font-family: var(--font-primary);
  font-size: 15px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.turnstile-group {
  margin-bottom: 20px;
}

.form-status {
  margin-bottom: 20px;
}

.form-status .loading,
.form-status .error-message,
.form-status .sent-message {
  display: none;
  padding: 16px;
  font-size: 14px;
}

.form-status .loading {
  background: var(--color-gray);
  color: var(--color-dark);
}

.form-status .error-message {
  background: #ffe0e0;
  color: #cc0000;
}

.form-status .sent-message {
  background: #e0ffe0;
  color: #008800;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--color-accent);
  color: var(--color-light);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* ===================================
   Footer
=================================== */
.footer-modern {
  background: #2a2a28;
  color: var(--color-light);
}

/* Footer CTA Section */
.footer-cta {
  background: var(--color-accent);
  padding: 60px 0;
}

.footer-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: var(--color-light);
  margin: 0 0 8px 0;
}

.cta-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: var(--color-light);
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--color-light);
  transition: var(--transition);
}

.btn-cta:hover {
  background: transparent;
  color: var(--color-light);
}

/* Main Footer Wrapper */
.footer-main-wrapper {
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
}

@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-cta .container {
    flex-direction: column;
    text-align: center;
  }
}

/* Footer Brand */
.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 24px;
}

.footer-logo img {
  height: 55px;
  width: auto;
}

.footer-brand > p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 28px 0;
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--color-light);
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

/* Footer Nav Columns */
.footer-nav-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-light);
  margin-bottom: 28px;
  position: relative;
}

.footer-nav-col h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
}

.footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-col li {
  margin-bottom: 14px;
}

.footer-nav-col li:last-child {
  margin-bottom: 0;
}

.footer-nav-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  display: inline-block;
}

.footer-nav-col a:hover {
  color: var(--color-light);
  transform: translateX(5px);
}

/* Footer Contact */
.footer-contact .contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.footer-contact .contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact .contact-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact .contact-item span,
.footer-contact .contact-item a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-contact .contact-item a:hover {
  color: var(--color-light);
}

/* Footer Bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer-certifications {
  display: flex;
  gap: 24px;
}

.footer-certifications span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  padding-left: 20px;
  position: relative;
}

.footer-certifications span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

@media (max-width: 575px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-certifications {
    justify-content: center;
  }
}

/* ===================================
   Back to Top
=================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-light);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-5px);
}

/* ===================================
   Preloader
=================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#preloader::before {
  content: '';
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: preloaderSpin 1s linear infinite;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

/* ===================================
   Utility Classes
=================================== */
.text-accent {
  color: var(--color-accent);
}

.bg-dark {
  background: var(--color-dark);
}

.bg-gray {
  background: var(--color-gray);
}

/* ===================================
   AOS Overrides
=================================== */
[data-aos] {
  transition-duration: 800ms;
}

/* ===================================
   Responsive Adjustments
=================================== */
@media (max-width: 991px) {
  :root {
    --section-padding: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .section-header {
    margin-bottom: 50px;
  }
}

/* ===================================
   Reduced Motion
=================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
