/* ============================================================
   main.css — base layout, header, footer, section cards
   ============================================================ */

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

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-image: url('../nicebackground.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: #333;
  min-height: 100vh;
}

/* ---- Header ---- */
header {
  background-color: rgba(88, 6, 6, 0.92);
  color: #f4f4f4;
  padding: 1em 0 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

header h1 {
  margin: 0 0 0.4em;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
}

.headline-subtitle {
  margin: 0 0 0.9em;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 244, 244, 0.86);
}

/* ---- Main content area ---- */
main {
  padding: 2em 1em 4em;
  max-width: 860px;
  margin: 0 auto;
}

/* ---- Section cards ---- */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  padding: 2em;
  margin-bottom: 2em;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.card h2 {
  margin-top: 0;
  color: #580606;
  border-bottom: 2px solid #f0e0e0;
  padding-bottom: 0.4em;
}

/* ---- Intro / Home ---- */
.intro-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.intro-wrap img {
  border-radius: 50%;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.intro-wrap img:hover {
  transform: scale(1.05);
}

.intro-text h2 {
  margin-top: 0;
  border: none;
  padding: 0;
}

/* ---- Skills ---- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6em;
}

.skills-grid p {
  margin: 0;
  line-height: 1.6;
}

/* ---- Contact ---- */
.contact-links p {
  margin: 0.5em 0;
}

.contact-links a {
  color: #1b3d9b;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: #580606;
}

/* ---- Panel bottom navigation ---- */
.panel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1em;
  gap: 1em;
}

.panel-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background-color: #580606;
  color: #f4f4f4;
  border: none;
  border-radius: 6px;
  padding: 0.6em 1.4em;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  text-decoration: none;
}

.panel-nav-btn:hover {
  background-color: #7a0a0a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.24);
}

.panel-nav-btn:focus,
.panel-nav-btn:focus-visible {
  outline: 2px solid #ffeb3b;
  outline-offset: 2px;
}

.panel-nav-btn--next {
  margin-left: auto;
}

/* ---- Footer ---- */
footer {
  background-color: rgba(88, 6, 6, 0.88);
  color: #f4f4f4;
  padding: 1em 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ---- Monospace utility ---- */
.mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.timeline-legend {
  font-size: 0.8rem;
  color: #777;
}

.timeline-legend-education-dot {
  color: #1b3d9b;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .headline-subtitle {
    font-size: 0.75rem;
  }

  .intro-wrap {
    flex-direction: column;
    text-align: center;
  }
  main {
    padding: 1em 0.5em 3em;
  }
  .card {
    padding: 1.2em;
  }
}
