:root {
  --bg: #0d0d0f;
  --surface: #141418;
  --surface-soft: linear-gradient(180deg, #17171b 0%, #101013 100%);
  --surface-alt: linear-gradient(180deg, #18181c 0%, #111114 100%);
  --hero-bg: linear-gradient(135deg, #111111, #262626);
  --section-dark: #0f0f12;
  --text: #faf7f2;
  --text-soft: #eee7dc;
  --text-muted: #ded7cd;
  --heading: #f5f1ea;
  --link: #ffbe80;
  --accent: #ff6b00;
  --accent-soft: #ff8a2a;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.06);
  --chip-border: rgba(255, 255, 255, 0.3);
  --chip-bg: rgba(255, 255, 255, 0.12);
  --shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

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

body.light-mode {
  --bg: #f5f0e8;
  --surface: #fffdf9;
  --surface-soft: linear-gradient(180deg, #fffdf9 0%, #f5ede3 100%);
  --surface-alt: linear-gradient(180deg, #fffdf9 0%, #f1e8dd 100%);
  --hero-bg: linear-gradient(135deg, #f7efe4, #eadfce);
  --section-dark: #efe7dc;
  --text: #201c18;
  --text-soft: #342f2a;
  --text-muted: #4a433c;
  --heading: #16120f;
  --link: #b85600;
  --accent: #c85b00;
  --accent-soft: #a64a00;
  --border: rgba(32, 28, 24, 0.12);
  --border-soft: rgba(32, 28, 24, 0.08);
  --chip-border: rgba(32, 28, 24, 0.18);
  --chip-bg: rgba(255, 255, 255, 0.5);
  --shadow: 0 12px 28px rgba(52, 47, 42, 0.12);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  padding: 15px 40px;
  background: var(--surface);
  color: var(--text);
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

a {
  color: var(--link);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.brand-block h2 {
  margin: 0;
}

.brand-block p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.theme-toggle {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  background: var(--hero-bg);
  color: var(--text);
  text-align: left;
  padding: 80px 60px;
}

.hero-content {
  flex: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 3rem;
  line-height: 1.1;
}

.hero p {
  margin: 0 0 24px;
  line-height: 1.7;
  color: var(--text-soft);
}

.hero-media {
  flex: 0 0 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero-image {
  display: block;
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid var(--accent);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.hero-details span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background: var(--chip-bg);
  font-size: 0.95rem;
}

.hero button {
  align-self: flex-start;
  background: var(--accent);
  color: #ffffff;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid var(--chip-border);
  color: var(--text);
  background: var(--chip-bg);
  text-decoration: none;
  font-weight: 700;
}

/* SECTIONS */
section {
  padding: 60px 20px;
  text-align: center;
}

h2 {
  color: var(--heading);
  margin-top: 0;
}

#about {
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
}

.about-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 28px;
  min-width: 0;
}

.about-summary {
  display: grid;
  gap: 20px;
}

.about-card {
  background: var(--surface-soft);
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  border: 1px solid var(--border-soft);
}

.about-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-card h3 {
  margin: 0 0 14px;
  color: var(--heading);
  line-height: 1.35;
}

.about-highlights {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.about-story {
  background: var(--surface-soft);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
}

.about-story p {
  margin: 0 0 20px;
  line-height: 1.8;
  color: var(--text-soft);
}

.about-story p:last-child {
  margin-bottom: 0;
}

.framework {
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
}

.framework-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
  margin-top: 28px;
  min-width: 0;
}

.framework-story {
  background: var(--surface-soft);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
}

.framework-story p {
  margin: 0 0 20px;
  line-height: 1.8;
  color: var(--text-soft);
}

.framework-story p:last-child {
  margin-bottom: 0;
}

.framework-card {
  background: var(--surface-soft);
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  border: 1px solid var(--border-soft);
}

.framework-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}

.experience {
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
}

.experience-intro {
  max-width: 820px;
  margin: 0 0 30px;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.8;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 20px;
  min-width: 0;
}

.program-card {
  background: var(--surface-alt);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
  min-width: 0;
}

.program-card h3 {
  margin: 0 0 14px;
  color: var(--heading);
  line-height: 1.35;
}

.program-card p:last-child {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.digital-skills {
  background: var(--section-dark);
  position: relative;
  overflow: hidden;
}

.digital-skills h2 {
  font-size: 2.4rem;
}

.digital-skills::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.16) 0%, rgba(255, 107, 0, 0) 70%);
  pointer-events: none;
}

.skills-intro {
  max-width: 760px;
  margin: 0 auto 30px;
  line-height: 1.8;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 320px));
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
}

.skill-card {
  text-align: left;
  background: var(--surface-alt);
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  box-shadow: var(--shadow);
  min-width: 0;
}

.skill-tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-card h3 {
  margin: 0 0 12px;
  color: var(--heading);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.skill-card p:last-child {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* SERVICES */
.services {
  background: var(--section-dark);
}

.card {
  display: inline-block;
  background: var(--surface-alt);
  margin: 10px;
  padding: 20px;
  width: 220px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--text-soft);
}

.profile-highlights {
  background: var(--section-dark);
}

.highlight-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  min-width: 0;
}

.highlight-card {
  width: 260px;
  background: var(--surface-alt);
  padding: 24px;
  border-radius: 14px;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
  color: var(--text-soft);
}

.testimonials {
  background: var(--bg);
  padding: 42px 20px;
}

.testimonial-intro {
  max-width: 660px;
  margin: 0 auto 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.testimonial-main {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  min-width: 0;
}

.testimonial-support {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 16px auto 0;
  min-width: 0;
}

.testimonial-card,
.testimonial-image-card {
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.testimonial-image-card--large {
  padding: 14px;
}

.testimonial-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-image {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.graduation-slider {
  position: relative;
  min-height: 0;
}

.graduation-slide {
  display: none;
}

.graduation-slide.is-active {
  display: block;
}

.graduation-screenshot {
  object-fit: contain;
  background: var(--section-dark);
  padding: 4px;
}

.graduation-caption {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.graduation-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.graduation-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
}

.graduation-dot.is-active {
  background: var(--accent);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 44%;
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  max-width: 100%;
}

/* CTA */
.cta {
  background: var(--hero-bg);
  color: var(--text);
}

.cta button {
  background: var(--accent);
  color: #ffffff;
  padding: 14px 28px;
  border: none;
  font-weight: 700;
}

#impact,
#contact {
  background: var(--section-dark);
}

#impact {
  padding-left: 24px;
  padding-right: 24px;
}

.impact-intro {
  max-width: 860px;
  margin: 0 auto 32px;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 320px));
  justify-content: center;
  gap: 24px;
  margin: 0 auto 34px;
}

.impact-stat-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--surface-alt);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.impact-stat-card h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 2.4rem;
  line-height: 1;
}

