/* ========== GLOBAL RESET & ROOT ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ========== CUSTOM HACKER CURSOR ========== */
* {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%2300ff9f' stroke-width='1.5'/%3E%3Cline x1='12' y1='2' x2='12' y2='22' stroke='%2300ff9f' stroke-width='1.5'/%3E%3Cline x1='2' y1='12' x2='22' y2='12' stroke='%2300ff9f' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%2300ff9f'/%3E%3C/svg%3E") 12 12, crosshair;
}
:root {
  --neon-green: #00ff9f;
  --neon-blue: #00c3ff;
  --cyber-red: #ff0055;
  --dark-bg: #02020a;
  --sidebar-width: 260px;
  --transition-speed: 0.3s;
}
body {
  font-family: 'JetBrains Mono', monospace;
  overflow-x: hidden;
  background: #000;
  color: #eef;
}
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ========== GATEWAY STYLES (overlay + card) ========== */
.gateway-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.6);
  transition: opacity 0.8s ease, visibility 0.8s;
}
.gateway-container.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gateway-card {
  background: rgba(20, 0, 0, 0.85);
  border: 2px solid #ff0044;
  border-radius: 48px;
  padding: 2.5rem;
  max-width: 550px;
  width: 90%;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(255, 0, 68, 0.5), inset 0 0 20px rgba(255, 0, 68, 0.3);
  animation: glitchPulse 1.2s infinite alternate;
}
@keyframes glitchPulse {
  0% { box-shadow: 0 0 20px #ff0044, inset 0 0 10px #ff0044; border-color: #ff0044; }
  100% { box-shadow: 0 0 60px #ff0044, inset 0 0 30px #ff0044; border-color: #ff6666; }
}
.profile {
  width: 130px; height: 130px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 3px solid #ff0044;
  overflow: hidden;
  box-shadow: 0 0 25px #ff0044;
  background: #111;
}
.profile img { width: 100%; height: 100%; object-fit: cover; }
h1 {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem; font-weight: 900;
  background: linear-gradient(135deg, #ff0044, #aa0022);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 5px #ff0044;
}
.tagline {
  font-size: 1rem; color: #ff8888;
  margin: 1rem 0 2rem;
  border-left: 3px solid #ff0044;
  padding-left: 12px;
  text-align: left;
}
.input-group { margin: 1.2rem 0; text-align: left; }
.input-group label { display: block; font-size: 0.8rem; letter-spacing: 2px; color: #ff7777; margin-bottom: 0.4rem; }
.input-group input {
  width: 100%; background: #1a0808;
  border: 1px solid #ff0044;
  padding: 12px 18px;
  border-radius: 40px;
  color: #fff; font-family: monospace; font-size: 1rem;
}
.input-group input:focus { outline: none; border-color: #ff8888; box-shadow: 0 0 12px #ff0044; }
.unlock-btn {
  background: linear-gradient(135deg, #ff0044, #aa0022);
  border: none; width: 100%; padding: 14px;
  font-family: 'Orbitron', monospace; font-weight: bold; font-size: 1.2rem;
  border-radius: 60px; color: black; cursor: pointer; margin-top: 1rem;
  transition: 0.2s; box-shadow: 0 0 15px #ff0044;
}
.unlock-btn:hover { transform: scale(1.02); box-shadow: 0 0 30px #ff0044; }
.error-msg { color: #ff8888; font-size: 0.8rem; margin-top: 1rem; min-height: 40px; text-align: center; }

/* ========== MAIN DASHBOARD LAYOUT ========== */
.app-container {
  position: relative;
  z-index: 100;
  display: none;            /* shown after login */
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}
.app-container.active { display: flex; }

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: rgba(2, 2, 10, 0.88);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 255, 159, 0.25);
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  z-index: 110;
  overflow-y: auto;
  transition: transform 0.3s ease;
}
.sidebar-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 2rem;
  padding-bottom: 1rem; border-bottom: 1px dashed var(--neon-green);
}
.profile-mini { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; border: 2px solid var(--neon-green); }
.profile-mini img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-title { font-family: 'Orbitron', monospace; font-weight: 800; color: var(--neon-green); font-size: 1.2rem; letter-spacing: 2px; }

.nav-main { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #ccc;
  text-decoration: none;
  transition: all var(--transition-speed);
}
.nav-item i { width: 20px; text-align: center; font-size: 1rem; }
.nav-item:hover, .nav-item.active {
  background: rgba(0, 255, 159, 0.12);
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green);
  box-shadow: 0 0 12px rgba(0, 255, 159, 0.2);
  transform: translateX(6px);
}

/* Hamburger dropdown */
.hamburger-dropdown { margin-top: auto; }
.hamburger-btn {
  background: none; border: 1px solid var(--neon-blue);
  color: var(--neon-blue); font-size: 1.5rem; padding: 8px 16px; border-radius: 12px;
  cursor: pointer; width: 100%; transition: 0.2s;
}
.hamburger-btn:hover { background: rgba(0, 195, 255, 0.15); }
.extra-menu {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-top: 12px; padding-left: 8px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.extra-menu.hidden { max-height: 0; opacity: 0; overflow: hidden; }
.extra-menu:not(.hidden) { max-height: 300px; opacity: 1; }

/* MAIN CONTENT */
.main-content {
  flex: 1;
  padding: 2rem 3rem;
  overflow-y: auto;
  background: rgba(2, 2, 12, 0.55);
  backdrop-filter: blur(18px);
  position: relative;
}

/* SECTIONS */
.section-content { display: none; }
.section-content.active { display: block; }

/* Hero home */
.hero-container { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: 4rem; font-weight: 900;
  text-shadow: 0 0 15px var(--neon-green);
  color: #fff;
}
.hero-subtitle {
  font-size: 1.5rem; margin: 1rem 0 2rem; color: #5ee0fa;
  min-height: 3rem;
}
.blink-cursor { color: var(--neon-green); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.cta-button {
  display: inline-block; padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
  color: black; font-weight: bold; border-radius: 999px;
  box-shadow: 0 0 25px var(--neon-green);
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s;
}
.cta-button:hover { transform: scale(1.06); }

/* Web Attacks sub-sections */
.sub-section { margin-bottom: 4rem; }
.sub-section-title {
  font-size: 2.2rem;
  font-family: 'Orbitron', monospace;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  border-left: 5px solid var(--neon-green);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ========== REUSABLE COMPONENTS ========== */
.glass-card {
  background: rgba(10, 12, 25, 0.85);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  border: 1px solid rgba(0, 255, 159, 0.25);
  box-shadow: 0 12px 35px rgba(0,0,0,0.6);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  padding: 1.6rem;
}
.glass-card:hover {
  transform: translateY(-6px) rotateX(1deg) rotateY(1deg);
  border-color: var(--neon-green);
  box-shadow: 0 0 25px rgba(0, 255, 159, 0.4);
}

.code-block {
  background: #0a0c16;
  border-left: 4px solid var(--neon-green);
  padding: 1rem;
  border-radius: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  position: relative;
  overflow-x: auto;
  margin: 1rem 0;
  white-space: pre-wrap;
  word-break: break-all;
}
.copy-btn {
  position: absolute; top: 8px; right: 10px;
  background: #1e1f2c; border: none; color: var(--neon-green);
  border-radius: 8px; padding: 4px 10px; cursor: pointer;
  font-size: 0.7rem; transition: 0.2s;
}
.copy-btn:hover { background: var(--neon-green); color: black; }

.tools-grid, .payload-grid, .resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.search-wrapper { text-align: center; margin: 1.5rem 0; }
#global-search {
  background: #0b0b18; border: 1px solid var(--neon-blue);
  border-radius: 60px; padding: 12px 25px;
  width: 90%; max-width: 500px; color: white; font-family: monospace;
}

.checklist-group { margin-bottom: 2rem; }
.checklist-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0, 255, 159, 0.05);
  padding: 8px 12px; border-radius: 16px; margin-bottom: 8px;
  transition: all 0.2s;
}
.checklist-item:hover { background: rgba(0, 255, 159, 0.15); transform: translateX(8px); }

.server-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5rem; }
.server-btn {
  background: #11141f; border: 1px solid var(--neon-blue);
  padding: 6px 20px; border-radius: 40px; cursor: pointer; transition: 0.2s;
  color: #ccc;
}
.server-btn.active {
  background: var(--neon-blue); color: black;
  box-shadow: 0 0 12px var(--neon-blue);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 195, 255, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 195, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 195, 255, 0); }
}

.text-neon-green { color: var(--neon-green); }
.text-neon-blue { color: var(--neon-blue); }
.text-cyber-red { color: var(--cyber-red); }
.text-2xl { font-size: 1.8rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-3 { margin-top: 0.75rem; }
.p-4 { padding: 1.5rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; background: #050510; }
::-webkit-scrollbar-thumb { background: var(--neon-green); border-radius: 10px; box-shadow: 0 0 5px var(--neon-green); }

/* ========== HOME PAGE EXTRA STYLES ========== */
.site-desc {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  color: #aaa;
  text-align: center;
  margin: 1rem 0 2rem;
  text-shadow: 0 0 8px rgba(0, 255, 159, 0.3);
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Subtle glitch effect on the title */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.glitch::before {
  color: #ff0044;
  animation: glitchShift 0.2s infinite alternate-reverse;
}
.glitch::after {
  color: #00ff9f;
  animation: glitchShift 0.3s infinite alternate;
}
.glitch:hover::before,
.glitch:hover::after {
  opacity: 0.8;
}
@keyframes glitchShift {
  0%   { transform: translate(0); }
  20%  { transform: translate(-3px, 3px); }
  40%  { transform: translate(3px, -3px); }
  60%  { transform: translate(-1px, -1px); }
  80%  { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}

/* Button glitch on hover (optional but adds creepiness) */
.glitch-hover:hover {
  animation: glitchText 0.2s linear;
}
@keyframes glitchText {
  0%   { transform: translate(0); }
  25%  { transform: translate(-5px, 5px); }
  50%  { transform: translate(5px, -5px); }
  75%  { transform: translate(-2px, -2px); }
  100% { transform: translate(0); }
}
#home-section {
  padding-top: 8rem;
}

.extra-links {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.extra-links.active {
  display: flex;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* =====================================================
   🚀 RESPONSIVE MAGIC – TABLETS & PHONES
   ===================================================== */
@media (max-width: 1024px) {
  .sidebar {
    width: 220px;
    padding: 1.5rem 0.8rem;
  }
  .main-content {
    padding: 1.5rem 2rem;
  }
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  /* Stack layout vertically */
  .app-container {
    flex-direction: column;
  }
  /* Sidebar becomes a top horizontal bar */
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.8rem;
    overflow-y: visible;
    border-right: none;
    border-bottom: 1px solid var(--neon-green);
    align-items: center;
  }
  .sidebar-header {
    display: none; /* hide profile on mobile – you can keep it if you want */
  }
  .nav-main {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
  }
  .nav-item {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .hamburger-dropdown {
    width: 100%;
    margin-top: 8px;
  }
  .hamburger-btn {
    width: auto;
    padding: 6px 12px;
    font-size: 1.2rem;
  }
  /* Main content */
  .main-content {
    padding: 1rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .site-desc {
    font-size: 1rem;
  }
  #home-section {
    padding-top: 2rem;
  }
  /* Gateway card */
  .gateway-card {
    padding: 1.8rem;
  }
  h1 {
    font-size: 2rem;
  }
  .tagline {
    font-size: 0.9rem;
  }
  /* Tools grid */
  .tools-grid, .payload-grid, .resources-grid {
    grid-template-columns: 1fr;
  }
  /* Lounge: force full-width cards */
  .lounge-card {
    max-width: 95% !important;
    padding: 1.5rem !important;
  }
  .lounge-container {
    min-height: 70vh;
  }
  #alias-input {
    width: 95% !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .cta-button {
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
  }
  .gateway-card {
    padding: 1.2rem;
  }
  .profile {
    width: 100px; height: 100px;
  }
  h1 {
    font-size: 1.8rem;
  }
  .input-group input {
    padding: 10px 14px;
  }
  .unlock-btn {
    padding: 12px;
    font-size: 1rem;
  }
  /* Sidebar on very small screens: even tighter */
  .nav-item {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}
