:root {
  --primary-color: #38b000; 
  --secondary-color: #70e000; 
  --accent-color: #007200;
  --accent-color-2: #ccff33;
  --background-color: #0A0A0A; 
  --text-color: #d9dcd6;        
  --card-color: #b3d781; 
  --hover-color: #9ef01a; 
  --success-color: #43A047;
  --danger-color: #dc3545;
  --border-color: #ffffff1a;
  --desc-color: #b0b0b0;
}
.light-mode {
  --primary-color: #1a1a1a;
  --secondary-color: #1a1a1a;
  --background-color: #d9dcd6;
  --card-color: #9ef01a; 
  --text-color: #1a1a1a;
  --desc-color: #414040;
  --border-color: #7a7a7a1a;
}

:root {
  --shape: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
  --shape-large: polygon(
    25px 0%, 100% 0%, 
    100% calc(100% - 25px), calc(100% - 25px) 100%, 
    0% 100%, 0% 25px);
--shape-mid: polygon(
  15px 0%, 100% 0%, 
  100% calc(100% - 15px), calc(100% - 15px) 100%, 
  0% 100%, 0% 15px);
}

body {
  background-color: var(--background-color);
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Space Mono', monospace;
}
section, header, footer, main {
  overflow: hidden;
  background-color: var(--background-color);
}
html a {
  text-decoration: none;
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-spinner {
  display: inline-block;
  vertical-align: middle;
  fill: var(--primary-color);
}

.title {
  font-weight: 800;
  font-size: 48px;
  color: var(--text-color);
}
.desc {
  letter-spacing: 1px;
  color: var(--desc-color);
  font-size: 14px;
}

@media(max-width:767px) {
  .title {
    font-size: 38px;
  }
}

/*  Navbar  */

#nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: 70px;
  background-color: #00000075;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1rem;
}
body.light-mode #nav {
  background-color: #ffffff75;
}
.logo {
  letter-spacing: 1px;
  font-size: 30px;
  font-weight: 900;
  color: var(--primary-color);
  transition: color 0.3s ease;
}
@media(max-width:1025px) {
  .logo {
    font-size: 20px;
    padding-right: 20px;
  }
  .nav-links {
    font-size: 14px;
  }
}
.logo:hover {
  color: var(--secondary-color);
}

.nav-links-container {
  display: flex;
  align-items: center;
}
.nav-links-container * {
  letter-spacing: 1px;
}
.nav-links {
  margin-right: 45px;
  position: relative;
  transition: all 0.3s ease;
  color: var(--text-color);
}
.nav-links:hover, .active:hover {
  color: var(--text-color);
}
.active {
  font-weight: 800;
  font-size: 18px;
  margin-right: 45px;
  position: relative;
  transition: all 0.3s ease;
  color: var(--text-color);
}
.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  height: 2px;
  left: 0;
  right: 0;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}
.active:hover {
  transform: translateY(-2px);
}
.nav-links::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--text-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}


.nav-links:hover::after {
  width: 100%;
}
.glitch-button {
  color: var(--background-color);
  margin-right: 45px;
  padding: 10px 15px;
  background-color: var(--secondary-color);
  position: relative;
  clip-path: var(--shape);
  transition: all 0.3s ease;
  z-index: 1;
}

.glitch-button:hover {
  color: var(--background-color);
  animation: glitch-flicker 0.3s linear;
  }

@keyframes glitch-flicker {
  0%   { opacity: 1; transform: translate(0, 0); }
  15%  { opacity: 0.85; transform: translate(-0.5px, 0.5px); }
  30%  { opacity: 1; transform: translate(0.5px, -0.5px); }
  45%  { opacity: 0.85; transform: translate(-0.5px, 0); }
  60%  { opacity: 1; transform: translate(0.5px, 0.5px); }
  75%  { opacity: 0.9; transform: translate(0px, -0.5px); }
  100% { opacity: 1; transform: translate(0, 0); }
}
.nav-heart-svg {
  fill: var(--background-color);
  width: 34px;
  height: 34px;
  background-color: var(--secondary-color);
}
.hearted-items {
  padding: 5px 10px;
  background-color: var(--secondary-color);
  clip-path: var(--shape);
  position: relative;
  overflow: visible;
}
.hearted-items-container {
  position: relative;
}
.hearted-items-container::after {
  content: attr(data-count);
  background-color: var(--danger-color);
  color: var(--text-color);
  position: absolute;
  top: -10px;
  right: -10px;
  height: 25px;
  width: 25px;
  font-weight: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-size: 18px;
}

.hearted-items-container.no-likes::after {
  display: none;
}

