/* =================================== */
/* HEADER (FINAL CORRECTED VERSION)    */
/* =================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  gap: 16px;
  z-index: 999;
}

/* --- Left Section --- */
.left-section {
  flex-shrink: 0;
}
.logo {
  height: 90px;
  width: auto;
}

/* --- Middle Section (Nav Links) --- */
.middle-section {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}
.middle-section ul {
  display: flex;
  list-style: none;
  gap: 20px; /* simple & safe */
}
.middle-section a {
  color: #111;
  text-decoration: none;
  padding: 6px 4px;
}
.middle-section a:hover {
  color: var(--primary);
}
.middle-section .home-link {
  background-color: #e8f9ef;
  color: var(--primary-hover);
  padding: 8px 16px;
  border: 1px solid #d9f3e3;
  border-radius: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.middle-section .home-link:hover {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  transform: translateY(-2px);
}

/* --- Right Section --- */
.right-section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-pic img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hamburger-menu {
  display: none; /* Hidden on desktop */
  font-size: 1.5rem;
  cursor: pointer;
}

/* =================================== */
/* HEADER RESPONSIVE                   */
/* =================================== */

@media (max-width: 900px) {
  .header {
    padding: 0 40px;
  }
  .middle-section ul {
    gap: 16px;
  }
}
@media (max-width: 767px) {
  .header {
    padding: 0 20px;
  }

  /* Hide desktop-only elements */
  .middle-section,
  .user-info {
    display: none;
  }

  /* Show hamburger */
  .hamburger-menu {
    display: block;
  }

  /* Mobile dropdown */
  .middle-section.active {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    padding: 20px;
    z-index: 998;
  }
  .middle-section.active ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* =================================== */
/* HERO SECTION                        */
/* =================================== */

.hero-section {
  height: 100vh;
  width: 100%;
  padding-top: 70px; /* avoid overlap with fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  background-image: url("../assets/hero-section/hero-pic.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 24px;
  border-radius: 16px;
}

.hero-text {
  max-width: 520px;
  color: var(--text);
}
.hero-text h1 {
  font-size: 3rem;
  margin: 0;
}

.hero-image {
  position: relative;
}
.hero-image img {
  width: 350px;
  height: 350px;
  object-fit: contain;
  border-radius: 0;
  position: relative;
  z-index: 2;
}

/* Splash behind image */
.hero-image::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 120%;
  height: 120%;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url("../assets/hero-section/orange-splash.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* ============================================= */
/* MEDIA QUERIES FOR HERO SECTION                */
/* ============================================= */

@media (max-width: 991px) {
  .hero-section {
    padding-left: 40px;
    padding-right: 40px;
  }
  .hero-content {
    gap: 40px;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-image img {
    width: 300px;
    height: 300px;
  }
  .hero-image::after {
    width: 110%;
    height: 110%;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-image {
    display: none;
  } /* save vertical space on phones */
}

/* CTA button */
.shop-button {
  background-color: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.shop-button:hover {
  background-color: var(--primary-hover);
}
.shop-button:active {
  transform: translateY(1px);
}

/* =================================== */
/* HERO ARROW CONTROLS                 */
/* =================================== */

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: 0;
  background: transparent; /* no background */
  padding: 8px;
  cursor: pointer;
  color: #111; /* clear on light bg */
  user-select: none;
}
.left-arrow {
  left: 30px;
}
.right-arrow {
  right: 30px;
}

.arrow svg {
  width: 28px;
  height: 28px;
  display: block;
}
.arrow svg path {
  fill: currentColor;
}

.arrow:hover {
  color: var(--primary);
}
.left-arrow:hover svg {
  transform: translateX(-2px);
}
.right-arrow:hover svg {
  transform: translateX(2px);
}

.arrow:active {
  transform: translateY(-50%) scale(0.96);
}

/* Keyboard focus (no background) */
.arrow:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.6);
  outline-offset: 2px;
}

/* Mobile: bigger, easier to tap, still without background */
@media (max-width: 768px) {
  .left-arrow {
    left: 12px;
  }
  .right-arrow {
    right: 12px;
  }
  .arrow {
    padding: 12px;
  } /* larger hit area */
  .arrow svg {
    width: 34px;
    height: 34px;
  } /* bigger icon */
}

/* Extra small phones */
@media (max-width: 380px) {
  .left-arrow {
    left: 10px;
  }
  .right-arrow {
    right: 10px;
  }
}

/* =================================== */
/* CONTENT FADE-IN ANIMATION           */
/* =================================== */

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
