/* ========== VARIABLES ========== */
:root {
  --navy: #000000;
  --navy-mid: #141414;
  --navy-light: #1c1c1c;
  --accent: #c8a84b;
  --accent-light: #e2c578;
  --text: #e8e8e8;
  --text-muted: #9a9a9a;
  --white: #ffffff;
  --card-bg: #0c0c0c;
  --border: rgba(200, 168, 75, 0.2);
}

/* ========== RESET ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
}

/* ========== ACCESSIBILITY ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--navy);
  padding: 0.5rem 1.5rem;
  z-index: 200;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #050505 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(200,168,75,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(200,168,75,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-accent-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: 'Georgia', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.hero-name span { color: var(--accent); }

.hero-title {
  font-family: 'Arial', sans-serif;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-summary {
  font-family: 'Arial', sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  max-width: 580px;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.stat-item { text-align: left; }

.stat-number {
  font-family: 'Arial', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 3px;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(200,168,75,0.1);
  transform: translateY(-2px);
}

/* ========== HERO PHOTO ========== */
.hero-photo-wrap {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  border-radius: 8px;
  z-index: -1;
}

.hero-photo-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 4px;
}

.hero-photo-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
}

.badge-text {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-value {
  font-family: 'Arial', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-photo-badge-right {
  left: auto;
  right: -1.5rem;
}

/* ========== MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: var(--white); }

.modal h3 {
  font-family: 'Georgia', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.modal p {
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-form label {
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-form input {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.7rem 0.9rem;
  color: var(--white);
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.modal-form input:focus {
  border-color: var(--accent);
}

.modal-form input::placeholder {
  color: #555;
}

.modal-form .btn {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
  cursor: pointer;
  border: none;
}

.modal-status {
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  color: var(--accent);
  text-align: center;
  margin-top: 0.75rem;
  min-height: 1.2em;
}

/* ========== HORIZONTAL SCROLL CONTAINER ========== */
.hscroll-wrapper {
  position: relative;
  height: calc(100vh - 64px);
  margin-top: 0;
  overflow: hidden;
}

.hscroll-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.hscroll-panel {
  width: 100vw;
  min-width: 100vw;
  flex-shrink: 0;
  box-sizing: border-box;
  padding-top: 6rem;
  padding-bottom: 3rem;
  overflow-y: auto;
}

/* Center content in short panels while keeping heading at top */
.hscroll-panel-centered {
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}

.hscroll-panel-centered > .container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hscroll-panel-centered .competencies-wrap {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 0.75rem;
}

/* Dot navigation */
.hscroll-nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.hscroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.hscroll-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.hscroll-dot:hover {
  background: rgba(200,168,75,0.5);
}

/* Arrow buttons — fixed position relative to viewport */
.hscroll-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
}

.hscroll-arrow.visible {
  display: flex;
}

.hscroll-arrow:hover {
  background: rgba(200,168,75,0.15);
  border-color: var(--accent);
}

.hscroll-arrow-left { left: 1rem; }
.hscroll-arrow-right { right: 1rem; }

/* ========== SECTIONS (SHARED) ========== */
section { padding: 6rem 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Georgia', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  font-weight: 700;
}

/* ========== ABOUT ========== */
#about { background: var(--navy-mid); }

#about .section-title {
  white-space: nowrap;
  font-size: clamp(1.4rem, 2.8vw, 2.5rem);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: center;
}

