html, body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #001f3f 0%, #4b0000 100%) fixed;
  background-size: cover;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 90px 0 140px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #001f3f, #4b0000);
  padding: 8px 0;
  text-align: center;
  z-index: 2000;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.logo-header {
  width: 120px;
  height: auto;
  transition: all 0.4s ease-in-out;
}

header.shrink {
  background: linear-gradient(to right, rgba(0,31,63,0.9), rgba(75,0,0,0.9));
  padding: 3px 0;
  backdrop-filter: blur(6px);
}

header.shrink .logo-header {
  width: 48px;
  transform: translateY(2px);
}

/* Carousel Container */
.carousel-wrapper {
  position: relative;
  perspective: 1000px;
  overflow: visible;
  margin: 20px auto;
  z-index: 1;
  flex: 1;
  padding-bottom: 0;
  margin-bottom: 40px;
}

.carousel-container {
  position: relative;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  overflow: hidden;
  width: 100%;
}

/* Carousel Cards */
.carousel-card {
  position: absolute;
  background: rgba(20, 20, 20, 0.95);
  border-radius: 15px;
  padding: 25px;
  width: 70%;
  max-width: 950px;
  min-height: 450px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateZ(-200px) rotateY(0deg);
  transition: all 1s ease;
  filter: blur(0px);
}

.carousel-card.active {
  opacity: 1;
  transform: translateZ(0) rotateY(0deg) scale(1.05);
  z-index: 5;
}

.carousel-card.left {
  opacity: 0.4;
  transform: translateX(-50%) rotateY(40deg);
  z-index: 1;
  filter: blur(3px);
}

.carousel-card.right {
  opacity: 0.4;
  transform: translateX(50%) rotateY(-40deg);
  z-index: 1;
  filter: blur(3px);
}

