/* =============================================
   PACKTECH — HERO SECTION STYLES
   ============================================= */

/* ─── Hero Section Wrapper ──────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ─── Background Layers (one per slide) ─────── */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              transform 6s ease;
  z-index: 0;
  will-change: opacity, transform;
}

.hero-bg.active {
  opacity: 1;
  transform: scale(1); /* subtle Ken Burns zoom-out */
}

/* ─── Dark Overlay Gradient ─────────────────── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8, 4, 1, 0.72) 0%,
      rgba(8, 4, 1, 0.45) 40%,
      rgba(8, 4, 1, 0.82) 100%
    );
  z-index: 1;
  pointer-events: none;
}

/* ─── Content Wrap ──────────────────────────── */
.hero-content-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* top spacing clears navbar torn-edge, bottom clears slider strip */
  padding: calc(var(--nav-img-height, 140px) + 30px) 60px 230px;
  min-height: 100vh;
}

/* ─── Inner Content Box ─────────────────────── */
.hero-content {
  text-align: center;
  max-width: 820px;
}

/* Slide transition animation */
.hero-content.slide-out {
  animation: heroOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content.slide-in {
  animation: heroIn 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) 0.25s both;
}

@keyframes heroOut {
  to { opacity: 0; transform: translateY(-16px); }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Badge ─────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 5, 1, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e8ddd4;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 7px 18px 7px 12px;
  border-radius: 50px;
  margin-bottom: 24px;
  animation: fadeDown 0.7s ease both;
}

.hero-badge svg {
  width: 15px;
  height: 15px;
  stroke: #d4956a;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* ─── Main Heading ──────────────────────────── */
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  animation: fadeUp 0.7s ease 0.1s both;
}

/* ─── Highlighted Word (brush‑stroke label) ─── */
.hero-highlight {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: #6b3a1f;
  padding: 0 8px;
  z-index: 1;
}

/* White torn-paper background behind highlighted word */
.hero-highlight::before {
  content: '';
  position: absolute;
  inset: -8px -15px;
  background-image: url('../image/asset/TORN.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
  transform: rotate(-1.2deg);
  transition: transform 0.3s ease;
}

.hero-title:hover .hero-highlight::before {
  transform: rotate(-0.5deg);
}

/* ─── Subtitle ──────────────────────────────── */
.hero-subtitle {
  font-size: clamp(0.88rem, 1.4vw, 1.02rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
  animation: fadeUp 0.7s ease 0.2s both;
}

/* ─── Action Buttons ────────────────────────── */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.3s both;
}

/* reuse .btn-book from navbar.css */
.hero-actions .btn-book {
  font-size: 0.9rem;
  padding: 11px 24px;
}

/* View Products outlined button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 11px 24px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  transition: background 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-outline .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-outline:hover .btn-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
}

.btn-outline .btn-icon svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Social Icons — right rail ─────────────── */
.hero-social {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeLeft 0.8s ease 0.5s both;
}

.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 5, 1, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.25s ease;
}

