:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --text: #171923;
  --muted: #6b7280;
  --accent: #C6463E;       /* brand red */
  --accent-soft: #d94f45;
  --border: #e2e4ea;
  --card: #ffffff;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
}

/* GLOBAL */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: "Lato", sans-serif;
  background: radial-gradient(circle at top, #151720 0, #050608 40%, #020308 100%);
  color: var(--text);
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

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

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

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* MAIN NAV (desktop) */
.main-nav {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
}

.main-nav .has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.main-nav .nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 8px;
  z-index: 1100;
}

/* Bridge the hover gap between the trigger and the dropdown */
.main-nav .nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
  background: transparent;
  pointer-events: auto;
}

.main-nav .has-dropdown:hover .nav-dropdown,
.main-nav .has-dropdown:focus-within .nav-dropdown {
  display: block;
}

.main-nav .nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.main-nav .nav-dropdown a:hover {
  background: #f9fafb;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
  color: #111827;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.22s ease-out;
}

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

/* BURGER (base) */
.burger {
  display: none; /* hidden on desktop, shown via media query */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

/* Burger open/close animation */
.burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* HEADER LAYOUT WITH TWO ROWS ON THE RIGHT (desktop) */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 1;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.8rem;
}

.header-bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

/* Phone link */
.header-phone {
  color: #111827;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone::before {
  content: "●";
  display: inline-block;
  margin-right: 6px;
  font-size: 0.7em;
  color: var(--accent);
}

/* Language toggle – red pill */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 2px;
  border: 1px solid rgba(227, 34, 37, 0.7);
}

.lang-btn {
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: #b91c1c;
}

.lang-btn.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  color: #ffffff;
}

/* Ensure desktop nav shows in bottom row */
.header-bottom-row .main-nav {
  display: flex;
  gap: 24px;
}

/* ========= MOBILE LAYOUT (<=720px) ========= */
@media (max-width: 720px) {
  /* Hide top row (phone/lang) and desktop nav on mobile */
  .header-top-row {
    display: none;
  }

  .header-bottom-row .main-nav {
    display: none;
  }

  /* Keep header layout simple: logo + burger */
  .header-right {
    flex: 0;
    align-items: flex-end;
  }

  .burger {
    display: flex;
    margin-left: 12px;
  }
}

/* ========= MOBILE NAV DRAWER ========= */

/* Hidden on desktop */
.mobile-nav {
  display: none;
}

/* Drawer on mobile only */
@media (max-width: 720px) {
  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 82%;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
  }

  .mobile-nav.open {
    transform: translateX(0);
  }

  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 80px 20px 24px; /* space for header + content */
    gap: 24px;
  }

  .mobile-nav-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-nav-links a {
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
    font-weight: 500;
  }

  .mobile-nav-links a:last-child {
    border-bottom: none;
  }
}

/* Drawer backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 998;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}



/* HERO */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: var(--header-h);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.3) 0, rgba(0, 0, 0, 0.9) 55%, rgba(0, 0, 0, 1) 100%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 80px 16px 72px;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-text p {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.55;
}

/* MAP */
.hero-map {
  justify-self: end;
}

.map-placeholder {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 20% 0, #2b323e, #111217 45%, #050608 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-point {
  position: absolute;
  padding: 5px 10px;
  background: rgba(5, 6, 8, 0.75);
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px);
  transition: transform 0.16s ease-out, background 0.16s ease-out, border-color 0.16s ease-out;
}

.map-point:hover {
  transform: translateY(-1px) scale(1.03);
  background: rgba(214, 40, 40, 0.92);
  border-color: rgba(255, 255, 255, 0.8);
}

/* MAP POPUP */
.map-popup {
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 14px 16px 14px 16px;
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, rgba(214, 40, 40, 0.8), #050608 55%, #020308 100%);
  color: #ffffff;
  display: none;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.6);
}

.map-popup.open {
  display: block;
}

.map-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
}

.map-popup-content h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.map-popup-content p {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: #f5f5f5;
}

/* NEW MAP HERO STYLES - SPLIT LAYOUT */
.hero-split {
  position: relative;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background: #fff;
  overflow-x: hidden;
  width: 100vw;
  max-width: 100vw;
}