.carousel-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.carousel-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 15px;
  color: gold;

  border-radius: 8px;
  border: 2px solid transparent;
  background:
    linear-gradient(#000000, #000000) padding-box,
    linear-gradient(135deg, #ff00ff, #ffae00, #00e5ff, #00ff88) border-box; 
}

/* Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 1000;
  transition: color 0.3s;
}

.carousel-arrow:hover { 
  color: #0d6efd; 
}

.arrow-left { left: 5%; }
.arrow-right { right: 5%; }

/* Buttons */
.btn-glow {
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 20px;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-blue {
  background: linear-gradient(45deg, #0066ff, #8a2be2);
  box-shadow: 0 0 15px rgba(100, 80, 255, 0.6);
}

.btn-orange {
  background: linear-gradient(45deg, #ff4500, #ffb300);
  box-shadow: 0 0 15px rgba(255, 120, 0, 0.6);
}

.btn-glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}

.btn-equal {
  width: 140px;
  text-align: center;
  display: inline-block;
}

/* Icons */
.icon-group a {
  font-size: 3rem;
  margin: 10px 24px 0 24px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.icon-group a:hover {
  transform: scale(1.25);
}

.icon-group a .bi-whatsapp { color: #25D366; }
.icon-group a .bi-chat-left-dots { color: #ff4d4d; }
.icon-group a .bi-tags { color: #ffb347; }

.icon-group a:hover .bi-whatsapp { color: #00ff7f; }
.icon-group a:hover .bi-chat-left-dots { color: #ff6666; }
.icon-group a:hover .bi-tags { color: #ffd166; }

/* Table */
.carousel-table {
  width: 100%;
  color: #fff;
  margin-top: 10px;
  border-collapse: collapse;
}

.carousel-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.carousel-table tr:last-child td {
  border-bottom: none;
}

/* Image Slider */
.image-slider {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  margin-top: 15px;
  border-radius: 8px;
  padding: 6px 0;
}

.image-track {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: scrollImages 5s linear infinite;
  width: max-content;
}

.image-track img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-track img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.image-slider:hover .image-track {
  animation-play-state: paused;
}

@keyframes scrollImages {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Footer Slider */
.footer-slider {
  flex-shrink: 0;
  background-color: #262626;
  border-top: 1px solid rgba(255,255,255,0.1);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  padding-top: 20px;
}

.footer-carousel {
  width: 100%;
  overflow: hidden;
}

.scroll-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 36px;
  animation: carouselScroll 25s linear infinite;
  will-change: transform;
}

.scroll-track:hover {
  animation-play-state: paused;
}

.scroll-track a img {
  height: 50px;
  width: 160px;
  flex-shrink: 0;
  border-radius: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.scroll-track a img:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

@keyframes carouselScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.footer-blur-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: rgba(38,38,38,0.85);
}

.footer-blur-wrap::before,
.footer-blur-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.footer-blur-wrap::before {
  left: 0;
  background: linear-gradient(to right,rgba(38,38,38,1)20%,rgba(38,38,38,0)100%);
}

.footer-blur-wrap::after {
  right: 0;
  background: linear-gradient(to left,rgba(38,38,38,1)20%,rgba(38,38,38,0)100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    background-color: #000;
  }

  .carousel-wrapper {
    margin: 10px auto 35px;
    overflow: visible;
  }

  .carousel-wrapper::after {
    content: "";
    display: block;
    height: 450px;
  }

  .carousel-container {
    display: block;
    height: auto;
    overflow: visible;
    position: relative;
    transform-style: preserve-3d;
  }

  .carousel-card {
    position: absolute;
    width: 90%;
    left: 50%;
    transform: translateX(-50%) translateZ(-200px);
    transition: all 0.8s ease;
    opacity: 0;
    z-index: 0;
    padding: 15px;
    box-sizing: border-box;
  }

  .carousel-card.active {
    opacity: 1;
    transform: translateX(-50%) translateZ(0);
    z-index: 3;
  }

  .carousel-card.left,
  .carousel-card.right {
    opacity: 0;
    transform: translateX(-50%) translateZ(-200px) scale(0.9);
    z-index: 1;
  }

  .carousel-card .row {
    flex-direction: column;
  }

  .carousel-arrow {
    top: 12%;
  }

  .image-slider {
    height: 80px;
    padding: 4px 0;
    margin-top: 10px;
  }

  .image-track img {
    width: 75px;
    height: 75px;
  }

  .scroll-track a img {
    height: 55px;
  }

  .footer-slider {
    min-height: 80px;
  }

  .footer-blur-wrap::before,
  .footer-blur-wrap::after {
    opacity: 0;
    backdrop-filter: none;
  }
}

@media (min-width: 769px) and (max-width: 999px) {
  .carousel-container {
    display: block;
    height: auto;
    overflow: visible;
    position: relative;
    align-items: stretch;
    padding-top: 40px;
    transform-style: preserve-3d;
  }

  .carousel-card {
    position: absolute;
    width: 90%;
    max-width: 900px;
    left: 50%;
    transform: translateX(-50%) translateZ(-200px) scale(0.9);
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    z-index: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
  }

  .carousel-card.active {
    opacity: 1;
    transform: translateX(-50%) translateZ(0) scale(1.02);
    z-index: 3;
  }

  .carousel-card.left,
  .carousel-card.right {
    opacity: 0;
    transform: translateX(-50%) translateZ(-200px) scale(0.9);
    z-index: 1;
  }

  .carousel-arrow {
    top: 50%;
    font-size: 3rem;
    z-index: 10;
  }

  .arrow-left { left: -5%; }
  .arrow-right { right: -5%; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .carousel-card {
    width: 95%;
    max-width: 720px;
  }

  .carousel-wrapper {
    margin-bottom: 360px;
  }

  .arrow-left,
  .arrow-right {
    top: 25%;
  }

  .arrow-left { left: 0; }
  .arrow-right { right: 0; }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 360px;
  }

  .carousel-card {
    width: 90%;
    min-height: 320px;
  }
}

@media (max-width: 344px) {
  main {
    padding-bottom: 200px;
  }
}