/* ===============================
   HEADER STYLES
=============================== */

/* ========== LOGO ========== */
.logo img {
  height: 60px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1); /* logo zoom on hover */
}

.logo h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: #ffffff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo h2:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #ffffff, #EE007D);
}

/* ========== HEADER ========== */
header {
  width: 100%;
  padding: 8px 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
  background: #f5f5f5;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
  overflow: visible;
  min-height: 70px;
}

/* Diagonal background shape on the right */
header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(135deg, #EE007D 0%, #b8005f 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

header.scrolled {
  background: rgba(245, 245, 245, 0.95);
  border-bottom: 1px solid rgba(238, 0, 125, 0.2);
}

header.scrolled::after {
  opacity: 0.9;
}

/* Logo */
header > .logo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Nav in the middle-left */
header > nav {
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Hamburger on the right */
header > .hamburger {
  position: relative;
  z-index: 1100;
  margin-left: auto;
  order: 3;
}

/* Login button */
header > .login-btn {
  order: 2;
}

/* ========== NAV MENU ========== */
nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: 1;
  max-width: calc(100% - 200px);
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.menu li {
  position: relative;
}

.menu a {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.menu li a:hover {
  color: #EE007D;
}

.menu li > a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #EE007D;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.menu li > a:hover::after {
  width: 100%;
}

.menu li:not(.login-btn) > a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #EE007D;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.menu li:not(.login-btn) > a:hover::after {
  width: 100%;
}

/* Hover: no underline, add image zoom effect if menu item has icon */
.menu a:hover {
  font-weight: 600;
  color: #d40e5e;
}

/* Optional: image/icon inside menu link */
.menu a img {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.menu a:hover img {
  transform: scale(1.2);
}

/* ========== LOGIN BUTTON ========== */
/* Desktop login button */
.login-btn {
  position: absolute;
  right: 40px;
  z-index: 2;
}

.login-btn a {
  background: #ffffff;
  color: #EE007D !important;
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.login-btn a:hover {
  background: #f0f0f0;
  color: #EE007D !important;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(238, 0, 125, 0.3);
}

.login-btn a::after {
  display: none !important;
}

/* Mobile login button - hidden on desktop */
.mobile-login-btn {
  display: none;
}

/* ========== DROPDOWN MENU ========== */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #EE007D;
  border: 1px solid rgba(238, 0, 125, 0.55);
  box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.6),
      0 0 18px rgba(238, 0, 125, 0.35);
  animation: dropdownFade 0.35s ease forwards;
  z-index: 9999;
  margin-top: 8px;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 16px 22px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  width: 100%;
  white-space: nowrap;
}

.dropdown-menu li a::after {
  display: none !important;
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f1c3d6 !important;
  padding-left: 28px;
}

/* Left indicator for dropdown items */
.dropdown-menu li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 0%;
  width: 3px;
  background: linear-gradient(90deg, #ffffff, #ff85b3);
  border-radius: 4px;
  transform: translateY(-50%);
  transition: height 0.3s ease;
}

.dropdown-menu li a:hover::before {
  height: 60%;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ========== HAMBURGER ========== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
  position: relative;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #ffffff;
  border-radius: 4px;
  transition: all 0.4s ease;
}

/* Animate to X when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Dropdown animation */
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   RESPONSIVE DESIGN
=============================== */

@media (max-width: 1200px) {
  .hamburger {
    display: flex;
  }

  /* Hide desktop login button */
  header > .login-btn {
    display: none !important;
  }

  /* Adjust header diagonal for tablets */
  header::after {
    width: 30%;
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
  }

  /* Mobile menu slides from RIGHT side - FULL WIDTH */
  nav {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    left: auto !important;
    width: 100% !important;
    max-width: 60% !important;
    height: 100vh !important;
    background: #EE007D !important;
    backdrop-filter: blur(10px);
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 9999 !important;
    padding: 80px 20px 20px 20px !important;
    margin: 0 !important;
    transition: right 0.4s ease !important;
  }

  nav.active {
    right: 0 !important;
  }

  .menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
    flex-wrap: nowrap;
    padding: 0;
    align-items: flex-start;
  }

  .menu li {
    width: 100%;
    text-align: left;
  }

  .menu > li > a {
    padding: 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    display: flex;
  }

  .menu li a::after {
    display: none !important;
  }

  .dropdown-menu {
    position: static !important;
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    animation: none;
    text-align: left;
    width: 100%;
  }

  .dropdown.open .dropdown-menu {
    display: block !important;
  }

  .dropdown-menu li {
    text-align: left;
    width: 100%;
  }

  .dropdown-menu li a {
    padding: 18px 20px 18px 40px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    width: 100% !important;
    display: flex !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  /* Mobile login button inside menu */
  nav .mobile-login-btn {
    display: block;
    width: 100%;
    padding: 25px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
    text-align: center;
  }

  nav .mobile-login-btn a {
    display: block;
    background: #ffffff;
    color: #EE007D !important;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  nav .mobile-login-btn a:hover {
    background: #f0f0f0;
    transform: scale(1.05);
  }
}

/* Mobile - adjust diagonal */
@media (max-width: 768px) {
  header {
    min-height: 60px;
  }

  header::after {
    width: 40%;
    clip-path: polygon(45% 0, 100% 0, 100% 100%, 15% 100%);
  }

  nav {
    padding: 80px 15px 20px 15px !important;
  }
}

@media (max-width: 480px) {
  header {
    padding: 5px 20px;
    min-height: 60px;
  }

  header::after {
    width: 50%;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 20% 100%);
  }

  nav {
    padding: 80px 10px 20px 10px !important;
  }

  .menu > li > a {
    font-size: 17px;
    padding: 18px 15px;
  }

  .dropdown-menu li a {
    font-size: 15px !important;
    padding: 16px 15px 16px 35px !important;
  }

  nav .mobile-login-btn {
    padding: 25px 15px;
  }

  nav .mobile-login-btn a {
    font-size: 17px;
    padding: 14px 15px;
    white-space: nowrap;
  }
}