.hero-split-container {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 0;
  align-items: stretch;
  height: 100vh;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Left side: Content */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: clamp(40px, 5vw, 80px) clamp(32px, 4vw, 60px) clamp(40px, 5vw, 80px) max(clamp(32px, 4vw, 80px), calc((100vw - 1200px) / 2));
  min-width: 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #111;
  text-align: left;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 40px;
  max-width: 500px;
  text-align: left;
}

.hero-stats {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat-label {
  font-size: 0.95rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Right side: Map */
.hero-map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-map-wrapper.loaded {
  opacity: 1;
}

#map.hero-map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Old full-screen hero styles (keep for compatibility) */
.hero#hero:not(.hero-split) {
  position: relative;
  height: 100vh;
  min-height: unset;
  padding-top: 0;
  overflow: hidden;
}

.hero#hero:not(.hero-split) #map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Hide mobile description on desktop */
.hero-mobile-description {
  display: none;
}

/* Hero text breakpoints — stepped sizes, no smooth scaling */
@media (max-width: 1400px) {
  .hero-title { font-size: 3rem; }
}

@media (max-width: 1200px) {
  .hero-title { font-size: 3rem; }
  .hero-description { font-size: 1rem; }
  .hero-stat-number { font-size: 2.25rem; }
}

@media (max-width: 1050px) {
  .hero-title { font-size: 1.5rem; }
  .hero-description { font-size: 1rem; }
  .hero-stats { gap: 32px; }
  .hero-stat-number { font-size: 2rem; }
}

/* Mobile responsive */
@media (max-width: 968px) {
  .hero {
    min-height: calc(100vh - 72px);
    height: calc(100vh - 72px);
    /* padding-bottom: 20px; */
  }
  
  .hero-split-container {
    grid-template-columns: 1fr;
    height: 100%;
  }
  
  .hero-content {
    display: none; /* Hide left side text content on mobile */
  }
  
  .hero-map-wrapper {
    height: 100%;
    position: relative;
  }
  
  /* Mobile map description overlay at bottom */
  .hero-map-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 60%, transparent 100%);
    pointer-events: none;
    z-index: 5;
  }
  
  .hero-mobile-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
    z-index: 10;
    text-align: left;
    display: block; /* Show on mobile */
  }
  
  .hero-mobile-description h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #111;
    text-align: left;
  }
  
  .hero-mobile-description p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin: 0 0 16px 0;
    text-align: left;
  }
  
  .hero-mobile-description .hero-stats {
    display: flex;
    gap: 32px;
    align-items: flex-start;
  }
  
  .hero-mobile-description .hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-mobile-description .hero-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
  }
  
  .hero-mobile-description .hero-stat-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}

/* Hide Mapbox logo and attribution */
.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib {
  display: none !important;
}

/* Hide Mapbox atmosphere/fog layer around globe */
.mapboxgl-canvas-container canvas + canvas {
  display: none !important;
}

/* Custom warehouse labels */
.warehouse-label {
  position: absolute;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  z-index: 10;
}

/* Label on the right side of dot */
.warehouse-label-right {
  transform: translate(8px, -50%);
}

/* Label on the left side of dot */
.warehouse-label-left {
  transform: translate(calc(-100% - 8px), -50%);
}

.warehouse-label:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.warehouse-label-right:hover {
  transform: translate(8px, -50%) scale(1.05);
}

.warehouse-label-left:hover {
  transform: translate(calc(-100% - 8px), -50%) scale(1.05);
}

/* Disabled state for Drohobych */
.warehouse-label-disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  background: rgba(200, 200, 200, 0.95);
  color: #666;
}

