@import url('https://fonts.googleapis.com/css2?family=Racing+Sans+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00c2de;
}

body {
    background: #000000;
    font-family: 'Roboto', sans-serif;
}

/* Header */

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 100px;
    z-index: 1000;
}

header::after {
    position: absolute;
    content: '';
    top: 50%;
    transform: translateY(-50%);
    left: 100px;
    height: 5px;
    width: 40%;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.logo {
    font-size: 30px;
    color: #ffffff;
}

.logo img {
    max-width: 200px;
    filter: invert(1);
    /* filter: invert(48%) sepia(93%) saturate(1352%) hue-rotate(87deg) brightness(119%) contrast(119%); */
    /* margin-top: -10px; */
    transform: translateY(-20px);
}

header .year {
    font-family: 'Racing Sans One', cursive;
    font-size: 1em;
    color: transparent;
    font-weight: 800;
    margin-top: 40px;
}

header .menu {
    position: relative;
    height: 40px;
    width: 40px;
    z-index: 10001;
    display: block;
    background: url('../images/menu-3-fill.png') no-repeat;
    background-size: 30px;
    background-position: center;
    filter: invert(1);
    cursor: pointer;
}

header .menu.active {
    position: relative;
    height: 35px;
    width: 35px;
    background: url('../images/close-line.png') no-repeat;
    background-size: 30px;
    background-position: center;
    filter: invert(1);
    cursor: pointer;
}

.nav {
    z-index: 5000;
    position: absolute;
    right: 100px;
    top: 0;
    width: 30%;
    height: 5px;
    border-bottom: 4px solid;
    border-image: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        var(--primary)
        ) 
        30;
    background: transparent;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 1s;
    transform-origin: right;
}

.nav.active {
    top: 100px;
    width: 40%;
    height: 100px;
    border-top: 5px solid;
    border-image: linear-gradient(
        90deg,
            transparent,
            var(--primary),
            var(--primary),
            transparent
        ) 
        30;
    border-bottom: none;
}

.nav li {
    position: relative;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100px);
    transition: 0.5s;
}

.nav.active li {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.nav li a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 200;
    letter-spacing: 1px;
    padding: 8px 20px;
    transition: 0.2s;
    cursor: pointer;
}

.nav li a:hover {
    box-shadow: inset 0 0 20px rgb(0, 194, 222, 0.5);
}

/* Banner */
.banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0 100px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    transition: 0.5s;
}

.banner::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.9)
    );
}

.banner::before {
    position: absolute;
    content: '';
    top: 25%;
    left: 0;
    width: 5px;
    height: 40%;
    background: linear-gradient(var(--primary), var(--primary), transparent);
    z-index: 100;
}

