body {
  margin: 0;
  padding: 0;
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

:root {
  --primary-color: rgb(255, 180, 50);      
  --primary-color-light: #fff;
  --active-color:  rgb(230, 145, 0);  
  --soluk-text:rgba(255, 255, 255, 0.815);
  --gallery-gap: 20px;
  --gallery-radius: 12px;
  --gallery-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px;
  --input-bg: #fff;
  --input-border: #ccc;
  --input-focus-border: var(--primary-color);
  --input-text: #333;
  --shadow-color: rgba(31, 31, 31, 0.25);
  --bg-color: #111; /* Arka plan rengi */
  --text-color: #fff; /* Yazı rengi */
}

/* HEADER - SIDEBAR */
.ana-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #fff;
  border-right: 1px solid #c0b3a4;
  box-shadow:
    rgba(136, 165, 191, 0.48) 6px 2px 16px 0px,
    rgba(255, 255, 255, 0.8) -6px -2px 16px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* logo tasarımı 1 */
/* .logo {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 1rem;
  border: 2px solid rgb(255, 180, 50);
  border-radius: 14px;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(255, 180, 50, 0.3);
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(255, 180, 50, 0.5);
} */
/* logo tasarımı 2 */
.logo {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 0.75rem;
  background-color: #eaeaea;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all ease 500ms;
}
.logo:hover {
  transform: scale(1.05);
}

.menu {
  width: 100%;
}

.menu ul {
  list-style: none;
  padding: 0;
  text-align: center;
  padding-top: 1.5rem;
}

.menu ul li {
  margin-bottom: 3.2rem;
}

.menu ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s;
}

.menu ul li a:hover {
  color: var(--primary-color);
}

.menu ul li a:active {
  color: var(--active-color) !important;
}

.activenav {
  color: var(--primary-color) !important;
}

/* Hamburger butonu başlangıçta gizli */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
}

.social-links {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding-top: 140%;
}

.social-links a {
  font-size: 2rem;
  color: #333;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.top-right-controls {
  display: none; /* sadece mobilde gösterilecek */
  align-items: center;
  gap: 1rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
}

.navbar {
  background-color: #1a1a1a;
  color: #f0f0f0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  gap: 1rem;
  padding-left: 250px;
}

.navbar div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar i {
  color: var(--primary-color);
}

/* Ana sayfa içeriği sağa kayar */

.main-page {
  padding-left: 250px;
  box-sizing: border-box;
  transition: padding-left 0.3s ease;
}

.harita {
  position: relative;
  width: 100%;
  height: 50vh;      /* Tam ekran yüksekliği */
  max-height: 50vh;  /* Maksimum viewport yüksekliği */
  max-width: 100vw;   /* Maksimum viewport genişliği */
  margin: 0 auto;
  border-radius: 0;   /* İstersen kaldırabilirsin */
  overflow: hidden;
  box-shadow: none;   /* İstersen kaldırabilirsin */
}

#gmap-canvas, #gmap-canvas iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 50vh;      /* Yükseklik tam ekran */
  border: none;
}

.harita-box {
  position: absolute;
  bottom: 65px;
  left: 65%;
  transform: translateX(-50%);
  max-width: 60%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  font-size: 1rem;
  /* line-height: 1.4; */
  z-index: 10;
}