.warehouse-label-disabled:hover {
  background: rgba(200, 200, 200, 0.95) !important;
  transform: translate(8px, -50%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.warehouse-label-disabled.warehouse-label-left:hover {
  transform: translate(calc(-100% - 8px), -50%) !important;
}

/* SECTION */
.section {
  padding: 80px 0;
}

.section-dark {
  background: radial-gradient(circle at top, #151720 0, #050608 60%, #020308 100%);
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.section p {
  color: var(--muted);
}

/* WHY */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: center;
}

.why-title p {
  max-width: 320px;
}

.why-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.why-item {
  background: radial-gradient(circle at top left, #222537, #12141f 50%, #050608 100%);
  border-radius: var(--radius-md);
  padding: 16px 16px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.why-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 40, 40, 0.16);
  color: var(--accent-soft);
  font-size: 0.8rem;
}

/* SERVICES TIMELINE */
.services-timeline-wrapper {
  position: relative;
}

#services {
  position: relative;
}

.services-timeline {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1180px;
  padding: 0 16px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-timeline-base {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%);
  z-index: 1;
}

.services-timeline-fill {
  position: absolute;
  top: 50%;
  left: 16px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  width: 0%;
  transition: width 0.1s linear;
  z-index: 2;
}

.services-timeline-dots {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  width: calc(100% - 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  transform: translateY(-50%);
}

.timeline-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}

.dot-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease-out;
  position: relative;
  z-index: 1;
}

.timeline-dot.active .dot-circle {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(214, 40, 40, 0.6);
  transform: scale(1.4);
}

.dot-label {
  font-size: 0.85rem;
  color: #1a1a1a;
  transition: color 0.3s ease-out, font-weight 0.3s ease-out;
  white-space: nowrap;
  text-align: center;
  position: absolute;
  top: 100%;
  margin-top: 20px;
}

.timeline-dot.active .dot-label {
  color: var(--accent);
  font-weight: 600;
}

.services-content-timeline {
  position: absolute;
  top: 250px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 700px;
  width: 100%;
  /* padding: 0 20px; */
  z-index: 5;
}

.service-detail-timeline {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.service-detail-timeline.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

.service-detail-timeline h3 {
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.service-detail-timeline p {
  line-height: 1.7;
  color: var(--muted);
}

/* EXTRA SERVICES */
.extra-services {
  position: absolute;
  top: 450px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.extra-services h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.extra-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.extra-card {
  background: #101119;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.extra-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(214, 40, 40, 0.7);
}

.extra-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.extra-link {
  font-size: 0.86rem;
  color: var(--accent-soft);
}

/* =======================================
   PROJECTS GALLERY
   ======================================= */

.projects-gallery-wrap {
  position: relative;
  padding: clamp(24px, 4vh, 40px) 0 64px;
  min-height: 60vh;
  touch-action: pan-y;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.55s ease;
  overflow: visible;
}

.projects-gallery-wrap {
  --side-margin: 10vw;
  --container-w: calc(100vw - (2 * var(--side-margin)));
  --radius: 20px;
  --arrow-size: clamp(40px, 5vw, 56px);
}

.projects-gallery-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#projects {
  touch-action: pan-y;
}

/* Main gallery */
.projects-gallery {
  width: 100%;
  margin-left: 0;
  position: relative;
  height: clamp(360px, 55vh, 680px);
  overflow: visible;
  will-change: transform;
  z-index: 10;
  perspective: 1500px;
}

/* Slides */
.projects-slide {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    left .5s cubic-bezier(.2,.8,.2,1),
    width .5s cubic-bezier(.2,.8,.2,1),
    height .5s cubic-bezier(.2,.8,.2,1),
    transform .5s cubic-bezier(.2,.8,.2,1),
    filter .5s cubic-bezier(.2,.8,.2,1),
    opacity .5s ease;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

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

/* Overlay / passport card */
.projects-slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 24, 39, 0.85) 10%,
    rgba(17, 24, 39, 0.3) 55%,
    rgba(17, 24, 39, 0) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #ffffff;
}

.project-passport {
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  backdrop-filter: blur(8px);
  padding: 16px 18px;
  border-radius: 16px;
  width: min(92%, 560px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
  border: 1px solid #e5e7eb;
}

.project-passport h3 {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.1vw, 26px);
  letter-spacing: 0.2px;
}

.project-passport p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #4b5563;
}

.project-passport .meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: clamp(12px, 1.3vw, 14px);
  color: #4b5563;
}

