/* =========================================================
   DESIGN TOKENS (THEMES)
   ========================================================= */

/* Dark theme (default) */
:root {
  --bg: #151412;
  --bg-gradient-start: #151412;
  --bg-gradient-end: #0D0C0B;
  --card: #151412;
  --text: #ff4939;
  --muted: #ff4939;
  --accent: #ff4939;
  --border: #ff4939;
  --highlight: #ffffff;
}

/* Light theme */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-gradient-start: #ffffff;
  --bg-gradient-end: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #ff4939;
  --border: #e2e8f0;
  --highlight: #475569;
}

/* =========================================================
   RESET & BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: radial-gradient(
    circle at top,
    var(--bg-gradient-start),
    var(--bg-gradient-end)
  );
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* =========================================================
   LAYOUT
   ========================================================= */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

html {
  scroll-behavior: smooth;
}

header {
  margin-bottom: 4rem;
  /* display: flex;
  align-items: center;
  justify-content: space-between; */
}

section {
  margin-bottom: 3.5rem;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--highlight);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

header h1 {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

header p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* =========================================================
   COMPONENTS
   ========================================================= */

section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

section li {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.01)
  );
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: background 0.3s ease, border 0.3s ease;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================================
   UTILITIES
   ========================================================= */

.site-title a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.site-logo {
  height: 64px;
  width: auto;
  display: block;
}

.site-title a:hover {
  text-decoration: none;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-link {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border 0.2s ease;
}

.header-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.2s ease, border 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Icon visibility */
.icon-sun,
.icon-moon {
  display: none;
}

/* Show correct icon */
[data-theme="dark"] .icon-sun {
  display: inline;
}

[data-theme="light"] .icon-moon {
  display: inline;
}

/* =========================================================
   PROJECTS
   ========================================================= */

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
}

.project-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.appstore-link img {
  height: 40px;
}