.impact-stat-card p {
  margin: 0;
  color: var(--text-soft);
}

.impact-story {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

.impact-story p {
  margin: 0 0 18px;
  color: var(--text-soft);
}

.impact-story p:last-child {
  margin-bottom: 0;
}

#contact a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

#impact p,
#contact p,
.card p,
.highlight-card p,
.framework-list,
.about-highlights {
  color: var(--text-soft);
}

.card h3,
.highlight-card h3 {
  color: var(--heading);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  padding: 40px 24px 50px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  min-width: 0;
}

.footer-brand h3 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 1.6rem;
}

.footer-brand p {
  margin: 0 0 10px;
  color: var(--text-soft);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 16px;
}

.footer-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  min-width: 0;
}

.footer-link-card strong {
  display: block;
  color: var(--heading);
  margin-bottom: 4px;
}

.footer-link-card small {
  color: var(--text-soft);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

a:hover,
nav a:hover,
#contact a:hover,
.secondary-button:hover,
.footer-link-card:hover {
  color: var(--accent-soft);
}

button:hover,
.hero button:hover,
.cta button:hover {
  background: var(--accent-soft);
}

a:focus-visible,
button:focus-visible,
.footer-link-card:focus-visible,
nav a:focus-visible {
  outline: 3px solid #ffd9b3;
  outline-offset: 3px;
  border-radius: 8px;
}

/* MOBILE */
@media (max-width: 600px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 50px 20px;
    gap: 28px;
  }

  .hero-content {
    max-width: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-media {
    flex-basis: auto;
  }

  .hero-details {
    justify-content: center;
  }

  #about {
    text-align: center;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    text-align: left;
  }

  .framework {
    text-align: center;
  }

  .framework-layout {
    grid-template-columns: 1fr;
  }

  .framework-list {
    text-align: left;
  }

  .experience {
    text-align: center;
  }

  .experience-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .digital-skills h2 {
    font-size: 2rem;
  }

  .digital-skills {
    padding-left: 16px;
    padding-right: 16px;
  }

  .digital-skills::before {
    top: -90px;
    right: -150px;
    width: 220px;
    height: 220px;
  }

  .skills-intro {
    margin-bottom: 22px;
    line-height: 1.65;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 22px;
  }

  .skill-card {
    width: 100%;
    padding: 20px;
    border-radius: 14px;
  }

  .skill-tag {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .skill-card h3 {
    font-size: 1.12rem;
  }

  .testimonial-layout {
    grid-template-columns: 1fr;
  }

  .testimonial-support {
    grid-template-columns: 1fr;
  }

  .impact-stats {
    grid-template-columns: 1fr;
  }

  .card {
    display: block;
    width: 90%;
    margin: 10px auto;
  }

  .hero-image {
    width: 240px;
    height: 240px;
  }

  .hero button {
    align-self: center;
  }

  .hero-actions {
    justify-content: center;
  }

  nav {
    flex-direction: column;
    text-align: center;
  }

  .nav-actions {
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 14px 22px;
  }

  .nav-actions {
    gap: 14px;
  }

  .hero {
    gap: 28px;
    padding: 56px 28px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-media {
    flex: 0 0 300px;
  }

  .hero-image {
    width: 260px;
    height: 260px;
  }

  .about-layout,
  .framework-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .card {
    width: min(280px, calc(50% - 28px));
  }

  .highlight-card {
    width: min(280px, 100%);
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .hero {
    padding: 42px 16px;
    gap: 22px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero button {
    width: 100%;
    max-width: 260px;
  }

  .hero-actions {
    width: 100%;
  }

  .secondary-button {
    width: 100%;
    max-width: 260px;
  }

  .hero-image {
    width: min(240px, 70vw);
    height: min(240px, 70vw);
  }

  .nav-actions {
    width: 100%;
    display: none;
    flex-direction: column;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .nav-actions.is-open {
    display: flex;
  }

  nav ul {
    justify-content: center;
    gap: 12px 16px;
    flex-direction: column;
    width: 100%;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .theme-toggle {
    width: 100%;
    max-width: 220px;
  }

  .menu-toggle {
    display: inline-flex;
    align-self: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
  }

  .testimonial-main,
  .testimonial-support {
    max-width: none;
    width: 100%;
  }

  .testimonial-image {
    aspect-ratio: 4 / 3;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 22px;
  }

  .skill-card {
    width: 100%;
    padding: 20px;
    border-radius: 14px;
  }

  .skill-tag {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .skill-card h3 {
    font-size: 1.12rem;
  }

  .card {
    width: auto;
    margin: 10px 0;
  }

  .about-card,
  .about-story,
  .framework-story,
  .framework-card,
  .program-card,
  .testimonial-card,
  .testimonial-image-card,
  .impact-story,
  .impact-stat-card,
  .footer-link-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer {
    padding: 32px 16px 40px;
  }

  #contact p,
  .footer-link-card small,
  .footer-link-card strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 420px) {
  section {
    padding: 42px 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .brand-block p {
    font-size: 0.9rem;
  }

  .hero-details span {
    width: 100%;
  }

  .graduation-caption,
  .testimonial-intro,
  .skills-intro,
  .impact-intro {
    font-size: 0.92rem;
  }

  .digital-skills h2 {
    font-size: 1.75rem;
  }

  .skill-card {
    padding: 18px 16px;
  }

  .skill-tag {
    padding: 7px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
  }
}