.project-passport .meta div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-passport .tag {
  display: inline-block;
  margin-top: 8px;
  font-size: .8em;
  padding: 6px 10px;
  background: rgba(227, 34, 37, 0.06);
  border: 1px solid rgba(227, 34, 37, 0.6);
  border-radius: 999px;
  letter-spacing: 0.2px;
  color: #b91c1c;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.project-passport a.tag:hover {
  background: rgba(227, 34, 37, 0.12);
  border-color: rgba(227, 34, 37, 0.8);
}

.project-passport .project-tag-disabled {
  opacity: 0.5;
  color: #6b7280;
  background: rgba(107, 114, 128, 0.06);
  border-color: rgba(107, 114, 128, 0.4);
  cursor: default;
}

/* Controls */
.projects-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--arrow-size);
  height: var(--arrow-size);
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
  z-index: 200;
  pointer-events: auto;
}

.projects-arrow:hover {
  background: #f9fafb;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
}

.projects-arrow:active {
  transform: translateY(-50%) scale(.96);
}

.projects-arrow svg {
  width: 55%;
  height: 55%;
  fill: #111827;
}

.projects-arrow.prev {
  left: calc(var(--side-margin) - var(--arrow-size) - 10px);
  pointer-events: auto;
}

.projects-arrow.next {
  right: calc(var(--side-margin) - var(--arrow-size) - 10px);
  pointer-events: auto;
}

/* Indicators */
.projects-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}

.projects-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
  transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.projects-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.projects-dot.active {
  background: var(--accent, #e32225);
  width: 28px;
  border-radius: 5px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .projects-slide { transition: none; }
  .projects-arrow { transition: none; }
  .projects-dot { transition: none; }
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .projects-gallery {
    height: 58vh;
  }
}

@media (max-width: 700px) {
  .projects-gallery {
    height: 56vh;
  }

  .projects-arrow.prev {
    left: 8px;
  }
  .projects-arrow.next {
    right: 8px;
  }
}

@media (max-width: 520px) {
  .project-passport {
    width: 96%;
  }
  .project-passport .meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .projects-arrow {
    top: auto;
    bottom: 10px;
    width: 40px;
    height: 40px;
    z-index: 60;
  }
  .projects-arrow:active {
    transform: scale(.96);
  }
  .projects-arrow.prev {
    left: 80px;
    transform: none;
  }
  .projects-arrow.next {
    right: 80px;
    left: auto;
    transform: none;
  }
  
  .projects-dots {
    bottom: 26px;
    z-index: 55;
  }
}


/* =======================================
   WHY SECTION – LINKED HEADER + STACKED CARDS
   ======================================= */

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.why-header {
  padding-left: 20px;
}

.why-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.why-lead {
  color: var(--muted);
  max-width: 390px;
}

.why-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.26s ease-out, border-color 0.26s ease-out;
}

.why-card:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  border-color: rgba(227, 34, 37, 0.7);
}

.why-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 34, 37, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Desktop / tablet: sticky header + stacked cards */
@media (min-width: 721px) {
  #why .why-layout {
    position: relative;
    padding-bottom: 140px;
  }

  #why .why-header {
    position: sticky;
    top: 96px;
    align-self: flex-start;
  }

  #why .why-card {
    position: sticky;
    top: 96px;
  }

  #why .why-card:nth-child(1) { z-index: 1; }
  #why .why-card:nth-child(2) { z-index: 2; }
  #why .why-card:nth-child(3) { z-index: 3; }
  #why .why-card:nth-child(4) { z-index: 4; }
  #why .why-card:nth-child(5) { z-index: 5; }
}

/* Mobile: vertical stack with sticky cards (same as desktop) */
@media (max-width: 720px) {
  .why-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  #why .why-header {
    position: static;
    margin-bottom: 16px;
  }

  #why .why-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: visible;
    padding-bottom: 40px;
  }

  #why .why-card {
    position: sticky;
    top: 80px;
    width: 100%;
    max-width: 100%;
    z-index: 1;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.08);
  }

  #why .why-card:nth-child(1) { z-index: 1; }
  #why .why-card:nth-child(2) { z-index: 2; }
  #why .why-card:nth-child(3) { z-index: 3; }
  #why .why-card:nth-child(4) { z-index: 4; }
  #why .why-card:nth-child(5) { z-index: 5; }

  /* Reset container padding */
  #why .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}



