/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

body {
    background: #000;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.45);
    z-index: 3000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar img {
    height: 24px;
    opacity: .9;
    transition: .4s ease;
}

.navbar img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: .7;
    position: relative;
    transition: .3s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 1px;
    background: #fff;
    transition: .3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 1;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media(max-width:900px) {
    .navbar {
        padding: 15px 24px;
    }

    .nav-menu a,
    .company-btn {
    margin: 0;          /* remove random spacing */
    padding: 10px 0;
    width: 100%;
    }

    .mobile-toggle {
        display: block !important;
        z-index: 2001;
    }

    .page-hero {
        min-height: 100vh !important;
    }

    .content-container {
        padding: 60px 24px;
    }

    .grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .card {
        padding: 32px 24px;
    }

    footer .content-container,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    footer {
        padding: 60px 24px !important;
        text-align: left !important;
    }

    h1,
    h2 {
        font-size: clamp(28px, 8vw, 42px) !important;
        letter-spacing: 2px !important;
    }

    h3 {
        font-size: 20px !important;
    }
}

@media (max-width: 768px) {

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: #000;

    display: flex;
    flex-direction: column;

    padding: 80px 20px 20px;
    overflow-y: auto;   /* ✅ FULL SCROLL */

    transition: right 0.3s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  /* ALL ITEMS STACK CLEANLY */
  .nav-menu a,
  .company-btn {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  /* DROPDOWN = PART OF FLOW (KEY PART) */
  .mobile-dropdown-content {
    display: none;
    width: 100%;
    background: #000;      /* same black */
    padding-left: 15px;    /* slight indent */
  }

  .mobile-dropdown-content.active {
    display: block;
  }

  .mobile-dropdown-content a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: #aaa;
  }

}

/* Hide toggle on desktop */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile styles for navbar*/
@media (max-width: 768px) {

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #000000;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transition: 0.4s ease;
        z-index: 1000;
    }

    .nav-menu a {
        margin: 20px 0;
        font-size: 16px;
    }

    .nav-menu.active {
        right: 0;
    }
}


/* ---------- PAGE HERO ---------- */
.page-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, #111 0%, #000 70%);
    padding: 0 20px;
}

.page-hero h1 {
    font-size: clamp(40px, 8vw, 84px);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 1.5s ease forwards;
}

