/* 3D Parallax Hero Styles */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.scroll-snap {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-parallax {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  /* Premium cinematic gradient background */
  background: radial-gradient(circle at 30% 20%, #0d47a1 0%, #071f4b 50%, #0b1320 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.parallax-text-container {
  position: relative;
  z-index: 100; /* Bring text container to the very front so floating cards pass behind it during scroll */
  text-align: center;
  max-width: 1200px;
  padding: 10vh 20px 0; /* Natural position */
  will-change: transform;
}

.parallax-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem); /* Extremely massive but balanced to fit one line */
  font-weight: 500;
  color: #ffffff;
  line-height: 0.85; /* Tighter line height */
  margin: 0;
}

.parallax-title span.highlight {
  display: inline; /* Keep on one line for desktop */
  color: var(--primary, #D72638);
}

.parallax-subtitle {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 5px; /* Extremely tight spacing below title */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@keyframes rotate-border {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-hero-action {
  position: relative;
  display: inline-block;
  margin-top: 15px; /* Reduced spacing */
  background: var(--primary, #D72638) !important;
  color: #ffffff !important;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(215, 38, 56, 0.4);
}

.btn-hero-action::before {
  content: '';
  position: absolute;
  top: -100%; left: -100%; width: 300%; height: 300%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%, transparent 100%);
  animation: rotate-border 8s linear infinite;
  z-index: -2;
}

.btn-hero-action::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: linear-gradient(135deg, #D72638 0%, #B01B2A 100%) !important;
  border-radius: 50px;
  z-index: -1;
  transition: all 0.3s;
}

.btn-hero-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(215, 38, 56, 0.5) !important;
}

.btn-hero-action:hover::before {
  animation-duration: 4s;
}

.btn-hero-action:hover::after {
  background: linear-gradient(135deg, #E63946 0%, #D72638 100%) !important;
}

/* Premium Badge */
.premium-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 30px;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 5;
  margin-bottom: 10px; /* Space between badge and massive title */
}

.premium-badge i {
  color: var(--primary, #D72638);
}

/* Glowing Background Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
  animation: float-anim 8s ease-in-out infinite alternate;
}
.glow-orb-1 {
  width: 300px;
  height: 300px;
  background: #dc3545;
  top: 20%;
  left: 10%;
}
.glow-orb-2 {
  width: 400px;
  height: 400px;
  background: #0d47a1;
  bottom: 10%;
  right: 5%;
  animation-delay: 2s;
}

/* Floating Animation */
@keyframes float-anim {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* Bottom Object Architecture */
.hero-bottom-wrapper {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Skeleton Loader for Hero Images */
.hero-img-skeleton {
  width: 75%;
  max-width: 650px;
  height: 40vh;
  max-height: 380px;
  margin: 0 auto 10px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.05) 100%);
  background-size: 200% 100%;
  animation: heroSkeletonShimmer 1.6s infinite ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@keyframes heroSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-bottom-img {
  width: 100%;
  height: auto;
  max-height: 70vh; /* Increased size for desktop */
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.4));
  animation: float-anim 6s ease-in-out infinite; /* Added float animation */
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.hero-bottom-img.hero-img-loading {
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute !important;
}

/* CSS 3D Transformed Logo applied specifically to the container */
.hero-3d-logo {
  position: absolute;
  top: 35%;
  left: 20%;
  width: 35%;
  height: auto;
  transform: rotateY(-36deg) rotateX(4deg) rotateZ(-3deg) skewY(15deg);
  opacity: 0.95;
  pointer-events: none;
}

.fc-icon-wrap.red-icon {
  background: rgba(255, 253, 254, 0.15) !important;
  color: var(--white) !important; /* Premium Red */
}

/* Apply float to the cards */
.fc {
  position: absolute;
  background: rgba(11, 19, 32, 0.4); /* Make it glassy and blend in */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 50; /* Bring solidly in front of vehicle */
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Cinematic Floating Animation */
@keyframes cinematicDrift1 {
  0% { transform: translateY(0) rotate(0deg) translateX(0); }
  33% { transform: translateY(-15px) rotate(1deg) translateX(5px); }
  66% { transform: translateY(10px) rotate(-1deg) translateX(-5px); }
  100% { transform: translateY(0) rotate(0deg) translateX(0); }
}

@keyframes cinematicDrift2 {
  0% { transform: translateY(0) rotate(0deg) translateX(0); }
  33% { transform: translateY(15px) rotate(-1deg) translateX(-5px); }
  66% { transform: translateY(-10px) rotate(1deg) translateX(5px); }
  100% { transform: translateY(0) rotate(0deg) translateX(0); }
}

.fc.fc-tl {
  animation: cinematicDrift1 8s ease-in-out infinite;
}

.fc.fc-tr {
  animation: cinematicDrift2 9s ease-in-out infinite;
}

.fc-icon-wrap {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255,255,255,0.05);
}

.fc-info strong {
  display: block;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff; /* Changed to white for dark glassy background */
}

.fc-info span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6); /* Adjusted for dark background */
}

/* Base Body settings for service pages */
.service-body {
    background-color: var(--navy);
    color: var(--white);
    font-family: 'Satoshi', sans-serif;
    margin: 0;
    padding: 0;
}

.service-content-wrapper {
  position: relative;
  z-index: 5;
  background: var(--navy);
  padding: 80px 20px;
  min-height: 100vh;
}

/* Premium Form Containers */
.service-form-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-form-card h3 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--white);
}

.service-form-card input,
.service-form-card select,
.service-form-card textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-family: 'Satoshi', sans-serif;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    outline: none;
    transition: all 0.3s;
}

