/* Theme variables */
:root,
[data-theme="dark"] {
  --bg: #0d1117;
  --bg-secondary: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #26d0c9;
  --border: #30363d;
  --card-bg: #161b22;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-secondary: #f6f8fa;
  --text: #1f2328;
  --text-muted: #656d76;
  --accent: #26d0c9;
  --border: #d0d7de;
  --card-bg: #ffffff;
}

/* Reset & base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
  transition: border-color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: inline; }
:root:not([data-theme="light"]) .theme-icon-light,
[data-theme="dark"] .theme-icon-light { display: none; }
:root:not([data-theme="light"]) .theme-icon-dark,
[data-theme="dark"] .theme-icon-dark { display: inline; }

/* Hero */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.hero h1 {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(18px, 3vw, 28px);
  color: var(--text-muted);
  margin-top: 12px;
}

.wave {
  display: inline-block;
  -webkit-text-fill-color: initial;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(15deg); }
}

/* Sections */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* News */
.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.news-text {
  color: var(--text);
}

/* About */
.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

.typing {
  color: var(--accent);
  font-weight: 700;
}

.typing::after {
  content: '|';
  animation: blink 0.7s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

.about-text {
  text-align: left;
}

.about-text p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Mutual Links */
.mutual-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.mutual-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.mutual-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(38, 208, 201, 0.12);
}

.mutual-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.mutual-link-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mutual-link-name {
  font-weight: 600;
  font-size: 16px;
}

.mutual-link-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.mutual-link-arrow {
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.2s;
}

.mutual-link-card:hover .mutual-link-arrow {
  transform: translateX(4px);
}

.mutual-links-recruit {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Links */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(38, 208, 201, 0.15);
}

.link-card img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.link-card span {
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.link-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

/* Hidden text (select to read) */
.hidden-text {
  color: var(--bg) !important;
  user-select: text;
}

.hidden-text::selection {
  background: var(--accent);
  color: #fff;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-supported {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    padding: 80px 24px 60px;
  }

  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
