/* Variables */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #000000;
  --border-color: #e0e0e0;
  --card-bg: #f9f9f9;
  --hover-bg: #f0f0f0;
  --muted-color: #666666;
  --spacing: 2rem;
}

[data-theme="dark"] {
  --bg-color: #000000;
  --text-color: #ffffff;
  --accent-color: #ffffff;
  --border-color: #333333;
  --card-bg: #0a0a0a;
  --hover-bg: #111111;
  --muted-color: #999999;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Nav */
nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #000000;
  border-bottom: 1px solid #333333;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

nav a {
  display: flex;
  align-items: center;
}

nav img {
  height: 44px;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #ffffff;
  font-family: monospace;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  padding: 0.5rem;
  z-index: 200;
  letter-spacing: 1px;
}

.theme-toggle:hover {
  opacity: 1;
}

/* Main Content */
main {
  max-width: 560px;
  width: 100%;
  padding: 2rem 1.5rem;
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title */
.title-section {
  text-align: center;
  margin-bottom: 1rem;
  animation: fadeIn 0.8s ease-out;
}

.title-section h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text-color);
}

/* Description */
.desc {
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-color);
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
}

/* Link Cards */
.link-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--bg-color);
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--text-color);
  opacity: 0;
  animation: slideInLeft 0.5s ease-out forwards;
}

.link-card:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

.link-card span {
  font-size: 1rem;
  transition: color 0.3s ease;
}

.link-card i {
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text-color);
}

.link-card:hover i {
  color: var(--bg-color);
}

/* Loading Spinner */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--text-color);
  animation: spin 1s linear infinite;
  margin: 4rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (min-width: 768px) {
  main {
    margin-top: 7rem;
  }

  .title-section h1 {
    font-size: 2.5rem;
  }
}