.about-photo {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* ========== HIGHLIGHTS ========== */
#highlights { background: var(--navy-mid); }

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.highlight-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

/* ========== COMPETENCIES ========== */
.competencies-header {
  margin-bottom: 2rem;
}

.competencies-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.competency-tag {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.competency-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== EXPERIENCE ========== */
#experience { background: var(--navy); }

.timeline-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.timeline-toggle-all {
  font-size: 0.75rem;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #000000;
  box-shadow: 0 0 0 3px rgba(200,168,75,0.2);
}

/* Accordion header — clickable area */
.timeline-header {
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
  transition: opacity 0.2s;
}

.timeline-header:hover {
  opacity: 0.85;
}

.timeline-header:hover .timeline-company {
  color: var(--accent);
}

/* Expand/collapse icon */
.timeline-expand-icon {
  position: absolute;
  top: 0.3rem;
  right: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-expand-icon::before {
  content: '+';
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s;
  display: block;
  line-height: 1;
}

.timeline-item.expanded .timeline-expand-icon::before {
  content: '\2212';
}

/* Collapsible details */
.timeline-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.timeline-item.expanded .timeline-details {
  max-height: 800px;
  opacity: 1;
  margin-top: 0.75rem;
}

.timeline-meta {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.timeline-date {
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(200,168,75,0.08);
  border: 1px solid var(--border);
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.timeline-location {
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.timeline-company {
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.1rem;
  transition: color 0.2s;
}

.timeline-role {
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.timeline-context {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-style: italic;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-bullets li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '\203A';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.timeline-bullets li strong {
  color: var(--white);
}

/* ========== PROJECTS ========== */
#projects { background: var(--navy-mid); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.project-domain {
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-client {
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.project-role {
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

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

.project-tech {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(200,168,75,0.06);
  border: 1px solid rgba(200,168,75,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

/* ========== EDUCATION ========== */
#education { background: var(--navy); }

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s;
}

.edu-card:hover { border-color: var(--accent); }

.edu-degree {
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.edu-school {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 700;
}

.edu-detail {
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== SKILLS ========== */
#skills { background: var(--navy-mid); }

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.skills-group-title {
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skills-list li {
  font-family: 'Arial', sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.skills-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ========== CONTACT ========== */
#contact { background: var(--navy); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-value {
  font-family: 'Arial', sans-serif;
  font-size: 0.95rem;
  color: var(--white);
}

.contact-value a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value a:hover { color: var(--accent); }

.contact-quote {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 2.5rem;
}

.contact-quote blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
}

.contact-quote cite {
  display: block;
  margin-top: 1rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  color: var(--accent);
  font-style: normal;
}

/* ========== FOOTER ========== */
footer {
  background: #000000;
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

/* ========== DIVIDER ========== */
.divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 1.5rem 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 2rem;
  }
  .hero-eyebrow {
    justify-content: flex-start;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }
  .hero-name {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }
  .hero-title {
    font-size: 0.95rem;
  }
  .hero-summary {
    margin: 0 0 2rem;
    font-size: 0.88rem;
    line-height: 1.6;
  }
  .hero-stats {
    justify-content: flex-start;
    gap: 1.5rem;
  }
  .stat-number { font-size: 1.5rem; }
  .hero-cta { justify-content: flex-start; }
  .hero-photo-wrap { order: -1; max-width: 100%; margin: 0 auto; }
  .hero-photo-frame img { height: 400px; }
  .hero-photo-badge {
    bottom: -1rem;
    left: 0;
    padding: 0.6rem 0.9rem;
  }
  .hero-photo-badge-right {
    left: auto;
    right: 0;
  }
  .badge-value { font-size: 1rem; }
  .modal { padding: 1.75rem; }

  .about-layout { grid-template-columns: 1fr; }
  .about-photo { max-width: 100%; }

  .section-title { font-size: 1.6rem; }

  .highlights-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .skills-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }

  .contact-quote { padding: 1.5rem; }
  .contact-quote blockquote { font-size: 0.95rem; }

  .hscroll-arrow.visible { display: none; }
  .hscroll-nav { padding: 1rem 0; }

  .hscroll-panel {
    width: 100%;
    min-width: 100%;
    overflow-x: hidden;
  }

  #about .section-title {
    white-space: normal;
    font-size: 1.4rem;
  }

  .hscroll-panel-centered {
    overflow-y: auto;
  }

  .hscroll-panel-centered .competencies-wrap {
    padding-bottom: 3rem;
    align-content: flex-start;
  }

  .nav-links { display: none; }
  .container { padding: 0 1.25rem; }
  .hero-content { padding: 2rem 1.25rem; }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem;
  }
}
