/* Services Page Specific Styles */

/* Hero - Image Only (No Video) */
.hero-services .hero-video {
  display: none !important; /* Never show video on services page */
}

.hero-services .hero-media-static {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
}

.hero-services .hero-media-bg {
  display: block !important; /* Always show image background */
  position: absolute;
  inset: 0;
  background:  linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.9) 35%, transparent 65%), 
              url('../assets/images/fleet.jpg') no-repeat center center/cover;
  z-index: 1;
}

/* Mobile: Keep image background visible */
@media (max-width: 1024px) {
  .hero-services .hero-media-bg {
    display: block !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.7) 100%), 
                url('../assets/images/fleet.jpg') no-repeat center center/cover;
  }
  
  .hero-services .hero-video {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .hero-services {
    padding-top: 82px;
  }
  
  .hero-services .hero-media-static {
    top: 82px;
  }
  
  .hero-services .hero-media-bg {
    display: block !important;
  }
}

/* Services Intro Section */
.services-intro {
     background: linear-gradient(180deg, rgba(42, 123, 155, 0) 0%, rgba(0, 0, 0, 0.58) 9%, rgba(0, 0, 0, 1) 27%, rgba(0, 0, 0, 1) 100%);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.services-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 1px, rgba(255, 255, 255, 0) 1px 30px);
  pointer-events: none;
  z-index: 1;
}

.services-intro .container {
  position: relative;
  z-index: 2;
}

.services-intro .section-sub {
  max-width: 800px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

/* Services List */
.services-list {
  background: #000;
  padding: 40px 0 80px;
  position: relative;
  overflow: hidden;
}

.services-list::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 1px, rgba(255, 255, 255, 0) 1px 30px);
  pointer-events: none;
  z-index: 1;
}

.services-list .container {
  position: relative;
  z-index: 2;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0d0d;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(105, 105, 105, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.service-card-media {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.service-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
  transition: opacity 0.3s ease;
}

.service-card:hover .service-card-media::before {
  opacity: 0.8;
}

.service-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.service-card-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.service-features li {
  font-size: 15px;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.service-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Exclusive Features Section */
.exclusive-features {
  background: var(--bg);
  padding: 40px 0;
}

.features-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.features-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 300px at 0% 0%, rgba(255,255,255,0.05), rgba(255,255,255,0) 60%),
    radial-gradient(800px 300px at 100% 100%, rgba(255,255,255,0.05), rgba(255,255,255,0) 60%),
    repeating-linear-gradient(to right, rgba(255,255,255,0.04) 0 1px, rgba(255,255,255,0) 1px 120px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.01) 0 1px, rgba(255,255,255,0) 1px 200px);
  pointer-events: none;
  z-index: 1;
}

.features-wrapper::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 1;
}

.features-left,
.features-right {
  position: relative;
  z-index: 2;
}

.features-left {
  display: grid;
  align-content: start;
  gap: 16px;
  grid-template-rows: auto auto auto 1fr;
}

.features-main-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0 0 24px;
  text-transform: uppercase;
  line-height: 1.1;
}

.features-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

.features-subtext {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 32px;
}

.features-subtext .highlight {
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Features Gallery */
.features-gallery {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 24px;
  align-self: end;
  min-height: 200px;
}

.features-gallery .swiper-wrapper {
  display: flex;
  align-items: stretch;
  animation: infiniteScroll 20s linear infinite;
  width: calc(200% + 32px); /* Double width for seamless loop */
}

.features-gallery .swiper-slide {
  width: calc(33.333% - 10px); /* Each slide takes 1/3 of double width = 1.5 slides visible */
  flex-shrink: 0;
  margin-right: 16px;
}

@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Move by half the wrapper width */
  }
}

.features-gallery::before,
.features-gallery::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 3;
  pointer-events: none;
}
.features-gallery::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0.8), rgba(0,0,0,0));
}
.features-gallery::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0.8), rgba(0,0,0,0));
}

.gallery-item {
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

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

/* Feature Items Grid */
.feature-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.features-right {
  position: relative;
}
.features-right::before { display: none; }

.feature-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: start;
  column-gap: 20px;
  row-gap: 8px;
  padding: 4px 0;
  border: 0;
  background: transparent;
}

.feature-item:first-child { padding-top: 0; }
.feature-item:last-child { padding-bottom: 0; }

/* No hover behavior */
.feature-item.reveal-card,
.feature-item.reveal-card:hover,
.feature-item:hover {
  transform: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.feature-item:last-child {
  padding-bottom: 0;
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  color: var(--text);
}

.feature-item-title {
  grid-column: 2 / -1;
  font-size: clamp(20px, 2vw, 18px);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
}

.feature-item-desc {
  grid-column: 2 / -1;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(245,245,245,0.82);
  margin: 10px 0 0;
  max-width: 62ch;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .service-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .features-wrapper {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 40px;
  }
  
  .feature-items-grid {
    grid-template-columns: 1fr;
  }
  
  .features-right::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .services-intro {
    padding: 60px 0 30px;
  }
  
  .services-list {
    padding: 30px 0 60px;
  }
  
  .service-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card-title {
    font-size: 20px;
  }
  
  .service-card-desc {
    font-size: 15px;
  }
  
  .exclusive-features {
    padding: 60px 0;
  }
  
  .features-wrapper {
    padding: 30px 20px;
    gap: 30px;
  }
  
  .features-main-title {
    font-size: 24px;
  }
  
  .features-intro,
  .features-subtext {
    font-size: 15px;
  }
  
  .feature-items-grid {
    gap: 16px;
  }
  
  .feature-item {
    padding: 20px;
  }
  
  .feature-item-title {
    font-size: 16px;
  }
  
  .feature-item-desc {
    font-size: 13px;
  }
}

/* Contact Block Styling */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-block p {
  margin: 0;
}

.contact-block a {
  font-size: 18px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-block a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .contact-block a {
    font-size: 16px;
  }
}
