/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Barlow Condensed", sans-serif;
}

/* ===== VARIABLES ===== */
:root {
  --navy: #0a1f44;
  --white: #ffffff;
  --gray: #ccc;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  z-index: 1000;
  background: var(--white);
  height: 70px;
  width: 100%;
}

.navbar-shadow {
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.19),
    0 6px 6px rgba(0, 0, 0, 0.23);
  transition: 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 100%;
}

/* LOGO */
.logo img {
  max-height: 60px;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-links li a {
  text-decoration: none;
  color: var(--navy);
  font-weight: bold;
  font-size: 18px;
  position: relative;
}

/* ACTION BUTTONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.icon-btn {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

/* HAMBURGER */
#nav-icon4 {
  width: 28px;
  height: 22px;
  position: relative;
  cursor: pointer;
  display: none;
}

#nav-icon4 span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--navy);
  border-radius: 5px;
  left: 0;
  transition: 0.3s ease;
}

#nav-icon4 span:nth-child(1) {
  top: 0;
}
#nav-icon4 span:nth-child(2) {
  top: 9px;
}
#nav-icon4 span:nth-child(3) {
  top: 18px;
}

/* ANIMATION */
#nav-icon4.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

#nav-icon4.open span:nth-child(2) {
  opacity: 0;
}

#nav-icon4.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* SHOW ON MOBILE */
@media (max-width: 900px) {
  #nav-icon4 {
    display: block;
  }
}

/* User Dropdown */
.nav-user {
  position: relative;
}

/* DROPDOWN */
.user-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  background: #fff;
  width: 150px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s ease;
  overflow: hidden;
  z-index: 999;
}

.user-dropdown a {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: var(--navy);
  transition: 0.2s;
}

.user-dropdown a:hover {
  background: #f5f5f5;
}

/* ACTIVE */
.nav-user.active .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ARROW ANIMATION */
.user-toggle i:last-child {
  margin-left: 5px;
  transition: 0.3s;
}

.nav-user.active .user-toggle i:last-child {
  transform: rotate(180deg);
}

/* SEARCH BAR */
.search-bar {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999;
}
.search-bar.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-bar input {
  width: 60%;
  max-width: 500px;
  padding: 12px 40px 12px 15px;
  border: 1px solid var(--gray);
  border-radius: 5px;
}
.search-bar i {
  margin-left: -35px;
  color: gray;
}

/* ===== MEGA MENU (DESKTOP) ===== */
.shop-item {
  position: relative;
}
.mega-menu {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  background: var(--white);
}
.shop-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-column {
  display: flex;
  flex-direction: column;
  margin: 20px;
}
.mega-column h4 {
  margin-bottom: 10px;
}
.mega-column a {
  margin: 5px 0;
  color: #333;
  cursor: pointer;
}

.mobile-search {
  display: none;
}

.mobile-shop-link {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #searchBtn {
    display: none;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    transition: 0.4s;
    display: block;
  }

  .nav-links li {
    margin-bottom: 15px;
  }

  .nav-links.active {
    left: 0;
  }

  #searchBar {
    display: none !important;
  }
  .mobile-search {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
  }
  .mobile-search input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 5px;
  }
  .mobile-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: gray;
  }

  /* MOBILE DROPDOWN */
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 0 15px;
    background: #fff;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s ease-out;
  }
  .shop-item.active .mega-menu {
    display: block;
    height: auto;
    margin-top: 10px;
  }
  .shop-item .arrow {
    transition: transform 0.3s ease;
    margin-left: 5px;
  }
  .shop-item.active .arrow {
    transform: rotate(180deg);
  }

  .mega-column {
    display: block;
    margin: 15px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }
  .mega-column:last-child {
    border-bottom: none;
  }
  .mega-column h4 {
    font-size: 15px;
    margin-bottom: 5px;
  }
  .mega-column a {
    font-size: 14px;
    display: block;
    padding: 6px 0;
  }
  .mobile-shop-link {
    display: block;
  }
}

/* ===== GLASS NAVBAR ON SCROLL ===== */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.3);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* slight dark mode overlay for better contrast */
.navbar.scrolled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

/* ===== GLASS DROPDOWN ===== */
.navbar.scrolled .mega-menu,
.navbar.scrolled .user-dropdown,
.navbar.scrolled .search-bar {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.4);

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* hover polish */
.navbar.scrolled .nav-links li a {
  color: #0a1f44;
}

/* smoother transition */
.navbar,
.mega-menu,
.user-dropdown,
.search-bar {
  transition: all 0.3s ease;
}

/*Header */

.hero-slider {
  position: relative;
  width: 100%;
  height: 95vh;
  overflow: hidden;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* SLIDE */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* IMAGE */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* TEXT */
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  animation: fadeUp 1s ease;
}

.slide-content h2 {
  font-size: clamp(3rem, 5.8vw, 5.5rem);
  margin-bottom: 10px;
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1;
}

.slide-content p {
  font-size: clamp(16px, 2vw, 22px);
  padding-top: 20px;
  margin-bottom: 10px;
}

.hero-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 16px;

  /* GRADIENT (brand style) */
  background: linear-gradient(45deg, #d1001c, #0a1f44);

  box-shadow: 0 10px 25px rgba(209, 0, 28, 0.3);

  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* hover effect */
.hero-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(209, 0, 28, 0.45);
}

