
/* =========================
   FONT KHUSUS
========================= */
@font-face {
  font-family: 'Caviar Dreams';
  src: url('https://db.onlinewebfonts.com/t/66a8e86fa75bfa2eb25ec6fcb62c7cbb.woff2') format('woff2');
}

@font-face {
  font-family: 'Harlow Solid';
  src: url('https://db.onlinewebfonts.com/t/d393f4b56f3bc418c31a3f5ab2d3f79d.woff2') format('woff2');
}

/* =========================
   RESET & GLOBAL
========================= */
body {
  padding-top: 70px;
  font-family: 'Caviar Dreams', sans-serif;
  line-height: 1.6;
  margin: 0;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5 {
  font-weight: bold;
}

/* =========================
   NAVBAR (MERAH)
========================= */
.navbar {
  background-color: #ff0000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, .3);
}

.navbar-brand, .navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 600;
}

.navbar-nav .nav-link:hover {
  color: #ffd1d1 !important;
}

.nav-links a {
  color: #fff;
  font-weight: 600;
  transition: color .2s ease;
}

.nav-links a:hover {
  color: #ffd1d1;
}

.nav-links a.active {
  color: #ffd1d1;
  border-bottom: 2px solid #ffd1d1;
}

/* =========================
   LOGO KECIL (NAVBAR)
========================= */
.logo-text {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-weight: 700;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.logo-text .neo {
  font-family: 'Caviar Dreams', sans-serif;
  font-size: 1.4rem;
}

.logo-text .hass {
  font-family: 'Harlow Solid', cursive;
  font-size: 3rem;
}

#currentDate {
  font-size: .8rem;
  margin-left: .5rem;
  white-space: nowrap;
}

/* =========================
   LOGO BESAR (NEO HASS)
========================= */
.nh-logo {
  font-weight: bold;
  line-height: 1;
  margin-bottom: 20px;
  text-align: center;
}

.nh-logo .neo {
  font-family: 'Caviar Dreams', sans-serif;
  color: #dc2626;
  font-size: 3rem;
  font-weight: 700;
}

.nh-logo .hass {
  font-family: 'Harlow Solid', serif;
  color: #991b1b;
  font-size: 3rem;
  font-weight: 900;
  margin-top: -20px;
}

.nh-underline {
  width: 128px;
  height: 4px;
  background: #dc2626;
  margin: 0 auto 24px;
}

/* ========================= 
   HERO SECTION
========================= */
#HERO-SECTION-RESPONSIVE {
  background: url('image/logo-neohass-1.jpg') center/cover no-repeat;
  position: relative;
  padding: 60px 0;
  color: #fff;
}

.hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, .5);
  border-radius: 12px;
  max-width: 80%;
  z-index: 2;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

/* =========================
   SELAMAT DATANG
========================= */
#welcome h1,
#welcome h5 {
  background: rgba(0, 0, 0, 0.4);
  display: inline-block;
  border-radius: 12px;
  padding: 20px;
  margin: 0;
}

#welcome h1 {
  font-size: 3rem;
  font-weight: 700;
}

#welcome h5 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* =========================
   FORM INPUT & BUTTON
========================= */
.form-input {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid #ccc;
  border-radius: .375rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-input:focus {
  border-color: #ff0000;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, .2);
}

.btn-submit {
  background-color: #ff0000;
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: .375rem;
  font-weight: 700;
  transition: background-color .2s ease;
}

.btn-submit:hover {
  background-color: #cc0000;
}

.btn-wa {
  display: inline-block;
  background-color: #25D366;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: .375rem;
  font-weight: 700;
  margin-top: .75rem;
  text-decoration: none;
  transition: background-color .2s ease;
}

.btn-wa:hover {
  background-color: #1ebe5a;
}

/* =========================
   FEATURE CARD
========================= */
.feature-card {
  border-radius: 14px;
  padding: 18px;
  color: #fff;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #ff4d4d, #b71c1c);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: #fff;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.95;
}

/* =========================
   CAROUSEL
========================= */
.carousel {
  width: 720px;
  max-width: 100%;
  height: 400px;
  max-height: 60vh;
  background: #f7f1f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  transition: transform .5s ease-in-out, filter .5s ease-in-out;
}

/* Transisi fade antar slide */
.carousel-fade .carousel-item {
  transition: opacity 1.5s ease-in-out;
}

/* Gambar pas sesuai tinggi carousel */
.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  transition: transform .6s ease-in-out;
}

