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

html { scroll-behavior: smooth; }

:root {
  --accent: #64ffda;
  --bg: #0a192f;
}

body {
  background-color: var(--bg);
  color: #8892b0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a192f; }
::-webkit-scrollbar-thumb { background: #233554; border-radius: 3px; }
::selection { background: #64ffda33; color: #ccd6f6; }

/* ── Tweaks panel ── */
#tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #112240;
  border: 1px solid #233554;
  border-radius: 12px;
  padding: 20px;
  width: 240px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
  font-size: 13px;
}
#tweaks-panel.visible { display: block; }
#tweaks-panel h3 {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row label { display: block; color: #a8b2d8; margin-bottom: 6px; font-size: 12px; }
.tweak-row input[type=color] { width: 100%; height: 32px; border: 1px solid #233554; border-radius: 6px; background: #0a192f; cursor: pointer; }
.tweak-row select { width: 100%; padding: 6px 8px; border: 1px solid #233554; border-radius: 6px; background: #0a192f; color: #ccd6f6; font-size: 12px; }
.tweak-row input[type=range] { width: 100%; accent-color: var(--accent); }

/* ── Layout ── */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0 80px;
}

/* ── Sidebar ── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 0;
}

.sidebar-greeting {
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  margin-bottom: 16px;
}

.sidebar-name {
  color: #ccd6f6;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.sidebar-title {
  color: #8892b0;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 280px;
}

.sidebar-intro {
  max-width: 280px;
  line-height: 1.7;
  font-size: 15px;
}

/* ── Navigation ── */
nav { margin-top: 48px; }
nav ul { list-style: none; }
nav li { margin-bottom: 4px; }

nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 6px 0;
  color: #8892b0;
  transition: color 0.2s;
}

nav a:hover,
nav a.active { color: #ccd6f6; }

.nav-line {
  display: block;
  height: 1px;
  width: 24px;
  background: #495670;
  flex-shrink: 0;
  transition: width 0.3s ease, background 0.3s ease;
}

nav a:hover .nav-line,
nav a.active .nav-line { width: 48px; background: #ccd6f6; }

.nav-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

nav a.active .nav-label { font-weight: 600; }

/* ── Social links ── */
.social-links { display: flex; gap: 20px; align-items: center; }

.social-links a {
  color: #a8b2d8;
  display: flex;
  align-items: center;
  transition: color 0.2s, transform 0.2s;
}

.social-links a:hover { color: var(--accent); transform: translateY(-2px); }

/* ── Main ── */
main { padding: 100px 0; }

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.section-number {
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 14px;
}

.section-title {
  color: #ccd6f6;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: #233554;
  max-width: 260px;
}

section { margin-bottom: 100px; }

/* ── About ── */
.about-grid::after {
  content: '';
  display: table;
  clear: both;
}

.about-text {
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 15px;
  max-width: 68ch;
}

.about-text strong, .sidebar-intro strong { color: #64ffda; }

.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px 0;
  list-style: none;
  margin-top: 16px;
  max-width: 100%;
}

.skills-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 3px 0;
  color: #8892b0;
  font-family: 'Fira Code', monospace;
}

.skills-list li::before {
  content: '▹';
  color: var(--accent);
  font-size: 10px;
  flex-shrink: 0;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 24px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.resume-btn:hover {
  background: rgba(100, 255, 218, 0.1);
}

/* ── Photo (editorial float) ── */
.photo-wrapper {
  float: right;
  width: 270px;
  height: 270px;
  position: relative;
  margin: 4px 0 32px 48px;
}

.photo-frame {
  width: 270px;
  height: 270px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  transition: box-shadow 0.4s ease;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) brightness(0.9);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.photo-wrapper:hover .photo-frame {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 66%, transparent);
  border-color: #64ffdba4;
}

.photo-wrapper:hover .photo-frame img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.04);
}

.photo-shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 14px;
  left: 14px;
  border: 2px solid color-mix(in srgb, var(--accent) 68%, transparent);
  border-radius: 4px;
  z-index: -1;
  pointer-events: none;
  transition: top 0.4s ease, left 0.4s ease;
}

