:root {
  --bg: #0f0f0f;
  --fg: #f5f5f5;
  --accent: #00fff7;
  --card-bg: #1f1f1f;
  --hover: #333;
  --social-size: 3rem;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  perspective: 1000px;
}

.interactive {
  transition: transform 0.2s ease, background 0.3s;
  will-change: transform;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

header {
  text-align: center;
  padding: 2rem 1rem;
}

.glitch {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  color: var(--accent);
  position: relative;
  animation: flicker 1s infinite alternate;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  opacity: 0.8;
  width: 100%;
  pointer-events: none;
}

.glitch::before { color: #ff00c8; transform: translate(-2px, -2px); }
.glitch::after { color: #00ffe1; transform: translate(2px, 2px); }

nav {
  margin-top: 1rem;
}

nav a {
  margin: 0 1rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
}

nav a:hover {
  color: #fff;
}

main section {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: radial-gradient(circle at top left, #1e1e1e, #0f0f0f);
  color: var(--fg);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0, 255, 247, 0.3);
}

.card:hover {
  background: var(--hover);
}

.socials-section {
  padding: 3rem 1rem;
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0, 255, 247, 0.2);
  margin: 2rem auto;
  max-width: 900px;
  background: radial-gradient(circle at top left, #1e1e1e, #0f0f0f);
  color: var(--fg);
}

.socials-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.socials img,
.socials svg {
  width: var(--social-size);
  height: var(--social-size);
  border-radius: 0.5rem;
  background: var(--card-bg);
  padding: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 255, 247, 0.2);
  transition: transform 0.3s;
  display: block;
}

.socials img:hover,
.socials svg:hover {
  transform: scale(1.1);
}


footer {
  text-align: center;
  padding: 3rem 1rem;
  background: radial-gradient(circle at top left, #1e1e1e, #0f0f0f);
  color: var(--fg);
  font-size: 0.9rem;
  border-top: 2px solid var(--accent);
}

footer p {
  margin: 0.5rem 0;
}

.righteous-regular {
  font-family: "Righteous", sans-serif;
  font-weight: 400;
  font-style: normal;
}


@media(max-width: 768px) {
  .glitch { font-size: 2.2rem; }
  .socials img { width: 2.5rem; height: 2.5rem; }
  nav a { margin: 0.5rem; font-size: 0.9rem; }
}
