@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

:root {
  --artaud-green: #2e443f;   
  --artaud-yellow: #d6b928;  
  --artaud-black: #0d0d0d;  
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto Mono', monospace;
  background: var(--artaud-black);
  color: #f5f5f5;
  overflow-x: hidden;
}

header {
  text-align: center;
  padding: 4rem 1rem 2rem;
  border-bottom: 2px solid var(--artaud-yellow);
}

header h1 {
  font-size: 3rem;
  color: var(--artaud-yellow);
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(214,185,40,0.8);
  margin: 1rem 0 0.5rem;
}

header p {
  font-size: 1.2rem;
  color: #ccc;
}

.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid var(--artaud-yellow);
  box-shadow: 0 0 20px rgba(214,185,40,0.8);
  object-fit: cover;
  margin-bottom: 1rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.socials a {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--artaud-green);
  color: var(--artaud-yellow);
  text-decoration: none;
  font-size: 1.8rem;
  transition: 0.3s;
  border: 2px solid var(--artaud-yellow);
}

.socials a[href*="twitter"]:hover {
  background: #1DA1F2;
  color: #fff;
  border-color: #1DA1F2;
  box-shadow: 0 0 20px #1DA1F2;
  transform: scale(1.15) rotate(-5deg);
}

.socials a[href*="instagram"]:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  border: 2px solid #d6249f;
  box-shadow: 0 0 20px #d6249f;
  transform: scale(1.15) rotate(-5deg);
}

.socials a[href*="github"]:hover {
  background: #333;
  color: #fff;
  border-color: #333;
  box-shadow: 0 0 20px #555;
  transform: scale(1.15) rotate(-5deg);
}

.socials a[href*="spotify"]:hover {
  background: #1DB954;
  color: #fff;
  border-color: #1DB954;
  box-shadow: 0 0 20px #1DB954;
  transform: scale(1.15) rotate(-5deg);
}

.socials a:hover {
  background: var(--artaud-yellow);
  color: var(--artaud-black);
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 0 20px var(--artaud-yellow);
}


.nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.nav-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--artaud-green), rgba(46,68,63,0.8));
  color: var(--artaud-yellow);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  border: 2px solid var(--artaud-yellow);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(214,185,40,0.3);
  position: relative;
  overflow: hidden;
}

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

.nav-button:hover::before {
  left: 100%;
}

.nav-button:hover {
  background: var(--artaud-yellow);
  color: var(--artaud-black);
  transform: scale(1.1) rotate(-2deg) translateY(-2px);
  box-shadow: 0 0 20px rgba(214,185,40,0.8), 0 0 30px rgba(214,185,40,0.4);
}


.about {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(46,68,63,0.2);
  border: 1px solid var(--artaud-green);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(214,185,40,0.2);
}

.about h2 {
  font-size: 2rem;
  color: var(--artaud-yellow);
  margin-bottom: 1rem;
}

.about p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #aaa;
  font-size: 0.9rem;
  border-top: 2px solid var(--artaud-yellow);
  margin-top: 3rem;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at center, rgba(46,68,63,0.3), transparent 70%);
  animation: pulse 6s infinite alternate;
}

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


#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.projects {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.projects h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--artaud-yellow);
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(214,185,40,0.8);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.project-card {
  background: rgba(46, 68, 63, 0.25);
  border: 1px solid var(--artaud-green);
  border-radius: 12px;
  padding: 1.6rem;
  transition: 0.25s ease;
  box-shadow: 0 0 15px rgba(214,185,40,0.15);
  animation: fadeInUp 0.6s ease-out;
}

.project-card:hover {
  border-color: var(--artaud-yellow);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 25px rgba(214,185,40,0.35), 0 0 50px rgba(214,185,40,0.2);
}

.project-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--artaud-yellow);
  margin-bottom: 0.8rem;
}

.project-card p {
  margin: 0;
  color: #ddd;
  line-height: 1.5;
  font-size: 0.95rem;
}

.contact {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(46,68,63,0.2);
  border: 1px solid var(--artaud-green);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 20px rgba(214,185,40,0.15);
}

.contact h2 {
  color: var(--artaud-yellow);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact p {
  color: #ccc;
  font-size: 1rem;
}

.contact .mail {
  font-size: 1.3rem;
  margin-top: 1rem;
  color: var(--artaud-yellow);
  text-shadow: 0 0 10px rgba(214,185,40,0.8);
}


.badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem; 
  font-size: 0.875rem; 
  font-weight: 600;
  border-radius: 9999px; 
  border: 2px solid;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

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

.badge:hover::before {
  left: 100%;
}

.badge:hover {
  transform: scale(1.1) translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 12px currentColor;
}


.badge-java {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 255, 255, 0.1)); 
  color: #00ffff;
  border-color: #00ffff;
}