.main-page-image {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dinamik_background {
  background-repeat: no-repeat;
  background-size: cover; /* daha iyi responsive uyum için */
  background-position: center;
  position: relative;
  width: 100%;
  height: 80vh; /* yükseklik viewport yüksekliğine göre ayarlandı */
  object-fit: cover;
  display: block;
}


.hakkimizda-button {
  position: absolute;
  padding: 3vh 3vw;
  background: none;
  border: 2px solid var(--primary-color);
  border-radius: 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  left: 13%;
  bottom: 33%;
}

/* Hover efekti */
.hakkimizda-button:hover {
  background-color: rgba(255, 180, 50, 0.2);
  color: var(--primary-color);
  transform: scale(1.03);
  border-color: rgb(255, 200, 100);
}

.hakkimizda-button:active {
  transform: scale(1.01);
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  color: #333;
}

.title-area {
  text-align: center;
  margin-bottom: 30px;
}

.title-area h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.title-area p {
  color: #666;
  font-size: 16px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
  gap: 20px;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  padding: 10px 15px;
  /* cursor: pointer; */
  color: #000;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}

.tab i {
  font-size: 24px;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.tab.active {
  border-bottom: 2px solid var(--primary-color);
}

.content {
  position: relative; 
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: stretch;
  /* border-radius: 8px; */
  padding: 30px;
  color: white;
  text-align: center;

  /* Arka plan resmi ayarları */
  background-image: url(https://www.arabacekme.com/wp-content/uploads/2021/08/araba-tamiri.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Overlay (şeffaf siyah katman) */
.content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65); /* %60 siyah */
  z-index: 0;
}

/* İçeriklerin üstte görünmesi için */
.content > * {
  position: relative;
  z-index: 1;
}

.content .list {
  flex: 1 1 900px;
}

.content .list p {
  margin-bottom: 20px;
  font-weight: bold;
}

.content .list ul {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 30px;
}

.content .list ul li {
  margin-bottom: 10px;
  font-size: 15px;
  position: relative;
  /* padding-left: 20px; */
}

.content .list ul li::before {
  position: absolute;
  left: 0;
}

.gallery-section {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.gallery-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.gallery-section p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

/* Galeri Grid Sistemi */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gallery-gap);
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--gallery-radius);
  box-shadow: var(--gallery-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  padding: 5vh;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 8px 16px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}


.brand-slider {
  text-align: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.brand-slider h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.brand-slider p {
  font-size: 15px;
  color: #666;
  margin-bottom: 30px;
}

/* Scrollable Container */
.brand-track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0;
}

.brand {
  flex: 0 0 auto;
  scroll-snap-align: center;
  transition: transform 0.3s;
  min-width: 120px;
  max-width: 160px;
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: 0.3s ease;
}

.brand:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.repair-process {
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
}

.repair-process h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #222;
}

.repair-process p {
  color: #666;
  font-size: 16px;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step {
  background: white;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.step:hover {
  transform: translateY(-5px);
}

.step-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.step h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.step p {
  color: #555;
  font-size: 15px;
  line-height: 1.5;
}

.background-container {
  position: relative;
  min-height: 100vh;
  background: url('/images/otomobil-servis.png') no-repeat center center/cover;
}
.overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.faq-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
}
.faq-wrapper h2 {
  text-align: center;
  color: #333;
}
.faq-card {
  background: #fff;
  /* border: 1px solid #ccc; */
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  cursor: pointer;
  transition: background-color 0.3s;
}
.faq-card:hover {
  background-color: #f0f0f0;
}
.faq-card h3 {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
}
.faq-card p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  margin-top: 0;
  font-size: 0.95rem;
  color: #555;
}
.faq-card.active p {
  max-height: 500px; /* Yeterli bir yükseklik olmalı */
  opacity: 1;
  margin-top: 0.5rem;
}

.scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.75rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}


/* servis noktası */

.contact-form-section {
  padding: 3rem 1rem;
  background-color: #f9f9f9;
  text-align: center;
  font-family: 'Rubik', sans-serif;
}

.contact-form-section h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.contact-form-section p {
  color: #666;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  flex: 1;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.form-button {
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 200px;
  margin: auto;
}

.form-button:hover {
  background-color: #d36e00;
}

header {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}
header h1 {
  font-size: 2.5rem;
}
.section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1rem;
}
.section:nth-child(even) {
  background-color: #ffffff;
}
.section-content {
  flex: 1 1 400px;
  max-width: 600px;
  /* animation: fadeIn 1s ease forwards; */
}
.section img {
  width: 100%;
  max-width: 450px;
}

.section h2 {
  color: #444;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.section p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.counter-section {
  background: #1a1a1a;
  padding: 4rem 1rem;
  text-align: center;
}
.counters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.counter {
  background: #1f1f1f;
  flex: 1 1 200px;
  border-radius: 15px;
  padding: 2.5rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.counter:hover {
  transform: translateY(-10px);
}
.counter i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
  animation: iconPulse 2s infinite;
}
.counter span {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}
.counter-text {
  font-size: 1.2rem;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
/* müşteri yorum */
.reviews {
  background: #f9f9f9;
  /* padding: 4rem 1rem; */
  padding-top: 1rem;
  padding-bottom: 2rem;
}
.reviews-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.review-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: hidden;
  scroll-behavior: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.review-card {
  flex: 0 0 300px;
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  /* box-shadow: 0 8px 20px rgba(0,0,0,0.08); */
  transition: transform 0.3s ease;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.review-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.review-header h4 {
  margin: 0;
  font-size: 1.1rem;
}
.review-text {
  font-size: 0.95rem;
  color: #444;
  font-style: italic;
}
.review-slider::-webkit-scrollbar {
  display: none;
}


/* Hizmet Kartları */
.services-section {
  background: #fff;
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.services-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #222;
}

.services-cards2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-right: 9rem;
  padding-left: 9rem;
}

.service-card2 {
  background: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  padding: 2rem;
  flex: 1 1 280px;
  max-width: 300px;
  min-width: 300px;
  transition: transform 0.3s ease;
  cursor: default;
}

.service-card2:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.service-card2 i {
  font-size: 3rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.service-card2 h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #444;
}

.service-card2 p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* SSS Bölümü */
.faq-section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #222;
}

