/* REGISTER FONTS */
@font-face {
  font-family: "MazdaType";
  src: url("../font/MazdaType-Regular.otf") format("opentype");
  font-weight: 400;
}
@font-face {
  font-family: "MazdaType";
  src: url("../font/MazdaType-Medium.otf") format("opentype");
  font-weight: 500;
}
@font-face {
  font-family: "MazdaType";
  src: url("../font/MazdaType-Bold.otf") format("opentype");
  font-weight: 700;
}

/* ANIMATIONS */
@keyframes scroll-line {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.animate-scroll-line {
  animation: scroll-line 2.5s infinite ease-in-out;
}

/* NAVBAR TRANSITION SMOOTHNESS */
#navbar {
  will-change: background-color, padding;
}

html {
  scroll-behavior: smooth;
}

/* Section Profile */
/* --- EXECUTIVE OVERLAP BUTTON --- */
.exec-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  border: 1px solid #eeeeee; /* Outline sangat tipis & elegan */
  background-color: transparent;
  color: #1a1a1a;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5em;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.exec-btn i {
  font-size: 10px;
  transition: transform 0.5s ease;
}

/* Hover Effect: Border Hitam & Icon Geser */
.exec-btn:hover {
  border-color: #000000;
  background-color: #000000;
  color: #ffffff;
  padding-left: 40px; /* Geser teks sedikit ke kanan */
}

.exec-btn:hover i {
  transform: translateX(10px); /* Panah maju ke depan */
}

/* Responsif Mobile Tweak */
@media (max-width: 768px) {
  #profile-sales {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  #profile-sales h2 {
    font-size: 3rem;
  }
  .exec-btn {
    letter-spacing: 0.3em;
    padding: 18px 20px;
  }
}

/* Why Section */
/* --- VALUES SECTION CLEAN FLOW --- */

#values h2 {
  /* Menambah spasi kata agar sangat lapang khas Mazda */
  word-spacing: 0.25em;
  letter-spacing: 0.2em;
}

#values p {
  text-align: justify;
  text-justify: inter-word;
}

/* Garis pembagi yang sangat halus */
#values .border-gray-100 {
  border-color: #f3f4f6;
}

/* Hover Effect: Text Header sedikit melebar */
#values .group:hover h4 {
  letter-spacing: 0.8em;
}

/* Responsif Mobile Tweak */
@media (max-width: 1024px) {
  #values .grid {
    border-top: 1px solid #f3f4f6;
  }
  #values .group {
    border-left: none;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Section Gallery */
/* --- DARK MOMENTS (FULL COLOR) TWEAK --- */

#moments h2 {
  letter-spacing: 0.45em;
  word-spacing: 0.3em;
}

#moments p {
  word-spacing: 0.15em;
}

/* Hover Effect: NO Grayscale, Just Brightness & Scale */
#moments .group img {
  /* Normal State: Sedikit diredupkan agar menyatu dengan BG gelap */
  filter: brightness(0.85);
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1); /* Sangat smooth */
  will-change: transform, filter;
}

#moments .group:hover img {
  /* Hover State: Menjadi terang benderang dengan warna asli */
  filter: brightness(1.05);
}

/* Penyesuaian Mobile */
@media (max-width: 1024px) {
  #moments h2 {
    font-size: 1.8rem;
    letter-spacing: 0.35em;
  }
}

/* CTA */
/* --- FULL SCREEN PARALLAX --- */

.parallax-section {
  /* Memastikan section benar-benar setinggi layar */
  height: 100vh;
  width: 100%;
}

.bg-image-cta {
  background-image: url("/src/img/hero/mazda-cx-80.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  width: 100%;
  height: 100%;
  filter: brightness(0.65) contrast(1.1);
}

/* Tweak Typography untuk Full Screen */
#contact h2 {
  /* Sedikit lebih besar untuk layar lebar */
  word-spacing: 0.5em;
  letter-spacing: 0.6em;
}

/* Mobile Fix (Mobile tidak support h-screen dengan baik kadang-kadang karena browser bar) */
@media (max-width: 1024px) {
  .parallax-section {
    height: 80vh; /* Sedikit lebih pendek di mobile agar user tidak tersesat */
  }
  .bg-image-cta {
    background-attachment: scroll; /* Tetap scroll di mobile agar tidak berat */
  }
}

/* Footer */
/* --- DARK MINIMALIST FOOTER --- */

footer {
  background-color: #2b2b2b;
}

footer h3,
footer h4 {
  word-spacing: 0.3em;
}

/* Animasi Underline Putih Halus */
footer a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

footer a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #ffffff; /* Underline putih di BG gelap */
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

footer a:hover::after {
  width: 100%;
}

/* Tweak Spacing & Color */
footer p {
  color: rgba(
    255,
    255,
    255,
    0.4
  ); /* Abu-abu transparan agar tidak terlalu terang */
}

/* Mobile Tweak */
@media (max-width: 768px) {
  footer {
    padding-top: 8rem;
    padding-bottom: 6rem;
  }
}

/* Pop Up Button */
/* --- FAB PILL SHAPE UX --- */

.fab-pill {
  display: flex !important;
  align-items: center !important;
  background-color: rgba(20, 20, 20, 0.9) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px !important; /* Membuat bentuk kapsul */
  padding: 4px 4px 4px 20px !important; /* Spasi teks di kiri, ikon di kanan */
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fab-text {
  color: white !important;
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  font-weight: bold;
  margin-right: 15px;
  white-space: nowrap;
}

.fab-icon-inner {
  width: 38px !important;
  height: 38px !important;
  background-color: #802020 !important; /* Soul Red */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

/* Hover Effect: Pill membesar sedikit */
.fab-pill:hover {
  transform: translateX(-5px) scale(1.02);
  background-color: #1a1a1a !important;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Main Button (X) */
.fab-main-btn {
  width: 56px !important;
  height: 56px !important;
  background-color: #802020 !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Active State */
#fab-menu.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
#fab-icon.active {
  transform: rotate(135deg);
}

/* --- MOBILE VERSION --- */
@media (max-width: 768px) {
  .fixed.bottom-6.right-6 {
    right: 1rem !important; /* Mepet ke kanan */
    bottom: 1.5rem !important;
  }

  .fab-pill {
    padding: 3px 3px 3px 16px !important;
  }

  .fab-text {
    font-size: 9px !important;
    margin-right: 10px;
  }

  .fab-icon-inner {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px;
  }

  .fab-main-btn {
    width: 48px !important;
    height: 48px !important;
  }
}
