:root {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --accent-color: #3178c6; /* TS Blue */
  --accent-glow: rgba(49, 120, 198, 0.5);
  --error-color: #ef4444; /* JS Error Red */
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-heading: "Inter", sans-serif;
  --font-code: "JetBrains Mono", monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-heading);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIiBvcGFjaXR5PSIwLjAzIi8+PC9zdmc+");
  pointer-events: none;
  z-index: 0;
}

.container {
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
}

.glitch-text {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  position: relative;
  color: var(--text-color);
  text-shadow: 2px 2px var(--error-color);
  animation: glitch-anim 2s infinite;
}

.hero p.subtitle {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  color: #94a3b8;
}

#year {
  color: var(--accent-color);
  font-weight: 700;
}

/* Button */
.btn {
  margin-top: 3rem;
  padding: 1rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: white;
  background: var(--accent-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow);
}

.btn.active {
  background: #10b981; /* Success Green */
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

/* Code Editor Window */
.editor-window {
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.window-header {
  background: #1e293b;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #334155;
}

.dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.filename {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: #94a3b8;
}

.code-content {
  padding: 2rem;
  font-family: var(--font-code);
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e2e8f0;
  min-height: 200px;
  white-space: pre;
  overflow-x: auto;
}

/* Syntax Highlighting Mock */
.keyword {
  color: #c678dd;
} /* purple */
.variable {
  color: #e06c75;
} /* red */
.function {
  color: #61afef;
} /* blue */
.string {
  color: #98c379;
} /* green */
.type {
  color: #e5c07b;
} /* yellow */
.comment {
  color: #5c6370;
  font-style: italic;
}
.error-line {
  text-decoration: wavy underline var(--error-color);
  background: rgba(239, 68, 68, 0.1);
}

/* Reasons Grid */
/* Glass Panel (Generic) */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

/* Reasons Grid */
.reasons {
  display: flex;
  flex-direction: column;
  gap: 6rem; /* More space between unboxed items */
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.reason-item {
    position: relative;
    padding-left: 2rem;
    border-left: 4px solid var(--accent-color);
}

.reason-item h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
}

.reason-item p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #cbd5e1;
}





.reasons code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.9em;
  color: #e2e8f0;
}

footer {
  width: 100%;
  margin-top: auto;
  text-align: center;
  padding: 2rem;
}

/* Glitch Animation */
@keyframes glitch-anim {
  0% {
    transform: translate(0);
  }
  2% {
    transform: translate(-2px, 2px);
  }
  4% {
    transform: translate(2px, -2px);
  }
  6% {
    transform: translate(0);
  }
  100% {
    transform: translate(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 2rem 1rem;
    gap: 3rem;
  }
  .glitch-text {
    font-size: 3rem;
  }
  .hero p.subtitle {
    font-size: 1.25rem;
  }
  .code-content {
    font-size: 0.9rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .glitch-text {
    font-size: 2.25rem;
    word-break: break-word;
  }
  .btn {
    width: 100%;
    padding: 1rem 1.5rem;
  }
  .reasons {
    grid-template-columns: 1fr;
  }
  .window-header .filename {
    font-size: 0.8rem;
  }
}
