/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #00ffff;
  --secondary-color: #ff00ff;
  --accent-color: #ffff00;
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --text-color: #ffffff;
  --text-secondary: #cccccc;
  --gradient-1: linear-gradient(45deg, #00ffff, #ff00ff);
  --gradient-2: linear-gradient(45deg, #ffff00, #00ffff);
  --gradient-3: linear-gradient(45deg, #ff00ff, #ffff00);
  --neon-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  --neon-shadow-pink: 0 0 20px rgba(255, 0, 255, 0.5);
  --neon-shadow-yellow: 0 0 20px rgba(255, 255, 0, 0.5);
}

body {
  font-family: "Rajdhani", sans-serif;
  background: var(--dark-bg);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.grid {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particles::before,
.particles::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: particle-float 6s infinite;
}

.particles::before {
  left: 10%;
  animation-delay: 0s;
}

.particles::after {
  left: 90%;
  animation-delay: 3s;
}

@keyframes grid-move {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes particle-float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0;
  }
  50% {
    transform: translateY(-100px) scale(1.5);
    opacity: 1;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

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

.nav-logo .logo-text {
  font-family: "Orbitron", monospace;
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--neon-shadow);
}

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

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
  text-shadow: var(--neon-shadow);
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-family: "Orbitron", monospace;
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  position: relative;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--neon-shadow);
}

.glitch {
  position: relative;
}

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

.glitch::before {
  animation: glitch-1 2s infinite;
  color: var(--secondary-color);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 2s infinite;
  color: var(--accent-color);
  z-index: -2;
}

@keyframes glitch-1 {
  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 glitch-2 {
  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);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

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

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: var(--neon-shadow);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: var(--text-color);
  box-shadow: var(--neon-shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

/* Code Terminal */
.code-terminal {
  background: var(--darker-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--neon-shadow);
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.terminal-header {
  background: #333;
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.5rem;
}

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

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

.terminal-content {
  padding: 1rem;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.code-line {
  margin-bottom: 0.5rem;
  animation: typewriter 0.1s steps(1) infinite;
}

.prompt {
  color: var(--primary-color);
}

.command {
  color: var(--text-color);
}

.output {
  color: var(--text-secondary);
  font-style: italic;
}

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

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

.section-title {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About Section */
.about {
  padding: 6rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

.education h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.education-item {
  background: rgba(0, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.education-item h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.skills-grid {
  display: grid;
  gap: 2rem;
}

.skill-category h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(255, 0, 255, 0.1);
  color: var(--secondary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 0, 255, 0.3);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(255, 0, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--neon-shadow-pink);
}

/* Experience Section */
.experience {
  padding: 6rem 0;
  background: rgba(0, 0, 0, 0.3);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-1);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: var(--neon-shadow);
  z-index: 2;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 1.5rem;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: 55%;
}

.experience-header h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.company {
  color: var(--secondary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.duration,
.location {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.3rem;
}

.experience-details {
  margin-top: 1rem;
  list-style: none;
}

.experience-details li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.experience-details li::before {
  content: "▸";
  color: var(--accent-color);
  position: absolute;
  left: 0;
}

/* Projects Section */
.projects {
  padding: 6rem 0;
}

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

.project-card {
  background: rgba(255, 0, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 255, 0.2);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--neon-shadow-pink);
}

.project-image {
  height: 200px;
  background: var(--gradient-3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

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

.project-link {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.project-tech {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent-color);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: rgba(0, 0, 0, 0.3);
}

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

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 0, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 0, 0.2);
  transition: all 0.3s ease;
}

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

.contact-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.contact-form {
  background: rgba(0, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 5px;
  color: var(--text-color);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--neon-shadow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--darker-bg);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

  .hero-text h1 {
    font-size: 2.5rem;
  }

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

  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
  }

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

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

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

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-2);
}
