@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  /* Background Colors */
  --bg-1: #0f0f23;
  --bg-2: #1a1a2e;
  --bg-sidebar: rgba(19, 19, 39, 0.5);
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-grid: rgba(255, 255, 255, 0.02);
  --bg-gradient-start: rgba(102, 126, 234, 0.4);
  --bg-gradient-end: rgba(118, 75, 162, 0.4);

  /* Text Colors */
  --txt-1: #e0e0e0;
  --txt-2: #a0a0c0;
  --txt-3: #8080a0;
  --txt-active: #d1daff;
  --txt-white: #fff;

  /* Primary Colors */
  --clr-primary: #667eea;
  --clr-primary-hover: rgba(102, 126, 234, 0.2);
  --clr-primary-active: rgba(102, 126, 234, 0.3);
  --clr-primary-strong: rgba(102, 126, 234, 0.4);
  --clr-primary-border: rgba(102, 126, 234, 0.6);
  --clr-primary-shadow: rgba(102, 126, 234, 0.4);

  /* Secondary Colors */
  --clr-secondary: #764ba2;
  --clr-secondary-light: rgba(118, 75, 162, 0.4);

  /* Borders & Shadows */
  --bdr: rgba(255, 255, 255, 0.1);
  --bdr-strong: rgba(255, 255, 255, 0.2);
  --shd: rgba(0, 0, 0, 0.3);
  --shd-glow: rgba(102, 126, 234, 0.4);

  /* Component Colors */
  --clr-discord: #6c5ce7;
  --clr-discord-hover: #5d4dc5;
  --clr-icon-inactive: #a0a0c0;
  --clr-icon-active: #667eea;

  /* Aliases for compatibility */
  --color-bg-header: var(--bg-2);
  --color-border: var(--bdr);
  --color-text-primary: var(--txt-1);
  --color-text-secondary: var(--txt-2);
  --color-text-muted: var(--txt-3);
  --color-icon-active: var(--clr-primary);
  --bg-footer: rgba(19, 19, 39, 0.3);
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overscroll-behavior: none;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: var(--txt-1);
  min-height: 100vh;
  position: relative; 
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: absolute;
  inset: 0; 
  background-image: 
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  pointer-events: none; 
  z-index: -1;
}

.main-content {
  width: 100%;
  flex: 1;
  margin: 10vh 0;
  display: flex;
  justify-content: center;     
  align-items: center;         
  flex-direction: column;      
}

/* Scrollbar (hidden) */
body::-webkit-scrollbar,
body::-webkit-scrollbar-track,
body::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-button {
  display: none;
  background: transparent;
}

/* Background Elements */
.background {
  position: fixed;
  z-index: 0;
  height: 100%;
  width: 100%;
}

.box-right,
.box-left {
  position: fixed;
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  border: 3px solid var(--clr-primary-border);
  border-radius: 15px;
  box-shadow: 0 0 40px var(--clr-primary-shadow);
  z-index: 0;
}

.box-right {
  right: -80px;
  animation: moveUpDownRotate 30s linear infinite;
}

.box-left {
  left: -80px;
  animation: moveDownUpRotate 30s linear infinite;
}

@keyframes moveUpDownRotate {
  0% { top: 100vh; transform: rotate(0deg); }
  50% { top: -250px; transform: rotate(360deg); }
  100% { top: 100vh; transform: rotate(720deg); }
}

@keyframes moveDownUpRotate {
  0% { top: -250px; transform: rotate(0deg); }
  50% { top: 100vh; transform: rotate(360deg); }
  100% { top: -250px; transform: rotate(720deg); }
}

/* Hamburger Menu Icon */
.menu-icon {
  width: 35px;
  height: 27px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 50;
}

.menu-icon .line-1,
.menu-icon .line-2,
.menu-icon .line-3 {
  height: 3px;
  width: 100%;
  background-color: var(--txt-white);
  border-radius: 2px;
  box-shadow: 0 1px 4px var(--shd);
  transition: background-color 0.2s ease;
}

