/* HERO SECTION */
.hero {
  height: 90vh;
  margin: 20px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(var(--overlay-dark), var(--overlay-dark)),
    url("../images/inno link.png") center/cover no-repeat;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
  position: relative;
  z-index: 100;
}

.logo img {
  height: 60px;
  /* background: var(--white); */
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  object-fit: contain;
}

/* Desktop Navigation */
.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Mobile Menu Icon */
.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 24px;
  justify-content: space-between;
  z-index: 10001;
  position: relative;
}

.menu-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Transform hamburger to X when active */
.menu-icon.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  background-color: var(--text-dark);
}

.menu-icon.active span:nth-child(2) {
  opacity: 0;
}

.menu-icon.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  background-color: var(--text-dark);
}

/* MOBILE MENU - Full Screen Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgb(0 18 44 / 81%);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 24px;
  padding: 12px 30px;
  transition: all 0.3s cubic-bezier(0.215, 0.610, 0.355, 1);
  position: relative;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  border-radius: var(--border-radius-sm);
  width: 200px;
  text-align: center;
}

.mobile-nav.active a {
  opacity: 1;
  transform: translateY(0);
  animation: slideInLink 0.4s ease forwards;
}

/* Stagger animation for links */
.mobile-nav.active a:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-nav.active a:nth-child(2) {
  animation-delay: 0.2s;
}

.mobile-nav.active a:nth-child(3) {
  animation-delay: 0.3s;
}

.mobile-nav.active a:nth-child(4) {
  animation-delay: 0.4s;
}

.mobile-nav.active a:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes slideInLink {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav a:hover {
  color: var(--primary-color);
  background: rgba(246, 164, 0, 0.05);
  transform: translateY(-2px);
}

.mobile-nav a::before {
  content: '→';
  position: absolute;
  left: -25px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.mobile-nav a:hover::before {
  opacity: 1;
  left: 15px;
}

/* Clean Close Button */
.close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgb(246, 164, 0);
  border: none;
  color: var(--text-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10002;
  font-size: 20px;
}

.close-menu::before {
  content: '×';
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.close-menu:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: rotate(90deg);
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Mobile Menu Responsive */
@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-nav a {
    font-size: 20px;
    padding: 10px 25px;
    width: 180px;
  }
  
  .close-menu {
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .mobile-nav {
    gap: 20px;
  }
  
  .mobile-nav a {
    font-size: 18px;
    padding: 8px 20px;
    width: 160px;
  }
  
  .close-menu {
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
  }
  
  .close-menu::before {
    font-size: 24px;
  }
}

/* Ensure mobile menu stays above everything */
@media (max-width: 768px) {
  .mobile-nav.active {
    position: fixed;
    inset: 0;
  }
}