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

body {
  font-family: "JetBrains Mono", "Courier New", monospace;
  background: #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid #00ff88;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease;
  mix-blend-mode: difference;
}

.cursor.hover {
  transform: scale(2);
  border-color: #ff0080;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 50px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

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

#three-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 10;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #00ff88, #0088ff, #ff0080);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
}

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

.hero p {
  font-size: 1.5rem;
  color: #cccccc;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-button {
  padding: 15px 30px;
  background: transparent;
  border: 2px solid #00ff88;
  color: #00ff88;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: #00ff88;
  color: #0a0a0a;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

/* Sections */
.section {
  min-height: 100vh;
  padding: 100px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.container {
  max-width: 1200px;
  width: 100%;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 50px;
  text-align: center;
  color: #00ff88;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.section.visible .section-title {
  opacity: 1;
  transform: translateY(0);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease 0.2s;
}

.section.visible .about-text {
  opacity: 1;
  transform: translateX(0);
}

.about-text h3 {
  color: #ff0080;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.about-text p {
  line-height: 1.8;
  color: #cccccc;
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 20px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 10px;
  background: rgba(0, 255, 136, 0.05);
  transition: all 0.3s ease;
}

.stat:hover {
  border-color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  color: #00ff88;
  font-weight: bold;
}

.stat-label {
  color: #cccccc;
  margin-top: 10px;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.skill-card {
  padding: 30px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.1),
    rgba(0, 136, 255, 0.1)
  );
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
}

.section.visible .skill-card {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:nth-child(1) {
  transition-delay: 0.1s;
}
.skill-card:nth-child(2) {
  transition-delay: 0.2s;
}
.skill-card:nth-child(3) {
  transition-delay: 0.3s;
}
.skill-card:nth-child(4) {
  transition-delay: 0.4s;
}
.skill-card:nth-child(5) {
  transition-delay: 0.5s;
}
.skill-card:nth-child(6) {
  transition-delay: 0.6s;
}

.skill-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.skill-card h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.skill-card p {
  color: #cccccc;
  line-height: 1.6;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: scale(0.9);
}

.section.visible .project-card {
  opacity: 1;
  transform: scale(1);
}

.project-card:hover {
  transform: scale(1.05);
  border-color: #00ff88;
  box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
}

.project-image {
  height: 200px;
  background: linear-gradient(45deg, #ff0080, #0088ff);
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.project-content p {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tech-tag {
  padding: 5px 12px;
  background: rgba(0, 255, 136, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  color: #0088ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Contact Section */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

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

.contact-item {
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.section.visible .contact-item {
  opacity: 1;
  transform: translateY(0);
}

.contact-item:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: #00ff88;
  transform: translateY(-5px);
}

.contact-item h4 {
  color: #00ff88;
  margin-bottom: 10px;
}

.contact-item a {
  color: #cccccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item a:hover {
  color: #00ff88;
}

/* Floating Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #00ff88;
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00ff88, #0088ff, #ff0080);
  z-index: 1001;
  transition: width 0.1s ease;
}

/* Glitch Effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch1 0.5s infinite;
  color: #ff0080;
  z-index: -1;
}

.glitch::after {
  animation: glitch2 0.5s infinite;
  color: #0088ff;
  z-index: -2;
}

@keyframes glitch1 {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

@keyframes glitch2 {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(2px, 2px);
  }
  40% {
    transform: translate(2px, -2px);
  }
  60% {
    transform: translate(-2px, 2px);
  }
  80% {
    transform: translate(-2px, -2px);
  }
}

/* Matrix Rain Effect */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  .about-content {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  nav {
    padding: 15px 20px;
  }
  .section {
    padding: 80px 20px;
  }
}

/* Terminal Window */
.terminal {
  background: #1a1a1a;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 20px;
  font-family: "Courier New", monospace;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}
.dot-yellow {
  background: #ffbd2e;
}
.dot-green {
  background: #27ca3f;
}

.terminal-content {
  color: #00ff88;
}

.typing {
  overflow: hidden;
  border-right: 2px solid #00ff88;
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

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

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #00ff88;
  }
}
