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

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap');

html, body {
  height: 100%;
  font-family: 'Rajdhani', sans-serif;
  background-color: #050510;
  color: #fff;
  overflow-x: hidden;
}

/* Particles background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #050510 0%, #0a0a2a 100%);
  z-index: -1;
}

/* Custom cursor */
* {
  cursor: none;
}

.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid #ff00ff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.2s ease;
}

.cursor-follower {
  width: 8px;
  height: 8px;
  background-color: #00ffff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s ease;
}

/* Menu button */
.menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-btn:hover {
  transform: scale(1.1);
  border-color: #ff00ff;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.menu-btn i {
  color: #fff;
  font-size: 24px;
}

/* Sidebar styles */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: rgba(5, 5, 20, 0.8);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 80px 0 20px;
  z-index: 100;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
}

.sidebar.open {
  right: 0;
}

.logo {
  padding: 10px 30px;
  font-size: 24px;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  color: #fff;
  margin-bottom: 30px;
  text-shadow: 0 0 10px #00ffff;
}

nav ul {
  list-style: none;
}

nav ul li {
  margin: 10px 0;
}

nav ul li a {
  display: block;
  padding: 15px 30px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

nav ul li a:before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff00ff, #00ffff);
  transition: width 0.3s ease;
}

nav ul li a:hover:before, nav ul li a.active:before {
  width: 100%;
}

nav ul li a:hover, nav ul li a.active {
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.discord-link, .github-link {
  display: flex;
  align-items: center;
}

.discord-link i, .github-link i {
  margin-right: 15px;
  font-size: 20px;
  background: linear-gradient(45deg, #ff00ff, #00ffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Main content */
main {
  margin-left: 0;
  padding: 40px;
  min-height: 100vh;
}

/* Hero section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
  animation: pulse 8s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 0.7; transform: scale(1.2); }
}

.hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient 3s linear infinite;
}

@keyframes gradient {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.name {
  margin-top: -10px;
  position: relative;
}

.name:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: linear-gradient(90deg, #ff00ff, #00ffff);
}

.wave {
  display: inline-block;
  animation: wave 1.5s infinite;
  filter: hue-rotate(0deg);
  animation: wave 1.5s infinite, hue-rotate 3s linear infinite;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

@keyframes hue-rotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.title {
  font-size: 3.5rem;
  margin: 30px 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 300;
}

.highlight {
  color: #fff;
  background: linear-gradient(45deg, #ff00ff, #00ffff);
  padding: 5px 20px;
  border-radius: 5px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.highlight:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

.typing-container {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.typing-text {
  font-size: 1.8rem;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  position: relative;
}

.typing-text::after {
  content: '|';
  position: absolute;
  right: -10px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0; }
}

.bio {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #ccc;
  margin: 30px auto;
  max-width: 700px;
  position: relative;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
  min-width: 180px;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ff00ff, #00ffff);
  opacity: 1;
  z-index: -1;
  transition: all 0.4s ease;
}

.btn:after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 28px;
  z-index: -1;
  transition: all 0.4s ease;
}

.btn:hover:after {
  opacity: 0.5;
}

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 0, 255, 0.3);
  color: #fff;
}

.discord-btn {
  color: #fff;
}

.discord-btn:before {
  background: linear-gradient(45deg, #5865F2, #00ffff);
}

.project-btn {
  color: #fff;
}

.project-btn:before {
  background: linear-gradient(45deg, #ff00ff, #ffcc00);
}

.github-btn {
  color: #fff;
}

.github-btn:before {
  background: linear-gradient(45deg, #24292e, #6e5494);
}

.btn i {
  margin-right: 10px;
  font-size: 18px;
}

/* Projects section */
.projects {
  padding: 100px 0;
  text-align: center;
}

.projects h2 {
  font-size: 3rem;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}

.projects h2:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ff00ff, #00ffff);
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: rgba(10, 10, 30, 0.5);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  z-index: 1;
}

.project-card:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(255, 0, 255, 0.3), transparent 30%);
  animation: rotate 10s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  100% { transform: rotate(1turn); }
}

.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 0, 255, 0.3);
}

.project-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(90deg, #ff00ff, #00ffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.project-card p {
  color: #ccc;
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 1.1rem;
}

.project-link {
  display: inline-block;
  color: #00ffff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid #00ffff;
  border-radius: 30px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.project-link:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #00ffff;
  transition: all 0.3s ease;
  z-index: -1;
}

.project-link:hover {
  color: #000;
}

.project-link:hover:before {
  width: 100%;
}

.project-link.disabled {
  color: #666;
  border-color: #666;
  cursor: not-allowed;
}

.project-link.disabled:hover:before {
  width: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.scroll-indicator p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator .mouse {
  width: 30px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 20px;
  position: relative;
}

.scroll-indicator .mouse:before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
  0% { top: 10px; opacity: 1; }
  100% { top: 30px; opacity: 0; }
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Responsive design */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .title {
    font-size: 3rem;
  }
  
  .project-cards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .bio {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 10px 25px;
    min-width: 160px;
  }
}

@media (max-width: 576px) {
  main {
    padding: 20px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .project-cards {
    grid-template-columns: 1fr;
  }
  
  .typing-text {
    font-size: 1.5rem;
  }
}