/* CONTACTS */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  color: var(--muted);
}

.contact-list li {
  margin-bottom: 6px;
}

.map-embed-placeholder {
  margin-top: 16px;
  height: 200px;
  border-radius: var(--radius-md);
  background: #111217;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--muted);
}

#contactsMap {
  margin-top: 16px;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  /* border: 1px solid rgba(255, 255, 255, 0.08); */
  /* box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12); */
}

.contact-form {
  background: #101119;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form h3 {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.contact-form label:last-of-type {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #050608;
  color: #ffffff;
  font: inherit;
}

.contact-form textarea {
  flex: 1;
  resize: none;
  min-height: 100px;
}

.contact-form button {
  margin-top: 12px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn-small {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.btn-outline {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn.disabled {
  opacity: 0.4;
  cursor: default;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0 24px;
  font-size: 0.85rem;
  color: var(--muted);
  background: #050608;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* PROJECT PAGES */
.project-body-page {
  background: radial-gradient(circle at top, #151720 0, #050608 60%, #020308 100%);
}

.project-main {
  padding-top: 72px;
}

.project-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
}

.project-hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.96));
}

.project-hero-content {
  position: relative;
  padding: 60px 16px 40px;
}

.project-badges {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-badges li {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.project-content {
  padding-top: 30px;
}

.project-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
}

.project-list {
  list-style: disc;
  padding-left: 18px;
  color: var(--muted);
}

.project-nav {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}

.back-to-projects {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--accent-soft);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 72px;
  }

  .hero-map {
    justify-self: start;
  }

  .why-grid,
  .contacts-grid,
  .project-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .extra-services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-slider {
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  .burger {
    display: flex;
  }

  .projects-track {
    scroll-snap-type: x proximity;
  }

  .why-items {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 88vh;
  }
}


/* ================================
   PROTEC-GROUP STYLE OVERRIDES
   Paste this at the END of style.css
   ================================ */

/* GLOBAL */

html,
body {
  background: #f4f5f7;
  color: var(--text);
}

/* HEADER */

.site-header {
  background: #ffffff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 228, 234, 0.9);
}

.main-nav a {
  color: #111827;
}

.main-nav a::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

/* MOBILE NAV */

.mobile-nav {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

/* HERO */

.hero {
  background: #ffffff;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(244, 245, 247, 0.96)
  );
}

.hero-text h1 {
  color: #111827;
}

.hero-text p {
  color: var(--muted);
}

/* MAP CARD */

.map-placeholder {
  background: radial-gradient(circle at 20% 0, #e5e7eb, #f9fafb 55%, #ffffff 100%);
  border-color: #e5e7eb;
}

.map-point {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e5e7eb;
  color: #111827;
}

.map-point:hover {
  background: var(--accent);
  border-color: #fee2e2;
  color: #ffffff;
}

.map-popup {
  background: linear-gradient(135deg, #111827, #1f2937);
  border-radius: 16px;
}

/* SECTIONS */

.section {
  background: #ffffff;
}

/* SERVICES LINE */

.services-point {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #111827;
}

.services-point.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-color: rgba(248, 250, 252, 0.7);
  color: #ffffff;
}

.services-line-bar {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.4), transparent);
}

/* EXTRA SERVICES CARDS */

.extra-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.extra-card:hover {
  border-color: rgba(227, 34, 37, 0.6);
}

.section-dark {
  background: #f4f5f7;
}

/* WHY BLOCKS */

.why-item {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.why-icon {
  background: rgba(227, 34, 37, 0.1);
  color: var(--accent);
}

/* SERVICES LINE */

.services-point {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #111827;
}

.services-point.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-color: rgba(248, 250, 252, 0.7);
  color: #ffffff;
}

.services-line-bar {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.4), transparent);
}

/* EXTRA SERVICES CARDS */

.extra-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.extra-card:hover {
  border-color: rgba(227, 34, 37, 0.6);
}

/* PROJECTS */

.projects-track {
  background: transparent;
}

.project-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* ABOUT */

.about-step {
  background: #ffffff;
  border-color: #e5e7eb;
}

.about-step.visible {
  border-color: rgba(227, 34, 37, 0.7);
}

