:root {
  --bg: #1a1b26;
  --text: #c0caf5;
  --text-muted: #9aa5ce;
  --accent: #7aa2f7;
  --ok: #3fb950;
  --warn: #d29922;
  --error: #f85149;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* LAYOUT ROOT */
body {
  display: flex;
  height: 100vh;
  font-family: "JetBrains Mono", monospace;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  height: 100vh;

  padding: 24px;

  display: flex;
  flex-direction: column;

  background: rgba(36, 40, 59, 0.6);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(65, 72, 104, 0.5);
}

.sidebar-header p {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 0.85rem;
}

.sidebar-nav {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  background: rgba(122, 162, 247, 0.15);
  color: var(--accent);
  font-weight: bold;
}

.sidebar-divider {
  height: 1px;
  margin: 24px 0;
  background: rgba(65, 72, 104, 0.4);
}

.sidebar-links a {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-links a:hover {
  color: var(--accent);
}

.sidebar-gif {
  margin-top: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.sidebar-gif img {
  width: 170px;
  height: auto;
  display: block;
  object-fit: contain;
}

.sidebar-status {
  color: var(--text-muted);
}

.sidebar-status .status-title {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* MAIN */
.main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

/* GRID SYSTEM */
.home-grid {
  display: grid;
  grid-template-columns: 2.25fr 0.75fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* COLUMNS */
.center-column, .right-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* TERMINAL MODULE */
.terminal-module {
  display: flex;
  flex-direction: column;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #1f2937;
  border-bottom: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red { background: #ff5f57; }
.yellow { background: #febc2e; }
.green { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* TERMINAL MAIN */
.terminal {
  padding: 16px;
  background: #0d1117;
  border: 1px solid #1f2937;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 340px;
  overflow-y: auto;
  
  /* HIDE SCROLLBARS */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.terminal::-webkit-scrollbar {
  display: none;
}

/* TERMINAL CONTROLS */
.line, .line-msg {
  display: flex;
  gap: 8px;
  line-height: 1.4;
}

.line {
  color: var(--text-muted);
}

.line-msg {
  color: var(--text);
  margin-bottom: 4px;
}

.line-msg .highlight {
  color: var(--accent);
  font-weight: bold;
}

.prompt { color: #7dcfff; }
.cmd { color: var(--text); }

.neofetch-container {
  display: flex;
  gap: 20px;
  margin: 8px 0;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.03);
  font-size: 0.85rem;
}

.neofetch-logo {
  color: var(--accent);
  white-space: pre;
  line-height: 1.2;
}

.neofetch-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  color: var(--accent);
  font-weight: bold;
}

/* TERMINAL CURSOR */
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* GENERAL MODULE TITLES (BACKGROUND COMPONENTS) */
.bio-module h3,
.updates-module h3,
.music-module h3 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.1rem;
  text-transform: lowercase;
}

/* BIO MODULE */
.bio-content {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.bio-content p {
  margin-bottom: 16px;
}

.bio-content p:last-child {
  margin-bottom: 0;
}

.bio-content .highlight {
  color: var(--accent);
  font-weight: bold;
}

/* UPDATES LIST */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.updates-list li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.update-date {
  color: var(--accent);
  font-weight: bold;
  white-space: nowrap;
}

.update-text {
  color: var(--text-muted);
}

/* COZY GIF CONTAINER */
.cozy-gif-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
}

.cozy-gif-container img {
  width: 75%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* MUSIC PLAYER (BACKGROUND INTEGRATED) */
.music-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  width: 100%;
}

.music-btn {
  background: rgba(122, 162, 247, 0.08);
  border: 1px solid rgba(65, 72, 104, 0.35);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.music-btn:hover {
  background: rgba(122, 162, 247, 0.18);
  border-color: var(--accent);
  transform: scale(1.05);
}

.music-btn svg {
  width: 18px;
  height: 18px;
}

.music-btn svg.hidden {
  display: none;
}

.music-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.music-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5px;
  position: relative;
  cursor: pointer;
  width: 100%;
}

.music-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  border-radius: 1.5px;
  transition: width 0.1s linear;
}

/* MUSIC VISUALIZER WAVE */
.music-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
  flex-shrink: 0;
}

.music-visualizer .bar {
  width: 2px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: height 0.2s ease;
}

/* Equalizer bounce only when parent has .playing */
.music-visualizer.playing .bar {
  background: var(--accent);
  animation: visualizerBounce 0.8s ease-in-out infinite alternate;
}

@keyframes visualizerBounce {
  0% { height: 3px; }
  100% { height: 16px; }
}

.music-visualizer .bar:nth-child(1) { animation-delay: 0.1s; }
.music-visualizer .bar:nth-child(2) { animation-delay: 0.4s; }
.music-visualizer .bar:nth-child(3) { animation-delay: 0.2s; }
.music-visualizer .bar:nth-child(4) { animation-delay: 0.5s; }

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(65, 72, 104, 0.5);
  }
  .sidebar-status {
    margin-top: 16px;
  }
  .main {
    padding: 20px;
  }
}

/* SKILLS MODULE */
.skills-module h3 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.1rem;
  text-transform: lowercase;
}

.skills-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.skills-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skills-group-title {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.skill-badge {
  color: var(--text);
  font-size: 0.9rem;
}

.skill-badge:not(:last-child)::after {
  content: ",";
  color: var(--text-muted);
}
