/* Topbar */
.topbar {
    height: 8%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    padding: 9px 20px 2px 20px;
    background: rgba(7,11,20,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .inner {
    width: min(1200px, 92vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 35px; }
.brand .word { font-weight: 900; color: #E8EEF8; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif; }

/* Nav */
.nav-wrap { flex: 1; display: flex; justify-content: flex-end; padding: 0px 0px 10px 0px; }
.nav { list-style: none; display: flex; gap: 15px; align-items: center; transition: max-height .3s ease; }
.nav-item { position: relative; }
.nav-item > a { text-decoration: none; color: #AFC2E9; font-size: 13px; padding: 0px 6px; border-radius: 6px; display: inline-flex; align-items: center; gap: 2px; transition: background .2s, color .2s; }
.nav-item > a:hover { background: rgba(140,231,255,0.08); color: #fff; }
.caret { font-size: 11px; }

/* Dropdown links & remove bullets */
.dropdown, .dropdown li, .submenu, .submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dropdown a { display: block; padding: 10px 15px; color: #AFC2E9; text-decoration: none; font-size: 13px; transition: background .2s, color .2s; }
.dropdown a:hover { background: rgba(255,255,255,0.05); color: #fff;   z-index: 99999; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1300;
    margin-left: 20px;
}
.hamburger span { width: 24px; height: 2px; background: #E8EEF8; margin: 4px 0; border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.has-children{text-align: center;}
/* Desktop Dropdown */
@media (min-width: 1025px) {
    .nav-item.has-children {
        position: relative;
    }
    .nav-item.has-children .dropdown {
        position: absolute;
        top: 70%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 240px;
        background: linear-gradient(180deg,#0a0f1a, #07101a);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.5);
        padding: 8px 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .nav-item:hover > .dropdown {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(10px);
    }
    .dropdown .submenu {
        position: absolute;
        top: 0;
        left: 100%;
        transform: translateX(0);
    }
}

/* Tablet & Mobile Dropdown */
@media (max-width: 1024px) {
    .nav { 
        position: absolute; 
        top: 60px; left: 0; right: 0; 
        flex-direction: column; 
        background: #070B14; 
        padding: 0px; 
        gap: 8px; 
        max-height: 0; 
        overflow: hidden; 
        transition: max-height .3s ease; 
    }
    .nav.open { max-height: 600px; }
    
    /* Make dropdown full width and centered */
    .nav-item.has-children .dropdown {
        position: relative;
        display: none;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        background: #070B14;
        padding: 0;
        border: none;
        box-shadow: none;
    }
    .nav-item.has-children.submenu-open .dropdown { display: block; }
    .dropdown a { padding: 10px 0; text-align: center; }
    .submenu a { padding-left: 35px; text-align: left; }
    
    .hamburger { display: flex; }
}

/* Navigation */
    .navbar { position: fixed; top: 0; width: 100%; background: rgba(15, 15, 35, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); z-index: 1000; padding: 15px 0; }
    .nav-content { display: flex; justify-content: space-between; align-items: center; }
    .logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; }
    .logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #FF7A00, #FF9A40); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; }
    .nav-links { display: flex; gap: 30px; align-items: center; }
    .nav-links a { color: #a0a0b8; text-decoration: none; transition: color 0.3s; }
    .nav-links a:hover { color: #ffffff; }
    .cta-button { background: linear-gradient(135deg, #FF7A00, #FF9A40); color: white !important; padding: 10px 24px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: transform 0.3s, box-shadow 0.3s; }
    .cta-button:hover {transform: translateY(-5px); box-shadow: 0 25px 60px rgba(255,107,53,0.6);  }




    /* Apply shine effect only on hover */
.nav-item a:hover {
    background: linear-gradient(
    to right,
    #aabde3 0%,
    #ffffff 15%,
    #8a9dc9 30%
  );
  background-size: 200% auto;
    background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 2s infinite linear;
}

/* Keyframes for shine animation */
@keyframes shine {
  0% {
    background-position: 0;
  }
  60%, 100% {
    background-position: 180px;
  }
}



/* Tablet view (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  
  .topbar {
    width: 100% !important;
    padding: 10px 18px;
  }

  .topbar .inner {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .brand img {
    height: 32px;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #070B14;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
  }

  .nav.open {
    max-height: 500px;
    padding: 15px 0;
  }

  .nav-item a {
    font-size: 14px;
    padding: 10px 0;
  }

  .nav-item.has-children .dropdown {
    background: #070B14;
    border: none;
    text-align: center;
  }

  .dropdown a {
    padding: 8px 0;
  }
}

/* Mobile view (max-width: 767px) */
@media (min-width: 360px) and (max-width: 768px){
  .topbar {
    width: 100% !important;
    padding: 8px 15px;
  }

  .topbar .inner {
    width: 100%;
    flex-wrap: nowrap;
  }

  .brand img {
    height: 30px;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: #070B14;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
    z-index: 1000;
  }

  .nav.open {
    top: 46px;
    max-height: 480px;
    padding: 12px 0;
  }

  .nav-item a {
    font-size: 13px;
    padding: 8px 0;
  }

  .nav-item.has-children .dropdown {
    display: none;
    background: #070B14;
    border: none;
  }

  .nav-item.has-children.submenu-open .dropdown {
    display: block;
  }

  /* Center submenu text for better readability */
  .dropdown a {
    text-align: center;
    padding: 8px 0;
  }
  
}

/* Fix for very small screens (max 400px) */
@media (max-width: 400px) {
  .brand img {
    height: 26px;
  }
  .nav-item a {
    font-size: 12px;
  }
}


