* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background: #000;
  position: relative;
  z-index: 0;
  padding-top: 10%;
  font-family: "Poppins", sans-serif;
  background: #000;
  overflow-x: hidden;
}

/* header-nav */
.header-nav {
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  
  /* Blurred, transparent background */
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  
  border: 1px solid rgba(255, 255, 255, 0.125);
  z-index: 9999;
  transition: 0.4s;
}

/* brandings */
.branding {
  display: flex;
  align-items: center;
  gap: 0 15px;
  margin-right: auto;
}

a {
  text-decoration: none;
  color: #e6dcdc;
}

.header-nav .branding img {
  display: inline-block;
  width: 80px;
  height: auto;
  transition: width 0.4s;
}

/* flag forge text - Smaller font size */
.brand-name {
  font-size: 18px; /* Reduced from 28px */
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #0fd850;
  text-align: center;
  position: relative;
  animation: glow 2s ease-in-out infinite alternate, flicker 3s infinite;
  text-shadow: 0 0 10px #0fd850, 0 0 20px #0fd850, 0 0 30px #0fd850;
  white-space: nowrap;
}

/* Neon glow animation */
@keyframes glow {
  from {
    text-shadow: 0 0 5px #0fd850, 0 0 10px #0fd850, 0 0 15px #0fd850;
  }
  to {
    text-shadow: 0 0 20px #0fd850, 0 0 40px #0fd850, 0 0 60px #0fd850;
  }
}

/* Random flicker effect for hacker vibe */
/* @keyframes flicker {
  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    opacity: 1;
  }
  20%,
  24%,
  55% {
    opacity: 0.3;
  }
} */

/* Fixed line animation */
/* Digital Wave Effect */
/* Password Cracking Animation */
.brand-name::after {
  content: "HACKING_SYSTEM_[#####]";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 100%;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #0fd850;
  animation: passwordCrack 4s linear infinite;
  text-shadow: 0 0 10px #0fd850;
  letter-spacing: 1px;
}

@keyframes passwordCrack {
  0% {
    content: "HACKING_SYSTEM_[#####]";
  }
  20% {
    content: "HACKING_SYSTEM_[█####]";
    color: #ff4444;
  }
  40% {
    content: "HACKING_SYSTEM_[██###]";
    color: #ff8844;
  }
  60% {
    content: "HACKING_SYSTEM_[███##]";
    color: #ffcc44;
  }
  80% {
    content: "HACKING_SYSTEM_[████#]";
    color: #0fd850;
  }
  100% {
    content: "HACKING_SYSTEM_[█████]";
    color: #f9f047;
  }
}
/* nav-buttons */
.header-nav .nav-buttons {
  display: flex;
  gap: 0 18px;
  margin-right: 0;
}

.nav-btn {
  font-size: 1.1rem;
  color: #f3efef;
  transition: background-color 0.3s;
  transition: all 0.3s;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 12px;
}

.nav-btn2 {
  width: 9em;
  height: 3em;
  border-radius: 30em;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid white;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 6px 6px 12px #c5c5c5, 2px 2px -5px #ffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  transition: all 1s ease;
}
.nav-btn2::before {
  content: "";
  width: 0;
  height: 3em;
  border-radius: 30em;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(to right, #0fd850 0%, #f9f047 100%);
  transition: width 0.5s ease;
  display: block;
  z-index: -1;
}
.nav-btn2:hover::before {
  width: 9em;
  color: black;
}

.nav-btn2:hover {
  color: black;
  box-shadow: 0 0 20px rgba(249, 240, 71, 0.8), 0 0 40px rgba(15, 216, 80, 0.5);
}

.nav-btn3 {
  width: 15em;
  height: 3.2em;
  border-radius: 30em;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid white;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 6px 6px 12px #c5c5c5, 2px 2px -5px #ffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  transition: all 0.8s ease;
}

.nav-btn3::before {
  content: "";
  width: 0;
  height: 100%;
  border-radius: 30em;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(to right, #0fd850 0%, #f9f047 100%);
  transition: width 0.8s ease;
  display: block;
  z-index: -1;
}

.nav-btn3:hover::before {
  width: 100%;
}

.nav-btn3:hover {
  color: black;
  box-shadow: 0 0 25px rgba(249, 240, 71, 0.8), 0 0 50px rgba(15, 216, 80, 0.5);
}

/* download brochure */
.nav-btn4 {
  width: 15em;
  height: 3em;
  border-radius: 30em;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid white;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 6px 6px 12px #c5c5c5, 2px 2px -5px #ffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  transition: all 1s ease;
  white-space: nowrap;
  text-align: center;
  padding: 0 1rem;
}
.nav-btn4::before {
  content: "";
  width: 0;
  height: 3em;
  border-radius: 30em;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(to right, #0fd850 0%, #f9f047 10%);
  transition: width 0.5s ease;
  display: block;
  z-index: -1;
}
.nav-btn4:hover::before {
  width: 15em;
  color: black;
}

.nav-btn4:hover {
  color: black;
  box-shadow: 0 0 20px rgba(249, 240, 71, 0.8), 0 0 40px rgba(15, 216, 80, 0.5);
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .brand-name {
    font-size: 16px;
    letter-spacing: 1px;
  }
  
  .header-nav .branding img {
    width: 70px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    padding: 0.8rem 1rem;
  }
  
  .brand-name {
    font-size: 14px;
    letter-spacing: 0.5px;
  }
  
  .header-nav .branding img {
    width: 60px;
  }
  
  /* Hide brochure and registration buttons in navbar on mobile */
  .header-nav .nav-buttons {
    display: none;
  }
  
  /* Show hamburger menu */
  .mobile-menu-toggle {
    display: block !important;
    background: none;
    border: none;
    color: #0fd850;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 12px;
    letter-spacing: 0.3px;
  }
  
  .header-nav .branding img {
    width: 50px;
  }
  
  .header-nav {
    padding: 0.6rem 0.8rem;
  }
}

/* Hamburger menu styles */
.mobile-menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 255, 136, 0.3);
  z-index: 9998;
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.mobile-nav-buttons .nav-btn2,
.mobile-nav-buttons .nav-btn3 {
  width: 200px;
  margin: 0 auto;
}