/* ─── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #282828;
  --surface:   #3c3836;
  --border:    #504945;
  --accent:    #fabd2f;
  --accent2:   #b8bb26;
  --text:      #ebdbb2;
  --muted:     #a89984;
  --tag-bg:    #504945;
  --tag-text:  #fabd2f;
  --radius:    10px;
  --max-w:     860px;
}

html { scroll-behavior: smooth; }

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

#life-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  filter: blur(0.3rem) brightness(0.7) contrast(1.1);
  pointer-events: none;
}

.business-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #3c3836 60%, #504945 100%);
  border-radius: 22px;
  box-shadow: 0 10px 48px 0 #181616e0, 0 2px 8px 0 #00000040;
  border: 2.5px solid #bdae93;
  min-width: 70vw;
  max-width: 85vw;
  padding: 2rem 2.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  backdrop-filter: blur(6px) saturate(1.2);
}

.card-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1.5px;
  text-align: left;
  text-shadow: 0 2px 8px #00000030;
  width: 100%;
}

.card-contact {
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 1rem;
  width: 100%;
  text-align: left;
  transition: color 0.2s;
}

.card-contact:hover {
  color: #bdae93;
  text-decoration: underline;
}

.card-desc {
  width: 100%;
  text-align: left;
}

.about-lead {
  font-size: 0.75rem;
  color: var(--accent2);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.about-main {
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 1.1rem;
  line-height: 1.6;
}

.about-links {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
}

.about-link {
  display: inline-block;
  padding: 0.45em 1.2em;
  border-radius: 2em;
  font-size: 1.01rem;
  font-weight: 500;
  background: #282828;
  color: var(--accent);
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 6px #00000022;
  transition: background 0.2s, color 0.2s, border 0.2s;
    text-decoration: none;
}

.about-link.github:hover {
  background: #24292f;
  color: #fffbe7;
  border-color: #bdae93;
}

.about-link.linkedin:hover {
  background: #0077b5;
  color: #fffbe7;
  border-color: #bdae93;
}

@media (max-width: 600px) {
  .business-card {
    min-width: 0;
    width: 95vw;
    padding: 1.2rem 0.5rem;
  }
  .card-title {
    font-size: 1.2rem;
  }
}

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

/* ─── Layout ────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ─── Hero / Header ─────────────────────────────────────────────────── */
header {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 60%, #0d2137 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  text-align: center;
}

header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.5px;
}

header h1 span {
  color: var(--accent);
}

.tagline {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-bar {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-bar a,
.contact-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.contact-bar a { color: var(--accent); }

.nav-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.nav-links a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}

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

/* ─── Sections ──────────────────────────────────────────────────────── */
main {
  padding: 3rem 0 4rem;
}

section {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ─── Card ──────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--accent); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.card-sub {
  font-size: 0.88rem;
  color: var(--accent2);
  font-style: italic;
}

.card-date {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.card-body {
  font-size: 0.92rem;
  color: #c9d1d9;
  margin-top: 0.5rem;
}

.card-body ul {
  margin-top: 0.5rem;
  padding-left: 1.3rem;
}

.card-body li { margin-bottom: 0.3rem; }

/* ─── Tags ──────────────────────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 2rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ─── About / Profile ───────────────────────────────────────────────── */
.profile-text {
  font-size: 1.1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 2.5rem;
  line-height: 1.8;
  box-shadow: 0 4px 32px 0 #282828cc;
}


.about-center.floating-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  min-width: 320px;
  max-width: 520px;
  background: var(--surface);
  box-shadow: 0 4px 32px 0 #282828cc;
  z-index: 2;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(2px);
  padding: 2.2rem 2.5rem;
}

.about-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
  text-align: center;
}

.about-desc {
  font-size: 1.15rem;
  color: var(--text);
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .about-center.floating-box {
    min-width: 0;
    width: 95vw;
    padding: 1.2rem 0.5rem;
  }
  .about-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .about-center {
    min-width: 0;
    width: 95vw;
    padding: 1.2rem 0.5rem;
    margin: 4vh auto 0 auto;
  }
}

/* ─── Interests highlight box ───────────────────────────────────────── */
.highlight-box {
  background: linear-gradient(135deg, #0d2137, #0d1a2e);
  border: 1px solid #1d4ed8;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
}

.highlight-box .card-title { color: var(--accent); }
.highlight-box .card-body { color: #93c5fd; }

/* ─── Skills grid ───────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.skill-group h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.skill-group ul {
  list-style: none;
  font-size: 0.88rem;
  color: #c9d1d9;
}

.skill-group li::before {
  content: '▸ ';
  color: var(--accent2);
}

/* ─── Footer ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
