/* Base styles */
:root {
  --matrix-green: #00ff41;
  --matrix-green-bright: #00ff00;
  --matrix-green-dark: #003b00;
  --matrix-black: #000000;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  background-color: black;
  color: var(--matrix-green);
  font-family: "JetBrains Mono", "Ubuntu Mono", monospace;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Typography */
.font-terminal {
  font-family: "Ubuntu Mono", "JetBrains Mono", monospace;
}

.text-center {
  text-align: center;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.pr-4 {
  padding-right: 1rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pl-6 {
  padding-left: 1.5rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

/* Layout */
.relative {
  position: relative;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.top-4 {
  top: 1rem;
}

.right-4 {
  right: 1rem;
}

.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-full {
  height: 100%;
}

.h-96 {
  height: 24rem;
}

.min-h-screen {
  min-height: 100vh;
}

.w-full {
  width: 100%;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.duration-700 {
  transition-duration: 700ms;
}

.duration-1000 {
  transition-duration: 1000ms;
}

.translate-x-full {
  transform: translateX(100%);
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.pointer-events-none {
  pointer-events: none;
}

/* Matrix styles */
.matrix-card {
  border: 1px solid var(--matrix-green);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0.125rem;
  backdrop-filter: blur(4px);
}

.matrix-button {
  position: relative;
}

.matrix-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 255, 65, 0.1);
  opacity: 0;
  transition: opacity 150ms;
}

.matrix-button:hover::before {
  opacity: 1;
}

.matrix-button-small {
  padding: 0.5rem 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  color: var(--matrix-green);
  border: 1px solid var(--matrix-green);
  transition: color 150ms, border-color 150ms;
  display: inline-block;
  text-decoration: none;
}

.matrix-button-small:hover {
  color: var(--matrix-green-bright);
  border-color: var(--matrix-green-bright);
}

.terminal-text {
  font-family: "Ubuntu Mono", "JetBrains Mono", monospace;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.terminal-prompt::before {
  content: "$ ";
  color: var(--matrix-green-bright);
  margin-right: 0.25rem;
}

.terminal-cursor::after {
  content: "_";
  animation: blink 1s steps(1) infinite;
}

.terminal-command {
  font-family: "Ubuntu Mono", "JetBrains Mono", monospace;
  color: var(--matrix-green-bright);
}

.terminal-output {
  font-family: "Ubuntu Mono", "JetBrains Mono", monospace;
  color: var(--matrix-green);
  padding-left: 1rem;
  margin-top: 0.25rem;
}

.terminal-output:hover {
  color: var(--matrix-green-bright);
  transition: color 150ms;
  cursor: pointer;
}

.glitch-text {
  position: relative;
  font-family: "Ubuntu Mono", "JetBrains Mono", monospace;
  text-shadow: 0 0 5px var(--matrix-green), 0 0 10px var(--matrix-green);
  letter-spacing: 0.1em;
}

.matrix-image-container {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--matrix-green);
}

.matrix-image {
  transition: transform 700ms;
  filter: sepia(50%) hue-rotate(80deg) saturate(140%);
}

.matrix-image:hover {
  transform: scale(1.1);
}

.terminal-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--matrix-green) var(--matrix-black);
}

.terminal-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.terminal-scrollbar::-webkit-scrollbar-track {
  background: var(--matrix-black);
}

.terminal-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--matrix-green);
  border-radius: 0;
}

.typing-effect {
  font-family: "Ubuntu Mono", "JetBrains Mono", monospace;
  border-right: 2px solid var(--matrix-green);
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: 0.1em;
  animation: typing 4s steps(40) 1s 1 normal both, blink 1s steps(1) infinite;
}

.text-matrix-green {
  color: var(--matrix-green);
}

.text-matrix-green-bright {
  color: var(--matrix-green-bright);
}

.hover\:text-matrix-green-bright:hover {
  color: var(--matrix-green-bright);
}

.hover\:border-matrix-green-bright:hover {
  border-color: var(--matrix-green-bright);
}

.aspect-\[1\/1\.4\] {
  aspect-ratio: 1 / 1.4;
}

.aspect-\[16\/9\] {
  aspect-ratio: 16 / 9;
}

.object-cover {
  object-fit: cover;
}

.inline-block {
  display: inline-block;
}

.border {
  border-width: 1px;
  border-style: solid;
}

.border-matrix-green {
  border-color: var(--matrix-green);
}

.rounded-sm {
  border-radius: 0.125rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.list-decimal {
  list-style-type: decimal;
}

/* Animations */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Media queries */
@media (min-width: 768px) {
  .md\:text-6xl {
    font-size: 3.75rem;
  }

  .md\:text-xl {
    font-size: 1.25rem;
  }

  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .md\:aspect-auto {
    aspect-ratio: auto;
  }

  .md\:h-\[352px\] {
    height: 352px;
  }
}

/* Section visibility */
.section {
  transition: all 0.5s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.section.active {
  opacity: 1;
  max-height: none;
  pointer-events: auto;
}

/* Add these styles to fix the mobile menu background */
#mobile-menu {
  background-color: rgba(0, 0, 0, 0.95);
}

/* Fix for nav buttons to ensure no white background */
.nav-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* Add this to ensure the mobile menu button and its SVG have transparent backgrounds */
#mobile-menu-button {
  background-color: transparent;
}

#mobile-menu-button svg {
  background-color: transparent;
}

/* Also ensure the menu icon has the proper color */
.menu-icon {
  color: var(--matrix-green);
  background-color: transparent;
}

/* Reduce spacing between sections */
main.container {
  padding-bottom: 2rem; /* Reduced from 5rem (pb-20) */
}

/* Adjust spacing in music section */
#music .matrix-card {
  margin-bottom: 1rem; /* Reduced from 2rem (mb-8) */
}

#music h3.text-2xl {
  margin-top: 1.5rem; /* Reduced from 3rem (mt-12) */
  margin-bottom: 1rem; /* Reduced from 1.5rem (mb-6) */
}
