/* ================================================
   PORTFOLIO – Bénéfice Izibyose
   styles.css
   I tried to keep this organised into sections
   so it's easy to find things
   ================================================ */

/* ---------- CSS CUSTOM PROPERTIES (variables) ---------- */
:root {
  --clr-bg:        #faf8f5;
  --clr-surface:   #fefdfb;
  --clr-surface2:  #e8e1d8;
  --clr-border:    #d4ccc1;
  --clr-text:      #3a3935;
  --clr-text-sub:  #6b6360;
  --clr-accent:    #3ba89f;    /* soft teal */
  --clr-accent2:   #5a5450;    /* warm dark */
  --clr-danger:    #d85551;

  --font-main:   'Sora', sans-serif;
  --font-mono:   'DM Mono', monospace;

  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 20px rgba(0,0,0,0.12);
  --shadow-lg:   0 16px 40px rgba(0,0,0,0.16);

  --nav-height:  64px;
  --max-width:   1100px;
  --section-gap: 96px;
}

/* Dark mode – toggled by JS adding class to <body> */
body.dark-mode {
  --clr-bg:       #111410;
  --clr-surface:  #191e1d;
  --clr-surface2: #252720;
  --clr-border:   #333630;
  --clr-text:     #e8e4dc;
  --clr-text-sub: #b5d9ca;
  --clr-accent:   #0bcb35;
  --clr-accent2:  #666861;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

/* screen reader only – accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- LAYOUT UTILITY ---------- */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-gap) 32px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
}

/* decorative underline on section titles */
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 5px;
  background: var(--clr-accent);
  margin-top: 10px;
  border-radius: 3px;
}

.section-sub {
  color: var(--clr-text-sub);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: transparent;
  color: var(--clr-accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 168, 159, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--clr-accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 168, 159, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-text-sub);
  border-color: var(--clr-border);
}
.btn-ghost:hover {
  border-color: var(--clr-text-sub);
  text-decoration: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-surface);
  border-bottom: 2px solid var(--clr-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--clr-text);
  white-space: nowrap;
  margin-right: auto;
}
.brand-tag {
  color: var(--clr-accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: all 0.3s ease;
}
.nav-links a:hover, .nav-links a:focus-visible {
  background: var(--clr-surface2);
  color: var(--clr-accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.theme-toggle {
  background: var(--clr-surface2);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--clr-border);
  transform: scale(1.05);
}

/* hamburger – mobile only */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: calc(100vh - var(--nav-height));
  background: var(--clr-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 32px 60px;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.hero-text {
  flex: 1;
  max-width: 580px;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--clr-text-sub);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

#hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.highlight {
  color: var(--clr-accent);
}

.hero-role {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--clr-text-sub);
  margin-bottom: 24px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.role-prefix {
  color: var(--clr-accent2);
  margin-right: 8px;
}

.hero-tagline {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--clr-text-sub);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Avatar placeholder – shown when no real image is uploaded */
.hero-image-wrapper {
  flex-shrink: 0;
}

.avatar-placeholder {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
  border: 5px solid var(--clr-surface);
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  transition: transform 0.4s ease;
}
.avatar-placeholder img:hover {
  transform: scale(1.05);
}

.avatar-initials {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}

.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--clr-accent);
  opacity: 0.3;
  animation: pulse-ring 3.5s ease infinite;
}
.ring-1 {
  width: 260px;
  height: 260px;
  animation-delay: 0s;
}
.ring-2 {
  width: 300px;
  height: 300px;
  opacity: 0.12;
  animation-delay: 1.5s;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50%       { transform: scale(1.04); opacity: 0.35; }
}

.scroll-hint {
  text-align: center;
  color: var(--clr-text-sub);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 48px;
  letter-spacing: 0.1em;
  animation: bounce 2s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  background: var(--clr-bg);
}

.about-grid {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.about-text {
  flex: 2;
}
.about-text p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--clr-text);
}