/* shine animation */
.hero-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.hero-btn:hover::after {
  left: 100%;
}

/* ANIMATION */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-slider {
    height: 60vh;
  }

  .slide-content h2 {
    font-size: 26px;
  }

  .slide-content p {
    font-size: 14px;
  }
}

/* ===== HEADER MEGA MENU START ===== */

.header {
  position: relative;
  z-index: 1000;
}

.header .nav-links {
  position: relative;
}

.header .nav-mega-item {
  position: relative;
}

.header .nav-mega-item > a {
  position: relative;
}

.header .nav-mega-item > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #123b8a, #b41232);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.header .nav-mega-item:hover > a::after {
  width: 72%;
}

.header .nav-mega {
  position: fixed;
  left: 50%;
  top: 104px;
  width: min(1080px, calc(100vw - 36px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 9999;
}

.header .nav-mega-item:hover .nav-mega,
.header .nav-mega-item:focus-within .nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.header .nav-mega__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(18, 59, 138, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(180, 18, 50, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(9, 31, 77, 0.1);
  box-shadow: 0 24px 80px rgba(6, 22, 51, 0.18);
  backdrop-filter: blur(16px);
}

.header .nav-mega__intro {
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #061633, #123b8a 58%, #b41232);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.header .nav-mega__intro span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255,255,255,0.14);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header .nav-mega__intro h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.05;
}

.header .nav-mega__intro p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.55;
}

.header .nav-mega__intro a {
  display: inline-flex;
  width: max-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  color: #061633 !important;
  background: #ffffff;
  font-weight: 950;
  text-decoration: none;
}

.header .nav-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.header .nav-mega__grid a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-radius: 18px;
  color: #061633 !important;
  background: #f7f9ff;
  border: 1px solid rgba(9, 31, 77, 0.08);
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.header .nav-mega__grid a::after {
  content: "›";
  color: #b41232;
  font-size: 20px;
  line-height: 1;
}

.header .nav-mega__grid a:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #123b8a, #b41232);
  border-color: transparent;
  transform: translateY(-2px);
}

.header .nav-mega__grid a:hover::after {
  color: #ffffff;
}

.header .nav-mega__grid--strength {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.header .nav-mega__grid--strength a {
  min-height: 76px;
  display: grid;
  align-content: center;
}

.header .nav-mega__grid--strength a strong,
.header .nav-mega__grid--strength a small {
  display: block;
}

.header .nav-mega__grid--strength a small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.header .nav-mega__grid--strength a:hover small {
  color: rgba(255,255,255,0.8);
}

@media (max-width: 980px) {
  .header .nav-mega {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
    margin-top: 10px;
  }

  .header .nav-mega-item:hover .nav-mega,
  .header .nav-mega-item:focus-within .nav-mega {
    display: block;
    transform: none;
  }

  .header .nav-mega__inner {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 18px;
  }

  .header .nav-mega__grid,
  .header .nav-mega__grid--strength {
    grid-template-columns: 1fr;
  }

  .header .nav-mega__intro {
    padding: 16px;
  }

  .header .nav-mega__intro h3 {
    font-size: 20px;
  }
}

/* ===== HEADER MEGA MENU END ===== */


/* ===== MEGA MENU POLISH + HOVER FIX START ===== */

.header .nav-mega {
  top: 86px;
  padding-top: 22px;
}

/* Invisible bridge so the dropdown does not disappear while moving mouse down */
.header .nav-mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  background: transparent;
}

.header .nav-mega__inner {
  position: relative;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,249,255,0.98)),
    #ffffff;
  border: 1px solid rgba(8, 27, 70, 0.10);
  box-shadow:
    0 28px 80px rgba(6, 22, 51, 0.20),
    0 10px 24px rgba(180, 18, 50, 0.08);
  overflow: hidden;
}

.header .nav-mega__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(18, 59, 138, 0.13), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(180, 18, 50, 0.12), transparent 30%);
  pointer-events: none;
}

.header .nav-mega__intro,
.header .nav-mega__grid {
  position: relative;
  z-index: 1;
}

.header .nav-mega__intro {
  min-height: 100%;
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(6, 22, 51, 0.98), rgba(18, 59, 138, 0.94) 55%, rgba(180, 18, 50, 0.92));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}

.header .nav-mega__intro span {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.16);
}

.header .nav-mega__intro h3 {
  font-size: 25px;
  letter-spacing: -0.04em;
}

.header .nav-mega__intro p {
  max-width: 230px;
}

.header .nav-mega__intro a {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header .nav-mega__intro a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.header .nav-mega__grid {
  align-content: start;
  padding: 4px;
}

.header .nav-mega__grid a {
  min-height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(9, 31, 77, 0.09);
  box-shadow: 0 8px 20px rgba(6, 22, 51, 0.045);
}

.header .nav-mega__grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(18, 59, 138, 0.18);
}

.header .nav-mega__grid--strength a {
  min-height: 82px;
  padding: 16px;
}

.header .nav-mega__grid--strength a strong {
  font-size: 15px;
}

.header .nav-mega__grid--strength a small {
  line-height: 1.35;
}

/* Keep dropdown open when hovering the dropdown itself */
.header .nav-mega:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .header .nav-mega {
    top: auto;
    padding-top: 0;
  }

  .header .nav-mega::before {
    display: none;
  }
}

/* ===== MEGA MENU POLISH + HOVER FIX END ===== */
