/* ============================================
   SIDEBAR MENU STYLES
   ============================================ */

/* Logo as menu trigger */
.logo {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Menu */
.sidebar-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--card);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  will-change: left;
}

.sidebar-menu.active {
  left: 0;
}

@keyframes slideInFromLeft {
  from {
    left: -100%;
  }
  to {
    left: 0;
  }
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-header .logo {
  font-size: 1.1rem;
}

.sidebar-close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-left: 3px solid transparent;
  position: relative;
  will-change: transform, padding-left;
}

.sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent);
  padding-left: 1.75rem;
}

.sidebar-link:hover svg {
  opacity: 1;
  color: var(--accent);
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 1.5rem;
}

.sidebar-section-title {
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Contact Section */
.contact-section {
  max-width: 1080px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.contact-section.hidden {
  display: none;
}

/* Effect Section */
.effect-section {
  display: flex;
  flex-direction: column;
}

.effect-toggle-wrapper {
  padding: 0;
}

.effect-toggle-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  width: 100%;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-family: inherit;
  position: relative;
}

.effect-toggle-btn .effect-arrow {
  margin-left: auto;
  opacity: 0.7;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.effect-toggle-btn:not(.active) .effect-arrow {
  display: none;
}

/* Download button arrow always visible */
#downloadToggleBtn .effect-arrow {
  display: block !important;
}

.effect-toggle-btn:hover .effect-arrow {
  opacity: 1;
}

.effect-toggle-btn.expanded .effect-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.effect-toggle-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.effect-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent);
  padding-left: 1.75rem;
}

.effect-toggle-btn:hover svg {
  opacity: 1;
  color: var(--accent);
}

.effect-toggle-btn.active {
  background: rgba(70, 224, 185, 0.1);
  border-left-color: var(--accent);
}

.effect-toggle-btn.active svg {
  opacity: 1;
  color: var(--accent);
}

.effect-options {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: max-height;
}

.effect-options.expanded {
  max-height: 500px;
  padding: 0.5rem 0;
}

.effect-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem 0.75rem 3rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, padding-left;
  border-left: 3px solid transparent;
  position: relative;
  user-select: none;
}

.effect-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent);
  padding-left: 3.5rem;
}

.effect-option.active {
  background: rgba(70, 224, 185, 0.1);
  border-left-color: var(--accent);
  color: var(--accent);
}

.effect-option-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.effect-option.active .effect-option-icon {
  opacity: 1;
}

.effect-option:hover .effect-option-icon {
  opacity: 1;
}

.effect-option-check {
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--accent);
}

.effect-option.active .effect-option-check {
  opacity: 1;
}

.download-option {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem 0.75rem 3rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  user-select: none;
}

.download-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent);
  padding-left: 3.5rem;
  color: var(--text);
  text-decoration: none;
}

.download-option svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  color: currentColor;
}

.download-option:hover svg {
  opacity: 1;
}

.download-option.active svg {
  opacity: 1;
  color: var(--accent);
}

/* Scorpion/Centipede Cursor Styles */
.scorpion-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Logo is always clickable to open menu */