/* Hover effect */
.carousel:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}

.carousel:hover img {
  transform: scale(1.05);
}

/* Overlay gradasi (jika dipakai di HTML) */
.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 70%);
  pointer-events: none;
}

/* Animasi hover untuk elemen lain */
.hover-lift {
  transition: transform .4s ease, box-shadow .4s ease;
}
.hover-lift:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}


/* =========================
   ANIMASI STATISTIK
========================= */
.stat-card {
  transform: scale(0);
  animation: popIn .6s forwards;
}

.stat-card:hover {
  transform: scale(1.1);
  transition: transform .3s;
}

.stat-card:nth-child(1) {
  animation-delay: .9s;
}

.stat-card:nth-child(2) {
  animation-delay: 1s;
}

.stat-card:nth-child(3) {
  animation-delay: 1.1s;
}

.stat-card:nth-child(4) {
  animation-delay: 1.2s;
}

@keyframes popIn {
  to {
    transform: scale(1);
  }
}

/* =========================
   QA CARDS
========================= */
.qa-item {
  padding: 1rem;
  border-top: 1px solid rgba(220, 53, 69, .7);
  border-radius: .5rem .5rem 0 0;
  transition: all .3s ease-in-out;
  max-width: 220px;
  margin: auto;
}

.qa-item h4 {
  font-size: 1rem;
}

.qa-item p {
  font-size: .8rem;
  margin-bottom: 0;
}

.qa-item:hover {
  border-top: 2px solid rgba(220, 53, 69, .9);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
/* =========================
   ABOUT
========================= */
#about {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px; /* tinggi area supaya background terlihat */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

#about .container {
  background-color: rgba(238, 18, 18, 0.5);
  padding: 3rem;
  border-radius: 12px;
}

.custom-hr {
  width: 80px;
  height: 3px;
  background-color: red;
  border: none;
}
/* =========================
   PRODUCTS (DIHAPUS BG)
========================= */
#products {
  background: none; /* HAPUS background gambar */
  position: relative;
  padding: 60px 0;
  color: #000; /* teks jadi hitam agar kontras */
  width: 100%;
  z-index: 0;
}

#products::before {
  content: none; /* hilangkan overlay hitam */
}

#products .container {
  position: relative;
  z-index: 1;
}

.product-card {
  border: none;
  background-color: rgba(255, 255, 255, .95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  transition: transform .3s ease;
  width: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border: none;
}

#products .card-body h5 {
  color: #000;
}

