:root {
  --color-bg: #0f1115;
  --color-accent: #00fff7;
  --color-text: #ddd;
  --color-text-muted: #888;
  --color-border: #333;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: var(--color-text);
  line-height: 1.7;
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

#particles-js {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--color-bg);
}

.profile-pic {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  margin-bottom: 20px;
  box-shadow: 0 0 10px var(--color-accent);
}

header {
  padding: 140px 20px 20px;
  text-align: center;
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  color: var(--color-accent);
}

header p {
  font-size: 1.2rem;
  margin-top: 10px;
}

section::before {
  content: '';
  display: block;
  height: 10px;
  margin-top: -10px; 
}

section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 60px;
  margin-bottom: 20px;
}

.timeline-item {
  margin-bottom: 30px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill {
  background: #1a1d22;
  border: 2px solid var(--color-accent);
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 1.05rem;
}

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

.project-card {
  background: #1a1d22;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  border: 1px solid var(--color-border);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid #222;
  z-index: 1000;
  font-size: 1rem;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  padding: 10px 15px;
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-accent);
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
}

/* Mobile Styles (bis 1024px) */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: var(--color-bg);
    width: 200px;
    height: calc(100% - 60px);
    flex-direction: column;
    padding-top: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 8px rgba(0,0,0,0.5);
    display: flex;
  }
  
  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    margin-bottom: 20px;
  }

  .menu-toggle {
    display: block;
    z-index: 1100;
  }
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.navbar a {
  color: #ccc;
  text-decoration: none;
  padding: 10px 15px;
  transition: color 0.3s;
  font-weight: 500;
}

.navbar a:hover,
.navbar a.active {
  color: var(--color-accent);
}

.timeline {
  position: relative;
  margin-left: 20px;
  border-left: 2px solid var(--color-accent);
  padding-left: 30px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
}

.timeline-date {
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 5px;
}

.timeline-content {
  font-size: 1.3rem;
  line-height: 1.5;
}


 .skill {
    margin: 7px;
    display: inline-block;
    animation: pulse 1.5s infinite alternate;
  }
  .skill:nth-child(2) { animation-delay: 0.2s; }
  .skill:nth-child(3) { animation-delay: 0.4s; }
  .skill:nth-child(4) { animation-delay: 0.6s; }
  .skill:nth-child(5) { animation-delay: 0.8s; }

  @keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.1); opacity: 1; }
  }