.faq-item {
  background: #f7f7f7;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-item:hover {
  background-color: #e1e1e1;
}

.faq-question {
  padding: 1rem 1.5rem;
  font-weight: 600;
  position: relative;
  font-size: 1.1rem;
}

.faq-question::after {
  content: '\f107'; /* FontAwesome chevron-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 1rem 1.5rem;
}

/* servis kartları */
.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
  transition: all 0.6s ease-in-out;
}
.service-card {
  flex: 1 1 calc(30% - 2rem);
  background: white;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.3s ease;
  min-width: 250px;
  max-width: 450px;
  cursor: pointer;
  overflow: hidden;
}
.service-card:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}
.service-card h3 {
  margin: 10px 0;
}
.service-detail {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}
.description {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  gap: 0.5rem;
}
.pagination button {
  padding: 0.5rem 1rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.pagination button:hover {
  background-color: var(--active-color);
}
.pagination button.active {
  background-color: var(--active-color);
}
#controls {
  text-align: center;
  margin: 30px auto;
  max-width: 600px;
  padding: 25px 20px;
  /* background: var(--primary-color-light); */
  border-radius: 14px;
  /* box-shadow: 0 8px 30px var(--shadow-color); */
  transition: background 0.4s ease;
}

#controls input,
#controls select {
  padding: 12px 18px;
  margin: 0 12px;
  border-radius: 10px;
  border: 2px solid var(--input-border);
  font-size: 16px;
  color: var(--input-text);
  background: var(--input-bg);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
  outline: none;
  transition:
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s ease;
  cursor: text;
  min-width: 160px;
}

#controls input:focus,
#controls select:focus {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 12px var(--primary-color);
  transform: scale(1.04);
}

#controls input:hover,
#controls select:hover {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 8px var(--primary-color);
  transform: translateY(-2px);
}


/* Footer */
footer {
  background: #1a1a1a;
  color: #ddd;
  padding: 2rem 1rem;
  text-align: center;
}

footer .footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

footer nav {
  flex: 1 1 300px;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

footer nav ul li a {
  color: #ddd;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer nav ul li a:hover {
  color: var(--primary-color);
}

footer .social-icons {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

footer .social-icons a {
  color: #ddd;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: var(--primary-color);
}

footer p {
  width: 100%;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* loading-screen */
#car-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #1a1a1a, #2c2c2c);
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
  transition: opacity 0.5s ease;
}

#car-loader .car {
  position: relative;
  font-size: 4rem;
  /* margin-bottom: 1rem; */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: bounce 1s infinite ease-in-out;
}

#car-loader .car i.fa-car-side {
  color: var(--primary-color);
  position: relative;
  z-index: 2;
}

#car-loader p {
  font-size: 1.2rem;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* galeri */

.cg-section {
  padding: 60px 20px;
  /* background: var(--bg-color); */
  text-align: center;
}



.cg-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.cg-btn {
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.cg-btn:hover,
.cg-btn.active {
  background: var(--primary-color);
  color: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 0 10px var(--primary-color);
}

.cg-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding: 20px;
}

.cg-item {
  background: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  overflow: hidden;
  /* padding: 24px; */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  max-width: 700px;
}

.cg-item.show {
  opacity: 1;
  transform: translateY(0);
}

.cg-item h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

/* Slider */
.cg-slider-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* border-radius: 12px; */
}

.cg-ba-slider {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
}

.cg-ba-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cg-resize {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}

.cg-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-2px);
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  z-index: 10;
  cursor: ew-resize;
}

.cg-handle::before {
  content: "\f0b2";
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: var(--primary-color);
  background: #1b1b1b;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 0 10px var(--gallery-shadow);
}

/* Lightbox */
.cg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: 0.3s;
}

.cg-lightbox img {
  max-width: 100%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.cg-lightbox:target {
  display: flex;
}

.cg-lightbox::after {
  content: "✕";
  position: absolute;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: 0.3s;
}

/* Fade Effect */
.cg-fade-out {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s, transform 0.3s;
}

/* Responsive */
