/* ============================================================
   ROOT VARIABLES & RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #ffffff;
  --bg-card:     #f6f8fa;
  --bg-hover:    #eaeef2;
  --border:      #d0d7de;
  --text:        #1f2328;
  --text-muted:  #656d76;
  --accent:      #0969da;
  --accent2:     #1a7f37;
  --accent3:     #cf222e;
  --yellow:      #9a6700;
  --purple:      #8250df;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --transition:  0.2s ease;
  --nav-h:       60px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

code, pre {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.85em;
}

pre {
  background: #f6f8fa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin-top: 0.75rem;
}

code {
  background: rgba(110,118,129,0.12);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.88em;
  color: #24292f;
}

kbd {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.5em;
  font-size: 0.82em;
  font-family: inherit;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.nav-icon { font-size: 1.2rem; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-link:hover {
  color: var(--text);
  background: var(--bg-hover);
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(9,105,218,0.07) 0%, transparent 70%);
}

.hero-content { max-width: 680px; }

.hero-badge {
  display: inline-block;
  background: rgba(88,166,255,0.12);
  color: var(--accent);
  border: 1px solid rgba(88,166,255,0.25);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #1f2328 0%, #656d76 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: #0860ca;
  text-decoration: none;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: rgba(9,105,218,0.08);
  text-decoration: none;
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 700px;
}

/* ============================================================
   WHAT IS HERE STRIP
   ============================================================ */
.what-is-here {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

/* ============================================================
   TUTORIALS SECTION
   ============================================================ */
.tutorials {
  padding: 4rem 0 6rem;
}

/* ── Category Tabs ── */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 2.5rem;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.cat-tab:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(9,105,218,0.07);
}

.cat-tab.active {
  background: rgba(9,105,218,0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.cat-count {
  background: rgba(9,105,218,0.1);
  color: var(--accent);
  border-radius: 10px;
  padding: 0.05em 0.5em;
  font-size: 0.78em;
  font-weight: 600;
}

/* ── Tutorial Groups ── */
.tutorial-group { display: none; }
.tutorial-group.active { display: block; }

.tutorial-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.tutorial-intro h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.tutorial-intro p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}
.tutorial-intro p + p { margin-top: 0.75rem; }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.accordion-item:hover {
  border-color: rgba(9,105,218,0.4);
}

.accordion-item.open {
  border-color: rgba(9,105,218,0.6);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.accordion-header:hover { background: var(--bg-hover); }

.acc-num {
  min-width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9,105,218,0.1);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.acc-title {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
}

.acc-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.accordion-item.open .acc-arrow { transform: rotate(180deg); }

/* Tags */
.acc-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15em 0.6em;
  border-radius: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.tag-foundation { background: rgba(63,185,80,0.15);  color: var(--accent2); }
.tag-core       { background: rgba(88,166,255,0.15); color: var(--accent); }
.tag-mustknow   { background: rgba(247,129,102,0.15); color: var(--accent3); }
.tag-process    { background: rgba(210,153,34,0.15);  color: var(--yellow); }
.tag-agile      { background: rgba(188,140,255,0.15); color: var(--purple); }
.tag-decision   { background: rgba(247,129,102,0.15); color: var(--accent3); }
.tag-tool       { background: rgba(63,185,80,0.15);   color: var(--accent2); }
.tag-advanced   { background: rgba(188,140,255,0.15); color: var(--purple); }
.tag-setup      { background: rgba(88,166,255,0.15);  color: var(--accent); }
.tag-pattern    { background: rgba(210,153,34,0.15);  color: var(--yellow); }

/* Accordion Content */
.accordion-content {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.accordion-item.open .accordion-content { display: block; }

.accordion-content p {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

.accordion-content ul,
.accordion-content ol {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.accordion-content li { color: var(--text-muted); margin-bottom: 0.4rem; }
.accordion-content strong { color: var(--text); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}

.about-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.about-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 3px solid var(--accent);
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  display: block;
}

.about-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.about-role {
  color: var(--accent);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.about-desc {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills { padding: 5rem 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.skill-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.skill-tip {
  background: rgba(9,105,218,0.06);
  border-left: 3px solid var(--accent);
  padding: 0.6rem 0.9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition);
}
.contact-card:hover { border-color: var(--accent); }

.contact-icon { font-size: 2rem; }

.contact-card h3 { font-size: 1.05rem; font-weight: 600; }

.contact-card p { color: var(--text-muted); font-size: 0.92rem; }

.email-link {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  word-break: break-all;
}
.email-link:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer-left {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 2px solid var(--accent);
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  display: block;
}

.footer-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.footer-role {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.footer-email {
  color: var(--accent);
  font-size: 0.88rem;
  display: block;
  margin-bottom: 0.35rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #d0d7de;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #b1bac4; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    z-index: 99;
  }

  .nav-links.open { display: flex; }

  .navbar { position: sticky; }

  .hamburger { display: flex; }

  .hero { min-height: 60vh; padding: 4rem 1.5rem 3rem; }
  .hero-title { font-size: 1.9rem; }

  .about-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .about-info .btn-outline { margin: 0 auto; display: inline-flex; }

  .footer-content { flex-direction: column; }
  .footer-left { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; }

  .accordion-header { gap: 0.6rem; }
  .acc-tag { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SELECTION COLOUR
   ============================================================ */
::selection { background: rgba(9,105,218,0.2); }