/* Sidebar CSS */
.sidebar .container-fluid {
  width: 90%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sidebar-links .container-fluid {
  margin-top: 20px;
}

.sidebar .container-fluid .row {
  margin-left: 0;
  margin-right: 0;
}

.sidebar .container-fluid [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sidebar-glitch-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  padding: 20px;
  background-color: var(--secondary-color);
  clip-path: var(--shape);
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--background-color);
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: none;
}

.sidebar-glitch-button:hover {
  background-color: var(--hover-color);
  transform: translateY(-3px);
  animation: glitch-flicker 0.3s linear;
}
body.light-mode .sidebar-glitch-button:hover {
  background-color: var(--secondary-color);
}

.hearted-items.sidebar-heart {
  padding: 15px;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  clip-path: var(--shape-mid);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.hearted-items.sidebar-heart:hover {
  background-color: var(--hover-color);
  transform: translateY(-3px);
}
body.light-mode .hearted-items.sidebar-heart:hover {
  background-color: var(--secondary-color);
}

.sidebar-heart .nav-heart-svg {
  width: 24px;
  height: 24px;
  fill: var(--background-color);
  transition: all 0.3s ease;
}

.hearted-items.sidebar-heart.active {
  background-color: var(--accent-color);
}

.sidebar .row {
  margin-left: -5px;
  margin-right: -5px;
}

.sidebar [class^="col-"] {
  padding-left: 5px;
  padding-right: 5px;
}

.sidebar-links .container-fluid .row,
.sidebar-links .container-fluid [class*="col-"] {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hearted-items-container::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger-menu {
  fill: var(--text-color);
  height: 40px;
  width: 40px;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar * {
  letter-spacing: 1px;
}
.sidebar {
  position: fixed;
  height: calc(100vh - 70px);
  right: 0;
  left: 0;
  top: 70px;
  background-color: #00000075;
  border-bottom: 1px solid var(--border-color);
  display: none;
  z-index: 999;
  transition: none;
  overflow-y: scroll;
}
body.light-mode .sidebar {
  background-color: #ffffff75;
}
.sidebar-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}
.sidebar-links:hover {
  color: var(--text-color);
}

.sidebar-link, .sidebar-button {
  color: var(--background-color);
  background-color: var(--text-color);
  border: var(--text-color) 1px solid;
  width: 90%;
  margin-top: 20px;
  padding: 20px;
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  clip-path: var(--shape);
}

.sidebar-link,
.sidebar-button,
.sidebar-glitch-button {
  min-height: 68px;
  box-sizing: border-box;
}

.sidebar-link.active {
  margin-right: 0;
  width: 90%;
}

.sidebar-link.active::after {
  display: none;
}

.sidebar-link::after, .sidebar-button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.sidebar-link:hover, .sidebar-button:hover {
  transform: translateY(-2px);
}

.sidebar-link:hover::after, .sidebar-button:hover::after {
  width: 100%;
}

.sidebar-button {
  background-color: var(--secondary-color);
  color: var(--background-color);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}


/* Header CSS */

#header {
  background-color: var(--background-color);
  min-height: 100vh;  
  width: 100%;
  position: relative;
  padding-top: 100px;
}
#header * {
  font-family: 'Inter', sans-serif;
}
.header-background {
  background-image: url('../imgs/noise-img.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}
body.light-mode .header-background {
  filter: invert(100%);
}

.header-overlay {
  position: absolute;
  bottom: 0;
  height: 300px;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, transparent, var(--background-color));
  z-index: 1;
  pointer-events: none;
}


.header-content {
  position: relative;
  z-index: 5;
}

.header-cta {
  position: relative;
  z-index: 10;
}

#home-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 11;
  pointer-events: auto;
  touch-action: manipulation;
}
.header-left {
  height: 100%;
}
.header-title {
  font-size: 60px;
  width: 100%;
  font-weight: 900;
  color: var(--text-color);
}
.header-desc {
  letter-spacing: 2px;
  width: 100%;
  font-size: 20px;
  padding-bottom: 50px;
  color: var(--desc-color);
}
.car-bg-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse at center, 
  rgba(22, 91, 32, 0.8) 0%,
  rgba(28, 91, 22, 0.5) 50%,
  rgba(22, 91, 23, 0.3) 70%,
  transparent 100%
);
border-radius: 100%;
  z-index: 0;
  filter: blur(50px);
  pointer-events: none;
}
body.light-mode .car-bg-circle {
  background: radial-gradient(ellipse at center, 
  rgba(40, 40, 40, 0.8) 0%,
  rgba(99, 99, 99, 0.5) 50%,
  rgba(161, 161, 161, 0.3) 70%,
  transparent 100%
);
}
.header-car {
  width: 450px;
  pointer-events: none;
}

