﻿/* Global variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
  font-family: 'Abnes';
  src: url('font/abnes.ttf') format('truetype'); /* Ensure filename matches exactly */
  font-weight: normal;
  font-style: normal;
}

/* This will shrink that Koenigsegg logo */
.brand-carousel-img {
  width: 150px;       /* Adjust this number to make it bigger or smaller */
  height: auto;        /* Keeps the proportions correct */
  margin: 0 auto;      /* Centers it horizontally */
  display: block;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1)); /* Optional: adds a nice soft shadow */
}

.brand-logo {
  font-family: 'Abnes', sans-serif;
  color: #ffffff;
  font-size: 28px; /* Adjust size as needed */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  user-select: none; /* Prevents text selection to make it feel more like a logo */
  padding-right: 20px;
  cursor: default;
}

.brand-logo, 
.nav-right {
  flex: 1; 
}

:root {
  --bg-dark: #050505;
  --bg-darker: #0a0a0a;
  --text-light: #f5f5f5;
  --text-muted: #c9c9c9;
  --accent: #50e3c2;
  --accent-2: #ff3434;
  --border-dark: #111;
  --shadow-strong: 0 18px 46px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.18);
  --max-width: 1200px;
  --font-base: "Inter", Arial, sans-serif;
}

/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: #000000;
  color: #0b0b0b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

main {
  display: block;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  transform: translateY(0);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  
  background: transparent; 
  box-shadow: none; 
  backdrop-filter: none; 
}

.site-header--visible {
  transform: translateY(0);
}

.site-header--hidden {
  transform: translateY(-100%);
}

.main-nav {
  display: flex;
  align-items: center;
  /* This ensures the logo and nav-right are treated as the outer boundaries */
  justify-content: space-between; 
  padding: 18px 32px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-left {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex: 0 1 auto; /* Don't grow, but allow it to be its natural size */
  justify-content: center;
}

.nav-left a {
  color: #ffffff;
  font-weight: 500;
}

.nav-left a::after {
  background: #ffffff; /* underline becomes white */
}

.nav-left a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  justify-content: flex-end;
}


.login-button {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.menu-toggle, 
.menu-icon, 
.menu-label {
    display: none;
}

.search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.45);
}


.site-header.scrolled {
  background: rgba(0, 0, 0, 0.2); 
  backdrop-filter: blur(5px);    
  box-shadow: none;              
}


/* Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: #000;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.5;
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-title {
  font-size: 30px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0;
}

.hero-subtitle {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

  
.slide-section {
  background: #000; 
  padding: 0;       
  height: 100vh;    
}


/* Generic buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease;
}

.btn--primary {
  background: #0b0b0b;
  color: #fff;
  border-color: #0b0b0b;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.btn--secondary {
  background: #fff;
  color: #0b0b0b;
}

.btn--secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Brands section */
.brands-section {
  background: #000000;
  color: #0b0b0b;
  padding: 110px 0 80px;
  height: 100%;
  width: 100%;
}

.brands-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.brands-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.brands-title {
  font-size: 40px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
}

.brands-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0b0b0b;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
}

.brands-cta:hover {
  border-bottom-color: rgba(0, 0, 0, 0.55);
}

.brands-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 18px;
}

.carousel-btn {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.8);
  color: #0b0b0b;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 1);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 320ms ease;
}

.carousel-slide {
  flex: 0 0 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 32px 28px 28px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.01));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 12px;
  text-align: center;
  background-color: #ffffff;
}

.slide-logo {
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
}

.slide-tagline {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
}

.slide-actions {
  margin-top: 6px;
}

/* About section */
.about-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
  color: #0b0b0b;
  padding: 120px 0 100px;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  align-items: center;
}

.about-kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
  color: rgba(11, 11, 11, 0.6);
}

.about-title {
  font-size: 40px;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  font-weight: 900;
}

.about-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(11, 11, 11, 0.75);
  max-width: 64ch;
  margin: 0 0 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 10px;
}

.about-stat {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  padding: 14px 14px 12px;
}

.about-stat-value {
  font-size: 22px;
  letter-spacing: 0.06em;
  font-weight: 900;
}

.about-stat-label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 11, 11, 0.62);
  font-weight: 700;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.about-mini {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.about-mini-title {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: rgba(11, 11, 11, 0.72);
}

.about-mini-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(11, 11, 11, 0.7);
}

