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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #07070d;
  color: #c8c8d0;
  overflow-x: hidden;
  line-height: 1.6;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(179, 0, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 0, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.hero-name {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(135deg, #b300ff 0%, #d433ff 50%, #ff66ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(179, 0, 255, 0.3));
  margin-bottom: 16px;
  animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { filter: drop-shadow(0 0 30px rgba(179, 0, 255, 0.25)); }
  100% { filter: drop-shadow(0 0 60px rgba(179, 0, 255, 0.5)); }
}

.hero-subtitle-wrapper {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: #8888aa;
  margin-bottom: 12px;
  min-height: 1.6em;
}

.hero-prefix {
  color: #b300ff;
  opacity: 0.6;
}

#typing-text {
  color: #d0d0e0;
}

.cursor {
  color: #b300ff;
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  margin-left: -22px;
  width: 44px;
  height: 44px;
  border: 2.5px solid rgba(179, 0, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.scroll-arrow svg {
  width: 22px;
  height: auto;
}

.hero-servers {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  color: #666688;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(179, 0, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: #b300ff;
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

/* ===== SECTIONS ===== */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: 60px;
  color: #e0e0f0;
  letter-spacing: 2px;
}

.section-title .accent {
  color: #b300ff;
}

/* ===== ABOUT ===== */
#about {
  background: linear-gradient(180deg, transparent 0%, rgba(179, 0, 255, 0.03) 50%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: #a0a0b8;
  margin-bottom: 28px;
  line-height: 1.8;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(179, 0, 255, 0.2);
  border-radius: 20px;
  font-size: 0.82rem;
  color: #b300ff;
  background: rgba(179, 0, 255, 0.06);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  border-color: #b300ff;
  background: rgba(179, 0, 255, 0.12);
  box-shadow: 0 0 20px rgba(179, 0, 255, 0.15);
}

.about-stats {
  display: grid;
  gap: 20px;
}

.stat {
  padding: 24px;
  border: 1px solid rgba(179, 0, 255, 0.1);
  border-radius: 12px;
  text-align: center;
  background: rgba(20, 20, 35, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat:hover {
  border-color: rgba(179, 0, 255, 0.3);
  box-shadow: 0 0 30px rgba(179, 0, 255, 0.08);
}

.stat-number {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: #b300ff;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: #666688;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SERVERS ===== */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.server-card {
  position: relative;
  padding: 36px 28px;
  border: 1px solid rgba(179, 0, 255, 0.08);
  border-radius: 16px;
  background: rgba(15, 15, 28, 0.6);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(179, 0, 255, 0.06), transparent 60%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.server-card:hover {
  border-color: rgba(179, 0, 255, 0.25);
  transform: translateY(-6px);
  box-shadow:
    0 10px 40px rgba(179, 0, 255, 0.1),
    0 0 60px rgba(179, 0, 255, 0.05);
}

.server-card h3 {
  font-size: 1.25rem;
  color: #e0e0f0;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.role-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  width: fit-content;
}

.role-badge.mod {
  background: rgba(0, 180, 255, 0.1);
  border: 1px solid rgba(0, 180, 255, 0.25);
  color: #57c8ff;
}

.role-badge.admin {
  background: rgba(255, 180, 0, 0.1);
  border: 1px solid rgba(255, 180, 0, 0.25);
  color: #ffc857;
}

.role-badge.analyst {
  background: rgba(179, 0, 255, 0.1);
  border: 1px solid rgba(179, 0, 255, 0.25);
  color: #c877ff;
}

.server-card p {
  font-size: 0.92rem;
  color: #8888a0;
  flex: 1;
  margin-bottom: 24px;
  line-height: 1.7;
}

.discord-stats {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 20px;
  color: #666688;
}

.discord-stats .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.discord-stats .dot.online {
  background: #3ba55d;
  box-shadow: 0 0 6px rgba(59, 165, 93, 0.7);
}

.discord-stats .dot.offline {
  background: #747f8d;
}

.discord-stats .count {
  color: #c0c0d0;
  font-variant-numeric: tabular-nums;
}

.discord-stats .separator {
  color: #444466;
  margin: 0 2px;
}

.card-footer {
  margin-top: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b300ff;
  border: 1px solid rgba(179, 0, 255, 0.3);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(179, 0, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover {
  border-color: #b300ff;
  box-shadow: 0 0 30px rgba(179, 0, 255, 0.2), inset 0 0 30px rgba(179, 0, 255, 0.05);
  transform: translateY(-2px);
}

.btn:hover::before {
  opacity: 1;
}

/* ===== CONTACT ===== */
#contact {
  background: linear-gradient(180deg, transparent 0%, rgba(179, 0, 255, 0.03) 50%, transparent 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#contact-form input,
#contact-form textarea {
  padding: 14px 18px;
  background: rgba(15, 15, 28, 0.6);
  border: 1px solid rgba(179, 0, 255, 0.1);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #d0d0e0;
  outline: none;
  transition: all 0.3s ease;
  resize: none;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: rgba(179, 0, 255, 0.4);
  box-shadow: 0 0 20px rgba(179, 0, 255, 0.06);
  background: rgba(15, 15, 28, 0.8);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #555577;
}

.submit-btn {
  align-self: flex-start;
}

.form-status {
  font-size: 0.9rem;
  color: #57c857;
  min-height: 1.2em;
}

.info-card {
  padding: 32px;
  border: 1px solid rgba(179, 0, 255, 0.08);
  border-radius: 12px;
  background: rgba(15, 15, 28, 0.6);
  backdrop-filter: blur(10px);
}

.info-card h4 {
  font-size: 1rem;
  color: #b300ff;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #a0a0b8;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.discord-link strong {
  color: #5865f2;
  transition: color 0.3s ease;
}

.discord-link:hover {
  color: #5865f2;
}

.discord-link:hover strong {
  color: #5865f2;
}

.discord-link .discord-icon {
  color: #5865f2;
  flex-shrink: 0;
}

.discord-link.copied strong::after {
  content: 'Copied!';
  margin-left: 8px;
  font-size: 0.78rem;
  color: #57c857;
}

.info-note {
  font-size: 0.82rem !important;
  color: #555577 !important;
  margin-top: 12px;
}

/* ===== FOOTER ===== */
footer {
  padding: 40px 0;
  border-top: 1px solid rgba(179, 0, 255, 0.06);
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  color: #444466;
  letter-spacing: 1px;
}

.heart {
  color: #b300ff;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .servers-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 70px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .hero-name {
    letter-spacing: 4px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat {
    padding: 16px 12px;
  }

  .stat-number {
    font-size: 1.3rem;
  }
}
