/* ============================================================
   Home Page Styles — Light Theme
   ============================================================ */

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d1b2a;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  clip-path: inset(0 0% 0 0%);
}

.preloader-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  background: transparent;
}

.preloader-ring {
  position: absolute;
  width: 300px;
  height: 300px;
}

.preloader-ring circle {
  fill: none;
  stroke: var(--color-accent, #D4AF37);
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  stroke-linecap: round;
  animation: preloader-draw 1.2s ease-out 0.1s forwards;
}

@keyframes preloader-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.preloader-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #3b82f6;
  overflow: hidden;
  direction: ltr;
  unicode-bidi: isolate;
}

.preloader-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
  overflow: hidden;
  background: linear-gradient(160deg, #0A1118 0%, #0D1B2A 60%, #111C29 100%);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 2.5vh, 2rem);
  max-width: 900px;
}

/* ---------- Hero Slideshow ---------- */
.hero-slideshow {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(91, 155, 213, 0.15);
  border-bottom: 1px solid rgba(91, 155, 213, 0.15);
  max-height: 350px;
  position: relative;
  z-index: 1;
}

.hero-slideshow-track {
  display: flex;
  animation: hero-slide 20s linear infinite;
  width: max-content;
  height: 350px;
}

.hero-slideshow-track img {
  width: 25vw;
  height: 350px;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes hero-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-33.33%); }
}

@media (max-width: 768px) {
  .hero-slideshow {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-height: 200px;
    border: none;
  }
  .hero-slideshow-track {
    height: 200px;
  }
  .hero-slideshow-track img {
    min-width: 100vw;
    width: 100vw;
    height: 200px;
  }
  .hero-slideshow-track {
    animation: hero-slide-mobile 20s linear infinite;
  }
}
@keyframes hero-slide-mobile {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-accent-pale, #dbeafe);
  border: 1px solid rgba(30, 64, 175, 0.15);
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent, #1e40af);
}

.hero-badge::before,
.hero-badge::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  background: var(--color-accent, #1e40af);
  border-radius: 50%;
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  line-height: 1.15;
  color: var(--color-text, #F0F4F8);
  perspective: 600px;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: center;
}

.hero-title .char {
  transform-origin: bottom center;
}

.hero-title-highlight .char {
  background: var(--gradient-accent-text);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-text-secondary, #A0AEC0);
  max-width: 550px;
  line-height: 1.6;
}

.hero-cta {
  margin-top: 0.5rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted, #8a9bb0);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    var(--color-accent, #1e40af),
    transparent
  );
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ---------- Intro Statement Section ---------- */
.intro-section {
  position: relative;
  overflow: hidden;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.4fr 1px 0.6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 60vh;
}

.intro-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(8rem, 18vw, 16rem);
  line-height: 0.85;
  -webkit-text-stroke: 2px var(--color-accent, #1e40af);
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
}

.intro-number-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--color-accent, #1e40af);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0s;
}

.intro-divider {
  width: 1px;
  height: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-accent, #1e40af),
    transparent
  );
  align-self: stretch;
}

.intro-text {
  max-width: 520px;
}

