/* style.css */
/* Particle canvas behind content */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: transparent;
}

/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  color: #e6edf3;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

/* Content wrapper */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  text-align: center;
}

/* Header */
header {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: bold;
  color: #58a6ff;
  text-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease-out;
}

/* Projects list */
.projects {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 400px;
}

.projects a {
  color: #e6edf3;
  background: linear-gradient(145deg, #161b22, #1f2428);
  padding: 18px 25px;
  border: 1px solid #30363d;
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.projects a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.projects a:hover {
  background: linear-gradient(145deg, #2b71c2, #58a6ff);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(35,134,54,0.3);
  border-color: #58a6ff;
  filter: blur(0.5px);
}

.projects a:hover::before {
  left: 100%;
}

.projects a:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(35,134,54,0.4);
}

/* Footer */
footer {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #8b949e;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

/* Responsive */
@media (max-width: 768px) {
  .content { padding: 15px; }
  header {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }
  .projects {
    gap: 15px;
    padding: 0 10px;
  }
  .projects a {
    padding: 16px 20px;
    font-size: 1rem;
    border-radius: 12px;
  }
  footer { margin-top: 20px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .content { padding: 10px; }
  header { margin-bottom: 15px; }
  .projects { gap: 12px; }
  .projects a {
    padding: 14px 18px;
    font-size: 0.95rem;
    border-radius: 10px;
  }
  footer { margin-top: 15px; }
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Accessibility focus */
.projects a:focus {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
}

/* Staggered animation for projects */
.projects a {
  animation: fadeInUp 0.6s ease-out both;
}
.projects a:nth-child(1) { animation-delay: 0.1s; }
.projects a:nth-child(2) { animation-delay: 0.2s; }
.projects a:nth-child(3) { animation-delay: 0.3s; }
.projects a:nth-child(4) { animation-delay: 0.4s; }
