:root {
  --bg-color: #0a0a0a;
  --text-color: #eaeaea;
  --accent: #00bfff;
  --secondary: #888;
}

.highlight {
  font-weight: 700;
  text-shadow: 0 0 6px var(--accent), 0 0 12px var(--accent);
  color: inherit;
}

.welcome-header {
  text-align: center;
  width: 100%;
  margin: 0;
  padding: 1.5rem 0;
}

.welcome-header h1 {
  font-size: 3.5rem;
  color: var(--accent);
  margin: 0;
  text-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent); }
  50% { text-shadow: 0 0 8px var(--accent), 0 0 15px var(--accent); }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.5;
}

#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at bottom, #050505 0%, #000 100%);
  filter: blur(1px);
  transition: transform 0.1s linear;
}

.fog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04), transparent 100%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03), transparent 100%),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,0.025), transparent 100%),
    radial-gradient(circle at 40% 70%, rgba(255,255,255,0.02), transparent 100%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.015), transparent 100%);
  filter: blur(60px);
  animation: fogMove 60s ease-in-out infinite alternate;
  transition: transform 0.1s linear;
}

@keyframes fogMove {
  from { background-position: 0% 0%, 100% 100%; }
  to { background-position: 100% 100%, 0% 0%; }
}

.container {
  max-width: 750px;
  margin: auto;
  padding: 1.5rem 1rem;
}

section h2 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
  text-align: center;
  margin-bottom: 1rem;
}

.subtle-text {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-top: -0.2rem;
  margin-bottom: 0.8rem;
}

#about,
#projects,
#contact {
  text-align: center;
  padding-top: 0.3rem;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.8s ease-out;
}

.github-link-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.github-link-container .line {
  flex: 1;
  height: 1px;
  background-color: var(--secondary);
  margin: 0 1rem;
  border: none;
}

.github-link-container a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  outline: none;
  border: none;
  padding: 0;
  background: none;
}

.github-link-container a:hover {
  text-decoration: underline;
}

.github-subtext {
  text-align: center;
  color: var(--secondary);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.footer-link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

.discord-btn {
  position: relative;
  background-color: #bcc6cc;
  border: none;
  border-radius: 50%;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(114, 137, 218, 0.3);
}

.discord-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(114, 137, 218, 0.5);
}

.discord-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.discord-btn .hover-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.discord-btn:hover .hover-tooltip {
  opacity: 1;
}

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

footer {
  text-align: center;
  border-top: 1px solid #222;
  padding: 0.8rem 0;
  color: var(--secondary);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  #stars, .fog { display: none; }
  body { background: #0a0a0a; }
}

@media (max-width: 600px) {
  .welcome-header h1 { font-size: 2.5rem; }
  .container { padding: 1rem 0.8rem; }
  .discord-btn { padding: 5px; }
  .discord-btn img { width: 22px; height: 22px; }
}