.header-background {
  pointer-events: none;
}
.header-content .row {
  padding-top: 150px;
}
@media(max-width:767px) {
  .header-desc {
    padding-top: 10px;
    padding-bottom: 150px;
  }
  .header-title {
    font-size: 42px;
    padding: 0;
    margin: 0;
  }
  .header-desc {
    font-size: 16px;
  }
  .header-car {
    width: 350px;
  }
}



/* Store */

#store {
  height: auto;
  background-color: var(--background-color);
  padding-top: 50px;
  padding-bottom: 50px;
}
.swiper {
  width: 100%;
  padding: 60px 20px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}
.card-container {
  background-color: var(--secondary-color);
  padding: 1px;
  clip-path: var(--shape-large);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.car-card {
  width: 280px;
  height: 550px;
  clip-path: var(--shape-large);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  font-weight: bold;
  font-size: 20px;
  background-color: var(--background-color);
  /*
  background-image: url('../imgs/metal-texture.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  */
  color: var(--text-color);
  box-sizing: border-box;
}

.car-image {
  width: 100%;
  height: 200px;
  margin-bottom: 15px;
  clip-path: var(--shape-large);
  overflow: hidden;
  padding: 1px;
  background-color: var(--primary-color);
}

.slider-car {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


.car-1 {
  background-image: url('../imgs/Porsche.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
}
.car-1:hover {
  background-image: url('../imgs/Porsche-interior.jpg');
}
.car-2 {
  background-image: url('../imgs/BMW.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
}
.car-2:hover {
  background-image: url('../imgs/BMW-interior.jpg');
}
.car-3 {
  background-image: url('../imgs/Mercedes.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
}
.car-3:hover {
  background-image: url('../imgs/class-S.jpg');
}
.car-4 {
  background-image: url('../imgs/Audi.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
}
.car-4:hover {
  background-image: url('../imgs/Audi-interior.jpg');
}
.car-5 {
  background-image: url('../imgs/G-class.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
}
.car-5:hover {
  background-image: url('../imgs/GClass-interior.jpg');
}
.car-name {
  text-align: start;
  letter-spacing: 1px;
}
.car-desc {
  letter-spacing: 0;
}
.car-price {
  font-weight: 900;
  color: var(--secondary-color);
  padding-bottom: 20px;
}
.heart-button {
  background-color: var(--primary-color);
  padding: 5px;
  width: 100%;
  height: 100%;
  clip-path: var(--shape-mid);
  transition: all 0.3s ease;
}
.heart-svg {
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  fill: var(--background-color);
  background-color: var(--primary-color);
}
.heart-button:hover {
  transform: translateY(-5px);
}

.heart-button.active .heart-svg {
  fill: var(--card-color);
}
.buy-button {
  background-color: var(--primary-color);
  color: var(--background-color);
  height: 100%;
  padding: 10px 15px;
  width: 100%;
  font-weight: 900;
  clip-path: var(--shape-mid);
  transition: all 0.3s ease;
}
.buy-button:hover {
  transform: translateY(-5px);
}
.swiper-button-prev,
.swiper-button-next {
  background-color: rgba(255, 255, 255, 1); 
  color: var(--primary-color); 
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  top: 45%; 
  transform: translateY(-50%);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--text-color); 
  color: var(--primary-color);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px;
  font-weight: bold;
}
.view-all-button {
  background-color: var(--primary-color);
  padding: 10px 20px;
  color: var(--background-color);
  cursor: pointer;
  font-size: 18px;
  clip-path: var(--shape);
  transition: all 0.3s ease;
}
.view-all-button:hover {
  color: var(--background-color);
  transform: translateY(-5px);
}
/* Hearted page */

#hearted {
  padding-top: 80px;
  padding-bottom: 50px;
  height: auto;
}
.hearted-total {
  color: var(--secondary-color);
}

/* inventory page */
#inventory {
  padding-top: 150px;
  padding-bottom: 50px;
}
.search-bar {
  position: fixed;
  top: 70px;
  right: 0;
  left: 0;
  height: 50px;
  z-index: 200;
  background-color: #00000075;
  border-bottom: var(--border-color) 1px solid;
  color: var(--text-color);
}
.search-bar-title {
  color: var(--secondary-color);
  font-size: 18px;
}
.search-bar-container {
  background-color: var(--primary-color);
  padding: 1px;
  padding-left: 55px;
  clip-path: var(--shape-large);
  height: 40px;
  width: 70%;
  position: relative;
}
.search-button {
  position: absolute;
  left: 25px;
  top: 10px;
  border: none;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}
.search-svg {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  fill: var(--background-color);
}
.search-bar-input {
  clip-path: var(--shape-large);
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 30px;
  font-size: 1rem;
  background-color: var(--background-color);
  outline: none;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 5px rgba(0, 255, 13, 0.4);
  transition: 0.3s ease;
}

.search-bar-input::placeholder {
  color: var(--primary-color);
}

.search-bar-input:focus {
  background-color: #000;
  color: var(--hover-color);
}
.search-bar-input:focus .search-bar-container {
  background-color: var(--hover-color);
}

/* Contacts */

#contacts {
  padding-bottom: 50px;
  background-color: var(--background-color);
  height: fit-content;
  width: 100%;
  color: var(--text-color);
}
#contacts .container-fluid, #contacts .row {
  width: 100%;
  height: 100%;
}
.contact-info-section {
  padding: 25px;
  padding-bottom: 250px;
  background-color: var(--primary-color);
  width: 100%;
  height: 100%;
  clip-path: var(--shape-large);
}
body.light-mode .contact-info-section, body.light-mode .contact-info-title {
  color: var(--background-color);
}
.info-svg {
  width: 35px;
  height: 35px;
  fill: var(--text-color);
  margin-right: 10px;
}
body.light-mode .info-svg {
  fill: var(--background-color);
}
.info-text {
  font-size: 20px;
}
.contact-form-section {
  padding: 50px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.contact-form-section input, .contact-form-section textarea {
  font-family: 'Inter', sans-serif;
}
.contact-form-section input::placeholder, .contact-form-section textarea::placeholder {
  font-family: 'Space Mono', sans-serif;
}
@media(max-width:767px) {
  .contact-form-section {
    padding: 10px 10px;
  }
}
.contact-form-section input, .contact-form textarea {
  color: white;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: var(--border-color) 1px solid;
  margin-top: 20px;
  padding: 10px;
  transition: all 0.3s ease;
}
.contact-form-section textarea {
  resize: none;
  height: 130px;
}
.form-submit {
  border: none;
  background-color: var(--secondary-color);
  color: var(--background-color);
  padding: 10px 20px;
  margin-top: 20px;
  width: 100%;
  border-radius: 20px;
}

.contact-form-section input::placeholder, .contact-form textarea::placeholder {
  transition: all 0.3s ease;
}
.contact-form-section input:focus, .contact-form textarea:focus {
    outline: none; 
    border-bottom: 1px solid var(--secondary-color); 
}
.contact-form-section input:focus::placeholder, .contact-form textarea:focus::placeholder {
    color: var(--secondary-color);
}
.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 4px;
}
.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  border-radius: 0;
  clip-path: var(--shape-mid);
}


/* Footer */

#footer {
  background-color: black;
  position: relative;
  z-index: 3;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5);
  padding-top: 30px;
  color: var(--text-color);
}
body.light-mode #footer *{
  color: var(--background-color);
}
.footer-logo {
  font-size: 40px;
}
#footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

