/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playwrite+FR+Moderne:wght@100..400&display=swap");

:root {
  /* Tông chủ: xanh đậm gần đen; accent xanh sáng cho chữ/CTA */
  --main-pink: #1e3a5f;
  --light-pink: #060a0f;
  --dark-pink: #7eb8ff;
  /* Nền toàn trang: radial nhẹ + linear chéo (không còn một màu phẳng) */
  --bg-gradient: radial-gradient(ellipse 110% 80% at 100% 0%, rgba(28, 65, 110, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 0% 90%, rgba(18, 48, 88, 0.28) 0%, transparent 50%),
    linear-gradient(168deg, #020408 0%, #0a1220 18%, #050a12 45%, #0b1626 68%, #06090e 100%);
  --soft-white: rgba(220, 235, 255, 0.08);
  --call-green: #28a745;
  --surface: #0e141d;
  /* Header / thanh: gradient dọc nhẹ */
  --surface-gradient: linear-gradient(180deg, #131b28 0%, #0c1119 45%, #0a0e16 100%);
  /* Thẻ dịch vụ: góc sáng hơn một chút */
  --card-gradient: linear-gradient(155deg, #182232 0%, #101820 38%, #141d2c 100%);
  /* Block section (dịch vụ / gallery): lớp giữa sáng hơn 1 nấc */
  --section-gradient: linear-gradient(185deg, rgba(8, 14, 24, 0.97) 0%, rgba(14, 28, 48, 0.95) 35%, rgba(8, 16, 28, 0.98) 100%);
  --footer-gradient: linear-gradient(180deg, #04060a 0%, #0a101a 40%, #070b10 100%);
  --text-primary: #e4eaf4;
  --text-muted: #8b9cb3;
  /* Offset khi cuộn tới #home / #services / … (header fixed + vùng logo/nav) */
  --anchor-offset: 116px;
}

html {
  font-size: 93.75%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  padding-top: 140px;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  background: var(--bg-gradient);
  background-color: var(--light-pink);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
}

.bg-light-gradient {
  background: var(--section-gradient);
}

.text-pink {
  color: var(--dark-pink) !important;
}

/* --- HEADER & NAVBAR --- */
header.fixed-top {
  background: var(--surface-gradient) !important;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, rgba(20, 50, 85, 0.5) 0%, var(--main-pink) 50%, rgba(20, 50, 85, 0.5) 100%) 1;
  z-index: 1030;
}
.logo {
  font-family: "Playwrite FR Moderne", cursive;
  font-weight: 700;
  color: #f1f4fa !important;
  text-decoration: none;
  font-size: 1.5rem;
  letter-spacing: 2px;
}
header .navbar-brand.logo {
  color: #f1f4fa !important;
}
.logo span {
  color: #9bcfff;
}
.address-bar {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.nav-link {
  font-weight: 600;
  color: #b4c2d4 !important;
  transition: 0.3s;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 10px 15px !important;
}
.nav-link:hover {
  color: var(--dark-pink) !important;
}
/* Bootstrap gán màu tối cho .active / brand trên nền header tối — chỉnh lại cho đọc rõ */
header .nav-link.active,
header .nav-link[aria-current="page"],
header .navbar-nav .nav-link.active {
  color: #9ec4ff !important;
  font-weight: 700;
}

/* --- HERO SECTION --- */
.hero-section {
  height: 70vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  width: 100%;
  display: block;
}
.heroSwiper {
  width: 100%;
  height: 100%;
}
.img-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- ACTION BUTTONS (Sát lề, Xa nhau & Fix kẹt click) --- */
.action-buttons-group {
  position: fixed;
  right: -83px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 135px;
  align-items: center;
  width: 200px;
}

.booking-btn-fixed,
.call-btn-vertical {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 170px;
  height: 45px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease-out;
  transform: rotate(-90deg);
  outline: none;
}

.booking-btn-fixed {
  background: linear-gradient(45deg, #1a3a5c, #3d7ab8);
  color: #f0f6ff;
}
.call-btn-vertical {
  background: linear-gradient(145deg, #2d9a48, #1f7a34);
  color: white;
}
.call-btn-vertical i {
  transform: rotate(90deg);
}

/* Hover nhích ra */
.booking-btn-fixed:hover,
.call-btn-vertical:hover {
  transform: rotate(-90deg) translateY(-10px);
  color: white;
}

/* Fix kẹt: Quay về ngay khi click/focus */
.booking-btn-fixed:active,
.call-btn-vertical:active,
.booking-btn-fixed:focus,
.call-btn-vertical:focus {
  transform: rotate(-90deg) translateY(0);
  transition: all 0.1s ease;
}

/* Pulse Animation */
.pulse-green-right {
  animation: pulse-green-sharp 2s infinite;
}
@keyframes pulse-green-sharp {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.8);
  }
  70% {
    box-shadow: -20px 0 30px 15px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* --- SECTION REVEAL (Services row + About stagger) --- */
.section-fade {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 1.32s cubic-bezier(0.22, 0.65, 0.35, 1),
    transform 1.32s cubic-bezier(0.22, 0.65, 0.35, 1);
}
.section-fade.active {
  opacity: 1;
  transform: translateY(0);
}

/* About: từng dòng nội dung lộ dần (blur nhẹ → rõ) */
.section-fade--stagger {
  opacity: 1;
  transform: none;
  transition: none;
}
.section-fade--stagger .stagger-reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  filter: blur(5px);
  will-change: opacity, transform, filter;
  transition:
    opacity 1.5s cubic-bezier(0.22, 0.65, 0.28, 1),
    transform 1.5s cubic-bezier(0.22, 0.65, 0.28, 1),
    filter 1.32s ease;
  transition-delay: var(--r-delay, 0s);
}
.section-fade--stagger.active .stagger-reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .section-fade,
  .section-fade--stagger .stagger-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* --- SERVICE & WORK --- */
.section-title {
  font-family: "Playwrite FR Moderne", cursive;
  font-weight: 500;
  color: #a8c8ec;
  text-align: center;
}
.divider {
  height: 3px;
  width: 80px;
  background: linear-gradient(to right, var(--main-pink), var(--dark-pink), var(--main-pink));
  margin: 15px auto 40px;
  border-radius: 2px;
  display: block;
}

.service-card {
  border-radius: 20px;
  background: var(--card-gradient);
  overflow: hidden;
  transition: 0.5s;
  height: 100%;
  border: 1px solid rgba(100, 140, 190, 0.22) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(120, 170, 220, 0.06);
  color: var(--text-primary);
}
.service-card:hover {
  border-color: rgba(120, 170, 220, 0.28) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(130, 180, 230, 0.1);
}
.service-card h3 {
  color: var(--text-primary);
}
.serviceSwiper {
  width: 100%;
  height: 230px;
  overflow: hidden;
}
.serviceSwiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* View More Buttons */
.view-more-container {
  text-align: center;
  margin-top: 40px;
}
.btn-view-more-main {
  display: inline-block;
  padding: 12px 35px;
  background-color: transparent;
  color: var(--dark-pink);
  border: 2px solid var(--dark-pink);
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.4s;
}
.btn-view-more-main:hover {
  background: linear-gradient(135deg, var(--main-pink), #2d5588);
  color: #f0f6ff !important;
  border-color: var(--main-pink);
  transform: translateY(-5px);
}

.btn-outline-pink {
  display: inline-block;
  padding: 8px 25px;
  color: var(--dark-pink) !important;
  border: 1px solid var(--dark-pink) !important;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.3s;
  background: transparent;
}
.btn-outline-pink:hover {
  background: linear-gradient(135deg, var(--main-pink), #2a5080) !important;
  color: #f0f6ff !important;
  border-color: var(--main-pink) !important;
}

/* --- GALLERY & REVEAL ANIMATION --- */
.gallery-item {
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  border: 4px solid rgba(40, 70, 110, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

body.gallery-page .gallery-item {
  height: 200px;
}

section#gallery .gallery-item {
  height: 300px;
}

/* Lightbox toàn màn (click ảnh) */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}
.gallery-lightbox[hidden] {
  display: none !important;
}
.gallery-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
  cursor: default;
  pointer-events: auto;
}
.gallery-lightbox__close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10051;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #e8f0ff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.reveal-item {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 1.86s cubic-bezier(0.2, 1, 0.3, 1);
  transition-delay: var(--r-delay, 0s);
  will-change: transform, opacity;
}

.reveal-item.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Service cards: cùng hiệu ứng mọc/zoom với gallery, lệch nhẹ từng thẻ */
.service-card.reveal-item {
  transform: scale(0.92) translateY(16px);
}
.service-card.reveal-item.active {
  transform: scale(1) translateY(0);
}

/* Footer */
footer {
  background: var(--footer-gradient);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(40, 90, 140, 0.7), var(--main-pink), rgba(40, 90, 140, 0.7), transparent) 1;
  color: var(--text-primary);
}
footer h4 {
  color: var(--text-primary);
}
footer .text-muted {
  color: var(--text-muted) !important;
}
.social-icons a {
  font-size: 1.6rem;
  color: #9aaabe;
  margin: 0 15px;
  transition: 0.3s;
}
.social-icons a:hover {
  color: var(--dark-pink);
}

/* Lead / secondary text on dark */
.lead.text-secondary {
  color: #aab8cc !important;
}

body .text-muted,
.service-card .text-muted {
  color: var(--text-muted) !important;
}

/* Swiper: nút + pagination dễ nhìn trên nền tối */
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
  color: rgba(230, 240, 255, 0.9);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}
.heroSwiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}
.heroSwiper .swiper-pagination-bullet-active {
  background: var(--dark-pink);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  :root {
    --anchor-offset: 76px;
  }
  body {
    padding-top: 100px;
  }
  .hero-section {
    height: 50vh;
  }
  .action-buttons-group {
    right: -75px;
    gap: 110px;
    font-size: 0.8rem;
  }
  .booking-btn-fixed,
  .call-btn-vertical {
    width: 140px;
    height: 40px;
  }

  /* Mobile: Tắt hover dính nút, nhích nhẹ khi chạm */
  .booking-btn-fixed:hover,
  .call-btn-vertical:hover {
    transform: rotate(-90deg);
  }
  .booking-btn-fixed:active,
  .call-btn-vertical:active {
    transform: rotate(-90deg) translateY(-5px);
  }

  /* Cuộn / mọc: biên độ lớn hơn, blur nhẹ (dễ đọc), thời gian đủ dài trên màn nhỏ */
  .section-fade {
    transform: translateY(2.25rem);
    transition:
      opacity 1.35s cubic-bezier(0.22, 0.65, 0.35, 1),
      transform 1.35s cubic-bezier(0.22, 0.65, 0.35, 1);
  }
  .section-fade--stagger .stagger-reveal {
    transform: translateY(1.55rem);
    filter: blur(2px);
    transition:
      opacity 1.35s cubic-bezier(0.22, 0.65, 0.28, 1),
      transform 1.35s cubic-bezier(0.22, 0.65, 0.28, 1),
      filter 1.15s ease;
  }

  .reveal-item {
    transform: scale(0.84) translateY(1.75rem) !important;
    transition: transform 1.6s cubic-bezier(0.2, 1, 0.3, 1), opacity 1.5s cubic-bezier(0.2, 1, 0.3, 1);
    transition-delay: var(--r-delay, 0s);
  }
  .reveal-item.active {
    opacity: 1;
    transform: scale(1) translateY(0) !important;
  }
  .service-card.reveal-item {
    transform: scale(0.87) translateY(1.5rem) !important;
  }
  .service-card.reveal-item.active {
    transform: scale(1) translateY(0) !important;
  }

  .gallery-item {
    height: 200px;
    border-radius: 12px;
    border: 3px solid rgba(50, 80, 120, 0.5);
  }

  section#gallery .gallery-item {
    height: 300px;
  }
  body.gallery-page .gallery-item {
    height: 200px;
  }
}
/* --- MOBILE BOTTOM NAV (3 NÚT ĐỒNG CẤP) --- */
@media (max-width: 768px) {
  /* Hiện thanh điều hướng */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(0deg, #080c14 0%, #0f1724 55%, #121a28 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    border-top: 1px solid rgba(40, 80, 120, 0.35);
  }

  /* Chia đều 3 nút */
  .mobile-bottom-nav .nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #b4c2d4;
    transition: background 0.2s;
  }

  /* Hiệu ứng khi chạm */
  .mobile-bottom-nav .nav-item:active {
    background-color: rgba(30, 50, 80, 0.5);
  }

  /* Icon */
  .mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    color: var(--dark-pink, #7eb8ff);
  }

  /* Màu xanh Google Maps cho nút Direction */
  .mobile-bottom-nav .nav-item:last-child i {
    color: #5b9cf0 !important;
  }

  .mobile-bottom-nav .nav-item:last-child:active i {
    color: #3d7fd0 !important;
  }

  /* Text dưới icon */
  .mobile-bottom-nav .nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
  }

  .mobile-bottom-nav .nav-item:first-child i {
    color: #28a745;
  }

  /* Ẩn các nút cũ để không bị chồng chéo */
  .action-buttons-group,
  .booking-btn-fixed,
  .call-btn-vertical {
    display: none !important;
  }

  /* Đẩy footer lên để không bị che */
  footer {
    padding-bottom: 70px !important;
  }
}

/* Ẩn trên máy tính */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}