.intro-text p {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.85;
  color: var(--color-text-secondary, #4a5568);
  margin-bottom: 2rem;
}

.intro-text .btn {
  margin-top: 0.5rem;
}

/* ---------- Services Grid (replaces horizontal scroll) ---------- */
.services-grid-section {
  background: var(--color-surface-2, #f0f4f8);
}

.services-horizontal-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.service-card {
  padding: clamp(2rem, 3vw, 3rem);
  background: var(--color-surface-2, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 24px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.service-card:hover {
  border-color: var(--color-accent, #1e40af);
  box-shadow: 0 16px 48px rgba(30, 64, 175, 0.1);
  transform: translateY(-4px);
  background: var(--color-surface-2, rgba(255, 255, 255, 0.08));
}

.service-card-number {
  position: absolute;
  top: -0.2em;
  right: -0.05em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(6rem, 12vw, 10rem);
  color: var(--color-accent-pale, #dbeafe);
  line-height: 1;
  pointer-events: none;
  -webkit-text-fill-color: var(--color-accent-pale, #dbeafe);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text, #0d1b2a);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary, #4a5568);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.service-card-accent-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--gradient-accent);
  transition: height 0.5s var(--ease-out);
  border-radius: 3px;
}

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

.services-link {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ---------- Brands Section ---------- */
.brands-section {
  position: relative;
  overflow: hidden;
}

.brands-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.brands-header .section-title .kinetic-word {
  display: inline-block;
  transition: transform 0.3s ease;
}

.marquee-wrapper {
  overflow: hidden;
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll var(--duration, 40s) linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track--reverse {
  animation-direction: reverse;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--color-surface-2, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--color-text, #F0F4F8);
  margin: 0 0.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  -webkit-text-fill-color: var(--color-text, #F0F4F8);
  transition: all 0.3s ease;
}

.marquee-item:hover {
  border-color: var(--color-accent, #D4AF37);
  color: var(--color-accent, #D4AF37);
  -webkit-text-fill-color: var(--color-accent, #D4AF37);
}

.marquee-item--logo {
  gap: 0.6rem;
  padding: 0.4rem 1rem;
}

.marquee-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.marquee-item--logo:hover .marquee-logo {
  filter: brightness(1.1);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.brands-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.brands-stat {
  text-align: center;
  padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
}

.brands-stat-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--color-accent, #1e40af);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.brands-stat-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary, #4a5568);
}

.brands-stat-sep {
  width: 1px;
  height: 50px;
  background: var(--color-border-strong, rgba(30, 64, 175, 0.2));
}

/* ---------- Products Teaser ---------- */
.products-teaser {
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.product-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-2, #f0f4f8);
  border: 1px solid var(--color-border, rgba(30, 64, 175, 0.1));
  transform-style: preserve-3d;
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.7s var(--ease-out);
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.85), transparent);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}

.product-card:hover .product-card-overlay {
  transform: translateY(0);
}

.product-card-category {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dbeafe;
  padding: 0.25rem 0.6rem;
  background: rgba(30, 64, 175, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  display: inline-block;
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: #ffffff;
}

.products-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ---------- Why Choose Us - Zigzag ---------- */
.why-section {
  position: relative;
}

.why-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.why-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
  overflow: hidden;
}

.why-timeline-line-inner {
  width: 100%;
  height: 0%;
  background: linear-gradient(
    to bottom,
    var(--color-accent, #1e40af),
    rgba(30, 64, 175, 0.2)
  );
}

.why-item {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 2rem 0;
  position: relative;
}

.why-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.why-item-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent, #1e40af);
  z-index: 2;
  box-shadow: 0 0 12px rgba(30, 64, 175, 0.3);
}

.why-item-content {
  flex: 1;
}

.why-item-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 5vw, 4rem);
  color: var(--color-accent, #1e40af);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.why-item-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary, #A0AEC0);
}

.why-item-spacer {
  flex: 1;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  text-align: center;
  padding: clamp(4rem, 12vh, 10rem) 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0D1B2A 0%, #1A3A5C 50%, #0D2847 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-banner .gradient-mesh {
  background:
    radial-gradient(
      ellipse 60% 50% at 20% 30%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 70%
    ),
    radial-gradient(
    ellipse 40% 60% at 80% 70%,
    rgba(30, 64, 175, 0.06) 0%,
    transparent 70%
  );
}

.cta-banner-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: var(--space-lg);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 768px) {
  .cta-banner-title {
    font-size: clamp(1.1rem, 4.5vw, 2rem);
    line-height: 1.3;
    padding: 0 1rem;
    text-align: center;
    white-space: nowrap;
    max-width: 100%;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .intro-number {
    font-size: clamp(6rem, 20vw, 10rem);
  }

  .intro-divider {
    width: 60%;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(
      to right,
      transparent,
      var(--color-accent, #1e40af),
      transparent
    );
  }

  .intro-text {
    max-width: 100%;
    margin: 0 auto;
  }

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

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

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--nav-height) + 1.5rem) 1.5rem 3rem;
    min-height: 85vh;
  }

  .hero-content {
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 3rem);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .hero-badge {
    font-size: 0.6rem;
    padding: 0.4rem 1rem;
  }

  .intro-grid {
    min-height: auto;
  }

  .intro-text p {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    line-height: 1.7;
  }

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

  .product-card img {
    height: 180px;
  }

  .why-timeline-line {
    display: none;
  }
  .why-item-dot {
    display: none;
  }

  .why-item,
  .why-item:nth-child(odd) {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1.25rem 0;
  }

  .why-item-spacer {
    display: none;
  }

  .why-item-number {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .why-item-label {
    font-size: 0.8rem;
  }

  .brands-stat-sep {
    display: none;
  }
  .brands-stats {
    gap: 1rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
  }
  .brands-stat {
    flex: 1 1 40%;
    padding: 0.75rem;
  }
  .brands-stat-number {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .cta-banner {
    padding: clamp(3rem, 10vh, 6rem) 1.5rem;
  }

  .service-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
  }

  .service-card-number {
    font-size: clamp(4rem, 15vw, 7rem);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
    padding: calc(var(--nav-height) + 0.5rem) 1rem 2rem;
  }

  .hero-content {
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .cta-banner-title {
    font-size: clamp(0.95rem, 4vw, 1.4rem);
    line-height: 1.3;
    text-align: center;
    padding: 0 1rem;
    white-space: nowrap;
    max-width: 100%;
  }

  .brands-stat {
    flex: 1 1 100%;
  }

  .preloader-logo {
    width: 140px;
    height: 140px;
  }
  .preloader-ring {
    width: 210px;
    height: 210px;
  }

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

  .product-card img {
    height: 200px;
  }

  .intro-number {
    font-size: clamp(5rem, 18vw, 8rem);
  }

  .intro-text p {
    font-size: 0.92rem;
  }
}
