/* Base & variables */
:root {
  --bg: #0f1115;
  --card-bg: #1a1a1a;
  --card-bg-hover: #222;
  --text: #f5f5f5;
  --text-muted: #9ca3af;
  --separator: #6b7280;
  --accent-blue: #60a5fa;
  --accent-red: #ef4444;
  --accent-green: #22c55e;
  --accent-cyan: #22d3ee;
  --accent-purple: #a855f7;
  --grid-line: rgba(255, 255, 255, 0.05);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 640px;
  --space-section: 2.5rem;
  --space-card: 1rem;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Background grid overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

/* Glow orbs (parallax via JS) */
.glow-orb {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.glow-orb--1 {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}
.glow-orb--2 {
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.08) 0%, transparent 70%);
}

/* Layout */
.page-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 3rem;
  min-height: 100vh;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: var(--max-width);
}

/* Header */
.site-header {
  text-align: center;
  margin-bottom: var(--space-section);
}

.name {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.separator {
  color: var(--separator);
  margin: 0 0.35em;
  font-weight: 300;
}

/* Sections */
.section {
  margin-bottom: var(--space-section);
}

.section-heading {
  margin: 0 0 var(--space-card);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
.section-heading--accent {
  color: var(--accent-blue);
}

/* Cards */
.card {
  display: block;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: var(--space-card);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.card:last-child {
  margin-bottom: 0;
}

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

/* About card */
.about-card {
  cursor: default;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.about-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.about-text {
  margin: 0;
  text-align: justify;
  color: var(--text);
}

/* Project cards */
.project-card {
  --project-accent: #60a5fa;
  --project-accent-rgb: 96,165,250;
  --project-accent-link: #60a5fa;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--project-accent-rgb), 0.2);
  background: linear-gradient(to bottom right, rgba(var(--project-accent-rgb), 0.15), transparent);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  border-color: rgba(var(--project-accent-rgb), 0.5);
  background: linear-gradient(to bottom right, rgba(var(--project-accent-rgb), 0.2), transparent);
}

.project-card__blur-orb {
  position: absolute;
  right: -16px;
  top: -16px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  filter: blur(24px);
  transition: opacity 0.3s ease;
  background: rgba(var(--project-accent-rgb), 0.15);
}
.project-card:hover .project-card__blur-orb {
  background: rgba(var(--project-accent-rgb), 0.25);
}

.project-icon-wrap {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--project-accent);
}
.project-icon-wrap--custom {
  background: #374151;
}
.project-icon-wrap--custom .project-icon,
.project-icon-wrap--custom img,
.project-icon-wrap--custom .icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.project-icon-wrap img,
.project-icon-wrap .icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.project-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.project-card .project-link {
  color: var(--project-accent-link);
}

.project-content {
  flex: 1;
  min-width: 0;
}

.project-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.project-desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}
.project-card:hover .project-link {
  transform: translateX(4px);
}

/* Social cards */
.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.social-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background-color: rgba(255, 255, 255, 0.06);
}
.social-card--kofi {
  background: linear-gradient(to right, rgba(34, 211, 238, 0.08), rgba(96, 165, 250, 0.08));
  border-color: rgba(34, 211, 238, 0.2);
}
.social-card--kofi:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: linear-gradient(to right, rgba(34, 211, 238, 0.12), rgba(96, 165, 250, 0.12));
}

.social-icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  background: #1f2937;
}
.social-card:hover .social-icon-wrap {
  transform: scale(1.1);
}
.social-icon-wrap--github {
  background: #1f2937;
}
.social-icon-wrap--linkedin {
  background: #0077b5;
}
.social-icon-wrap--steam {
  background: linear-gradient(to bottom right, #171a21, #2a475e);
}
.social-icon-wrap--x {
  background: #000;
}
.social-icon-wrap--kofi {
  background: #29abe0;
}
.social-icon-wrap--email {
  background: #4b5563;
}
.social-icon-wrap--custom {
  background: #374151;
}
.social-icon-wrap--custom .social-icon,
.social-icon-wrap--custom img,
.social-icon-wrap--custom .icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.social-icon-wrap img,
.social-icon-wrap .icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.social-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.social-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.social-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.social-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-card:hover .social-arrow {
  color: var(--accent-blue);
  transform: translateX(4px);
}
.social-card--kofi:hover .social-arrow {
  color: var(--accent-cyan);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding-top: var(--space-section);
  text-align: center;
}

.footer-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot--blue {
  background-color: var(--accent-blue);
}
.dot--purple {
  background-color: var(--accent-purple);
}
.dot--cyan {
  background-color: var(--accent-cyan);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
