@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  color: #00ffe7;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: radial-gradient(circle at top, #0f0f0f, #1a1a1a);
}

canvas#stars {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  background: transparent;
}

.navbar.glass {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 0;
  text-align: center;
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  display: inline;
  margin: 0 20px;
}

.navbar a {
  color: #00ffe7;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
  color: #ff00c8;
  transform: scale(1.1);
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.glitch {
  font-size: 4rem;
  position: relative;
  color: #00ffe7;
  animation: glitch 1s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  color: #ff00c8;
  clip: rect(0, 0, 0, 0);
}

.glitch::before {
  animation: glitchTop 1s infinite;
}

.glitch::after {
  animation: glitchBottom 1s infinite;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitchTop {
  0% { clip: rect(0, 9999px, 0, 0); }
  50% { clip: rect(0, 9999px, 50px, 0); }
  100% { clip: rect(0, 9999px, 0, 0); }
}

@keyframes glitchBottom {
  0% { clip: rect(0, 9999px, 0, 0); }
  50% { clip: rect(50px, 9999px, 100px, 0); }
  100% { clip: rect(0, 9999px, 0, 0); }
}

.tagline {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #ccc;
  animation: fadeIn 2s ease forwards;
}

.section {
  position: relative;
  padding: 60px 20px;
  max-width: 800px;
  margin: 60px auto;
  background: linear-gradient(to bottom, #111, #222);
  border: 2px solid #00ffe7;
  box-shadow: 0 0 20px #00ffe7;
  font-family: 'Courier New', monospace;
  color: #00ffe7;
  opacity: 0;
  transform: scale(0.95) translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  z-index: 1;
}

.section.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}


.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.skills-grid span {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.skills-grid span:hover {
  background: #00ffe7;
  color: #000;
  transform: scale(1.1);
}

.decorative {
  position: absolute;
  opacity: 0;
  transform: translateY(50px) scale(0.8);
  transition: all 1.2s ease;
  pointer-events: none;
  z-index: 0;
}

.section.visible .decorative {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 💻 Coding-themed decorative elements */
.floating-chip {
  width: 80px;
  height: 80px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/https://share.google/images/t3W6DhRBR8hZrmJLL/3f/Integrated_circuit_chip_icon.png');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,255,255,0.3), inset -10px -10px 20px rgba(0,0,0,0.4);
  top: 30px;
  left: 10%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.floating-terminal {
  width: 80px;
  height: 80px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/d/da/GNOME_Terminal_icon_2019.svg/800px-GNOME_Terminal_icon_2019.svg.png?20190330144527');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255,0,255,0.3), inset -10px -10px 20px rgba(0,0,0,0.4);
  top: 60px;
  right: 15%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.floating-code {
  width: 80px;
  height: 80px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/6/6f/Code_icon.png');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,255,127,0.3), inset -10px -10px 20px rgba(0,0,0,0.4);
  top: 40px;
  left: 70%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.decorative:hover {
  transform: rotateY(15deg) rotateX(10deg) scale(1.05);
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: #888;
}

@keyframes orbit {
  0%   { transform: rotate(0deg) translateX(60px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

.orbiting {
  animation: orbit 10s linear infinite;
  transform-origin: center center;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #00ffe7;
  cursor: pointer;
  position: absolute;
  left: 20px;
  z-index: 1001;
}

.nav-links {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    display: none;
    padding: 20px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }
}

#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  color: #00ffe7;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  z-index: 9999;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  pointer-events: none;
}

#intro-screen.ready {
  pointer-events: auto;
}

.intro-text {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}