.page-hero p {
    font-size: 18px;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeUp 2s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- FOOTER ---------- */
footer {
    padding: 80px 40px;
    text-align: left;
    background: #000;
    border-top: 1px solid #111;
}



footer p {
    font-size: 12px;
    letter-spacing: 1px;
    color: #444;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

footer a {
    color: #666;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

footer a:hover {
    color: #fff;
}

.footer-grid {
    padding: 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

/* Tablet */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    footer {
        padding: 80px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    footer img {
        height: 20px;
    }
}


/* ---------- COMMON COMPONENTS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: .35s ease;
}

.btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-weight: 500;
}

.card p {
    color: #888;
    line-height: 1.7;
    font-size: 15px;
}

/* ---------- PRELOADER ---------- */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.6s ease;
}

.loader-line {
    width: 200px;
    height: 1px;
    background: #222;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: "";
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: load 1.5s ease-in-out infinite;
}

@keyframes load {
    to {
        left: 100%;
    }
}

.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

/* ---------- DROPDOWN ---------- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.7;
    transition: 0.3s;
    font-weight: 500;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #080808;
    min-width: 220px;
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    border: 1px solid #1a1a1a;
    right: 0;
    top: 100%;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Invisible bridge so hover doesn't fall off the gap */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: #fff;
    padding: 18px 25px;
    text-decoration: none;
    display: block !important;
    font-size: 10px !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    opacity: 0.5;
    border-bottom: 1px solid #111;
    transition: 0.3s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #080808;
    color: #fff;
    opacity: 1;
    padding-left: 32px;
    border-left: 2px solid #fff;
    transform: skewX(-5deg);
}

.dropdown:hover .dropbtn {
    opacity: 1;
    color: #fff;
}



/* ---------- ANIMATIONS ---------- */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 255, 157, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------- SEARCH OVERLAY (SPOTLIGHT) ---------- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    backdrop-filter: blur(10px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.search-modal {
    width: 100%;
    max-width: 650px;
    background: #080808;
    border: 1px solid #222;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 1);
    overflow: hidden;
}

.search-input-wrapper {
    padding: 20px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-input-wrapper i {
    color: #444;
}

#searchInput {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 18px;
    outline: none;
    font-family: inherit;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.search-result-item {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
    border-left: 2px solid transparent;
}

.search-result-item:hover,
.search-result-item.selected {
    background: #111;
    border-left-color: #fff;
}

.search-result-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.search-result-info p {
    font-size: 11px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-category-tag {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #666;
    border: 1px solid #222;
    padding: 4px 8px;
    text-transform: uppercase;
}

.search-footer {
    padding: 12px 20px;
    background: #050505;
    border-top: 1px solid #1a1a1a;
    display: flex;
    gap: 20px;
    font-size: 10px;
    color: #333;
}

.search-footer kbd {
    background: #111;
    border: 1px solid #222;
    padding: 2px 4px;
    border-radius: 3px;
    color: #666;
}

/* ---------- PROTOCOL MODAL ---------- */
.protocol-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

.protocol-overlay.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.protocol-modal {
    text-align: center;
    max-width: 450px;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    background: radial-gradient(circle at center, #080808 0%, #000 100%);
}

.protocol-ring {
    width: 80px;
    height: 80px;
    border: 1px solid #222;
    border-top-color: #fff;
    border-right-color: #fff;
    border-radius: 50%;
    margin: 0 auto 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.protocol-modal h2 {
    font-size: 18px;
    letter-spacing: 5px;
    margin-bottom: 20px;
    font-weight: 300;
}

.protocol-modal p {
    color: #555;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.protocol-id {
    font-family: monospace;
    color: #fff;
    background: #111;
    padding: 10px 20px;
    font-size: 12px;
    letter-spacing: 2px;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 45px;
    height: 45px;
    background: #080808;
    border: 1px solid #222;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    transition: 0.3s;
    font-size: 12px;
}

.back-to-top:hover {
    background: #fff;
    color: #000;
}

.back-to-top.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

/* ---------- MOBILE TYPOGRAPHY SCALE ---------- */
@media (max-width: 768px) {

  body {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(26px, 7vw, 36px) !important;
    letter-spacing: 1.5px !important;
  }

  h2 {
    font-size: clamp(22px, 6vw, 30px) !important;
    letter-spacing: 1.5px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  h4 {
    font-size: 16px !important;
  }

  p {
    font-size: 14px;
    line-height: 1.6;
  }

  .nav-menu a {
    font-size: 16px !important;
    letter-spacing: 3px !important;
  }

  .dropdown-content a {
    font-size: 12px !important;
    letter-spacing: 3px !important;
  }

  footer a {
    font-size: 12px;
  }

  .card p {
    font-size: 14px;
  }
}

/* SMALLER TEXT FOR ECOSYSTEM SECTION */
@media (max-width:768px){

  .section h2{
    font-size:24px !important;
  }

  .section p{
    font-size:16px !important;
  }

}

/* ===== MOBILE NAVBAR ===== */
@media (max-width: 768px) {

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
    font-size: 22px;
    cursor: pointer;
    z-index: 2001;
  }

  .mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  height: 100vh;
  background: #000;

  display: flex;
  flex-direction: column;

  padding: 80px 20px 20px;

  overflow-y: auto; 

  transition: right 0.3s ease;
}

  .mobile-menu.active {
    right: 0;
  }

  /* Links */
  .mobile-menu a,
  .mobile-btn {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    letter-spacing: 2px;
    padding:12px 0;
    color: #fff;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
  }

  /* Dropdown container */
  .mobile-item {
    width: 100%;
  }

  /* Dropdown hidden */
  .mobile-dropdown {
    display: none;
    padding-left: 15px;
    font-size: 24px;
    letter-spacing: 2px;
    padding: 7px 0;
  }

  /* Dropdown visible */
  .mobile-item.active .mobile-dropdown {
    display: block;
  }

  /* Dropdown links */
  .mobile-dropdown a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    color: #aaa;
  }

  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 40px;  /* ← your original spacing */
    display: flex;
    justify-content: space-between;
    align-items: center;

    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.45);
}

  .mobile-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-menu a,
.mobile-menu a,
.mobile-btn {
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.7;
    transition: 0.3s ease;
}

.mobile-menu a,
.mobile-btn {
    padding: 16px 0;   /* back to roomy spacing */
}

.mobile-dropdown {
    display: none;
    padding-left: 15px;
}

.mobile-item.active .mobile-dropdown {
    display: block;
}

.mobile-dropdown a {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.5;
    padding: 12px 0;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
}

/* Push footer to bottom */
.menu-footer {
  margin-top: auto;   /* pushes it down */
  padding-top: 20px;
  border-top: 1px solid #222;
}

.menu-footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.menu-footer a {
  color: #888;
  font-size: 14px;
}

.menu-footer p {
  font-size: 11px;
  color: #555;
}

}

/* ===== FORCE MOBILE MENU TO WORK ===== */
@media (max-width: 768px) {

  .mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 75% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important; /* slightly more transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
    display: flex !important;
    flex-direction: column !important;

    padding: 80px 20px 20px !important;

    overflow-y: auto !important;   /* 🔥 THIS FIXES SCROLL */
    z-index: 9999 !important;

    display: flex;
  }

  .mobile-menu.active {
    right: 0 !important;
  }

.menu-footer {
  margin-top: auto;   /* 💥 THIS pushes it down */
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.menu-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-footer-social {
  display: flex;
  gap: 14px;
}

.menu-footer-social a {
  color: #888;
  font-size: 16px;
  transition: 0.2s ease;
}

.menu-footer-social a:hover {
  color: #fff;
}

.menu-footer p {
  font-size: 11px;
  letter-spacing: 1px;
  color: #555;
}

  .menu-footer p {
    color: #aaa;
  }

  .menu-footer a {
    color: #aaa;
  }

  .menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 1500;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-toggle {
  position: fixed;   /* important */
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;

  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}
}