.badge-paper {
  background: linear-gradient(135deg, rgba(46, 68, 63, 0.3), rgba(46, 68, 63, 0.1)); 
  color: var(--artaud-green);
  border-color: var(--artaud-green);
}

.badge-fabric {
  background: linear-gradient(135deg, rgba(214, 185, 40, 0.3), rgba(214, 185, 40, 0.1)); 
  color: var(--artaud-yellow);
  border-color: var(--artaud-yellow);
}

.badge-html {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(255, 165, 0, 0.1)); 
  color: #ffa500;
  border-color: #ffa500;
}

.badge-css {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(0, 123, 255, 0.1)); 
  color: #007bff;
  border-color: #007bff;
}

.badge-js {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 193, 7, 0.1)); 
  color: #ffc107;
  border-color: #ffc107;
}

.badge-hytale {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(255, 0, 255, 0.1)); 
  color: #ff00ff;
  border-color: #ff00ff;
}

.badge-node {
  background: linear-gradient(135deg, rgba(104, 160, 99, 0.3), rgba(104, 160, 99, 0.1)); 
  color: #68a063;
  border-color: #68a063;
}

.lang-button {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--artaud-green), rgba(46,68,63,0.8));
  border: 2px solid var(--artaud-yellow);
  box-shadow: 0 0 10px rgba(214,185,40,0.3);
  transition: all 0.3s ease;
  animation: langButtonGlow 2s ease-in-out infinite alternate;
}

@keyframes langButtonGlow {
  0% { box-shadow: 0 0 10px rgba(214,185,40,0.3); }
  100% { box-shadow: 0 0 15px rgba(214,185,40,0.6); }
}

.lang-button:hover {
  background: var(--artaud-yellow);
  color: var(--artaud-black);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(214,185,40,0.8), 0 0 30px rgba(214,185,40,0.4);
}

.lang-button:active {
  transform: scale(0.95) rotate(5deg);
}

.lang-button:focus {
  outline: 2px solid var(--artaud-yellow);
  outline-offset: 2px;
}

.project-image {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-radius: 8px;
    transition: 0.3s ease;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }
.project-card:nth-child(9) { animation-delay: 0.9s; }
.project-card:nth-child(10) { animation-delay: 1.0s; }
.project-card:nth-child(11) { animation-delay: 1.1s; }

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

#parallaxCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
}


@media (max-width: 768px) {
  header {
    padding: 2rem 1rem 1rem;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1rem;
  }

  .profile-pic {
    width: 100px;
    height: 100px;
  }

  .socials {
    gap: 1rem;
  }

  .socials a {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav-button {
    padding: 8px 16px;
    font-size: 1rem;
  }

  .about {
    max-width: 90%;
    padding: 1.5rem;
    margin: 2rem auto;
  }

  .about h2 {
    font-size: 1.8rem;
  }

  .about p {
    font-size: 0.95rem;
  }

  .projects {
    max-width: 95%;
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .projects h2 {
    font-size: 1.8rem;
  }

  .project-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card {
    padding: 1rem;
  }

  .project-card h3 {
    font-size: 1.1rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }

  .contact {
    max-width: 90%;
    padding: 1.5rem;
    margin: 2rem auto;
  }

  .contact h2 {
    font-size: 1.8rem;
  }

  .contact p {
    font-size: 0.95rem;
  }

  .contact .mail {
    font-size: 1.1rem;
  }

  .badges {
    gap: 0.4rem;
  }

  .badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 0.9rem;
  }

  .profile-pic {
    width: 80px;
    height: 80px;
  }

  .socials {
    gap: 0.8rem;
  }

  .socials a {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .nav-button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .about h2 {
    font-size: 1.5rem;
  }

  .about p {
    font-size: 0.9rem;
  }

  .projects h2 {
    font-size: 1.5rem;
  }

  .project-card h3 {
    font-size: 1rem;
  }

  .project-card p {
    font-size: 0.85rem;
  }

  .contact h2 {
    font-size: 1.5rem;
  }

  .contact p {
    font-size: 0.9rem;
  }

  .contact .mail {
    font-size: 1rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
  }
}