:root {
  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a1a;
  --accent-green: #00ff41;
  --accent-blue: #00d4ff;
  --accent-red: #ff0040;
  --accent-purple: #bf00ff;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --glow-color: #00ff4180;
  --terminal-green: #00ff00;
}

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

body {
  font-family: "Orbitron", monospace;
  background: var(--primary-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
}

.cursor::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent-green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Loading Screen */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s;
}

.loader-content {
  text-align: center;
}

.loader-text {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--accent-green);
}

.progress-bar {
  width: 300px;
  height: 4px;
  background: var(--secondary-dark);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  width: 0%;
  transition: width 0.3s;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 2px 20px rgba(0, 255, 65, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-green);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-green);
  text-shadow: 0 0 10px var(--glow-color);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--glow-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent-green);
  margin: 3px 0;
  transition: 0.3s;
}

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

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--accent-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border: 2px solid var(--accent-green);
  background: transparent;
  color: var(--accent-green);
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--accent-green);
  color: var(--primary-dark);
  box-shadow: 0 0 30px var(--glow-color);
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn-secondary:hover {
  background: var(--accent-blue);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* Sections */
.section {
  padding: 100px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-green);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
}

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

.about-image {
  position: relative;
}

.profile-img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  border: 3px solid var(--accent-green);
  box-shadow: 0 0 30px var(--glow-color);
  filter: grayscale(100%);
  transition: all 0.3s;
}

.profile-img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.education-info {
  background: var(--secondary-dark);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--accent-blue);
  margin-top: 2rem;
}

.education-item {
  color: var(--text-secondary);
  line-height: 1.6;
}

.education-item strong {
  color: var(--text-primary);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--secondary-dark);
  border-radius: 10px;
  border: 1px solid var(--accent-green);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-green);
  display: block;
}

.stat-label {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.skill-category {
  background: var(--secondary-dark);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--accent-green);
  transition: all 0.3s;
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 65, 0.1);
}

.category-title {
  font-size: 1.5rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.skill-name {
  font-weight: 600;
}

.skill-level {
  width: 100px;
  height: 6px;
  background: var(--primary-dark);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  border-radius: 3px;
  transition: width 2s ease-in-out;
}

/* Terminal Section */
.terminal {
  background: #000;
  border-radius: 10px;
  padding: 1rem;
  margin: 3rem 0;
  font-family: "Fira Code", monospace;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--accent-green);
}

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

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

.terminal-content {
  color: var(--terminal-green);
  font-size: 0.9rem;
}

.terminal-line {
  margin-bottom: 0.5rem;
}

.terminal-prompt {
  color: var(--accent-blue);
}

.terminal-input {
  background: transparent;
  border: none;
  color: var(--terminal-green);
  font-family: inherit;
  outline: none;
  font-size: inherit;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--secondary-dark);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--accent-green);
  transition: all 0.3s;
  cursor: pointer;
}

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

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, var(--accent-green), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-dark);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent-green);
}

.project-description {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: var(--primary-dark);
  color: var(--accent-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid var(--accent-blue);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--accent-green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.project-link:hover {
  color: var(--accent-blue);
  transform: translateX(5px);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  background: var(--secondary-dark);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--accent-green);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-green);
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-dark);
  border: 1px solid var(--accent-green);
  border-radius: 5px;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 10px var(--glow-color);
  transform: translateY(-2px);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--secondary-dark);
  border-radius: 10px;
  border: 1px solid var(--accent-blue);
  transition: all 0.3s;
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.1);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent-blue);
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--secondary-dark);
  border: 1px solid var(--accent-green);
  border-radius: 50%;
  color: var(--accent-green);
  text-decoration: none;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--accent-green);
  color: var(--primary-dark);
  transform: translateY(-5px) rotate(360deg);
}

/* Footer */
.footer {
  background: var(--secondary-dark);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--accent-green);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent-green);
  color: var(--primary-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--glow-color);
}

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

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--secondary-dark);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: 0.3s;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@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);
  }
}

.glitch:hover {
  animation: glitch 0.3s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--glow-color);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 255, 65, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 65, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Matrix Background */
.matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.matrix-char {
  position: absolute;
  color: var(--accent-green);
  font-family: "Fira Code", monospace;
  font-size: 14px;
  opacity: 0.7;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-100vh);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Field validation styles */
.field-error {
  color: var(--accent-red);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Keyboard navigation styles */
.keyboard-navigation *:focus {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}