.photo-wrapper:hover .photo-shadow {
  top: 2px;
  left: 2px;
  border-color: #64ffdba4;
}


/* ── Experience tabs ── */
.exp-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.exp-tab-list {
  border-left: 2px solid #233554;
  position: relative;
}

.exp-indicator {
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 46px;
  background: var(--accent);
  transition: top 0.3s ease;
}

.exp-tab {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #8892b0;
  font-size: 13px;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.05em;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-tab:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.exp-tab.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }

.exp-content { padding: 0 0 0 28px; }

.exp-panel { display: none; }
.exp-panel.active { display: block; }

.exp-role { color: #ccd6f6; font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.exp-role .company { color: var(--accent); }
.exp-role .company a { color: inherit; text-decoration: none; }

.exp-period {
  color: #b1bad3;
  font-size: 13px;
  font-family: 'Fira Code', monospace;
  margin-bottom: 20px;
}

.exp-desc { margin-bottom: 16px; line-height: 1.7; }

.exp-bullets { list-style: none; margin-bottom: 20px; }

.exp-bullets li {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.exp-bullets li::before {
  content: '▹';
  color: var(--accent);
  font-size: 10px;
  margin-top: 5px;
  flex-shrink: 0;
}

.exp-tags { display: flex; flex-wrap: wrap; }

/* ── Career Progression Timeline ── */
.exp-progression {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.exp-prog-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0 16px;
}

.exp-prog-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.exp-prog-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}

.exp-prog-dot--junior {
  background: #a8b2d8;
  box-shadow: none;
}

.exp-prog-dot--intern {
  background: #495670;
  box-shadow: none;
}

.exp-prog-line {
  width: 2px;
  flex: 1;
  background: #233554;
  margin: 6px 0;
  min-height: 20px;
}

.exp-prog-body {
  padding-bottom: 32px;
}

.exp-prog-item--last .exp-prog-body {
  padding-bottom: 0;
}

.exp-prog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.exp-prog-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-family: 'Fira Code', monospace;
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.exp-prog-badge--junior {
  background: color-mix(in srgb, #a8b2d8 10%, transparent);
  color: #a8b2d8;
  border-color: color-mix(in srgb, #a8b2d8 25%, transparent);
}

.exp-prog-badge--intern {
  background: color-mix(in srgb, #495670 20%, transparent);
  color: #495670;
  border-color: color-mix(in srgb, #495670 40%, transparent);
}

.exp-prog-dates {
  color: #8892b0;
  font-size: 13px;
  font-family: 'Fira Code', monospace;
}

/* ── Tag pill ── */
.tag {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-family: 'Fira Code', monospace;
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 6px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Featured projects ── */
.featured-project { position: relative; margin-bottom: 80px; }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.featured-image {
  grid-row: 1;
  border-radius: 4px;
  overflow: hidden;
  height: 245px;
  width: 430px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  position: relative;
  margin-top: -25px;
}

.featured-project--even .featured-image { grid-column: 1; }
.featured-project--odd  .featured-image { grid-column: 2; }

.featured-video-link {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-image {
  transition: transform 0.4s ease;
}

.featured-project:hover .featured-image {
  transform: scale(1.07);
}

.featured-text {
  width: 200px;
  grid-row: 1;
  position: relative;
  z-index: 2;
}

.featured-project--even .featured-text { grid-column: 2; text-align: right; }
.featured-project--odd  .featured-text { grid-column: 1; text-align: left; }

.featured-label {
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.featured-name {
  color: #ccd6f6;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.featured-desc {
  background: #112240;
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
}

.featured-project--even .featured-desc { margin-left: -160px; }
.featured-project--odd  .featured-desc { margin-right: -160px; }

.featured-desc p {
  font-size: 14px;
  line-height: 1.75;
  color: #a8b2d8;
}

.featured-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  color: #8892b0;
}

.featured-project--even .featured-tech { justify-content: flex-end; }
.featured-project--odd  .featured-tech { justify-content: flex-start; }

.featured-icons { display: flex; gap: 14px; }

.featured-project--even .featured-icons { justify-content: flex-end; }
.featured-project--odd  .featured-icons { justify-content: flex-start; }

.featured-icons a,
.featured-icons .icon-btn {
  color: #a8b2d8;
  display: flex;
  transition: color 0.2s, transform 0.2s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.featured-icons a:hover,
.featured-icons .icon-btn:hover { color: var(--accent); transform: translateY(-2px); }

/* ── Mock UIs inside featured images ── */
.mock-spotify {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: #0d2137;
}

.mock-spotify-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 2px solid color-mix(in srgb, var(--accent) 27%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-spotify-icon svg { fill: var(--accent); opacity: 0.53; }

.mock-heading {
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 18px;
  font-weight: 600;
}

.mock-sub {
  color: #495670;
  font-size: 11px;
  font-family: 'Fira Code', monospace;
}

.mock-rows {
  width: 100%;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #112240;
  border-radius: 4px;
  font-size: 11px;
}

.mock-row span:first-child { color: #8892b0; }
.mock-row span:last-child { color: var(--accent); font-size: 10px; font-family: 'Fira Code', monospace; }

.mock-pricing {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #0d2137;
}

.mock-pricing-label {
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  margin-bottom: 4px;
}

.mock-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #112240;
  border-radius: 4px;
  border: 1px solid #233554;
}

.mock-pricing-row span:first-child { color: #8892b0; font-size: 12px; }
.mock-pricing-row span:last-child { color: var(--accent); font-family: 'Fira Code', monospace; font-size: 13px; font-weight: 600; }

.mock-pricing-cta {
  margin-top: auto;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 27%, transparent);
  text-align: center;
}

.mock-pricing-cta span { color: var(--accent); font-size: 12px; font-family: 'Fira Code', monospace; }

/* ── Other projects header ── */
.other-projects-header {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
}
.other-projects-title {
  color: #ccd6f6;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
}
.other-projects-archive {
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.other-projects-archive:hover { text-decoration: underline; }

/* ── Other project cards ── */
.other-projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.project-card {
  background: #112240;
  border-radius: 4px;
  padding: 28px;
  border: 1px solid #1d3461;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border-color: color-mix(in srgb, var(--accent) 27%, transparent);
}

.project-card:hover h3 {
	color: var(--accent);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.project-card-top .folder { color: color-mix(in srgb, var(--accent) 60%, transparent); }

.project-card-links { display: flex; gap: 12px; }

.project-card-links a {
  color: #a8b2d8;
  display: flex;
  transition: color 0.2s;
}

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

.project-card h3 { color: #ccd6f6; font-size: 17px; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.project-card p  { font-size: 14px; line-height: 1.7; color: #8892b0; margin-bottom: 24px; flex: 1; }

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: #495670;
  margin-top: auto;
}

/* ── Contact ── */
#contact { text-align: center; padding: 0 40px; }

.contact-eyebrow {
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  margin-bottom: 16px;
}

#contact h2 { color: #ccd6f6; font-size: 48px; font-weight: 600; margin-bottom: 20px; line-height: 1.1; }
#contact > p { max-width: 490px; margin: 0 auto 40px; line-height: 1.7; font-size: 15px; }

#contact span {
  margin-bottom: -3px;
  margin-left: 4px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 16px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  background: transparent;
}

.contact-btn:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ── Footer ── */
footer { text-align: center; padding: 20px 0 40px; border-top: 1px solid #233554; }

footer a {
  color: #495670;
  font-size: 13px;
  font-family: 'Fira Code', monospace;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

footer a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════
   RESPONSIVIDADE MOBILE
══════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Layout: colapsa para coluna única */
  .layout {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 0;
  }

  /* Sidebar: deixa de ser sticky e vira seção normal no topo */
  .sidebar {
    position: static;
    height: auto;
    padding: 48px 0 36px;
  }

  .sidebar-name  { font-size: 34px; }
  .sidebar-title { font-size: 20px; max-width: 100%; }
  .sidebar-intro { max-width: 100%; font-size: 14px; }

  /* Nav: transforma em linha horizontal rolável */
  nav { margin-top: 28px; }

  nav ul {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
	margin-bottom: 22px;
	justify-content: center;
  }

  nav ul::-webkit-scrollbar { display: none; }

  nav li { margin-bottom: 0; white-space: nowrap; }

  .nav-line { display: none; }

  nav a {
    gap: 0;
    padding: 6px 14px;
    border: 1px solid #233554;
    border-radius: 4px;
  }

  nav a:hover,
  nav a.active {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border-color: var(--accent);
    color: var(--accent);
  }

  .nav-link {
	padding: 6px 13px;
  }

  .nav-label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  /* Social */
  .social-links { gap: 18px; margin-top: 4px; margin-left: 2px;}

  /* Main */
  main { padding: 40px 0 0; }

  section { margin-bottom: 64px; }

  /* Section header */
  .section-title { font-size: 18px; }
  .section-line  { max-width: 100px; }

  /* About: foto centralizada acima do texto */
  .photo-wrapper {
    float: none;
    width: 240px;
    height: 240px;
    margin: 0 auto 28px;
    display: block;
  }

  .photo-frame {
    width: 240px;
    height: 240px;
  }

  .about-text p { max-width: 100%; font-size: 14px; }

  /* Skills: mantém 2 colunas (itens são curtos) */
  .skills-list { max-width: 100%; }

  /* Experience: tabs horizontais no topo */
  .exp-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .exp-tab-list {
    display: flex;
    flex-direction: row;
    border-left: none;
    border-bottom: 2px solid #233554;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 24px;
  }

  .exp-tab-list::-webkit-scrollbar { display: none; }

  .exp-indicator { display: none; }

  .exp-tab {
    flex-shrink: 0;
    width: auto;
    padding: 10px 18px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
  }

  .exp-tab.active {
    border-bottom-color: var(--accent);
    background: transparent;
  }

  .exp-content { padding-left: 0; }

  .exp-role { font-size: 17px; }

  .exp-prog-header { flex-wrap: wrap; gap: 6px; }
  .exp-prog-dates  { font-size: 11px; }

  /* Featured projects: pilha vertical (imagem cima, texto baixo) */
  .featured-project { margin-bottom: 48px; }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .featured-image {
    width: 100% !important;
    height: 210px;
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin-top: 0;
  }

  .featured-text {
    width: 100% !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    text-align: left !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-top: 20px;
  }

  .featured-desc {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .featured-project--even .featured-tech,
  .featured-project--odd  .featured-tech { justify-content: flex-start; }

  .featured-project--even .featured-icons,
  .featured-project--odd  .featured-icons { justify-content: flex-start; }

  .featured-name { font-size: 20px; margin-bottom: 16px; }

  /* Outros projetos: coluna única */
  .other-projects { grid-template-columns: 1fr; }

  /* Contato */
  #contact { padding: 0; }
  #contact h2 { font-size: 32px; }
  #contact > p { font-size: 14px; }

  /* Tweaks panel fica menor */
  #tweaks-panel {
    bottom: 12px;
    right: 12px;
    width: 200px;
    padding: 14px;
  }
}

/* ── Telas muito pequenas (≤ 480px) ── */
@media (max-width: 480px) {
  .layout        { padding: 0 16px; }
  .sidebar       { padding: 36px 0 28px; }
  .sidebar-name  { font-size: 28px; }
  .sidebar-title { font-size: 17px; }

  #contact h2     { font-size: 26px; }
  .featured-image { height: 180px; }

  .project-card   { padding: 20px; }
  .exp-prog-body  { padding-bottom: 24px; }
}

/* Play button overlay on thumbnail */
.featured-video-link {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 25, 47, 0.45);
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.featured-video-link:hover .play-btn,
.featured-video-link:focus-visible .play-btn {
  opacity: 1;
}

.play-btn svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transform: scale(1);
  transition: transform 0.2s ease;
}

.featured-video-link:hover .play-btn svg {
  transform: scale(1.12);
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.video-modal-container {
  position: relative;
  width: min(1260px, 95vw);
  z-index: 1;
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: #ccd6f6;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.video-modal-close:hover { opacity: 1; }

.video-modal-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

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