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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, rgba(255, 0, 0, 0.08), transparent 35%),
              radial-gradient(circle at bottom right, rgba(255, 0, 0, 0.05), transparent 30%),
              #05070b;
  color: #ffffff;
  line-height: 1.6;
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: #ff2b2b;
  text-decoration: none;
}

nav a {
  color: #d6d6d6;
  text-decoration: none;
  margin-left: 28px;
  font-weight: 500;
  transition: 0.25s ease;
}

nav a:hover {
  color: #ff2b2b;
}

/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 120px 8% 60px; /* Padding-top de 120px ca să nu intre sub header fixed */
  background-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.70) 40%,
      rgba(0, 0, 0, 0.20) 100%
    ),
    url("./hero.jpeg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(42px, 5.5vw, 80px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -2px;
  margin: 20px 0;
  color: #ffffff;
}

.hero-title span {
  background: linear-gradient(135deg, #ff2b2b, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 43, 43, 0.28);
}

.hero p {
  font-size: 18px;
  color: #b8bcc7;
  font-weight: 500;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 60, 60, 0.45);
  background: rgba(255, 0, 0, 0.06);
  color: #ff4d4d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 12px #ff3b3b;
}

.buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-red, .btn-dark {
  padding: 16px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-red {
  background: #ff2b2b;
  color: #ffffff;
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 43, 43, 0.35);
}

.btn-dark {
  background: #151922;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-dark:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.55));
}

/* ==========================================
   4. PRODUCTS SECTION & CARDS (FIXED RATIO 4:5)
   ========================================== */
.products {
  padding: 90px 8%;
}

.products h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 45px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
  justify-content: center;
  gap: 28px;
}

.product-card {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  background: linear-gradient(145deg, #11131a, #0b0d12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.6s ease both;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 43, 43, 0.35);
  box-shadow: 0 25px 60px rgba(255, 0, 0, 0.18);
}

.product-image {
  width: 100%;
  height: 58%;
  background: #0b0d12;
  overflow: hidden;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

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

.product-info {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-info h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #ffffff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info p {
  color: #9ca3af;
  font-size: 13px;
  margin-bottom: 12px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.price {
  font-size: 24px;
  font-weight: 800;
  color: #ff2b2b;
}

.buy-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff2b2b, #ff4d4d);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.buy-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 43, 43, 0.35);
}

/* Culori modele mașini */
.car-model { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.mclaren { color: #FF8000; }
.ferrari { color: #DC0000; }
.redbull { color: #1E41FF; }
.mercedes { color: #00D2BE; }

/* ==========================================
   5. FEATURES SECTION
   ========================================== */
.features {
  padding: 100px 8%;
}

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.section-heading h2 span {
  color: #ff2b2b;
}

.section-heading p {
  color: #9ca3af;
  font-size: 18px;
}

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

.feature-card {
  background: linear-gradient(145deg, #11131a, #0b0d12);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 34px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  transition: 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 43, 43, 0.25);
  box-shadow: 0 20px 50px rgba(255, 0, 0, 0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(255, 43, 43, 0.08);
  border: 1px solid rgba(255, 43, 43, 0.18);
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.feature-card p {
  color: #b8bcc7;
  font-size: 15px;
}

/* ==========================================
   6. CTA SECTION
   ========================================== */
.cta {
  position: relative;
  margin: 80px 8%;
  border-radius: 36px;
  overflow: hidden;
  min-height: 380px;
  background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%),
              url('images/cta-f1.jpg') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 40px 20px;
}

.cta h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  margin: 20px 0 16px;
}

.cta h2 span {
  color: #ff2b2b;
}

.cta p {
  color: #d1d5db;
  font-size: 18px;
  margin-bottom: 28px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff2b2b, #ff4545);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  transition: 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255, 43, 43, 0.42);
}

/* ==========================================
   7. FOOTER
   ========================================== */
footer, .footer {
  padding: 34px 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #8b9099;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-line {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 43, 43, 0.35), transparent);
}

/* ==========================================
   8. ANIMATIONS & RESPONSIVE
   ========================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  nav { display: none; }
  
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    text-align: center;
  }

  .buttons {
    justify-content: center;
  }

  .hero-image img {
    transform: none;
  }
}

@media (max-width: 768px) {
  .feature-card {
    flex-direction: column;
  }
  
  .footer {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== SECTIUNE CATEGORII ===== */

.categories{
  padding: 100px 7%;
  background: #05070b;
}

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

/* link-ul care contine cardul */
.card-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

/* cardul */
.card{ background: linear-gradient(180deg, #0b0f17 0%, #070910 100%); border: 1px solid rgba(255,255,255,0.06); border-radius: 28px; padding: 24px; min-height: auto; display: flex; align-items: center; justify-content: center; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative; overflow: hidden; }
/* glow subtil */
.card::before{
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255,40,40,.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
}

.card:hover{
  transform: translateY(-8px);
  border-color: rgba(255,60,60,.35);
  box-shadow: 0 22px 60px rgba(255,0,0,.18);
}

.card:hover::before{
  opacity: 1;
}

/* zona logo */
.logo-box{ display: none; }


/* butonul rosu */
.card-btn{
  background: linear-gradient(180deg, #ff3a3a 0%, #ff2424 100%);
  color: #fff;
  text-align: center;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .2px;
  position: relative;
  z-index: 1;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover .card-btn{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,45,45,.35);
}

/* responsive */
@media (max-width: 768px){

  .categories{
    padding: 72px 5%;
  }

  .logo-box img{
    max-width: 170px;
  }

  .card-btn{
    padding: 15px 16px;
    font-size: 16px;
  }
}

/* textul de pe butonul cardului */
.card-btn{
  width: 100%;
  padding: 18px 22px;
  border-radius: 20px;

  background: linear-gradient(180deg, #ff3a3a 0%, #ff1f1f 100%);
  color: #ffffff;

  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 10px 25px rgba(255, 40, 40, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.18);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

/* hover */
.card:hover .card-btn{
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ff4a4a 0%, #ff2424 100%);
  box-shadow:
    0 14px 32px rgba(255, 40, 40, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

/* când apeși */
.card-btn:active{
  transform: translateY(1px);
}