/* --- RESET & VARIABLES --- */
:root {
  --bg-dark: #050505;
  --bg-panel: rgba(20, 20, 25, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --racing-red: #e63946;
  --racing-red-glow: rgba(230, 57, 70, 0.4);
  --text-main: #f0f0f0;
  --text-muted: #888;
  --font-base: 'Montserrat', sans-serif;
  --font-tech: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0; font-family: var(--font-base); background-color: var(--bg-dark);
  color: var(--text-main); overflow-x: hidden; scroll-behavior: smooth;
}

.bg-glow {
  position: fixed; top: -20%; left: -10%; width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(230,57,70,0.08) 0%, rgba(0,0,0,0) 70%);
  z-index: -1; pointer-events: none;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-red { color: var(--racing-red); }
.text-center { text-align: center; }
.tech-font { font-family: var(--font-tech); font-weight: 800; }
.hidden { display: none !important; }
.w-100 { width: 100%; }

/* --- TYPOGRAPHY --- */
h1 { font-size: 4.5rem; line-height: 1.1; font-weight: 900; margin: 0 0 20px; letter-spacing: -2px;}
h2.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 40px; letter-spacing: -1px; text-transform: uppercase; }
p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; }
.section-desc { text-align: center; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Animații Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed; top: 0; width: 100%; padding: 20px 0; z-index: 1000;
  transition: all 0.3s ease; backdrop-filter: blur(0px);
}
header.scrolled {
  padding: 15px 0; background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; position: relative; }

