/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #000000;
  --bg-dark-gray: #0f0f11;
  --bg-light: #ffffff;
  --bg-light-gray: #f6f6f6;
  
  --accent-primary: #ff1e27; /* Bright Red */
  --accent-cyan: #00f0ff; /* Electric Performance Cyan */
  --accent-blue: #002c77; /* Hyundai Royal Blue */
  --accent-red: #e4002b; /* Hyundai N Sport Red */
  
  --text-white: #ffffff;
  --text-black: #000000;
  --text-muted-dark: #888888;
  --text-muted-light: #555555;
  
  --border-light: rgba(255, 255, 255, 0.15);
  --border-dark: rgba(0, 0, 0, 0.1);
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #222;
}
::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

section {
  padding: 120px 0;
  position: relative;
}

/* High Contrast Section Block Alternation */
.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.section-dark-gray {
  background-color: var(--bg-dark-gray);
  color: var(--text-white);
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-black);
}

.section-light-gray {
  background-color: var(--bg-light-gray);
  color: var(--text-black);
}

/* Section Title Style matching Lamborghini layout (MODIFIED: Reduced by ~20%) */
.section-title-large {
  font-size: 2.8rem; /* Old: 3.5rem */
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

/* MODIFIED: Reduced size by ~20% */
.section-desc-minimal {
  font-size: 0.9rem; /* Old: 1.05rem */
  max-width: 600px;
  margin-bottom: 50px;
  color: inherit;
  opacity: 0.8;
}

/* Buttons - Sharp, Rectangular, No border-radius */
.btn-rect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0; /* Sharp corners */
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* MODIFIED: Bright Red primary button */
.btn-rect-accent {
  background-color: var(--accent-primary);
  color: var(--text-white);
}

.btn-rect-accent:hover {
  background-color: var(--text-white);
  color: var(--text-black);
}

.btn-rect-outline-white {
  background-color: transparent;
  border: 1px solid var(--text-white);
  color: var(--text-white);
}

.btn-rect-outline-white:hover {
  background-color: var(--text-white);
  color: var(--text-black);
}

.btn-rect-outline-black {
  background-color: transparent;
  border: 1px solid var(--text-black);
  color: var(--text-black);
}

.btn-rect-outline-black:hover {
  background-color: var(--text-black);
  color: var(--text-white);
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.logo svg {
  fill: #fff;
  height: 24px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-white);
}

/* Hero Section with Centered Car Slider */
.hero {
  height: 100vh;
  min-height: 850px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 60px 0;
  background: radial-gradient(circle at center, rgba(15, 15, 17, 0.2) 0%, rgba(0, 0, 0, 0.9) 80%), 
              url('./images/hero_bg.jpg') no-repeat center center / cover;
  position: relative;
}

.hero-top-text {
  width: 100%;
  z-index: 2;
}

.hero-tag {
  font-size: 0.9rem;
  color: var(--accent-primary); /* Changed to red */
  margin-bottom: 12px;
  letter-spacing: 2px;
  display: block;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 600;
}

/* MODIFIED: Reduced size by ~20% */
.hero-main-title {
  font-size: 3.2rem; /* Old: 4rem */
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

/* MODIFIED: Reduced size by ~20% */
.hero-sub-text {
  font-size: 0.9rem; /* Old: 1.1rem */
  color: #ccc;
  line-height: 1.6;
}

/* Hero Car Slider Styles */
.hero-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 950px;
  margin: 20px 0;
  position: relative;
  z-index: 2;
}

.hero-slider-display {
  position: relative;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 360px;
}

.hero-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.hero-slide.active {
  display: flex;
  opacity: 1;
}

/* MODIFIED: Mask out light gray background from car image using elliptical mask */
.hero-car-img {
  width: 95%;
  max-width: 680px;
  height: auto;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 55% 42% at 50% 50%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse 55% 42% at 50% 50%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  filter: drop-shadow(0 20px 35px rgba(255, 30, 39, 0.25)); /* Red drop shadow to match button */
  animation: slideInUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-car-label {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 15px;
  letter-spacing: 2px;
  color: var(--text-white);
  text-shadow: 0 0 15px rgba(255, 30, 39, 0.35); /* Red shadow glow */
}

.slider-arrow {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.slider-arrow:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(255, 30, 39, 0.05);
  box-shadow: 0 0 15px rgba(255, 30, 39, 0.2);
}

.hero-bottom-actions {
  width: 100%;
  z-index: 2;
}


/* Animations */
@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Pain Points Section (Light Gray Background) */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.pain-box {
  border-left: 2px solid var(--text-black);
  padding: 24px 0 24px 30px;
  transition: var(--transition-fast);
}

.pain-box:hover {
  border-left-color: var(--accent-red);
}

.pain-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-muted-light);
  margin-bottom: 16px;
  display: block;
}

.pain-box-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-black);
}

.pain-box-text {
  font-size: 0.95rem;
  color: var(--text-muted-light);
}

/* Solution Section (Dark Gray Background) */
.solution-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.sol-list {
  list-style: none;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sol-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
}

.sol-item-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.sol-icon {
  color: var(--accent-primary); /* Changed to red */
  flex-shrink: 0;
}

.sol-item-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.sol-item-desc {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  padding-left: 32px;
}

.solution-frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-frame img {
  width: 100%;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 55% 42% at 50% 50%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse 55% 42% at 50% 50%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

/* Car Selector Section (White Background - matching Lamborghini Models Section) */
.models-title-area {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 30px;
  margin-bottom: 50px;
}

.car-tabs-horizontal {
  display: flex;
  gap: 40px;
}

.car-tab-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted-light);
  background: none;
  border: none;
  cursor: pointer;
  padding-bottom: 10px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-fast);
}