.about-media {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  min-height: 520px;
}

.about-image {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background:
    radial-gradient(800px 260px at 20% 10%, rgba(212, 0, 0, 0.12), transparent 60%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
}

.about-image--two {
  background:
    radial-gradient(800px 260px at 80% 20%, rgba(138, 106, 0, 0.14), transparent 60%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
}

/* Contact section */
.contact-section {
  background: #050505;
  color: #f5f5f5;
  padding: 96px 20px 120px;
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 14px;
  color: #50e3c2;
  margin: 0;
}

.contact-title {
  font-size: clamp(32px, 5vw, 42px);
  margin: 0;
  line-height: 1.2;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #d0d0d0;
  font-weight: 500;
}

.contact-label-text {
  font-size: 14px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  border: 1px solid #111;
  background: #0d0d0d;
  color: #f0f0f0;
  padding: 16px 18px;
  border-radius: 50px;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-textarea {
  border-radius: 34px;
  min-height: 160px;
  resize: vertical;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #5f5f5f;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #50e3c2;
  box-shadow: 0 0 0 3px rgba(80, 227, 194, 0.16);
}

.contact-submit {
  align-self: flex-start;
  border: none;
  background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 28px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.contact-submit:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Responsive tweaks */
@media (max-width: 1100px) {
  .brands-carousel {
    grid-template-columns: 52px 1fr 52px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    padding: 16px 20px;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
  }

  .nav-left {
    gap: 14px;
  }

  .hero-content {
    bottom: 50px;
  }

  .hero-title {
    font-size: 22px;
    letter-spacing: 0.22em;
  }

  .brands-inner,
  .about-inner {
    padding: 0 20px;
  }

  .brands-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .brands-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }

  .carousel-track {
    gap: 18px;
  }

  .carousel-slide {
    flex: 0 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-media {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .brands-title {
    font-size: 30px;
  }

  .brands-cta {
    font-size: 11px;
  }

  .carousel-slide {
    padding: 26px 22px;
  }

  .about-title {
    font-size: 30px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-media {
    min-height: 360px;
  }

  .contact-section {
    padding: 72px 16px 100px;
  }

  .contact-input,
  .contact-textarea {
    border-radius: 22px;
    padding: 14px 16px;
  }
}



.slideshow {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* change to contain if needed */
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
}

.nav.prev {
  left: 60px; /* NOT close to edge */
}

.nav.next {
  right: 60px; /* NOT close to edge */
}

.nav:hover {
  background: rgba(0,0,0,0.7);
}

/* Video slideshow section (beneath hero) */
.video-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #000;
}


.video-slideshow__viewport {
    position: relative;
    width: 100%;
    height: 100%;
}


.video-slideshow__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center center; 
  opacity: 0;
  transform: scale(1);
  transition: opacity 600ms ease;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
  will-change: opacity;
}


.video-slideshow__video.is-active {
  opacity: 1;
  transform: scale(1);
  height: 100%;
  width: 100%;
}

.video-slideshow__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 600px at 70% 20%, rgba(0, 0, 0, 0.25), transparent 60%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.video-slideshow__controls {
  display: none; /* This hides the arrows and dots completely */
}

.video-slideshow__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.video-slideshow__btn:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.45);
}

.video-slideshow__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.video-slideshow__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 180ms ease, background-color 180ms ease, width 180ms ease;
}

.video-slideshow__dot.is-active {
  background: rgba(80, 227, 194, 0.95);
  width: 22px;
}

@media (max-width: 640px) {
  .video-slideshow__viewport {
    height: 62vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-slideshow__video {
    transition: none;
  }
}

/* Small footer */
.site-footer {
  background: #050505;
  color: rgba(245, 245, 245, 0.78);
  padding: 22px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__text {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- LOADING SCREEN STYLES --- */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  z-index: 9999; /* Higher than your header (20) */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-out, visibility 0.8s;
}

.loading-text {
  font-family: 'Abnes', sans-serif; /* Changed from Inter to match your logo */
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: normal;
  letter-spacing: 0.2em;
  color: #fff;
  vertical-align: middle;
  display: flex;
}

.loading-text span {
  opacity: 0;
  display: inline-block;
  animation: textFadeIn 0.5s forwards;
  animation-delay: calc(0.1s * var(--i));
}

.loading-text .space {
  width: 0.6em; /* Space between words */
}

@keyframes textFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Class to hide the loader */
.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}