@font-face {
  font-family: 'EduTAS';
  src: url('fonts/EduTASBeginner-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #0e0e10;
  --fg: #ffffff;
  --accent: #FFA6C9;
  --radius: 18px;
  --font: 'EduTAS', sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  overflow-x: hidden;
  scroll-behavior: smooth;
  cursor: none; /* hide default cursor */
}

/* Custom cursor circle */
#cursor-circle {
  position: fixed;
  top: 0; left: 0;
  width: 1rem; height: 1rem;
  background: var(--accent);
  border: 2px solid var(--fg);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
  transition: transform 0.1s ease-out, background 0.2s;
  z-index: 10000;
}

/* Scroll-to-Top */
#scrollTop {
  display: none;
  position: fixed;
  right: 1rem; bottom: 1rem; z-index: 999;
  background: var(--accent);
  border: none; border-radius: 50%;
  width: 3rem; height: 3rem;
  font-size: 1.2rem; cursor: pointer;
  opacity: 0.8; transition: opacity 0.3s;
}
#scrollTop:hover {
  opacity: 1;
}

/* Reveal sections */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Banner & Snowflakes */
#banner {
  position: relative;
  max-height: 60vh;
  overflow: hidden;
}
#banner-img {
  width: 100%; height: 100%;
  object-fit: cover; max-height: 600px;
  filter: brightness(0.6);
}
#snow-container {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; pointer-events: none; z-index: 5;
}
.snowflake {
  position: absolute; top: -1rem;
  width: 1rem; height: 1rem;
  background-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation-name: fall; animation-timing-function: linear;
}
@keyframes fall {
  0%   { transform: translateY(-1rem); }
  100% { transform: translateY(110vh); }
}

/* Hero Overlay */
#hero-overlay {
  position: absolute; top:50%; left:50%;
  transform: translate(-50%,-50%); text-align:center;
}
#hero-overlay img {
  width: 80px; border-radius: var(--radius);
  box-shadow: 0 0 20px var(--accent);
}
#hero-overlay h1 {
  margin: .5rem 0; font-size: 2.5rem;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
  animation: glow 2s infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 5px var(--accent); }
  to   { text-shadow: 0 0 20px var(--accent); }
}
#hero-overlay p {
  opacity: 0.8;
}

/* Section Titles */
h2 {
  text-align: center;
  color: var(--accent);
  margin: 3rem 0 1rem;
}

/* About */
#about .about-content {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 2rem; max-width: 800px; margin: 0 auto;
}
#about img {
  width: 150px; height: 150px; object-fit: cover;
  border-radius: 50%; border: 4px solid var(--accent);
}
.fancy-underline {
  width: 50px; height: 4px; background: var(--accent);
  margin-top: .5rem; border-radius: 2px;
  animation: scaleIn 0.6s ease forwards;
}
@keyframes scaleIn {
  from { transform: scaleX(0); } to { transform: scaleX(1); }
}

/* Skills */
.skills-list {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; padding: 1rem;
}
.skills-list li {
  background: #1a1a1e; padding: .8rem 1.2rem;
  border-radius: var(--radius); border: 2px solid var(--accent);
  font-weight: bold; animation: fadeIn 0.8s both;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* Projects & Filters */
#filters {
  text-align: center; margin-bottom: 1rem;
}
#filters button {
  background: #1a1a1e; color: var(--fg);
  border: 2px solid var(--accent); border-radius: var(--radius);
  padding: .5rem 1rem; margin: .2rem; cursor: pointer;
  transition: background .3s, transform .2s;
}
#filters button:hover {
  transform: scale(1.05);
}
#filters .active {
  background: var(--accent); color: var(--bg);
}

/* Project Cards */
.cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: center; padding: 1rem;
}
.card {
  background: #1a1a1e;
  border-radius: var(--radius);
  overflow: visible;
  position: relative;
  perspective: 1000px;
  transition: box-shadow .3s;
  animation: fadeInUp 0.8s both;
  display: flex; flex-direction: column;
}
.card-inner {
  flex: 1; padding-bottom: 1rem;
  display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.card img {
  width: 100%; border-bottom: 2px solid var(--accent);
  flex-shrink: 0;
}
.card h3, .card p {
  margin: .5rem 1rem;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Favorite Songs */
.playlist-btn-wrap {
  text-align: center; margin-bottom: 1rem;
}
#playlist-btn {
  background: var(--accent); color: var(--bg);
  padding: .6rem 1.2rem; border: none; border-radius: var(--radius);
  font-weight: bold; text-decoration: none; transition: opacity .3s;
}
#playlist-btn:hover {
  opacity: .8;
}
.songs-list {
  list-style: none; padding: 0; margin: 0 auto 2rem;
  max-width: 800px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.songs-list li {
  background: #1a1a1e; padding: 1rem;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 1rem;
  animation: fadeIn .8s both;
}
.songs-list img {
  width: 50px; height: 50px; object-fit: cover;
  border-radius: 8px; border: 2px solid var(--accent);
}
.songs-list a {
  color: var(--accent); text-decoration: none;
  font-weight: bold;
}

/* Now Playing */
#nowplaying-wrapper {
  text-align: center; margin-top: 1.5rem;
}
#nowplaying-wrapper h3 {
  color: var(--accent); font-size: 1.5rem; margin-bottom: .5rem;
}
.spotify-embed {
  max-width: 800px; margin: 0 auto 2rem;
}

/* Timeline & Achievements */
#timeline ul, .achievements-list {
  list-style: none; padding: 1rem; max-width: 800px; margin: 0 auto;
}
#timeline li, .achievements-list li {
  background: #1a1a1e; margin: .5rem 0; padding: 1rem;
  border-radius: var(--radius); border-left: 4px solid var(--accent);
  animation: fadeIn .8s both;
}

/* Contact & Guns.lol */
#contact {
  text-align: center; padding: 2rem 1rem; margin-top: 2rem;
}
#contact a {
  display: inline-block; margin: .5rem; padding: .6rem 1.2rem;
  background: var(--accent); color: var(--bg); border-radius: var(--radius);
  text-decoration: none; font-weight: bold; transition: opacity .3s;
}
#contact a:hover {
  opacity: .8;
}

/* Modal */
.modal {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: #1a1a1e; padding: 2rem; border-radius: var(--radius);
  max-width: 500px; width: 90%; text-align: center;
  animation: scaleIn 0.3s both;
}
.modal-content img {
  max-width: 100%; border-radius: var(--radius); margin-bottom: 1rem;
}
.modal-content h3 {
  margin-bottom: .5rem; color: var(--accent);
}
.modal-content p {
  margin-bottom: 1rem;
}
.modal-content a {  
  background: var(--accent); color: var(--bg);
  padding: .6rem 1.2rem; text-decoration: none;
  border-radius: var(--radius); font-weight: bold;
}
.close {
  position: absolute; top: .5rem; right: .5rem;
  font-size: 1.5rem; cursor: pointer; color: var(--fg);
}
@keyframes scaleIn {
  from { transform: scale(0.8); } to { transform: scale(1); }
}
