/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* Dot Matrix BG */
.dot-matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(#ffffff20 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
  animation: matrixMove 60s linear infinite;
}

@keyframes matrixMove {
  from { background-position: 0 0; }
  to { background-position: 100vw 100vh; }
}

/* Layout */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 2rem 10rem;
  text-align: center;
}

/* Gradient Title */
.gradient-text {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #6366F1, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sections */
.hero-section,
.projects-section {
  padding-bottom: 4rem;
}

.description {
  font-size: 1.1rem;
  opacity: 0.8;
  margin: 2rem 0 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-600 {
  animation-delay: 0.6s;
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  overflow: hidden;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.theme-toggle:focus-visible {
  outline: 2px solid #6366F1;
}

.ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  transition: transform 0.4s ease;
}

.theme-toggle:active .ripple {
  transform: scale(1.2);
  transition: transform 0s;
}

/* Glass Buttons */
.glass-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: inline-block;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* Glass Cards (Projects) */
.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.glass-card {
  display: block;
  width: 250px;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.glass-card h3 {
  margin-bottom: 0.5rem;
}

.glass-card p {
  font-size: 0.95rem;
  opacity: 0.8;
}

.glass-card:hover {
  transform: scale(1.05);
}

.glass-card:focus-visible {
  outline: 2px solid #6366F1;
}

/* Confetti Canvas */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}