.modal-content {
  background: linear-gradient(135deg, #ff4d4d, #b30000);
  color: white;
  border-radius: 15px;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.modal-header,
.modal-body,
.modal-footer {
  color: #fff;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* Produk Card */
.product-card {
  border-radius: 12px;
  overflow: hidden;   /* biar sudut gambar ikut rounded */
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* Gambar produk */
.product-img {
  width: 100%;        /* penuh mengikuti lebar card */
  height: auto;       /* tinggi otomatis sesuai proporsi asli gambar */
  display: block;     /* hilangkan whitespace bawaan */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

@media (max-width: 768px) {
  #products .col-sm-10 {
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex;
    justify-content: center;
  }
}



/* =========================
   PRODUK SECTION IMAGE FULL
========================= */
#products img,
.container .row img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.video-cover {
  max-height: 80vh;   /* maksimal 80% tinggi layar */
  object-fit: cover;  /* isi penuh tanpa distorsi */
}



/* =========================
   GALLERY
========================= */
#Galeri {
  background: url('https://kokindo.co.id/image/logo-neohass-3.jpg') center/cover no-repeat;
  position: relative;
  padding: 60px 0;
  color: #fff;
  z-index: 0;
}

.gallery-card img {
  transition: transform .4s ease, filter .4s ease;
}

.gallery-card:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Tambahan: foto sejajar rapi */
.row.g-4 img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.row.g-4 img:hover {
  transform: scale(1.05);
}

.gallery-image-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f7f1f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease;
}

@supports not (aspect-ratio: 1) {
  .gallery-image-wrap {
    height: 720px;
  }
}

.gallery-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-image-wrap:hover {
  transform: scale(1.03);
}

/* Card galeri */
.custom-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card img {
  width: 100%;
  height: 250px; /* atur tinggi sesuai kebutuhan */
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* overlay transparan (hitam samar) */
.custom-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3); /* transparan */
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* efek hover */
.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.custom-card:hover img {
  transform: scale(1.05);
}

.custom-card:hover::after {
  opacity: 1; /* muncul transparan */
}


/* =========================
   FOOTER
========================= */
.footer-section {
  background-color: #ff0000;
  color: #fff;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-title, .footer-subtitle {
  color: #fff;
  font-weight: 900;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: .75rem;
}

.footer-subtitle {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-text {
  color: #ffecec;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-info p {
  color: #fff;
  margin-bottom: .4rem;
}

.footer-hours {
  color: #ffd1d1;
}

.footer-hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .4rem;
}

.footer-hours span:last-child {
  font-weight: 800;
}

.footer-section a {
  color: #ffecec;
  text-decoration: none;
}

.footer-section a:hover {
  color: #ffd1d1;
}

.social-icons {
  display: flex;
  gap: .5rem;
}

.social-icons a {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  background-color: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background-color .2s ease, transform .2s ease;
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, .25);
  transform: translateY(-2px);
}

.footer-section .btn-wa {
  display: block;
  margin-top: 1rem;
  text-align: center;
}

footer:not(.footer-section) {
  background-color: inherit;
}

/* =========================
   Footer Column Boxed dengan Spacing Rapi
========================= */
footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  /* jarak antar kolom */
}

footer .col-lg-6,
footer .col-lg-3 {
  border: 1px solid rgba(255, 255, 255, 0.3);
  /* border kotak tiap kolom */
  border-radius: 12px;
  /* rounded corners */
  padding: 1.2rem 1.5rem;
  /* padding di dalam kotak */
  margin-bottom: 1rem;
  /* jarak bawah tiap kolom */
  background-color: rgba(255, 255, 255, 0.05);
  /* background semi-transparent */
  box-sizing: border-box;
  /* supaya padding tidak melebarkan kotak */
  transition: background-color 0.3s ease, transform 0.2s ease;
  flex: 1 1 100%;
  /* default full width mobile */
}

/* Hover effect tiap kolom */
footer .col-lg-6:hover,
footer .col-lg-3:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Tablet/Desktop */
@media (min-width: 768px) {
  footer .col-lg-6 {
    flex: 0 0 48%;
  }

  /* sedikit dikurangi dari 50% agar ada gap */
  footer .col-lg-3 {
    flex: 0 0 23%;
  }

  /* sedikit dikurangi dari 25% agar ada gap */
}

/* Footer Brand Message dan Copyright */
footer .footer-message,
footer .text-center.py-3 {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  text-align: center;
}

/* Sosial Media Icon di Footer */
.social-icons .social-icon {
  width: 28px;
  /* ukuran ikon */
  height: 28px;
  /* biar proporsional */
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-icons .social-icon:hover {
  transform: scale(1.2);
  /* efek membesar saat hover */
}

/* =========================
   RESPONSIVE TAMBahan
========================= */

/* Tablet landscape dan ke bawah */
@media (max-width: 992px) {
  /* HERO */
  .hero-text {
    max-width: 90%;
    padding: 15px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }

  /* WELCOME */
  #welcome {
    padding: 60px 15px;
  }
  #welcome h1 {
    font-size: 2.2rem;
  }
  #welcome h5 {
    font-size: 1.2rem;
  }

  /* PRODUCTS */
  #products {
    padding: 40px 15px;
  }
  .product-card {
    margin-bottom: 20px;
  }

  /* GALLERY */
  #Galeri {
    padding: 40px 15px;
  }
  .custom-card img {
    height: 200px;
  }

  /* FOOTER */
  footer .col-lg-6,
  footer .col-lg-3 {
    flex: 0 0 48%; /* 2 kolom di tablet */
  }
}

