/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header */
header {
  background: #520101;
  color: #fff;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

header.hidden {
  transform: translateY(-100%);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 1rem;
}

.logo-img {
  width: 50px;
  margin-right: 1rem;
}

.logo h1 {
  font-size: 1.5rem;
  white-space: nowrap;
}

/* Navbar */
.navbar {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu li a {
  color: #fff;
  font-weight: 700;
  padding: 0.5rem;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-menu li a:hover {
  color: #ffd700;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.nav-menu .ellipsis {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  user-select: none;
  white-space: nowrap;
  padding: 0.5rem;
  transition: color 0.3s ease;
  display: none;
}

.nav-menu .ellipsis:hover {
  color: #ffd700;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 1rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* Hamburger animation 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(7px, -7px);
}

/* Bottom Navigation for Mobile */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #520101;
  padding: 0.3rem;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 0.7rem;
  flex: 1;
  padding: 0.3rem;
  transition: background 0.3s ease;
}

.bottom-nav-item img {
  width: 20px;
  margin-bottom: 0.2rem;
}

.bottom-nav-item:hover {
  background: #ffd700;
  color: #800000;
}

/* Footer */
footer {
  background: #2A0101;
  color: #fff;
  padding: 2rem;
  text-align: center;
  margin-bottom: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-section ul li {
  margin: 0.5rem 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons img {
  width: 30px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
}

.footer-bottom {
  margin-top: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .logo h1 {
    font-size: 1.2rem;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #520101;
    flex-direction: column;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 0.75rem 0;
  }

  .nav-menu li a {
    display: block;
    padding: 1rem;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
  }

  .nav-menu li a:hover {
    background: #ffd700;
    color: #520101;
  }

  .nav-menu .ellipsis {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .bottom-nav {
    display: flex;
    justify-content: space-around;
  }
   .bottom-nav.hide{
     display: none;
}
  body.nav-active {
    padding-top: 70px;
  }
}

@media (min-width: 769px) {
  footer {
    margin-bottom: 0;
  }

  .nav-menu li:nth-child(n+5) {
    display: none;
  }

  .nav-menu .ellipsis {
    display: inline-block;
  }

  .nav-menu.show-all li {
    display: inline-block;
  }
}