.hero-social a:hover {
  background: var(--nav-btn-bg, #6b3a1f);
  border-color: var(--nav-btn-bg, #6b3a1f);
  color: #fff;
  transform: scale(1.15) translateX(-3px);
}

.hero-social a svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ─── Hero Slider Strip ─────────────────────── */
.hero-slider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  /* No side padding — full width. Arrows handle their own spacing */
  padding: 0 0 24px;
  background: linear-gradient(
    to top,
    rgba(8, 4, 1, 0.92) 0%,
    rgba(8, 4, 1, 0.5) 55%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  gap: 0;
  animation: fadeUp 0.8s ease 0.4s both;
}

/* Prev / Next arrows */
.slider-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 4, 1, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 28px;
  /* push arrows to the very left / right edges */
  margin-left: 10px;
  margin-right: 10px;
}

.slider-arrow:hover {
  background: var(--nav-btn-bg, #6b3a1f);
  border-color: var(--nav-btn-bg, #6b3a1f);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(107, 58, 31, 0.4);
}

.slider-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Track wrapper — takes all remaining width */
.slider-track-wrap {
  flex: 1;
  min-width: 0; /* important: allows flex child to shrink */
  overflow: hidden;
}

/* Track — all slides in a row, centered */
.slider-track {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

/* Individual slide thumbnail item */
.slider-item {
  flex: 0 0 auto;
  width: 155px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  opacity: 0.5;
  transition: opacity 0.4s ease, width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 32px; /* space for badge above */
}

.slider-item:hover {
  opacity: 0.78;
}

.slider-item.active {
  opacity: 1;
  width: 195px;
}

/* Thumbnail image */
.slider-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease,
              transform 0.25s ease;
  display: block;
}

.slider-item:hover .slider-thumb {
  transform: translateY(-3px);
}

.slider-item.active .slider-thumb {
  border-color: #d4956a;
  box-shadow: 0 0 0 3px rgba(212, 149, 106, 0.22),
              0 6px 24px rgba(0,0,0,0.5);
}

/* Egypt logo badge above active thumbnail */
.slider-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  width: 50px;
  height: 50px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.slider-item.active .slider-badge {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.slider-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

/* Label text */
.slider-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.3;
  font-weight: 400;
  transition: color 0.3s ease;
  padding-bottom: 4px;
  letter-spacing: 0.2px;
}

.slider-item.active .slider-label {
  color: #fff;
  font-weight: 600;
}

/* Slide progress dots */
.slider-dots {
  display: none; /* show on mobile */
  gap: 6px;
  justify-content: center;
  padding-bottom: 12px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
  border: none;
  padding: 0;
}

.slider-dot.active {
  background: #d4956a;
  width: 18px;
  border-radius: 3px;
}

/* ─── Entrance Animations ────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateY(-50%) translateX(20px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ─── Global page base ──────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #120804;
  color: #f0e8df;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Placeholder sections below hero */
.page-section {
  padding: 100px 60px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-section:nth-child(odd)  { background: #1a0d06; }
.page-section:nth-child(even) { background: #140901; }

.page-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #d4956a;
  margin-bottom: 14px;
}

.page-section p {
  color: #7a6255;
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ─── Responsive — Tablet ───────────────────── */
@media (max-width: 1100px) {
  .hero-content-wrap {
    padding: calc(var(--nav-img-height, 140px) + 20px) 40px 210px;
  }

  .slider-item        { width: 130px; }
  .slider-item.active { width: 168px; }
}

/* ─── Responsive — Mobile ───────────────────── */
@media (max-width: 768px) {
  .hero-content-wrap {
    padding: calc(var(--nav-img-height, 140px) + 10px) 22px 200px;
  }

  /* Hide social rail on mobile */
  .hero-social {
    display: none;
  }

  /* Arrows stay small, track gets horizontal scroll */
  .hero-slider {
    padding: 0 0 16px;
    align-items: flex-end;
    flex-wrap: wrap; /* allow dots to wrap onto a second row */
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    margin-bottom: 26px;
    margin-left: 6px;
    margin-right: 6px;
    flex-shrink: 0;
  }

  /* ── Make track horizontally scrollable on mobile ── */
  .slider-track-wrap {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
    scrollbar-width: none;             /* hide scrollbar Firefox */
  }

  .slider-track-wrap::-webkit-scrollbar {
    display: none; /* hide scrollbar Chrome/Safari */
  }

  /* Track starts from left, extends as wide as content needs */
  .slider-track {
    justify-content: flex-start;
    width: max-content;
    padding: 0 8px;
    gap: 10px;
  }

  .slider-item        { width: 105px; padding-top: 28px; }
  .slider-item.active { width: 132px; }
  .slider-label       { font-size: 0.65rem; }
  .slider-badge       { width: 38px; height: 38px; }

  /* Mobile dots — wrap to second row, centered */
  .slider-dots {
    display: flex;
    justify-content: center;
    width: 100%;
    order: 10;
    padding: 8px 0 4px;
  }

  .page-section { padding: 70px 24px; }
}

/* ─── Responsive — Small Mobile ─────────────── */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    letter-spacing: -0.3px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-actions .btn-book,
  .hero-actions .btn-outline {
    justify-content: center;
    font-size: 0.85rem;
    padding: 11px 18px;
  }

  .slider-arrow {
    width: 30px;
    height: 30px;
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 22px;
  }

  .slider-arrow svg { width: 14px; height: 14px; }

  .slider-item        { width: 88px; }
  .slider-item.active { width: 112px; }
  .slider-thumb       { border-radius: 7px; }
  .slider-label       { font-size: 0.6rem; }
}
