/* -------------------------------------------------------
   FONT IMPORT
------------------------------------------------------- */
@font-face {
  font-family: 'Sis-JpDotline';
  src: url('../fonts/Matrixtype-lxMZX.ttf') format('truetype');
}

/* -------------------------------------------------------
   GLOBAL CONTAINER
------------------------------------------------------- */
.headercontainer {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #ffffff;
  overflow-x: hidden;
  min-height: 20vh;
  position: relative;
}

/* Pattern Overlay */
.headercontainer::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* -------------------------------------------------------
   HEADER
------------------------------------------------------- */
header {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  padding: 20px 32px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 997;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
  max-height: 100px;
}

/* Logo Container */
.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #ffffff;
  color: #000000;
  max-height: 60px;
}

.logo-icon:hover {
  transform: scale(1.1) rotate(6deg);
}

/* Brand Info */
.brand-info h1 {
  font-family: 'Sis-JpDotline', sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 4px;
  margin-bottom: 2px;
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

.brand-info p {
  font-size: 10px;
  letter-spacing: 3px;
  opacity: 0.6;
  font-weight: 300;
  color: #999999;
}

/* -------------------------------------------------------
   MENU TOGGLE
------------------------------------------------------- */
.menu-toggle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.menu-toggle:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: #ffffff;
  position: absolute;
}

.menu-toggle span:nth-child(1) {
  top: 18px;
}
.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.menu-toggle span:nth-child(3) {
  bottom: 18px;
}

.menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: rotate(45deg) translateY(-50%);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}
.menu-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: rotate(-45deg) translateY(50%);
}

/* -------------------------------------------------------
   OVERLAY
------------------------------------------------------- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 998;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  overflow: hidden;
}

/* -------------------------------------------------------
   SIDEBAR
------------------------------------------------------- */
.sidebar {
  position: fixed;
  top: 24px;
  bottom: 24px;
  right: 24px;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar.active {
  transform: translateX(0);
  opacity: 1;
}

/* Sidebar Header */
.sidebar-header {
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #ffffff;
  color: #000000;
  max-height: 60px;
}

.sidebar-logo span {
  font-family: 'Sis-JpDotline', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffffff;
}

/* Close Button */
.close-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  color: #fff;
  font-size: 22px;
}

.close-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------------------
   NAV MENU
------------------------------------------------------- */
.nav-menu {
  padding: 24px 0;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 20px 32px;
  margin: 4px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 40px;
}

.nav-item.active {
  padding-left: 40px;
  background: #ffffff;
  color: #000000;
}

.nav-icon {
  font-size: 22px;
  margin-right: 16px;
  transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
  transform: scale(1.2);
}

.nav-link {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-number {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.5;
  font-weight: 300;
}

/* -------------------------------------------------------
   DEMO CONTENT
------------------------------------------------------- */
.demo-content {
  margin-top: 140px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.demo-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
}

.demo-content p {
  font-size: 18px;
  opacity: 0.7;
  font-weight: 300;
  letter-spacing: 1px;
  color: #ffffff;
}

/* -------------------------------------------------------
   SCROLLBAR
------------------------------------------------------- */
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* -------------------------------------------------------
   ANIMATIONS
------------------------------------------------------- */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sidebar.active .nav-item {
  animation: slideIn 0.5s ease forwards;
  opacity: 0;
}
.sidebar.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar.active .nav-item:nth-child(2) { animation-delay: 0.15s; }
.sidebar.active .nav-item:nth-child(3) { animation-delay: 0.2s; }
.sidebar.active .nav-item:nth-child(4) { animation-delay: 0.25s; }
.sidebar.active .nav-item:nth-child(5) { animation-delay: 0.3s; }
.sidebar.active .nav-item:nth-child(6) { animation-delay: 0.35s; }

/* -------------------------------------------------------
   RESPONSIVE DESIGN
------------------------------------------------------- */


@media (max-width: 1200px) {
  header {
    padding: 18px 28px;
    left: 20px;
    right: 20px;
    top: 20px;
  }
  .brand-info h1 { font-size: 28px; }
  .sidebar { max-width: 60%; }
  .nav-link { font-size: 17px; }
}

@media (max-width: 768px) {
     .headercontainer{
        min-height: 0vh;
    }
  header {
    top: 16px;
    left: 16px;
    right: 16px;
    padding: 16px 24px;
    max-height: 90px;
  }

  .brand-info h1 { font-size: 16px; }

  .sidebar {
    top: 16px;
    bottom: 16px;
    right: 16px;
    max-width: 100%;
    transform: translateX(calc(100% + 16px));
    max-height: calc(100vh - 32px);
  }

  .demo-content h1 { font-size: 36px; }
}

@media (max-width: 480px) {
    .headercontainer{
        min-height: 0vh;
    }
  header {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 10px 16px;
    border-radius: 14px;
    backdrop-filter: blur(16px) saturate(180%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-height: 80px;
  }

  .logo-container img { height: 42px; width: 42px; }
  .brand-info h1 { font-size: 13px; letter-spacing: 1.5px; }
  .brand-info p { font-size: 7px; letter-spacing: 1.7px; }

  .menu-toggle {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
  }

  .sidebar {
    top: 10px;
    bottom: 10px;
    right: 10px;
    width: calc(100% - 30px);
    max-height: calc(100vh - 20px);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.95);
    transform: translateX(calc(100% + 10px));
  }

  .demo-content {
    margin-top: 90px;
    padding: 40px 20px;
    max-height: calc(100vh - 100px);
  }

  .demo-content h1 { font-size: 26px; line-height: 1.3; }
  .demo-content p { font-size: 14px; }
}



