/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hack', monospace;
  color: #e0e0e0;
  line-height: 1.6;
  padding: 20px;
  background-color: #000000;
}

/* Hero section */
.hero-wrapper {
  position: relative;
  display: block;
  height: fit-content;
  /* ensures the container hugs the content */
  overflow: hidden;
  border-radius: 30px;
  border: 3px solid #005555;
}


.bg-iframe {
  position: absolute;
  inset: 0;
  /* shorthand for top: 0; left: 0; right: 0; bottom: 0; */
  z-index: 0;
  width: 100%;
  height: 100%;
  /* opacity: 0.2; */
  pointer-events: none;
}


.hero {
  position: relative;
  z-index: 1;
  background: none;
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 40px;
}

.hero h1 {
  font-family: 'Hack', monospace;
  font-size: 3rem;
  color: #00dfe1;
  animation: glow 1s ease-in-out infinite alternate;
}

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



/* Section headings */
section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #00dfe1;
  border-bottom: 2px solid #00dfe1;
  display: inline-block;
}

/* About & Skills */
.about,
.skills {
  background-color: #1a1c22;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
}

/* Project cards */
.projects {
  display: grid;
  gap: 20px;
}

.card {
  background-color: #1f2229;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 255, 225, 0.2);
}

.card h3 {
  color: #00dfe1;
  margin-bottom: 10px;
}

.card ul {
  margin: 10px 0;
  padding-left: 20px;
}

.card a {
  color: #00dfe1;
  text-decoration: none;
  font-weight: bold;
}

.card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 60px;
  font-size: 0.9rem;
  color: #888;
}

footer a {
  color: #00dfe1;
}

/* Animations */
@keyframes glow {
  from {
    text-shadow: 0 0 5px #00dfe1, 0 0 10px #00dfe1;
  }

  to {
    text-shadow: 0 0 15px #00dfe1, 0 0 30px #00dfe1;
  }
}

#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#splash img {
  width: 200px;
  height: auto;
  animation: popIn 1.5s ease;
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.flex-box {
  display: flex;
}

.spaced {
  justify-content: space-around;
  overflow-x: auto;
  overflow-y: hidden;
}

.stat_anim:hover {
  transform: rotate(360deg) scale(1.5);
  transition: all 0.5s;
}

.statlong_anim:hover {
  transform: rotate(3600deg) scale(1.5);
  transition: all 2.5s;
}

.stat_base {
  width: 75px;
  height: 75px;
  display: flex;
  border-radius: 50%;
  align-items: center;
  font-weight: 900;
  justify-content: center;
  transition: 0.3s;
  border: 5px solid #AAAAAA;
}

/* Badge Styling */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 3px;
  margin-right: 5px;
  background: #333;
  color: #eee;
  border: 1px solid #555;
}

.badge-lang { background: #004444; border-color: #008888; }
.badge-fork { background: #444400; border-color: #888800; color: #ffff00; }

/* Visual Feedback for Clickable Header */
.project-header {
  padding: 10px;
  border-radius: 5px;
  transition: background 0.2s ease, transform 0.1s ease;
  border: 1px solid transparent;
}

.project-header:hover {
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid rgba(0, 255, 0, 0.2);
}

.project-header:active {
  transform: scale(0.99);
  background: rgba(0, 255, 0, 0.1);
}

.toggle-hint {
  display: block;
  margin-top: 8px;
  font-family: monospace;
  color: #00ff00;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.sound-button {
  padding: 20px 40px;
  font-size: 1.2em;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.sound-button:active {
  box-shadow: 0 2px rgba(0, 0, 0, 0.2);
  transform: translateY(4px);
}
