/* === Base === */

:root {
  --bg: #020617;
  --bg-elevated: #020617;
  --bg-muted: #020617;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.24);
  --border-subtle: rgba(148, 163, 184, 0.28);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e5e7eb, var(--bg)) fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background: radial-gradient(circle at top left, #0f172a, var(--bg)) fixed;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Header === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0.9),
    rgba(248, 250, 252, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

body .site-header {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.8),
    transparent
  );
  border-bottom-color: rgba(51, 65, 85, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: inherit;
  padding-left: 1em;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.logo-mark-img {
  width: 32px;
  height: 32px;
  border-radius: 999px; /* makes it round */
  object-fit: cover;
  display: block;
}

.logo-text {
  font-size: 0.95rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  padding-right: 1em;
}

.nav a {
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.15rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav a:hover::after {
  width: 100%;
}

.theme-toggle {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(248, 250, 252, 0.6);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

body .theme-toggle {
  background: rgba(15, 23, 42, 0.9);
}

/* === Hero === */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 840px) {
  .hero-inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    align-items: stretch;
  }
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0;
}

.hero-subtitle {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero side card */

.hero-card {
  background: radial-gradient(circle at top left, #e0ecff, var(--bg-elevated));
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

body .hero-card {
  background: radial-gradient(circle at top left, #0f172a, #020617);
}

.avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  object-fit: cover;
  display: block;
  margin-bottom: 1.25rem;
}

/* === Sections === */

.section {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin: 0;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.section h2 {
  font-size: 1.4rem;
}

.two-column {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.list {
  padding-left: 1.1rem;
  margin: 0.7rem 0 1.25rem;
  color: var(--text-muted);
}

.list li + li {
  margin-top: 0.25rem;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.9rem;
}

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(248, 250, 252, 0.75);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

body .btn {
  background: rgba(15, 23, 42, 0.9);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.btn.ghost {
  background: transparent;
}

.btn.full-width {
  width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

/* === Skills === */

.skills-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.skill-card {
  background: rgba(248, 250, 252, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.25rem;
  border: 1px solid var(--border-subtle);
}

body .skill-card {
  background: rgba(15, 23, 42, 0.7);
}

.skill-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.tag-list li {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}

/* === Projects === */

.projects-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-card {
  background: rgba(248, 250, 252, 0.94);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.3rem 1.4rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body .project-card {
  background: rgba(15, 23, 42, 0.85);
}

.project-card h3 {
  margin: 0;
  font-size: 1rem;
}

.project-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

.project-meta span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
}

.project-links {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.86rem;
}

.github-footer {
  margin-top: 1.5rem;
}

/* === Contact === */

.contact-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.contact-form {
  background: rgba(248, 250, 252, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body .contact-form {
  background: rgba(15, 23, 42, 0.85);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.85rem;
}

input,
textarea {
  font: inherit;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(248, 250, 252, 0.96);
  color: inherit;
}

body input,
body textarea {
  background: rgba(15, 23, 42, 0.95);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
}

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

/* === Footer === */

.site-footer {
  padding: 2rem 0 2.4rem;
}

.footer-inner {
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === Utilities === */

.muted {
  color: var(--text-muted);
}

/* === Small screens === */

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .site-header {
    padding-bottom: 0.1rem;
  }

  .hero {
    padding-top: 3.5rem;
  }
}