.brand { text-decoration: none; color: #fff; line-height: 1; z-index: 1001; }
.brand-tech { color: var(--racing-red); font-weight: 900; font-size: 1.5rem; }
.brand-text { font-weight: 400; font-size: 1.5rem; letter-spacing: 2px; }
.brand-loc { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 3px; margin-top: 5px; }

/* Meniu Desktop */
nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
nav a { color: var(--text-main); text-decoration: none; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
nav a:hover { color: var(--racing-red); }

/* Buton Hamburger */
.menu-toggle { display: none; font-size: 1.8rem; color: #fff; cursor: pointer; z-index: 1001; }

/* --- BUTTONS --- */
.btn {
  display: inline-block; padding: 16px 36px; font-size: 0.9rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; text-decoration: none; border-radius: 4px; transition: all 0.3s;
  cursor: pointer; border: none; text-align: center;
}
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-primary { background: var(--racing-red); color: #fff; box-shadow: 0 4px 20px var(--racing-red-glow); }
.btn-primary:hover { background: #fff; color: var(--racing-red); box-shadow: 0 8px 30px var(--racing-red-glow); }
.btn-primary:disabled { background: #555; color: #aaa; box-shadow: none; cursor: not-allowed; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

/* Buton Configurator WhatsApp */
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 4px 20px rgba(37,211,102,0.4); border: none; }
.btn-whatsapp:hover { background: #fff; color: #25D366; box-shadow: 0 8px 30px rgba(37,211,102,0.6); }

/* --- GLASSMORPHISM CARDS --- */
.glass-card {
  background: var(--bg-panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: 12px; padding: 30px;
}
.glass-section { background: linear-gradient(0deg, var(--bg-dark) 0%, #0a0a0d 100%); padding: 100px 0; }

/* --- HERO SECTION --- */
#hero { min-height: 100vh; display: flex; align-items: center; position: relative; background-size: cover; background-position: center; }
.hero-with-bg { background-image: url('hero_ecu_bench.jpg'); background-color: #111; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.8) 50%, rgba(5,5,5,0.4) 100%); z-index: 1; }
.badge { display: inline-block; padding: 5px 12px; border: 1px solid var(--racing-red); color: var(--racing-red); font-size: 0.7rem; letter-spacing: 3px; font-weight: 700; margin-bottom: 20px; border-radius: 50px; }
.hero-content { max-width: 800px; position: relative; z-index: 2; padding-top: 80px; }
.btn-group { display: flex; gap: 20px; margin-top: 40px; }

/* --- LOGO TICKER (PARTENERI) --- */
.ticker-wrap { width: 100%; overflow: hidden; background: rgba(5,5,5,0.9); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); padding: 15px 0; }
.ticker-move { display: flex; width: max-content; animation: ticker 25s linear infinite; }
.ticker-item { margin: 0 40px; font-size: 1.1rem; font-weight: 600; color: #aaa; display: flex; align-items: center; gap: 10px; }
.ticker-item i { color: var(--racing-red); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- CONFIGURATOR --- */
#configurator { padding: 100px 0; }
.tuning-grid { display: flex; gap: 20px; margin-bottom: 20px; }
.tuning-controls { flex: 1; min-width: 250px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }

.custom-select { position: relative; }
.custom-select select {
  width: 100%; appearance: none; background: transparent; border: none; border-bottom: 2px solid rgba(255,255,255,0.1);
  color: #fff; font-family: var(--font-base); font-size: 1.1rem; font-weight: 600; padding: 15px 0; cursor: pointer; outline: none; transition: 0.3s;
}
.custom-select select:focus { border-bottom-color: var(--racing-red); }
.custom-select select option { background: var(--bg-dark); color: #fff; }
.custom-select::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 10px; top: 18px; color: var(--racing-red); pointer-events: none; }

.tuning-data { flex: 2; display: flex; justify-content: space-around; align-items: center; }
.data-col { text-align: center; }
.data-label { font-size: 0.8rem; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 10px; display: block; }
.data-value { font-size: 2.5rem; line-height: 1; margin-bottom: 5px; }
.data-value small { font-size: 1rem; color: var(--text-muted); font-family: var(--font-base); font-weight: 600; }
.data-divider { width: 1px; height: 80px; background: var(--glass-border); }
.glow-red { color: var(--racing-red); text-shadow: 0 0 15px var(--racing-red-glow); }
.gain { color: #2ecc71; }
.dyno-wrapper { height: 400px; padding: 20px; }

/* --- SERVICII --- */
#servicii { padding: 100px 0; }
.services-grid.expanded { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-box { text-align: left; padding: 40px; transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s; background: rgba(20, 20, 25, 0.4); border-top: 1px solid rgba(255,255,255,0.1); border-left: 1px solid rgba(255,255,255,0.05); }
.service-box .icon { font-size: 2.5rem; color: var(--racing-red); margin-bottom: 25px; }
.service-box h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 15px; letter-spacing: 1px; }
.hover-glow:hover { transform: translateY(-10px); border-color: rgba(230,57,70,0.3); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }

/* --- BAZA DTC (SEO) --- */
.dtc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.dtc-card { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--glass-border); padding: 25px; border-radius: 8px; border-left: 4px solid var(--racing-red); transition: 0.3s; }
.dtc-card:hover { background: rgba(20, 20, 25, 0.8); transform: translateX(5px); }
.dtc-code { font-size: 1.3rem; color: var(--racing-red); font-weight: 900; margin-bottom: 10px; display: inline-block; background: rgba(230,57,70,0.1); padding: 5px 10px; border-radius: 4px; }
.dtc-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 15px; }
.dtc-card p { font-size: 0.9rem; margin-bottom: 8px; color: #aaa; }
.dtc-card strong { color: #ddd; }

/* --- SLIDER VIZUAL ÎNAINTE/DUPĂ --- */
.ba-container { max-width: 900px; margin: 0 auto; padding: 0; overflow: hidden; border-radius: 12px; }
.ba-slider-wrapper { position: relative; width: 100%; height: 500px; overflow: hidden; }
.ba-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-img-after { z-index: 1; }
.ba-img-before { z-index: 2; clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.ba-range { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 5; width: 40px; height: 40px; background: var(--racing-red); color: white; border: 3px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 15px rgba(0,0,0,0.8); pointer-events: none; }

/* --- PACHETE & PREȚURI --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.pricing-card { text-align: center; position: relative; padding: 40px 30px; transition: transform 0.3s; display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-10px); }
.pricing-card.popular { border-color: var(--racing-red); box-shadow: 0 0 30px rgba(230,57,70,0.15); }
.badge-popular { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--racing-red); color: #fff; padding: 5px 15px; font-size: 0.8rem; font-weight: bold; border-radius: 20px; letter-spacing: 1px; width: max-content; }
.pricing-card h3 { font-size: 1.2rem; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 20px; }
.pricing-card .price { font-size: 1rem; margin-bottom: 30px; color: var(--text-muted); }
.pricing-card .price span { font-size: 3rem; font-weight: 900; color: #fff; display: block; margin-top: 5px; font-family: var(--font-tech); }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 30px 0; text-align: left; flex-grow: 1; }
.pricing-card ul li { margin-bottom: 15px; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; color: #ddd; }
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li i { margin-right: 10px; width: 15px; }

/* --- PORTOFOLIU (Studii de Caz) --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.portfolio-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.portfolio-img-ph { height: 150px; background: linear-gradient(135deg, #111, #1a1a24); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.portfolio-content { padding: 25px; }
.portfolio-content h4 { margin: 0 0 15px 0; color: var(--racing-red); font-size: 1.1rem; }
.portfolio-content p { font-size: 0.95rem; margin-bottom: 10px; }
.portfolio-content strong { color: #fff; }

/* --- RECENZII --- */
#recenzii { padding: 100px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card { padding: 30px; }
.stars { color: #f1c40f; margin-bottom: 15px; font-size: 1.2rem; }
.review-card p { font-style: italic; color: #ddd; font-size: 1.05rem; }
.review-author { margin-top: 20px; font-weight: bold; color: var(--racing-red); text-align: right; }

/* --- FAQ --- */
#faq { padding: 100px 0; }
.faq-accordion { max-width: 800px; margin: 0 auto; padding: 10px 30px; }
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; text-align: left; background: transparent; border: none; color: #fff; font-family: var(--font-base); font-size: 1.1rem; font-weight: 600; padding: 25px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; }
.faq-question:hover { color: var(--racing-red); }
.faq-question.active i { transform: rotate(180deg); color: var(--racing-red); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding-bottom: 25px; margin: 0; }

/* --- CURIER FORM --- */
#curier { padding: 100px 0; }
.mail-in-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.input-row { display: flex; gap: 20px; margin-bottom: 20px; }
#courier-form input, #courier-form textarea { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); padding: 18px; color: #fff; font-family: var(--font-base); border-radius: 6px; outline: none; transition: 0.3s; }
#courier-form textarea { resize: vertical; }
#courier-form input:focus, #courier-form textarea:focus { border-color: var(--racing-red); background: rgba(0,0,0,0.8); }

/* --- FOOTER & LEGAL --- */
footer { border-top: 1px solid var(--glass-border); background: #020202; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; border-bottom: 2px solid var(--racing-red); display: inline-block; padding-bottom: 5px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--racing-red); }
.anpc-link { display: block; background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; padding: 12px 20px; margin-bottom: 10px; border-radius: 4px; border: 1px solid var(--glass-border); text-align: center; font-weight: bold; transition: 0.3s; }
.anpc-link:hover { background: var(--racing-red); border-color: var(--racing-red); }
.footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.02); }
.footer-bottom p { font-size: 0.8rem; letter-spacing: 2px; margin: 0; }

.whatsapp-btn { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 1000; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: transform 0.3s; text-decoration: none; }
.whatsapp-btn:hover { transform: scale(1.1); }

/* --- BANNER COOKIE --- */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(5,5,5,0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--racing-red); z-index: 2000; padding: 15px 0; transition: transform 0.4s ease; }
.cookie-content { width: 90%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cookie-content p { margin: 0; font-size: 0.9rem; color: #ccc; }
.cookie-content a { color: var(--racing-red); text-decoration: underline; }
.cookie-banner.hidden { transform: translateY(100%); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  h1 { font-size: 3.5rem; }
  .mail-in-grid { grid-template-columns: 1fr; gap: 30px;}
}
@media (max-width: 768px) {
  .glass-section, #servicii, #dtc-database, #hardware-showcase, #preturi, #faq, #curier, #portofoliu, #recenzii { padding: 60px 0; }
  h1 { font-size: 2.5rem; }
  h2.section-title { font-size: 1.8rem; margin-bottom: 25px;}
  .btn-group { flex-direction: column; width: 100%; }
  .btn-group .btn { width: 100%; }
  
  .menu-toggle { display: block; }
  nav#nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: rgba(5, 5, 5, 0.98); padding: 20px 0; text-align: center; border-bottom: 1px solid var(--glass-border); transform: translateY(-150%); opacity: 0; pointer-events: none; transition: 0.4s; }
  nav#nav-links.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav#nav-links ul { flex-direction: column; gap: 20px; }
  
  .tuning-grid { flex-direction: column; }
  .tuning-data { flex-direction: column; gap: 20px; padding: 20px;}
  .data-divider { width: 80%; height: 1px; }
  .dyno-wrapper { height: 300px; padding: 10px;}
  .input-row { flex-direction: column; gap: 15px; margin-bottom: 15px;}
  
  .ba-slider-wrapper { height: 300px; }
  .cookie-content { flex-direction: column; text-align: center; }
}

/* --- TRACKING SYSTEM & DECODER UI --- */
.tracking-container { max-width: 800px; margin: 0 auto; }
.tracking-form { display: flex; gap: 15px; justify-content: center; margin-bottom: 30px; }
.tracking-form input { flex: 1; max-width: 400px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); padding: 15px 20px; color: #fff; font-family: var(--font-base); font-size: 1.1rem; border-radius: 6px; outline: none; transition: 0.3s; }
.tracking-form input:focus { border-color: var(--racing-red); }

.track-header { margin-bottom: 40px; border-bottom: 1px solid var(--glass-border); padding-bottom: 20px; }
.track-header h3 { font-size: 1.5rem; margin: 0 0 10px 0; }
.track-header p { margin: 0; font-size: 1.1rem; }

.progress-wrapper { display: flex; justify-content: space-between; position: relative; max-width: 600px; margin: 0 auto; padding-top: 20px; }
.progress-line { position: absolute; top: 35px; left: 0; width: 100%; height: 4px; background: var(--glass-border); z-index: 1; }
.progress-line-active { position: absolute; top: 35px; left: 0; width: 0%; height: 4px; background: var(--racing-red); z-index: 2; transition: width 0.8s ease; box-shadow: 0 0 10px var(--racing-red-glow); }

.step { text-align: center; position: relative; z-index: 3; width: 25%; }
.bullet { width: 34px; height: 34px; background: #222; border: 2px solid #555; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px auto; font-weight: bold; transition: 0.4s ease; color: #888; }
.step p { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #888; transition: 0.4s ease; }

/* Status Activ */
.step.active .bullet { background: var(--racing-red); border-color: var(--racing-red); color: #fff; box-shadow: 0 0 15px var(--racing-red-glow); }
.step.active p { color: #fff; font-weight: bold; }

@media (max-width: 768px) {
  .tracking-form { flex-direction: column; }
  .tracking-form input, .tracking-form button { width: 100%; max-width: 100%; }
  .step p { font-size: 0.7rem; letter-spacing: 0; }
  .bullet { width: 28px; height: 28px; font-size: 0.8rem; }
  .progress-line, .progress-line-active { top: 32px; }
}