.car-tab-link:hover {
  color: var(--text-black);
}

.car-tab-link.active {
  color: var(--text-black);
  font-weight: 600;
}

.car-tab-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-black);
}

.model-viewer {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s ease forwards;
}

.model-viewer.active {
  display: flex;
}

.model-image-wrap {
  width: 80%;
  max-width: 800px;
  margin-bottom: 40px;
}

/* MODIFIED: Blend car background into white section background using mask */
.model-image-wrap img {
  width: 100%;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 55% 42% at 50% 50%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse 55% 42% at 50% 50%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.model-meta-container {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.model-description {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* MODIFIED: Reduced size by ~20% */
.model-name-large {
  font-size: 2.2rem; /* Old: 2.8rem */
  line-height: 1.25;
}

.model-tagline-sub {
  color: var(--accent-red);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.model-details-text {
  font-size: 0.95rem;
  color: var(--text-muted-light);
}

.model-actions-row {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.model-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border-left: 1px solid #e5e5e5;
  padding-left: 40px;
}

.spec-box {
  display: flex;
  flex-direction: column;
}

.spec-title {
  font-size: 0.8rem;
  color: var(--text-muted-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.spec-data {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-black);
  font-weight: 600;
}

/* Benefits Section (Dark Background) */
.benefit-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.benefit-block {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  transition: var(--transition-fast);
}

.benefit-block:hover {
  border-color: var(--accent-primary); /* Changed to red hover */
}

.benefit-badge-icon {
  font-size: 1.5rem;
  color: var(--accent-primary); /* Changed to red */
  margin-bottom: 24px;
  display: block;
}

.benefit-block-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.benefit-block-desc {
  font-size: 0.95rem;
  color: var(--text-muted-dark);
}

/* Booking Form Section (Black Background - matching Dealer Locator layout) */
.booking-split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

/* MODIFIED: Reduced size by ~20% */
.booking-title-side h2 {
  font-size: 3.2rem; /* Old: 4rem */
  line-height: 1.25;
  margin-bottom: 24px;
}

.booking-hotline-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.hotline-icon {
  width: 50px;
  height: 50px;
  border: 1px solid var(--accent-primary); /* Changed to red */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.hotline-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

/* High Contrast Minimalist Form */
.booking-form-box {
  background: var(--bg-dark-gray);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 50px;
}

.form-header-minimal {
  margin-bottom: 32px;
}

.form-header-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.form-row {
  margin-bottom: 24px;
}

.field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #bbb;
}

.field-input {
  width: 100%;
  background-color: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  padding: 16px;
  font-size: 0.95rem;
  border-radius: 0;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.field-input:focus {
  outline: none;
  border-color: var(--accent-primary); /* Focus border to red */
}

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Radio button style matching tabs */
.radio-tabs {
  display: flex;
  gap: 16px;
}

.radio-tab-option {
  flex: 1;
  position: relative;
}

.radio-tab-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-tab-label {
  display: block;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-fast);
}

.radio-tab-option input[type="radio"]:checked + .radio-tab-label {
  border-color: var(--accent-primary); /* Changed to red active border */
  color: var(--text-white);
  background: rgba(255, 30, 39, 0.08); /* Red background alpha */
  font-weight: 600;
}

.field-address-dynamic {
  display: none;
  margin-top: 16px;
}

.btn-form-submit {
  width: 100%;
  margin-top: 16px;
}

/* FAQ Section (White Background) */
.faq-list-minimal {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-row {
  border-bottom: 1px solid #e5e5e5;
  padding: 24px 0;
}

.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-trigger:hover {
  color: var(--accent-primary); /* Hover changed to bright red */
}

.faq-sign {
  font-size: 1.5rem;
  color: var(--text-muted-light);
  transition: var(--transition-fast);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted-light);
  font-size: 0.95rem;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), margin 0.3s ease;
}

.faq-row.active .faq-content {
  max-height: 500px;
  margin-top: 16px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), margin 0.3s ease;
}

.faq-row.active .faq-sign {
  transform: rotate(45deg);
  color: var(--text-black);
}

/* Footer (Pure Black Background) */
footer {
  background-color: #000000;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 80px 0 40px 0;
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col-title {
  color: var(--text-white);
  margin-bottom: 24px;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.footer-brand-intro p {
  margin-top: 16px;
  line-height: 1.6;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  text-decoration: none;
  color: var(--text-muted-dark);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--text-white);
}

.footer-contact-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-symbol {
  color: var(--accent-primary); /* Changed to red */
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-bar p {
  font-size: 0.8rem;
}

/* Toast Success Notification (Minimalist Glassmorphism) */
.toast-success {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: rgba(15, 15, 17, 0.95);
  border: 1px solid var(--accent-primary); /* Red border for toast */
  padding: 24px;
  max-width: 440px;
  z-index: 1000;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-success.show {
  transform: translateY(0);
}

.toast-main-content h4 {
  font-size: 1.2rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.toast-main-content p {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-main-title {
    font-size: 2.8rem;
  }
  .solution-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .model-meta-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .model-specs-grid {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #e5e5e5;
    padding-top: 24px;
  }
  .booking-split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-slider-display {
    height: 280px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }
  .section-title-large {
    font-size: 2.2rem;
  }
  .nav-menu {
    display: none;
  }
  .hero {
    height: auto;
    min-height: 750px;
    padding: 160px 0 80px 0;
  }
  .hero-top-text h1 {
    font-size: 2.4rem;
  }
  .hero-slider-display {
    height: 220px;
  }
  .hero-car-label {
    font-size: 1.6rem;
  }
  .btn-rect {
    width: 100%;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}