#footer .list-unstyled li a {
  color: #cccccc;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
}

#footer .list-unstyled li a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

#footer .list-unstyled li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: linear-gradient(90deg, #ffffff, #cccccc);
  transition: width 0.3s ease;
}

#footer .list-unstyled li a:hover::after {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: #999999;
  font-size: 16px;
  padding-bottom: 20px;
}


.contact-details-svg {
  width: 35px;
  height: 35px;
  margin-right: 20px;
}

@media (max-width: 967px) {
  .footer-right {
    padding-top: 30px;
  }
}


/* FAQs */

#faq {
  height: fit-content;
  background-color: var(--background-color);
  padding-top: 80px;
  padding-bottom: 50px;
}
.faq-container {
  width: 100%;
  padding: 40px 20px;
}
.faq-item {
  border-bottom: 1px solid var(--desc-color);
  padding: 15px 0;
}
.faq-question {
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
}

.faq-icon {
  font-size: 30px;
  transition: transform 0.3s ease;
}

.faq-answer {
  color: var(--desc-color);
  font-size: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}
.faq-item.active {
  width: 100%;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

#buy-page {
  color: var(--text-color);
  padding: 2rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.login-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.login-card {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 176, 0, 0.2);
  clip-path: var(--shape-large);
  padding: 3rem 2rem;
  box-shadow: 
    var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}