.no-animation {
  animation: none !important;
}

/* Animasi hamburger → X */
.menu-icon.active .line-1 { animation: animate-line-1 0.4s cubic-bezier(0.3, 1, 0.7, 1) forwards; }
.menu-icon.active .line-2 { animation: animate-line-2 0.4s cubic-bezier(0.3, 1, 0.7, 1) forwards; }
.menu-icon.active .line-3 { animation: animate-line-3 0.4s cubic-bezier(0.3, 1, 0.7, 1) forwards; }

@keyframes animate-line-1 {
  0% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(0, 9px, 0) rotate(0); }
  100% { transform: translate3d(0, 9px, 0) rotate(45deg); }
}
@keyframes animate-line-2 {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}
@keyframes animate-line-3 {
  0% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(0, -15px, 0) rotate(0); }
  100% { transform: translate3d(0, -15px, 0) rotate(135deg); }
}

/* Reverse anim */
.menu-icon .line-1 { animation: animate-line-1-rev 0.7s ease-in-out; }
.menu-icon .line-2 { animation: animate-line-2-rev 0.7s ease-in-out; }
.menu-icon .line-3 { animation: animate-line-3-rev 0.7s ease-in-out; }

@keyframes animate-line-1-rev {
  0% { transform: translate3d(0, 9px, 0) rotate(45deg); }
  50% { transform: translate3d(0, 9px, 0) rotate(0); }
  100% { transform: translate3d(0, 0, 0) rotate(0); }
}
@keyframes animate-line-2-rev {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes animate-line-3-rev {
  0% { transform: translate3d(0, -9px, 0) rotate(135deg); }
  50% { transform: translate3d(0, -9px, 0) rotate(0); }
  100% { transform: translate3d(0, 0, 0) rotate(0); }
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: -320px;
  width: 280px;
  top: 10vh;
  height: 90vh;
  background: var(--bg-sidebar);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--bdr);
  padding: 10px;
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.7, 1);
}

.sidebar.open {
  transform: translateX(320px);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-link {
  color: var(--txt-1);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.2s;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.nav-link i {
  width: 20px;
  text-align: center;
  margin-right: 12px;
  color: var(--clr-icon-inactive);
  transition: color 0.2s;
}

.nav-link:hover {
  background: var(--clr-primary-hover);
  color: var(--clr-primary);
  transform: translateX(4px);
}

.nav-link:hover i {
  color: var(--clr-primary);
}

.nav-link.active {
  background: var(--clr-primary-active);
  color: var(--txt-active);
  font-weight: 600;
  border-left: 3px solid var(--clr-primary);
}

.nav-link.active i {
  color: var(--clr-primary);
}

/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10vh;
  background: rgba(19, 19, 39, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  z-index: 2000;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}

.header.hide {
  transform: translateY(-100%);
}

.header .icon img {
  height: 80%;
  width: 40px;
  object-fit: cover;
  cursor: pointer;
}

.header-title {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  flex-grow: 1;
  letter-spacing: 0.5px;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
  z-index: 1999;
}

/* Footer / Bottom */
.footer-container {
  position: static;
  width: 100%;
  background: var(--bg-footer);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 10px var(--shd);
  z-index: 1000;
  padding: 1.5rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h4 {
  color: var(--color-text-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--color-icon-active);
}

.footer-column p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clr-discord);
  color: var(--txt-white);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-discord:hover {
  background: var(--clr-discord-hover);
  transform: translateY(-1px);
}

.btn-discord i {
  font-size: 1.1rem;
}

/* Responsif (Mobile) */
@media (max-width: 768px) {
  .box-right,
  .box-left {
    width: 180px;
    height: 180px;
  }

  .box-right { right: -60px; }
  .box-left { left: -60px; }

  .header { padding: 0.8rem 1rem; }
  .header-title { font-size: 1rem; }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-column h4 { font-size: 1rem; }
}