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

body {
  background: #0a0a0a;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
}

#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  color: #00ffe1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 9999;
}

.glitch-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid transparent;
  border-top: 4px solid #00ffe1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-bar {
  width: 80%;
  height: 10px;
  background: #333;
  border-radius: 5px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0;
  background: #00ffe1;
  transition: width 0.3s;
}

#welcomePopup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1a1a;
  color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px cyan;
  text-align: center;
  display: none;
  z-index: 10000;
}

#welcomePopup button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: cyan;
  color: black;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

.hero {
  height: 100vh;
  background: linear-gradient(-45deg, #ff0040, #00ffe1, #0040ff, #00ff40);
  background-size: 400% 400%;
  animation: bgRGB 10s ease infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@keyframes bgRGB {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.hero-img {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.rgb-text {
  font-size: 4rem;
  background: linear-gradient(45deg, red, blue, limegreen);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite, bounceIn 1s ease-out;
}

@keyframes shine {
  0% {background-position: 0%;}
  100% {background-position: 100%;}
}

.hero-subtitle {
  margin-top: 10px;
}

.btn-glow {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  border-radius: 12px;
  background: #00ffe1;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 20px #00ffe1;
  transition: 0.3s ease;
}

.btn-glow:hover {
  background: #0040ff;
  color: #fff;
  box-shadow: 0 0 30px #0040ff;
}

section {
  padding: 60px 30px;
  max-width: 1000px;
  margin: auto;
}

.section-title {
  font-size: 2.5rem;
  color: #00ffe1;
  text-align: center;
  margin-bottom: 20px;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  color: #ccc;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skill-box {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,255,255,0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0,255,255,0.6);
}

footer {
  background: #111;
  padding: 30px;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}