* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 25%),
    #020817;
  color: #e2e8f0;
  font-family: Inter, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01));
  mix-blend-mode: screen;
}

img {
  display: block;
  max-width: 100%;
}

.glass {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.page-glow {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.glow-one {
  top: 2rem;
  left: -6rem;
  background: rgba(168, 85, 247, 0.25);
}

.glow-two {
  right: -4rem;
  bottom: 8rem;
  background: rgba(59, 130, 246, 0.2);
}

.hero-grid {
  background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
}

.hero-section {
  position: relative;
  z-index: 1;
}

.hero-card {
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s ease;
}

.hero-visual:hover .hero-card {
  transform: perspective(1200px) rotateY(-2deg) rotateX(0deg) translateY(-8px);
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  opacity: 0.45;
  animation: float 9s ease-in-out infinite;
}

.orb-one {
  inset: 10% auto auto 18%;
  width: 10rem;
  height: 10rem;
  background: rgba(168, 85, 247, 0.32);
}

.orb-two {
  right: 5%;
  bottom: 8%;
  width: 12rem;
  height: 12rem;
  background: rgba(34, 211, 238, 0.28);
  animation-delay: 2s;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.skill-card,
.project-card,
.timeline-item,
.stat-block,
.rounded-\[2rem\],
.rounded-\[1\.8rem\],
.rounded-\[1\.75rem\] {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.skill-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.5);
}

.contact-panel {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-success {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-success.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

@media (max-width: 768px) {
  .hero-card {
    transform: none;
  }
}
