@font-face {
  font-family: TradeGothicLTStd-Light;
  src: url(../fonts/TradeGothicLTStd-Light.otf);
}

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

html, body {
  height: 100%;
  background-color: #000;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: TradeGothicLTStd-Light, 'Segoe UI', sans-serif;
}

/* Matrix canvas */
#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Dark overlay for readability */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

/* Main container */
.container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Logo with animated gradient glow */
.logo {
  max-width: min(500px, 85vw);
  margin-bottom: 30px;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
  position: relative;
}

.content::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(6, 182, 212, 0.08) 40%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: gradient-drift 6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes gradient-drift {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.6;
    filter: blur(40px);
  }
  25% {
    background-position: 100% 30%;
    opacity: 1;
    filter: blur(50px);
  }
  50% {
    background-position: 100% 70%;
    opacity: 0.8;
    filter: blur(35px);
  }
  75% {
    background-position: 0% 80%;
    opacity: 1;
    filter: blur(45px);
  }
}

.icon {
  width: 120px;
  max-width: 35%;
  margin-bottom: 40px;
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Glitch heading */
.glitch {
  font-family: TradeGothicLTStd-Light, monospace;
  font-size: clamp(20px, 5vw, 36px);
  letter-spacing: 0.3em;
  color: #fff;
  position: relative;
  animation: fade-up 1s ease-out 0.6s both;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: #0ff;
  animation: glitch-1 4s infinite linear alternate-reverse;
  clip-path: inset(0 0 80% 0);
}

.glitch::after {
  color: #f0f;
  animation: glitch-2 4s infinite linear alternate-reverse;
  clip-path: inset(80% 0 0 0);
}

@keyframes glitch-1 {
  0%, 90% { transform: translate(0); }
  91% { transform: translate(-2px, 1px); }
  92% { transform: translate(2px, -1px); }
  93% { transform: translate(-1px, 2px); }
  94%, 100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0%, 88% { transform: translate(0); }
  89% { transform: translate(2px, 1px); }
  90% { transform: translate(-2px, -1px); }
  91% { transform: translate(1px, -2px); }
  92%, 100% { transform: translate(0); }
}

/* Animated reveal line */
.line-reveal {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #06b6d4, transparent);
  margin: 30px auto;
  animation: line-expand 1.5s ease-out 1s forwards;
}

@keyframes line-expand {
  to { width: min(400px, 80vw); }
}

/* Subtext */
.subtext {
  font-size: clamp(14px, 2.5vw, 18px);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Social links */
.social {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.social a {
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.4s ease;
  display: inline-flex;
}

.social a:hover {
  color: #8b5cf6;
  transform: translateY(-3px);
  filter: drop-shadow(0 4px 15px rgba(139, 92, 246, 0.5));
  text-decoration: none;
}

.social svg {
  width: 44px;
  height: 44px;
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 1.5s; }
.delay-4 { animation-delay: 1.8s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon pulse glow */
@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.5)) drop-shadow(0 0 50px rgba(6, 182, 212, 0.2));
  }
}

/* Scanline overlay (subtle) */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 3;
}