/* ================================
   ABOUT SECTION - MISSION SCROLLER
   ================================ */

#about {
  position: relative;
  min-height: 100vh;
  background: #ffffff;
  /* Override `.section` padding: this block is a full-screen scroller */
  padding: var(--header-h) 0 0;
}

.about-scroller-container {
  position: relative;
  height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 16px;
  overflow: hidden;
}

.about-mission-text {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.6;
  width: 90%;
  max-width: 1000px;
  text-align: left;
}

.about-phrase {
  position: relative;
  display: inline;
  padding: 4px 8px;
  margin: 0 6px;
  transition: opacity 0.5s ease;
}

/* Active phrase highlight (desktop) */
.about-phrase.active {
  color: inherit;
}

.about-phrase.loaded {
  opacity: 1;
}

.about-border-svg {
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-phrase.active .about-border-svg {
  opacity: 1;
}

.about-border-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
  will-change: stroke-dashoffset;
}

/* Arrow paths */
.about-arrow-path {
  stroke: #111827;
  stroke-width: 2;
  fill: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-arrow-path.visible {
  opacity: 1;
}

/* Descriptions */
.about-desc {
  position: absolute;
  max-width: 650px;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.about-desc.visible {
  opacity: 1;
}

/* Description positioning */
.about-desc-1 { 
  top: 5%; 
  left: 10%; 
  text-align: left; 
}

.about-desc-2 { 
  top: 20%; 
  left: 20%; 
  text-align: left; 
}

.about-desc-3 { 
  top: 60%; 
  left: 70%; 
  text-align: left; 
}

.about-desc-4 { 
  bottom: 10%; 
  left: 10%; 
  text-align: left; 
}

/* Mobile adjustments */
@media (max-width: 720px) {
  #about {
    min-height: 100vh;
    padding: var(--header-h) 0 0;
  }

  .about-scroller-container {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    height: auto;
    overflow: visible;
    padding: 20px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .about-mission-text {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
    min-height: unset;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
  }

  .about-phrase {
    padding: 0;
    margin: 0 4px;
    display: inline-block;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .about-phrase.mobile-active {
    color: var(--accent);
  }

  /* Hide desktop arrows and borders on mobile */
  #aboutArrowContainer {
    display: none;
  }

  .about-border-svg {
    display: none;
  }

  /* Mobile description cards - stacked vertically */
  .about-desc {
    position: relative;
    max-width: 100%;
    width: 100%;
    font-size: 0.9rem;
    padding: 10px 20px;
    margin: 0 0 10px 0;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    pointer-events: auto;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: none;
  }

  .about-desc.mobile-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: block;
  }

  .about-desc.mobile-active {
    border: 2px solid var(--accent);
  }
}

/* Desktop: hide mobile indicator */
@media (min-width: 721px) {
  .mobile-swipe-indicator {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .about-phrase,
  .about-border-path,
  .about-arrow-path,
  .about-desc {
    transition: none;
  }
}

/* CONTACTS */

.map-embed-placeholder {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: var(--muted);
}

.contact-form {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.contact-form input,
.contact-form textarea {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #111827;
}

/* BUTTONS */

.btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}


/* FOOTER */

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  color: var(--muted);
}

/* PROJECT PAGES */

.project-body-page {
  background: #f4f5f7;
}

.project-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(17, 24, 39, 0.25),
    rgba(17, 24, 39, 0.92)
  );
}

/* Slider arrows: lighter look on white */

.slider-arrow {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
}

/* PROJECT PAGE ADVANTAGES SECTION */

.project-advantages {
  background: #ffffff;
  text-align: center;
  padding: 60px 16px;
}

.project-advantages h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  color: var(--dark);
}

.project-advantages p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

/* PROJECT DETAILS SECTION WITH GALLERY */

.project-details-section {
  background: #f4f5f7;
  padding: 60px 16px;
}

.project-details-container {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 60px;
  align-items: start;
}

.project-text {
  position: relative;
  top: 0;
}

.project-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
  margin-top: 32px;
  color: var(--dark);
}

.project-text h2:first-child {
  margin-top: 0;
}

/* PROJECT GALLERY */

