@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: black;
  color: #00ff00;
  font-family: 'Roboto Mono', monospace;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid #00ff00;
  z-index: 20;
  box-shadow: 0 0 10px #00ff00;
  line-height: 60px;
}

/* Full width nav-container with side padding */
.nav-container {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Logo link and logo */
.logo-link {
  display: inline-block;
  cursor: pointer;
  line-height: 1;
}

.logo {
  height: 40px; /* Slightly smaller so it fits inside navbar */
  filter: drop-shadow(0 0 3px #00ff00);
  flex-shrink: 0;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.logo-link:hover .logo,
.logo-link:focus .logo {
  transform: scale(1.05);
  outline: none;
}

/* Nav links aligned right */
.nav-links {
  list-style: none;
  display: flex;
  gap: 3rem;
  margin: 0;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 700;
  justify-content: flex-end;
  flex-grow: 1;
}

/* Nav links style */
.nav-links li a {
  color: #00ff00;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Hover and active */
.nav-links li a:hover,
.nav-links li a.active {
  border-color: #32cd32;
  background-color: rgba(50, 205, 50, 0.1);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  order: 3;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: #00ff00;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Container */
.container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 100px; /* space for fixed nav */
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #00ff00;
  border-radius: 8px;
  z-index: 1;
  box-shadow: 0 0 10px #00ff00;
  animation: fadeIn 2s ease forwards;
}

header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #00ff00;
  padding-bottom: 1rem;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
}

h2 {
  margin: 0;
  font-weight: 400;
  font-size: 1.1rem;
  color: #90ee90;
}

.profile-pic {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-pic img {
  width: 180px;
  border-radius: 15px;
  border: 2px solid #00ff00;
  box-shadow: 0 0 15px #00ff00;
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 10px #00ff00;
  }
  50% {
    box-shadow: 0 0 25px #32cd32;
  }
}

/* Typed intro */
.typed-intro {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #90ee90;
  min-height: 48px;
  font-style: italic;
  letter-spacing: 1.1px;
}

/* YouTube Section */
.youtube-section {
  text-align: center;
  margin-bottom: 3rem;
}

.youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: #ff0000;
  text-decoration: none;
  filter: drop-shadow(0 0 3px #ff0000);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.youtube-link img {
  width: 32px;
  height: 24px;
}

.youtube-link:hover {
  filter: drop-shadow(0 0 8px #ff0000);
  transform: scale(1.05);
}

/* Quote section with glitch effect and fade transition */
.quote-section {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 3rem;
  color: #32cd32;
  position: relative;
  font-weight: 700;
  user-select: none;
}

.glitch-text {
  position: relative;
  color: #32cd32;
  text-transform: uppercase;
  animation: glitchAnim 2s infinite;
  transition: opacity 0.8s ease;
  opacity: 1;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0.8;
}

.glitch-text::before {
  animation: glitchAnimBefore 2s infinite;
  top: -2px;
  color: #00ff00;
}

.glitch-text::after {
  animation: glitchAnimAfter 2s infinite;
  top: 2px;
  color: #90ee90;
}

@keyframes glitchAnim {
  0%,
  100% {
    text-shadow: 2px 0 #00ff00, -2px 0 #32cd32;
  }
  50% {
    text-shadow: 2px 2px #32cd32, -2px -2px #00ff00;
  }
}

@keyframes glitchAnimBefore {
  0%,
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(0);
  }
  50% {
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(-3px, -3px);
  }
}

@keyframes glitchAnimAfter {
  0%,
  100% {
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(0);
  }
  50% {
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(3px, 3px);
  }
}

/* Footer styling */
footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #32cd32;
  text-shadow: 0 0 3px #00ff00;
  margin-top: 3rem;
}

/* Contact page Snapchat row */
.contact-container .contact p.snapchat-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  justify-content: center;
}

.snapchat-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.snapchat-username {
  line-height: 20px;
}

/* Responsive for Hamburger */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* Make nav links hidden initially for mobile */
  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    height: calc(100% - 60px);
    width: 220px;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 10px #00ff00;
    border-left: 2px solid #00ff00;
    z-index: 25;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  /* Bigger font for mobile nav */
  .nav-links li a {
    font-size: 1.5rem;
    padding: 12px 16px;
  }

  /* Push Contact to bottom of nav */
  .contact-mobile {
    margin-top: auto;
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
    border-top: 1px solid #00ff00;
    padding-top: 1rem;
  }

  .container {
    padding-top: 80px;
  }
}

/* Nav link hover underline animation (desktop) */
.nav-links li a {
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #32cd32;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* YouTube icon resizing on mobile */
.youtube-link img {
  width: 32px;
  height: 24px;
  transition: width 0.3s ease;
}

@media (max-width: 480px) {
  .youtube-link img {
    width: 24px;
    height: 18px;
  }
}