.service-form-card input::placeholder,
.service-form-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.service-form-card select option {
    background-color: var(--navy);
    color: var(--white);
}

.service-form-card input:focus,
.service-form-card select:focus,
.service-form-card textarea:focus {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.service-form-card button {
    display: inline-block;
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(215, 38, 56, 0.3);
}

.service-form-card button:hover {
    background: #b91c30;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(215, 38, 56, 0.4);
}

/* Desktop Adjustments */
@media (min-width: 769px) {
    .parallax-text-container {
        padding-top: 18vh; /* Bring content down further on desktop to clear navbar */
    }

    .fc.fc-tl {
        left: 15% !important; /* Spread further apart, but still near the vehicle */
        top: 60% !important; /* Align vertically with the button */
    }
    .fc.fc-tr {
        right: 15% !important; /* Spread further apart, but still near the vehicle */
        top: 75% !important; /* Bring further down, below the button */
    }
    
    /* Premium Glassmorphism Background for Subtitle (Desktop Only) */
    .parallax-subtitle {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 0.8rem 1.2rem;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
        text-shadow: 0 2px 8px rgba(0,0,0,0.45);
        color: #fff; /* Ensure high contrast */
    }
}

/* Mobile Adjustments for Floating Cards & Typography */
@media (max-width: 768px) {
    .parallax-text-container {
        padding-top: 12vh;
        margin-bottom: 3vh; /* Small gap before hero element */
    }
    .parallax-title {
        font-size: clamp(3.5rem, 16vw, 6rem); /* Huge on mobile */
    }
    .parallax-title span.highlight {
        display: block; /* Break to next line ONLY on mobile */
    }
    .parallax-subtitle {
        font-size: 1.1rem;
    }
    .hero-bottom-wrapper {
        position: relative;
        bottom: 0;
        margin-top: auto; /* Pushes it to the bottom but allows it to flow naturally */
    }
    .hero-bottom-img {
        max-height: 50vh; /* Increased by 10% to fill empty space */
        width: auto;
    }
    .hero-img-skeleton {
        width: 85%;
        height: 30vh;
        max-height: 240px;
    }
    .premium-badge {
        font-size: 0.8rem;
    }
    .fc {
        transform: scale(0.85) !important;
    }
}

/* ========================================================
   SERVICE CONTENT LAYOUT & UTILITIES (Replacing Inline CSS)
   ======================================================== */
.service-content-row {
    display: flex; 
    gap: 40px; 
    max-width: 1200px; 
    margin: 0 auto; 
    flex-wrap: wrap;
}
.service-info-col {
    flex: 1; 
    min-width: 300px;
}
.service-info-title {
    font-family: 'Clash Display', sans-serif; 
    font-size: 2.5rem; 
    margin-bottom: 20px;
}
.service-info-desc {
    font-size: 1.1rem; 
    line-height: 1.7; 
    opacity: 0.8; 
    margin-bottom: 30px;
}
.service-feature-list {
    list-style: none; 
    padding: 0;
}
.service-feature-item {
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    gap: 15px;
}
.service-feature-icon {
    width: 40px; 
    height: 40px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--primary);
}
.service-feature-text {
    font-weight: 500;
}
.service-form-col {
    flex: 1; 
    min-width: 350px;
}
.form-group-flex {
    display: flex; 
    gap: 10px;
}
.form-flex-1 {
    flex: 1;
}
.input-auto-width {
    width: auto;
}
.checkbox-label {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: normal; 
    margin-top: 15px;
}
.required-asterisk {
    color: #ffc107;
}
.optional-text {
    color: #aaa;
}
.form-help-text {
    color: rgba(255,255,255,0.8); 
    margin-bottom: 20px; 
    font-size: 0.9rem;
}
.form-note-text {
    font-size: 0.9rem; 
    margin-top: 10px; 
    color: rgba(255,255,255,0.7);
}
.fc-pos-tl {
    top: 25%; 
    left: 3%;
}
.fc-pos-tr {
    top: 40%; 
    right: 3%;
}
.hero-img-shadow-heavy {
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6));
}
.hero-img-shadow-light {
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.2));
}

.service-feature-icon-yellow {
    width: 40px; 
    height: 40px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #ffc107;
}

.d-none {
    display: none !important;
}

.mb-10 {
    margin-bottom: 10px;
}

.form-section-title {
    margin-top: 20px; 
    font-size: 1rem;
}


/* Mobile Adjustments for Floating Cards & Typography */
@media (max-width: 768px) {
    .parallax-title {
        font-size: 3rem !important; /* Smaller on mobile */
        margin-bottom: 10px;
    }
    
    .parallax-subtitle {
        font-size: 0.95rem; /* Slightly larger readability on mobile */
        max-width: 90%;
        margin: 0 auto;
    }
}
 
/* Mobile Adjustments for Floating Cards & Typography */
@media (max-width: 768px) {
    .parallax-title {
        font-size: 3rem !important; /* Smaller on mobile */
        margin-bottom: 10px;
    }
    
    .parallax-subtitle {
        font-size: 0.95rem; /* Slightly larger readability on mobile */
        max-width: 90%;
        margin: 0 auto;
    }

    .fc.fc-tl {
        top: 65% !important; /* Beneath the button, in the empty space */
        bottom: auto !important; 
        left: 1% !important; /* Move directly to the edge */
        transform: scale(0.85) translateY(-0.5rem) !important; /* Move up slightly by 0.5rem */
    }
    .fc.fc-tr {
        top: auto !important;
        bottom: 5% !important; /* Push it down closer to the bottom */
        right: 1% !important; /* Move directly to the edge */
        transform: scale(0.85) !important;
    }
    
    .premium-badge {
        font-size: 0.8rem;
    }
}
