:root {
  --bg-color: #111111;
  --card-bg: #1a1a1a;
  --accent-color: #dc2626;
  --accent-hover: #b91c1c;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #262626;
  --font-family: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #111111;
  background-image: linear-gradient(rgba(17, 17, 17, 0.88), rgba(17, 17, 17, 0.88)), url('bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

/* Buttons */
.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  margin-left: 10px;
}

.btn-secondary:hover {
  border-color: var(--text-main);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 120px 0 80px;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 50%);
}

.badge {
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--accent-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent-color);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 650px;
  margin-bottom: 30px;
}

/* About Accordion Toggle */
.about-section {
  margin: 60px auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--card-bg);
  overflow: hidden;
}

.about-toggle-header {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.about-toggle-header:hover {
  background-color: #222222;
}

.about-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.toggle-icon {
  font-size: 2rem;
  color: var(--accent-color);
  font-weight: 400;
  transition: transform 0.4s ease;
}

/* Collapsible Content */
.about-content-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.4s ease;
}

.about-content-wrapper.open {
  opacity: 1;
  transition: max-height 0.6s cubic-bezier(0.1, 1, 0.1, 1), opacity 0.5s ease;
}

.about-inner {
  padding: 30px;
  border-top: 1px solid var(--border-color);
}

.about-card {
  background: #111111;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.about-card h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.about-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.about-card p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: #111111;
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* About Grid & Principles */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.full-width-card {
  grid-column: 1 / -1;
}

.principles-section {
  margin-top: 30px;
}

.principles-section h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.principle-item {
  background: #111111;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.p-title {
  display: block;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.principle-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Brands Section */
.brands-section {
  padding: 60px 0;
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-subtext {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-chip {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.brand-chip:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* Contact Section */
.contact-section {
  padding: 60px 0 100px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.contact-card, .contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 35px;
  border-radius: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-item h4 {
  font-size: 1rem;
  color: var(--text-muted);
}

.contact-item a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--accent-color);
}

.contact-form h3 {
  margin-bottom: 20px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  background: #111111;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #ffffff;
  margin-bottom: 15px;
  font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Markalar Və Modellər Akordeon Stili */
.brands-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 30px auto 0;
}

.brand-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.brand-toggle {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.brand-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  color: var(--primary-color, #e63946);
  font-size: 1.2rem;
}

.arrow-icon {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
  color: #888;
}

.brand-item.active .arrow-icon {
  transform: rotate(180deg);
  color: var(--primary-color, #e63946);
}

.model-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px;
}

.brand-item.active .model-list {
  padding: 15px 20px 20px;
  max-height: 500px;
}

.model-list span {
  background: rgba(255, 255, 255, 0.1);
  color: #ddd;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.model-list span:hover {
  background: var(--primary-color, #e63946);
  color: #fff;
}

.brand-img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  vertical-align: middle;
  margin-right: 8px;
}

.main-brands-toggle {
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.main-brands-toggle:hover {
  opacity: 0.85;
}

.main-arrow {
  display: inline-block;
  margin-left: 10px;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* SƏBƏT DÜYMƏSİ VƏ MODAL STİLLƏRİ */
#cartBtn {
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  background-color: #e50914 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 22px !important;
  border-radius: 50px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.5) !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#cartBtn:hover {
  background-color: #b80710 !important;
  transform: scale(1.05);
}

#cartModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.85) !important;
  z-index: 100000 !important;
  justify-content: center !important;
  align-items: center !important;
}

/* ==========================================
   BÜTÜN MOBİL CİHAZLAR ÜÇÜN UNİVERSAL FON KODU
   ========================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .about-toggle-header {
    padding: 20px;
  }
  .about-title {
    font-size: 1.4rem;
  }

  /* Mobil Safari/Android üçün sabit, tam oturmuş arxa fon */
  body {
    background-color: #111111 !important;
    background-image: linear-gradient(rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.85)), url('bg.jpg') !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }

  .hero, #hero {
    background: transparent !important;
  }
}