.about-skills-box {
  flex: 1;
  min-width: 240px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}
.about-skills-box:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-accent);
}
.about-skills-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--clr-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.skills-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skills-tags li {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: all 0.3s ease;
}
.skills-tags li:hover {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
  transform: translateY(-2px);
}}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
#skills {
  background: var(--clr-surface);
}

.skills-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.skill-card {
  flex: 1 1 280px;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
}
.skill-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--clr-accent);
}

.skill-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.skill-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: var(--clr-border);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent2));
  border-radius: 5px;
  width: 0%;
  /* width is set by JS animation */
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-pct {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--clr-accent);
  margin-bottom: 8px;
}

.skill-note {
  font-size: 0.82rem;
  color: var(--clr-text-sub);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
#projects {
  background: var(--clr-bg);
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.project-card {
  flex: 1 1 300px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: var(--clr-accent);
}

.project-img-wrap {
  background: var(--clr-surface2);
  border-bottom: 1px solid var(--clr-border);
}

.project-img-placeholder {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 2.5rem;
  color: var(--clr-text-sub);
}
.project-img-placeholder small {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--clr-text-sub);
}

.project-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.project-problem,
.project-desc {
  font-size: 0.88rem;
  color: var(--clr-text-sub);
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.project-tech span {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--clr-text-sub);
}

.project-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-accent);
  margin-top: 4px;
}

/* ============================================================
   GPA CALCULATOR SECTION
   ============================================================ */
#calculator {
  background: var(--clr-surface);
}

.calc-wrapper {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 820px;
}

#courses-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.course-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.course-row:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 2px 8px rgba(59, 168, 159, 0.1);
}

.course-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.course-row input:focus {
  outline: none;
  border-color: var(--clr-accent);
}
.course-row input::placeholder {
  color: var(--clr-text-sub);
  opacity: 0.7;
}

.course-mark,
.course-credits {
  flex: 0 0 110px;
}

.btn-remove-row {
  background: none;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-sub);
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.btn-remove-row:hover {
  background: var(--clr-danger);
  color: #fff;
  border-color: var(--clr-danger);
}

.calc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.calc-error {
  color: var(--clr-danger);
  font-size: 0.88rem;
  margin-bottom: 12px;
  min-height: 20px;
}

.calc-result {
  margin: 20px 0;
  background: var(--clr-surface);
  border: 2px solid var(--clr-accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  animation: slide-in 0.3s ease;
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.result-gpa {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-sub);
  font-family: var(--font-mono);
}
.result-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--clr-accent);
  font-family: var(--font-mono);
  line-height: 1;
}
.result-scale {
  font-size: 0.85rem;
  color: var(--clr-text-sub);
}

.result-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}
.result-details strong {
  color: var(--clr-accent);
}

/* GPA table */
.gpa-scale {
  margin-top: 28px;
  border-top: 1px solid var(--clr-border);
  padding-top: 20px;
}
.gpa-scale h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.gpa-scale table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.gpa-scale th, .gpa-scale td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
}
.gpa-scale th {
  color: var(--clr-text-sub);
  font-weight: 600;
  font-family: var(--font-mono);
}
.gpa-scale td:first-child {
  font-family: var(--font-mono);
}

/* ============================================================
   CV SECTION
   ============================================================ */
#cv {
  background: var(--clr-bg);
}

.cv-actions {
  margin-bottom: 32px;
}

.cv-preview {
  background: #1a1a1a;
  border: none;
  border-radius: 0;
  padding: 50px 45px;
  max-width: 800px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #e8e8e8;
  position: relative;
}

.cv-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #3ba89f, #60d5c8);
  border-radius: 0;
}

.cv-photo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 35px;
  padding-bottom: 30px;
  border-bottom: 3px solid #3ba89f;
}

.cv-profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid #3ba89f;
  box-shadow: 0 8px 25px rgba(59, 168, 159, 0.3);
  display: block;
  margin-bottom: 15px;
}