/* HP portrait dan ke bawah */
@media (max-width: 576px) {
  /* HERO */
  .hero-text {
    max-width: 95%;
    padding: 10px;
  }
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .hero-text p {
    font-size: 0.9rem;
  }

  /* WELCOME */
  #welcome {
    padding: 40px 10px;
  }
  #welcome h1 {
    font-size: 1.8rem;
  }
  #welcome h5 {
    font-size: 1rem;
  }

  /* PRODUCTS */
  #products {
    padding: 30px 10px;
  }
  .product-card {
    margin-bottom: 15px;
  }
  .product-img {
    max-height: 220px;
    object-fit: cover;
  }

  /* GALLERY */
  .row.g-4 img {
    height: 200px;
  }
  .custom-card img {
    height: 180px;
  }

  /* FOOTER */
  footer .col-lg-6,
  footer .col-lg-3 {
    flex: 1 1 100%; /* jadi 1 kolom full */
  }
  .social-icons {
    justify-content: center;
  }
  .footer-section {
    padding: 2rem 1rem;
  }
}

/* Layar sangat kecil (HP < 360px) */
@media (max-width: 360px) {
  /* HERO */
  .hero-text h1 {
    font-size: 1.2rem;
  }
  .hero-text p {
    font-size: 0.8rem;
  }

  /* WELCOME */
  #welcome h1 {
    font-size: 1.5rem;
  }
  #welcome h5 {
    font-size: 0.9rem;
  }

  /* PRODUCTS */
  .product-img {
    max-height: 180px;
  }

  /* GALLERY */
  .custom-card img {
    height: 150px;
  }

  /* FOOTER */
  .footer-title {
    font-size: 1rem;
  }
  .footer-subtitle {
    font-size: 0.9rem;
  }
}

/* Hero container */
.hero-container {
  position: relative;
}

/* Gambar */
.hero-container .hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Overlay setengah bawah */
.hero-container .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* setengah bawah */
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0; /* default tidak kelihatan */
  transition: opacity 0.4s ease;
  pointer-events: none; /* supaya overlay tidak nutupin tombol */
}

/* Tombol di dalam gambar */
.hero-container .btn-wrapper {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 1.5rem;
  z-index: 2; /* tombol selalu di atas overlay */
}

/* Saat hover tombol → overlay muncul */
.hero-container .custom-btn:hover ~ .overlay,
.hero-container .custom-btn:focus ~ .overlay {
  opacity: 1;
}
/* Bungkus gambar + overlay */
.hero-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 12px;     /* radius sekali di sini */
  overflow: hidden;        /* potong overlay biar ikut radius */
}

/* Gambar */
.hero-wrapper .hero-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Overlay setengah bawah */
.hero-wrapper .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Tombol */
.hero-wrapper .btn-wrapper {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 1.5rem;
  z-index: 2;
}

/* Hover tombol → overlay muncul */
.hero-wrapper .btn-wrapper:hover ~ .overlay {
  opacity: 1;
}
.hero-container {
  position: relative;
}

.hero-container .hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px; /* contoh radius */
}

/* overlay setengah bawah */
.hero-container .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(252, 84, 84, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 0 0 10px 10px; /* samakan dengan gambar */
}

/* tombol wrapper */
.hero-container .btn-wrapper {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 1.5rem;
  z-index: 2;
}

/* efek saat hover tombol */
.hero-container .btn-wrapper:hover + .overlay {
  opacity: 1;
}
