/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  max-width: 100%;
  overflow-x: hidden;
}


/* Ticker Styles */
.ticker-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background-color: #222;
  padding: 6px 0;
  /* border-bottom: 2px solid #00f2fe; */
}

.ticker-content {
  display: inline-block;
  animation: scrollTicker 15s linear infinite;
}

.ticker-content .msg {
  display: inline-block;
  margin-right: 60px;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

/* Different text colors */
.msg.red {
  color: #ff4c4c;
}

.msg.blue {
  color: #4facfe;
}

.msg.green {
  color: #4caf50;
}

.msg.orange {
  color: #ff9800;
}

.msg.purple {
  color: #9c27b0;
}

.msg.yellow {
  color: #ffc107;
}

@keyframes scrollTicker {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}



/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  animation: slideDown 0.6s ease-in-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}



nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo img {
  border: none;
  outline: none;
  background: darkmagenta;
  cursor: pointer;
  display: block;
  /* optional: removes inline spacing */
}


/* Nav Links */
/* Nav List */
ul {
  list-style: none;
  display: flex;
  gap: 25px;
  animation: fadeInNav 1s ease forwards;
}

ul li {
  opacity: 0;
  transform: translateY(-20px);
  animation: slideIn 0.5s forwards;
}

ul li:nth-child(1) {
  animation-delay: 0.3s;
}

ul li:nth-child(2) {
  animation-delay: 0.4s;
}

ul li:nth-child(3) {
  animation-delay: 0.5s;
}

ul li:nth-child(4) {
  animation-delay: 0.6s;
}

ul li:nth-child(5) {
  animation-delay: 0.7s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Anchor tag styling */
ul li a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  color: black;
  font-size: 17px;
  font-weight: 600;
  transition: all 0.4s ease-in-out;
  border-radius: 30px;
  z-index: 1;
  overflow: hidden;
}

/* Glowing background effect */
ul li a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0%;
  height: 0%;
  background: black;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: black;
  transition: width 0.3s ease-in-out;
}

ul li a:hover {
  color: #ffffff;
  transform: scale(1.1);
  text-shadow: 0 0 8px rgba(0, 188, 212, 0.6);
}

ul li a:hover::before {
  width: 220%;
  height: 600%;
}

ul li a:hover::after {
  width: 100%;
}



/* Button Styling */
.custom-button {
  background: black;
  color: white;
  padding: 12px 26px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.custom-button:hover {
  background: black;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.custom-button:active {
  transform: scale(0.98);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-icon {
  position: absolute;
  margin-left: 970px;
  margin-top: -5px;
  font-size: 22px;
  color: black;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cart-icon:hover {
  transform: scale(1.1);
  color: #00bcd4;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}

.user-circle {
  width: 40px;
  height: 40px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

.user-icon {
  font-size: 40px;
}

.user-menu {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 50px;
  right: 0;
  list-style: none;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  display: none;
  z-index: 100;
  min-width: 150px;
}

.dropdown-menu li {
  padding: 10px 20px;
}

.dropdown-menu li a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu li:hover {
  background-color: #f0f0f0;
}


.dropdown-menu li:hover {
  background-color: #f0f0f0;
}


.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: black;
  color: white;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}


@media (max-width: 1280px) {
  nav {
    width: 95%;
  }

  .cart-icon {
    margin-left: auto;
    right: 220px;
    position: absolute;
    top: 37px;
  }

  ul {
    gap: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  ul li a {
    font-size: 16px;
  }
}

@media (max-width: 1200px) {
  nav {
    width: 95%;
  }

  .cart-icon {
    margin-left: auto;
    right: 180px;
    position: absolute;
    top: 25px;
  }

  ul {
    gap: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  ul li a {
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  nav {
    width: 95%;
  }

  .cart-icon {
    margin-left: auto;
    right: 195px;
    position: absolute;
    top: 38px;
  }

  

  ul {
    gap: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  ul li a {
    font-size: 15px;
  }
}




/* Small Tablets and Large Phones */
@media (max-width: 820px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .logo img {
    width: 100px;
    margin-right: 500px;
  }

  ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    display: none;
  }

  ul li {
    opacity: 1;
    transform: none;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 28px;
  }

  .cart-icon {
    position: absolute;
    right: 70px;
    top: 30px;
    margin-left: 0;
  }

  .user-circle {
    position: absolute;
    margin-left: -120px;
    margin-top: -22px;
  }

  .user-icon {
    position: absolute;
    margin-top: -22px;
    margin-left: -120px;
    font-size: 30px;
  }

  .custom-button {
    display: none;
  }


  .hamburger.active~ul {
    display: block;
  }

  .hamburger.active~.custom-button {
    display: block;
    width: 50%;
    margin: 20px auto;
  }
}

@media (max-width: 540px) {
  .logo img {
    font-size: 180px;
    width: 80px;
    margin-right: 350px;
  }

  .hamburger {
    right: 15px;
    top: 22px;
    cursor: pointer;
  }

  .cart-icon {
    position: absolute;
    margin-right: 10px;
    top: 25px;

  }

  .user-circle {
    position: absolute;
    margin-left: -120px;
    margin-top: -22px;
  }

  .user-icon {
    position: absolute;
    margin-top: -17px;
    margin-left: -120px;
    font-size: 30px;
  }

  .logo img {
    width: 60px;
  }

  .hamburger {
    right: 10px;
    top: 18px;
  }

  .cart-icon {
    right: 45px;
    top: 20px;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .logo img {
    width: 80px;
    margin-right: 220px;
  }

  .hamburger {
    right: 15px;
    top: 22px;
    cursor: pointer;
  }

  .cart-icon {
    position: absolute;
    margin-right: 10px;
    top: 35px;

  }

  .user-circle {
    position: absolute;
    margin-left: -120px;
    margin-top: -22px;
  }

  .user-icon {
    position: absolute;
    margin-top: -22px;
    margin-left: -120px;
    font-size: 30px;
  }


  .hamburger {
    right: 10px;
    top: 18px;
  }

  .cart-icon {
    right: 45px;
    top: 20px;
  }
}