.details-card {
  background: linear-gradient(135deg, rgba(56, 176, 0, 0.1), rgba(0, 114, 0, 0.1));
  border: 1px solid rgba(56, 176, 0, 0.3);
  clip-path: var(--shape-large);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.details-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.buy-title {
  text-align: center;
  font-size: 30px;
  color: var(--primary-color);
}
.car-summary-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.car-details {
  display: grid;
  gap: 1rem;
  font-size: 1.1rem;
}

.car-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.car-detail-item:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.car-detail-label {
  color: var(--text-muted);
  font-weight: 400;
}

.car-detail-value {
  font-weight: 600;
  color: var(--text-color);
}

.form-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(56, 176, 0, 0.3);
  position: relative;
}

.form-label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(56, 176, 0, 0.2);
  color: var(--text-color);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  clip-path: var(--shape-small);
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: var(--glow);
  outline: none;
  color: var(--text-color);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.payment-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.confirm-button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: #000;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  clip-path: var(--shape-large);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2rem;
}

.confirm-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.confirm-button:hover::before {
  left: 100%;
}

.confirm-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-hover);
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-link:hover {
  color: var(--primary-color);
  text-decoration: none;
  transform: translateX(-5px);
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(56, 176, 0, 0.1);
  border: 1px solid rgba(56, 176, 0, 0.3);
  padding: 0.8rem;
  clip-path: var(--shape-small);
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .login-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .login-title {
    font-size: 2rem;
  }
  
  .payment-grid {
    grid-template-columns: 1fr;
  }
}


#blogs {
  padding-top: 120px;
}
.blog-border {
  width: 100%;
  min-height: 300px;
  background-color: var(--border-color);
  padding: 2px;
  clip-path: var(--shape-mid);
  margin-bottom: 40px;
}

.blog {
  width: 100%;
  min-height: inherit;
  clip-path: var(--shape-mid);
  background-color: var(--background-color);
  padding: 20px;
  display: flex;
  align-items: stretch;  
}
.blog-img {
  width: 100%;
  clip-path: var(--shape-mid);
  object-fit: cover;
}
.blog > .row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;    
}

.blog .col-lg-6 {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;      
}

.blog .col-lg-6:first-child .blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;    
  display: block;
}

.blog .col-lg-6:last-child {
  justify-content: center; 
}

.blog-text {
  display: flex;
  flex-direction: column;
  height: 100%;           
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.blog-title {
  color: var(--text-color);
  font-weight: 800;
  font-size: 19px;
  text-align: left;     
  margin-bottom: .5rem;
}

.blog-desc {
  color: var(--desc-color);
  margin-bottom: .5rem;
}

.blog-text > .row {
  margin-top: 0;    
  align-items: end;
}

.blog-button {
  padding: 10px 15px;
  background-color: var(--secondary-color);
  clip-path: var(--shape-mid);
  margin-top: 0;      
  align-self: flex-end;  
  white-space: nowrap;
  display: inline-flex;
  justify-content: center;
  color: var(--background-color);
}
.blog-button:hover {
  color: var(--background-color);
}
@media (max-width: 991.98px) {
  .blog {
    display: block; 
  }
  .blog .col-lg-6 {
    display: block;
    height: auto;
  }
  .blog-text {
    justify-content: normal;
  }
  .blog-button {
    align-self: stretch; 
  }
}

@media (max-width: 1023px) {
  .blog-title {
    padding-top: 20px;
  }
  .blog-button {
    margin-top: 10px;
    width: 100%;
  }
}
#article {
  padding-top: 120px;
}
.article-title {
  color: var(--text-color);
  font-weight: 800;
  font-size: 40px;
  text-align: center;
}
.article-desc {
  padding-top: 30px;
  color: var(--desc-color);
  font-size: 18px;
}
.blog-section-title {
  font-size: 30px;
  padding-top: 50px;
  color: var(--text-color);
  font-weight: 800;
}
.blog-section-text {
  padding-top: 30px;
  color: var(--desc-color);
}
#errorPage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  text-align: center;
}
.error-number {
  font-size: 150px;
  font-weight: 900;
  color: var(--secondary-color);
}
.error-title {
  font-size: 50px;
  font-weight: 800;
  color: var(--text-color);
}
.error-desc {
  font-size: 20px;
  color: var(--desc-color);
}

.error-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; 
  flex-wrap: wrap; 
}
.error-button {
  background-color: var(--secondary-color);
  padding: 10px 15px;
  color: var(--background-color);
  font-size: 18px;
  clip-path: var(--shape-mid);
}
.error-button:hover {
  color: var(--background-color);
}
@media(max-width: 992px) {
  .error-title {
    font-size: 45px;
  }
  .error-desc {
    font-size: 18px;
  }
}