/* Background Video */
.banner .bg-video {
    display: none;
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.banner .bg-video.active {
    display: block;
}

/* Banner Content */
.banner .content {
    position: relative;
    max-width: 700px;
    padding-bottom: 200px;
    z-index: 100;
}

.banner .content h1 {
    font-family: 'Racing Sans One', cursive;
    font-size: 10em;
    color: #ffffff;
    font-weight: 500;
    line-height: 0.8em;
    letter-spacing: 5px;
}

.banner .content .model {
    font-size: 4em;
    text-transform: uppercase;
    color: var(--primary);
    display: none;
}

.banner .content .model.active {
    display: block;
}

.banner .content p {
    color: #ffffff;
    font-size: 200;
    letter-spacing: 1px;
    margin-bottom: 50px;
}

.banner .content a {
    position: relative;
    width: 200px;
    color: #ffffff;
    text-decoration: none;
    padding: 5px 20px;
    background: transparent;
    border-bottom: 2px solid;
    border-image: linear-gradient(
            90deg,
            var(--primary),
            var(--primary),
            transparent
        )
        30;
    box-shadow: inset 0 0 20px rgb(0, 194, 222, 0.5);
    backdrop-filter: blur(20px);
    text-transform: uppercase;
    font-size: 1.0em;
    font-weight: 200;
    letter-spacing: 1px;
    transform: 0.5s;
}
  
.banner .content a:hover {
    box-shadow: inset 0 0 50px rgb(0, 194, 222, 0.5);
}

/* screen */
.banner .screen {
    position: absolute;
    right: 10;
    bottom: 100px;
    width: 300px;
    height: 200px;
    transform-style: preserve-3d;
    animation: animate 30s linear infinite;
    z-index: 100;
}

/* Banner Gallery */
.banner .gallery {
    position: absolute;
    content: '';
    right: 100px;
    bottom: 0;
    width: 55%;
    height: 30%;
    z-index: 100;
    background: transparent;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.5),
        0px -5px 5px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner .gallery::before {
    position: absolute;
    content: '';
    right: 0;
    bottom: 0;
    width: 100%;
    height: 10px;
    background: var(--primary);
    filter: blur(15px);
}

.banner .gallery .carousel {
    width: 100%;
    height: 100%;
}

.carousel .carousel-item {
    width: 250px;
    cursor: pointer;
}

.carousel .carousel-item img {
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
}

.carousel .carousel-item h4 {
    text-align: center;
    color: var(--primary);
    font-size: 1.3em;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 600px) {
    header {
        padding: 20px 50px;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    /* header::after {
        left: 50%;
        transform: translate(-50%, -50%);
        background: var(--primary);
    } */

    .logo{
        margin-top: 10px;
    }
    .nav {
        right: 0;
        width: 100%;
        z-index: 500;
        backdrop-filter: blur(10px);
    }
    .nav.active {
        right: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        /* border: none; */
    }
    .banner {
        padding: 50px 30px 100px;
    }
    .banner .content {
        position: relative;
        padding: 50px 0 100px;
    }

    .banner .content h1 {
        font-size: 5em;
    }
    .banner .content .model {
        font-size: 2em;
    }
    .banner .content a {
        /* width: 150px; */
        padding: 5px 30px;
    }

    .banner .screen {
        display: none;
    }

    .banner .gallery {
        width: 100%;
        left: 0;
    }
    .sci {
        right: 20px
    }
}

/* New object styles */

/* General styles for new sections */
section { padding: 80px 10%; text-align: center; }
.sub-title { color: #f9a14d; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; }
.section-title { font-size: 3rem; font-weight: 700; margin-bottom: 50px; color: #333; }
.container-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 0 40px; }
.cars-section-wrapper { margin-bottom: 60px; }
.cars-category-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 40px; margin-top: 40px; color: #fff; text-transform: uppercase; letter-spacing: 1px; }

/* Search Bar */
.search-container { background: #fff; padding: 40px 10%; }
.search-bar { 
    display: flex; gap: 15px; background: #fff; padding: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 5px; align-items: flex-end;
}
.search-bar .input-field { flex: 1; margin: 0; }
.search-btn { 
    background: #f9a14d; color: #fff; border: none; padding: 15px 40px; 
    height: 45px; cursor: pointer; border-radius: 4px; font-weight: bold;
}

/* Services */
.service-item .icon { font-size: 40px; color: #f9a14d; display: block; margin-bottom: 15px; }
.service-item h4 { font-size: 1.2rem; font-weight: 600; }
.service-item p { color: #777; line-height: 1.6; }

/* How It Works (Dark) */
.how-it-works { 
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../images/car-bg.jpg'); 
    background-size: cover; color: #fff; 
}
.step-icon { 
    width: 80px; height: 80px; border: 2px solid #f9a14d; border-radius: 50%; 
    line-height: 80px; margin: 0 auto 20px; font-size: 30px; 
}
.white-text { color: #fff !important; }

/* Footer */
.main-footer { background: #000; color: #fff; padding-top: 80px; text-align: left; }
.footer-col h4 { margin-bottom: 30px; font-size: 18px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; color: #bbb; cursor: pointer; }
.copyright { 
    text-align: center; padding: 40px 0; border-top: 1px solid #222; 
    margin-top: 50px; color: #888; font-size: 13px;
}

/* Car Card Section */
.car-offers {
    background-color: #fcfcfc;
}

.car-card {
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.car-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.car-image {
    position: relative;
    width: 100%;
    height: 200px;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The Orange Price Badge */
.price-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #fff;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 2px -2px 10px rgba(0,0,0,0.1);
}

.price-tag .amount {
    color: #f9a14d;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

.price-tag .per-day {
    color: #999;
    font-size: 10px;
    letter-spacing: 1px;
}

.car-info {
    padding: 25px 15px;
}

.car-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.car-info .brand {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Card Buttons */
.card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-outline {
    flex: 1;
    border: 1px solid #eee;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #f9a14d;
    color: #fff;
    border-color: #f9a14d;
}

.about__container {
  display: grid;
  gap: 2rem;
  overflow: hidden;
  background-color: #f9f9f9;
  grid-template-columns: 1fr 1fr;
  padding: 2rem;
}

.about__image img {
  max-width: 500px;
  margin-inline: auto;
  width: 100%;
  height: auto;
}

.about__content .section__description {
  margin-block: 1rem;
}

.about__btn {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.fleet__container {
  padding-block: 5rem;
  padding-inline: 0rem;
  background-color: #f9f9f9;
}

.fleet__container :is(.section__subheader, .section__header) {
  padding-inline: 1rem;
}

.fleet__container .section__description {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 4rem;
  padding-inline: 1rem;
}

.fleet__wrapper-1 {
  margin-bottom: 1rem;
}

.fleet__wrapper-1,
.fleet__wrapper-2 {
  overflow-x: hidden;
}

.fleet__images {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fleet__wrapper-1 .fleet__images {
  animation: scroll-left 45s linear infinite;
}

.fleet__wrapper-2 .fleet__images {
  animation: scroll-right 45s linear infinite;
}

.fleet__images img {
  border-radius: 1rem;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.fleet__wrapper-1 .fleet__images img {
  max-width: 450px;
}

.fleet__wrapper-2 .fleet__images img {
  max-width: 300px;
}

@keyframes scroll-left {
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

@keyframes scroll-right {
  from {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about__container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .fleet__container {
    padding-block: 3rem;
    padding-inline: 1.5rem;
  }

  .fleet__wrapper-1 .fleet__images img {
    max-width: 350px;
  }

  .fleet__wrapper-2 .fleet__images img {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .about__container {
    gap: 1.5rem;
    padding: 1rem;
  }

  .about__image img {
    max-width: 300px;
  }

  .fleet__container {
    padding-block: 2rem;
    padding-inline: 1rem;
  }

  .fleet__container .section__description {
    margin-bottom: 2rem;
  }

  .fleet__wrapper-1 .fleet__images img {
    max-width: 280px;
  }

  .fleet__wrapper-2 .fleet__images img {
    max-width: 200px;
  }

  .fleet__images {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .about__container {
    gap: 1rem;
    padding: 0.75rem;
  }

  .about__image img {
    max-width: 100%;
  }

  .fleet__container {
    padding-block: 1.5rem;
    padding-inline: 0.75rem;
  }

  .fleet__container :is(.section__subheader, .section__header) {
    padding-inline: 0.5rem;
    color: white;
  }

  .fleet__container .section__description {
    margin-bottom: 1.5rem;
    padding-inline: 0.5rem;
  }

  .fleet__wrapper-1 .fleet__images img {
    max-width: 200px;
  }

  .fleet__wrapper-2 .fleet__images img {
    max-width: 150px;
  }

  .fleet__images {
    gap: 0.5rem;
  }

  .fleet__wrapper-1 .fleet__images {
    animation: scroll-left 30s linear infinite;
  }

  .fleet__wrapper-2 .fleet__images {
    animation: scroll-right 30s linear infinite;
  }
}

/* Dark Mode Styling */
.dark-section {
  background: linear-gradient(135deg, #020816 0%, #050b1a 100%);
  padding: 4rem 0;
}

.dark-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.dark-heading .section-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dark-heading .sub-title {
  color: #00c2de;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.dark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.dark-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  border: 1px solid rgba(0, 194, 222, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dark-card:hover {
  border-color: rgba(0, 194, 222, 0.5);
  box-shadow: 0 15px 50px rgba(0, 194, 222, 0.2);
  transform: translateY(-5px);
}

.dark-card .car-image {
  overflow: hidden;
  height: 250px;
}

.dark-card .car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dark-card:hover .car-image img {
  transform: scale(1.05);
}

/* Image Carousel for Car Cards */
.car-image-carousel {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #000;
}

.car-image-carousel .car-image {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.car-image-carousel .car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-image-carousel .car-image:nth-child(1) {
  animation: carouselImage1 2s infinite;
}

.car-image-carousel .car-image:nth-child(2) {
  animation: carouselImage2 2s infinite;
}

.car-image-carousel .car-image:nth-child(3) {
  animation: carouselImage3 2s infinite;
}

.car-image-carousel .car-image:nth-child(4) {
  animation: carouselImage4 2s infinite;
}

.dark-card:not(:hover) .car-image-carousel .car-image {
  animation: none !important;
}

.dark-card:not(:hover) .car-image-carousel .car-image:first-child {
  opacity: 1 !important;
}

.dark-card:not(:hover) .car-image-carousel .car-image:not(:first-child) {
  opacity: 0 !important;
}

@keyframes carouselImage1 {
  0%, 100% { opacity: 1; }
  24% { opacity: 1; }
  25%, 99% { opacity: 0; }
}

@keyframes carouselImage2 {
  0%, 24% { opacity: 0; }
  25%, 49% { opacity: 1; }
  50%, 99% { opacity: 0; }
}

@keyframes carouselImage3 {
  0%, 49% { opacity: 0; }
  50%, 74% { opacity: 1; }
  75%, 99% { opacity: 0; }
}

@keyframes carouselImage4 {
  0%, 74% { opacity: 0; }
  75%, 99% { opacity: 1; }
  100% { opacity: 0; }
}

/* Carousel Indicator Dots */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-dot.active {
  background-color: #00c2de;
  box-shadow: 0 0 10px rgba(0, 194, 220, 0.6);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background-color: #00c2de;
}

/* Dot animations synchronized with image carousel */
.dark-card:hover .carousel-dot:nth-child(1) {
  animation: dotActive1 3s infinite;
}

.dark-card:hover .carousel-dot:nth-child(2) {
  animation: dotActive2 3s infinite;
}

.dark-card:hover .carousel-dot:nth-child(3) {
  animation: dotActive3 3s infinite;
}

.dark-card:hover .carousel-dot:nth-child(4) {
  animation: dotActive4 3s infinite;
}

@keyframes dotActive1 {
  0%, 100% { 
    background-color: #00c2de;
    box-shadow: 0 0 10px rgba(0, 194, 220, 0.6);
    transform: scale(1.2);
  }
  24% { 
    background-color: #00c2de;
    box-shadow: 0 0 10px rgba(0, 194, 220, 0.6);
    transform: scale(1.2);
  }
  25%, 99% { 
    background-color: #555;
    box-shadow: none;
    transform: scale(1);
  }
}

@keyframes dotActive2 {
  0%, 24% { 
    background-color: #555;
    box-shadow: none;
    transform: scale(1);
  }
  25%, 49% { 
    background-color: #00c2de;
    box-shadow: 0 0 10px rgba(0, 194, 220, 0.6);
    transform: scale(1.2);
  }
  50%, 99% { 
    background-color: #555;
    box-shadow: none;
    transform: scale(1);
  }
}

@keyframes dotActive3 {
  0%, 49% { 
    background-color: #555;
    box-shadow: none;
    transform: scale(1);
  }
  50%, 74% { 
    background-color: #00c2de;
    box-shadow: 0 0 10px rgba(0, 194, 220, 0.6);
    transform: scale(1.2);
  }
  75%, 99% { 
    background-color: #555;
    box-shadow: none;
    transform: scale(1);
  }
}

@keyframes dotActive4 {
  0%, 74% { 
    background-color: #555;
    box-shadow: none;
    transform: scale(1);
  }
  75%, 99% { 
    background-color: #00c2de;
    box-shadow: 0 0 10px rgba(0, 194, 220, 0.6);
    transform: scale(1.2);
  }
  100% { 
    background-color: #555;
    box-shadow: none;
    transform: scale(1);
  }
}

.dark-car-info {
  padding: 1.5rem;
  background: #020816;
}

.dark-car-info h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.dark-car-info .brand {
  color: #00c2de;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.card-actions {
  display: flex;
  gap: 1rem;
}

.dark-btn {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #00c2de;
  background: transparent;
  color: #00c2de;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  text-align: center;
}

.dark-btn:hover {
  background: #00c2de;
  color: #000000;
}

.dark-content {
  color: #e0e0e0;
}

.dark-header {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.dark-text {
  color: #b0b0b0;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.dark-btn-primary {
  background: linear-gradient(135deg, #00c2de 0%, #0099b0 100%);
  color: #000000;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 194, 220, 0.3);
}

/* Responsive Grid for Cars */
@media (max-width: 1024px) {
  .container-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .container-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
    gap: 20px;
  }
  
  .cars-category-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .container-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
    gap: 15px;
  }
  
  .cars-category-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  .cars-section-wrapper {
    margin-bottom: 40px;
  }
}