.cv-header {
  border-bottom: none;
  padding-bottom: 10px;
  margin-bottom: 35px;
  text-align: left;
}

.cv-header h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.cv-header p {
  font-size: 0.95rem;
  color: #b0b0b0;
  line-height: 1.8;
  margin: 4px 0;
}

.cv-section {
  margin-bottom: 32px;
}

.cv-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #3ba89f;
  margin-bottom: 16px;
  border-bottom: 2px solid #3ba89f;
  padding-bottom: 10px;
}

.cv-entry {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 0.93rem;
  line-height: 1.6;
  page-break-inside: avoid;
  color: #d0d0d0;
}

.cv-date {
  flex-shrink: 0;
  width: 100px;
  color: #3ba89f;
  font-weight: 700;
  font-size: 0.85rem;
  padding-top: 0;
}

.cv-section > p {
  font-size: 0.93rem;
  color: #d0d0d0;
  line-height: 1.7;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  background: var(--clr-surface);
}

.contact-wrapper {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 240px;
}
.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Contact form */
.contact-form {
  flex: 1.5;
  min-width: 280px;
}
.contact-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-note {
  font-size: 0.8rem;
  color: var(--clr-text-sub);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--clr-text);
}
.form-group label span[aria-hidden] {
  color: var(--clr-danger);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(26,107,58,0.15);
}
.form-group input.error,
.form-group textarea.error {
  border-color: var(--clr-danger);
}

.field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--clr-danger);
  margin-top: 4px;
  min-height: 18px;
}

.form-success {
  margin-top: 16px;
  background: #e8f5ee;
  border: 1px solid var(--clr-accent);
  color: #1a6b3a;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
}
body.dark-mode .form-success {
  background: #1a2e21;
  color: var(--clr-accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--clr-surface2);
  border-top: 1px solid var(--clr-border);
  padding: 32px 24px;
  text-align: center;
}
.footer-inner p {
  font-size: 0.88rem;
  color: var(--clr-text-sub);
  line-height: 1.8;
}
.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ============================================================
   MEDIA QUERIES – RESPONSIVENESS
   ============================================================ */

/* TABLET – 768px and below */
@media (max-width: 768px) {

  :root {
    --section-gap: 64px;
  }

  /* Nav becomes mobile menu */
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 16px;
    display: block;
  }

  /* Navbar needs to be relative for dropdown */
  #site-header {
    position: sticky;
  }
  .navbar {
    position: relative;
    flex-wrap: wrap;
  }

  /* Hero stacks vertically */
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-tagline {
    margin: 0 auto 36px;
  }
  .hero-actions {
    justify-content: center;
  }

  /* About stacks */
  .about-grid {
    flex-direction: column;
  }
  .about-skills-box {
    width: 100%;
  }

  /* Contact stacks */
  .contact-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  /* Calculator rows stack */
  .course-row {
    flex-wrap: wrap;
  }
  .course-mark,
  .course-credits {
    flex: 1 1 120px;
  }
}

/* MOBILE – 480px and below */
@media (max-width: 480px) {

  :root {
    --section-gap: 48px;
  }

  #hero {
    padding: 48px 16px 32px;
  }

  .section-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .avatar-placeholder {
    width: 160px;
    height: 160px;
  }
  .avatar-initials {
    width: 120px;
    height: 120px;
    font-size: 1.4rem;
  }
  .ring-1 { width: 140px; height: 140px; }
  .ring-2 { width: 160px; height: 160px; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 280px;
  }

  .skills-cards {
    gap: 16px;
  }
  .skill-card {
    flex: 1 1 100%;
  }

  .result-inner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .cv-preview {
    padding: 24px 16px;
  }
  .cv-entry {
    flex-direction: column;
    gap: 4px;
  }
  .cv-date {
    width: auto;
  }

  .calc-wrapper {
    padding: 20px 16px;
  }

  .calc-actions {
    flex-direction: column;
  }
  .calc-actions .btn {
    max-width: 100%;
  }
}
