/* Custom styles */

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Glass card */
.glass-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(168, 85, 247, 0.05);
}

/* Status indicator */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background-color: #2dd4bf;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
}

.status-dot.offline {
  background-color: #6b7280;
  box-shadow: none;
  animation: none;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 4px rgba(45, 212, 191, 0.4);
  }
  50% {
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.7);
  }
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header states */
#header {
  background: transparent;
}

#header.scrolled {
  background: rgba(11, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 42, 61, 0.5);
}

/* Copy IP button feedback */
.copy-ip-btn.copied {
  background-color: rgba(45, 212, 191, 0.2) !important;
  border-color: rgba(45, 212, 191, 0.6) !important;
}

/* Selection */
::selection {
  background-color: rgba(168, 85, 247, 0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0b0b12;
}

::-webkit-scrollbar-thumb {
  background: #2a2a3d;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}

/* Canvas */
#heroCanvas {
  pointer-events: none;
}

/* Mobile menu */
#mobileMenu {
  transition: opacity 0.2s ease;
}

#mobileMenu.show {
  opacity: 1;
}

/* Project card glow */
.project-card:hover {
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.3),
    0 0 50px rgba(168, 85, 247, 0.08);
}

/* Tag hover */
.tag {
  transition: all 0.2s ease;
}

.tag:hover {
  transform: scale(1.05);
}

/* Social icon hover */
.social-icon {
  transition: all 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
}

/* Nav link underline */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #a855f7;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 640px) {
  .glass-card:hover {
    transform: none;
  }
}