.project-gallery-wrap {
  position: relative;
  padding: 20px 0;
  min-height: 500px;
  touch-action: pan-y;
}

.project-gallery {
  position: relative;
  height: clamp(300px, 38vh, 450px);
  overflow: visible;
  touch-action: pan-y;
  perspective: 1500px;
}

.gallery-slide {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.5s ease;
  background: #1f2937;
  cursor: grab;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.gallery-slide:active {
  cursor: grabbing;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* Gallery Controls */

.gallery-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.gallery-arrow {
  width: clamp(40px, 5vw, 50px);
  height: clamp(40px, 5vw, 50px);
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  font-size: 0;
  padding: 0;
}

.gallery-arrow:hover {
  background: #f9fafb;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
}

.gallery-arrow:active {
  transform: scale(0.96);
}

.gallery-arrow::before {
  content: '';
  display: block;
  width: 55%;
  height: 55%;
  background-color: #111827;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.gallery-arrow.prev::before {
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"/%3E%3C/svg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"/%3E%3C/svg%3E');
}

.gallery-arrow.next::before {
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M8.59 16.59 10 18l6-6-6-6-1.41 1.41L13.17 12z"/%3E%3C/svg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M8.59 16.59 10 18l6-6-6-6-1.41 1.41L13.17 12z"/%3E%3C/svg%3E');
}

.gallery-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.gallery-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .project-details-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-text {
    position: static;
  }

  .project-advantages {
    padding: 40px 16px;
  }

  .project-details-section {
    padding: 40px 16px;
  }
}

@media (max-width: 600px) {
  .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .project-gallery {
    height: clamp(350px, 45vh, 450px);
  }

  .project-gallery-wrap {
    min-height: 380px;
  }
}

/* PROJECT ADVANTAGES BOTTOM SECTION */

.project-advantages-bottom {
  background: #ffffff;
  padding: 0;
}

.project-advantages-bottom .container {
  max-width: 100%;
  padding: 0;
  background-size: cover;
  background-position: center;
}

.advantages-image {
  width: 100%;
  height: 260px;
  overflow: hidden;

}

.advantages-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.advantages-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px 60px;
  text-align: center;
}

.advantages-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
}

.advantages-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.advantages-nav .btn {
  min-width: 140px;
  box-shadow: none;
}

.advantages-nav .btn-outline {
  box-shadow: none;
}

@media (max-width: 768px) {
  .advantages-content {
    padding: 40px 20px 50px;
  }

  .advantages-content p {
    font-size: 1rem;
  }

  .advantages-nav {
    gap: 12px;
  }

  /* Services timeline mobile adjustments */
  .services-timeline-wrapper {
    position: relative;
  }

  .services-timeline-wrapper .container {
    position: relative;
  }

  #services {
    min-height: auto;
  }

  .services-timeline {
    position: absolute;
    top: 70px; /* Adjusted to align with first item */
    left: 0;
    bottom: 0;
    transform: none;
    width: 50px;
    padding: 0;
    height: auto;
    min-height: auto;
    display: block;
    z-index: 1;
  }

  .services-timeline-base {
    left: 31.5px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: 100%;
    transform: none;
    position: absolute;
  }

  .services-timeline-fill {
    left: 31.5px;
    top: 0;
    width: 1px;
    height: 0%;
    transform: none;
    position: absolute;
    background: var(--accent);
    transition: height 0.1s linear;
  }

  .services-timeline-dots {
    display: none;
  }

  .services-content-timeline {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    padding: 0;
    padding-left: 50px;
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .service-detail-timeline {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: block !important;
  }

  .service-detail-timeline::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease-out;
  }

  .service-detail-timeline.active::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(214, 40, 40, 0.6);
    transform: scale(1.4);
  }

  .service-detail-timeline h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #1a1a1a;
  }

  .service-detail-timeline.active h3 {
    color: var(--accent);
    font-weight: 600;
  }

  .service-detail-timeline p {
    color: #4a4a4a;
  }

  .extra-services {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    padding: 0 20px;
    margin-top: 60px;
  }

  .extra-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================
   CONTACT FORM MESSAGES
   ================================ */
.form-message {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.5;
  transition: opacity 0.3s ease;
}

.form-message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

