/* ══════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Light theme (default) ─── */
:root {
  --bg:          #f6f8fb;
  --bg-alt:      #eef2f8;
  --surface:     #ffffff;
  --border:      #e1e8f0;
  --accent:      #2f6bdb;
  --accent2:     #12925c;
  --text:        #24313f;
  --text-muted:  #5c6b7c;
  --tag-bg:      #f1f5fa;
  --tag-color:   #3a5f9e;
  --nav-bg:      rgba(246, 248, 251, 0.85);
  --hero-glow:   #dce9fb;
  --h1-from:     #24313f;
  --h1-to:       #2f6bdb;
  --btn-text:    #ffffff;
  --shadow:      0 8px 28px rgba(36, 49, 63, 0.08);
  --shadow-hover:0 12px 32px rgba(36, 49, 63, 0.12);
  --radius:      12px;
  --font:        'Inter', sans-serif;
  --mono:        'JetBrains Mono', monospace;
  --max-w:       1100px;

  --tint-blue-bg:   #e4edfc; --tint-blue-fg:   #2f6bdb;
  --tint-green-bg:  #ddf3e8; --tint-green-fg:  #12925c;
  --tint-amber-bg:  #fcefd8; --tint-amber-fg:  #b07a14;
  --tint-purple-bg: #ece5fb; --tint-purple-fg: #7a51d6;
  --tint-teal-bg:   #daf1f1; --tint-teal-fg:   #148a91;
  --tint-rose-bg:   #fbe4ec; --tint-rose-fg:   #c74a78;
}

/* ─── Dark theme ─── */
[data-theme="dark"] {
  --bg:          #0d1117;
  --bg-alt:      #161b22;
  --surface:     #1c2333;
  --border:      #30363d;
  --accent:      #58a6ff;
  --accent2:     #3fb950;
  --text:        #e6edf3;
  --text-muted:  #8b949e;
  --tag-bg:      #21262d;
  --tag-color:   #79c0ff;
  --nav-bg:      rgba(13, 17, 23, 0.85);
  --hero-glow:   #1a3a5c;
  --h1-from:     #e6edf3;
  --h1-to:       #58a6ff;
  --btn-text:    #0d1117;
  --shadow:      0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-hover:0 12px 36px rgba(0, 0, 0, 0.5);

  --tint-blue-bg:   rgba(88, 166, 255, .13);  --tint-blue-fg:   #79c0ff;
  --tint-green-bg:  rgba(63, 185, 80, .13);   --tint-green-fg:  #56d364;
  --tint-amber-bg:  rgba(210, 153, 34, .15);  --tint-amber-fg:  #e3b341;
  --tint-purple-bg: rgba(163, 113, 247, .15); --tint-purple-fg: #bc8cff;
  --tint-teal-bg:   rgba(57, 197, 187, .13);  --tint-teal-fg:   #56d4dd;
  --tint-rose-bg:   rgba(255, 123, 163, .13); --tint-rose-fg:   #ff9bc1;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  transition: background .25s, color .25s;
}

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

/* ══════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: .08em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s, border-color .2s, transform .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(15deg); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--hero-glow) 0%, var(--bg) 60%);
  padding-top: 80px;
  display: flex;
  flex-direction: column;
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 40px;
}

.hero-photo-wrap {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px var(--tint-blue-bg), var(--shadow);
  background: var(--surface);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-text { flex: 1; }

.hero-tag {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--accent2);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-nick {
  font-size: 60%;
  font-weight: 400;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  letter-spacing: .02em;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--h1-from) 30%, var(--h1-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text); }

.slogan-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.slogan-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent2);
  display: flex;
}

.slogan-box strong { color: var(--text); }

.slogan-note {
  font-size: .85rem;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--btn-text);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 8px;
  transition: filter .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px var(--tint-blue-bg);
}
.btn-primary:hover {
  filter: brightness(1.12);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--tint-blue-bg);
}

/* ══════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════ */
.section { padding: 96px 40px; }
.section-alt { background: var(--bg-alt); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 720px;
  margin: -28px 0 40px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   CARD ICONS (soft SVG badges)
══════════════════════════════════════════════════ */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.tint-blue   { background: var(--tint-blue-bg);   color: var(--tint-blue-fg); }
.tint-green  { background: var(--tint-green-bg);  color: var(--tint-green-fg); }
.tint-amber  { background: var(--tint-amber-bg);  color: var(--tint-amber-fg); }
.tint-purple { background: var(--tint-purple-bg); color: var(--tint-purple-fg); }
.tint-teal   { background: var(--tint-teal-bg);   color: var(--tint-teal-fg); }
.tint-rose   { background: var(--tint-rose-bg);   color: var(--tint-rose-fg); }

/* ══════════════════════════════════════════════════
   ABOUT / VBA CARDS
══════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.about-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.about-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.about-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.vba-tags { margin-top: 32px; border-top: none; padding-top: 0; }

/* ══════════════════════════════════════════════════
   SKILLS
══════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.skill-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--mono);
}
.skill-group h3 svg { flex-shrink: 0; }

.skill-group ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ══════════════════════════════════════════════════
   TAGS
══════════════════════════════════════════════════ */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-color);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .8rem;
  font-family: var(--mono);
  white-space: nowrap;
}

.tag-highlight {
  background: var(--tint-blue-bg);
  color: var(--accent);
  border-color: transparent;
}

/* ══════════════════════════════════════════════════
   PROJECT
══════════════════════════════════════════════════ */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 900px;
  box-shadow: var(--shadow);
}

.project-header { margin-bottom: 20px; }

.project-badge {
  display: inline-block;
  background: var(--tint-green-bg);
  color: var(--accent2);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 3px 14px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-version {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text-muted);
}

.project-desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.75;
}

.project-card h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: var(--mono);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.module {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .88rem;
  color: var(--text-muted);
}

.module-icon { font-size: 1.1rem; flex-shrink: 0; }

.project-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════
   AVAILABILITY
══════════════════════════════════════════════════ */
.availability-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.avail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.avail-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.avail-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.tz-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tz-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
}

.tz-flag { font-size: 1rem; flex-shrink: 0; }

.tz-region {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}

.tz-time {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--accent);
  white-space: nowrap;
}

.avail-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.avail-card strong { color: var(--text); }

/* ══════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════ */
.contact-container { text-align: center; }
.contact-container .section-title::after { left: 50%; transform: translateX(-50%); }

.contact-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 28px;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  box-shadow: var(--shadow);
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.contact-link:hover {
  border-color: var(--accent);
  background: var(--tint-blue-bg);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.contact-link-icon {
  display: flex;
  align-items: center;
  color: var(--accent);
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 760px) {
  .nav { padding: 12px 16px; flex-wrap: wrap; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .82rem; }
  .hero-inner { flex-direction: column; align-items: center; text-align: center; padding: 40px 20px; }
  .slogan-box { text-align: left; }
  .section { padding: 64px 20px; }
  .project-card { padding: 24px 18px; }
  .contact-links { flex-direction: column; align-items: center; }
}
