@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');

:root {
  color-scheme: dark;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #040509;
  --bg-alt: rgba(10, 12, 18, 0.74);
  --surface: rgba(15, 18, 26, 0.78);
  --text: #f4f6ff;
  --muted: rgba(213, 220, 245, 0.65);
  --accent: #ff335c;
  --accent-soft: rgba(255, 51, 92, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 36px 90px -48px rgba(0, 0, 0, 0.72);
  --shadow-hover: 0 44px 120px -54px rgba(0, 0, 0, 0.78);
}

/* ============================================
   TEMA CLARO — força cor escura em tudo
   ============================================ */
html[data-theme="light"],
body[data-theme="light"] {
  color-scheme: light;
  --bg: #f0f2f8;
  --bg-alt: rgba(240, 242, 248, 0.9);
  --surface: rgba(255, 255, 255, 0.92);
  --text: #0d0f1a;
  --muted: rgba(30, 36, 60, 0.6);
  --accent: #ff335c;
  --accent-soft: rgba(255, 51, 92, 0.1);
  --border: rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 36px 90px -48px rgba(0, 0, 0, 0.18);
  --shadow-hover: 0 44px 120px -54px rgba(0, 0, 0, 0.22);
  color: #0d0f1a;
}

html[data-theme="light"] *:not(svg):not(path):not(line):not(circle):not(.hero-primary):not(.hero-highlight):not(.hero-badge):not(.lang-option.is-active):not(#splash):not(#splash *):not(.footer-links a):not(.footer-links a *):not(.proj-card):not(.proj-card *):not(.proj-card-title):not(.proj-card-cat):not(.proj-card-label) {
  color: #0d0f1a !important;
}

html[data-theme="light"] #splash {
  background: #040509 !important;
}

html[data-theme="light"] #splash-phrase {
  color: #f4f6ff !important;
}

html[data-theme="light"] #splash-name {
  color: rgba(244,246,255,0.45) !important;
}

html[data-theme="light"] .hero-highlight,
html[data-theme="light"] .hero-badge {
  color: #ff335c !important;
}

html[data-theme="light"] .hero-primary,
html[data-theme="light"] .schedule-submit {
  color: #08090f !important;
}

html[data-theme="light"] .lang-option.is-active {
  color: #ffffff !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 51, 92, 0.18), transparent 46%),
    radial-gradient(circle at 100% 0%, rgba(0, 162, 255, 0.16), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

@media (min-width: 901px) {
  body.page-home {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  body.page-home .hero {
    flex: 1;
    min-height: 0;
  }
  body.page-home .footer {
    flex-shrink: 0;
  }
}body[data-theme="light"] .hero {
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 51, 92, 0.12), transparent 45%),
    radial-gradient(circle at 82% 8%, rgba(0, 162, 255, 0.1), transparent 55%),
    linear-gradient(160deg, #e8eaf4 0%, #dde0ef 42%, #d4d8ec 100%);
  color: #0d0f1a;
}

body[data-theme="light"] .hero-frame {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-theme="light"] .hero-badge {
  background: rgba(255, 51, 92, 0.1);
}

body[data-theme="light"] .hero-meta,
body[data-theme="light"] .hero-step,
body[data-theme="light"] .hero-nav a,
body[data-theme="light"] .hero-copy p,
body[data-theme="light"] .eyebrow {
  color: rgba(13, 15, 26, 0.6);
}

body[data-theme="light"] .hero-name {
  color: #0d0f1a;
}

body[data-theme="light"] .hero-secondary {
  color: rgba(13, 15, 26, 0.76);
  border-color: rgba(0, 0, 0, 0.2);
}

body[data-theme="light"] .section {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .section h2 {
  color: rgba(13, 15, 26, 0.5);
}

body[data-theme="light"] .section p,
body[data-theme="light"] .section a {
  color: rgba(13, 15, 26, 0.72);
}

body[data-theme="light"] .bio-tagline {
  color: rgba(13, 15, 26, 0.55);
}

body[data-theme="light"] .contact-link {
  color: #0d0f1a;
}

body[data-theme="light"] .footer,
html[data-theme="light"] .footer {
  background: #e0e3f0;
  color: #0d0f1a;
}

body[data-theme="light"] .lang-option {
  color: rgba(13, 15, 26, 0.6);
}

body[data-theme="light"] .lang-switch {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: url('assets/danielimage.png') left -2% bottom -5% / auto 92% no-repeat;
  opacity: 0.30;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: url('assets/logo-lateral.png') right 5% center / auto 80% no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

h1 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 700;
}

h2,
h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

p,
a,
button,
small {
  font-family: 'Inter', system-ui, sans-serif;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 51, 92, 0.18), transparent 45%),
    radial-gradient(circle at 82% 8%, rgba(0, 162, 255, 0.18), transparent 55%),
    linear-gradient(160deg, #050507 0%, #0b0c14 42%, #13141f 100%);
  color: #f5f7ff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 45%, rgba(255, 51, 92, 0.2), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

/* fade suave na borda inferior do hero */
.hero-fade-bottom {
  display: none;
}

.hero--compact {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.hero--compact .hero-frame {
  gap: 1rem;
}

/* Barra de nav sticky para páginas internas */
.page-nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body[data-theme="light"] .page-nav-bar {
  background: rgba(240, 242, 248, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* page-frame: card único que unifica nav + conteúdo */
.page-frame {
  width: min(1200px, 90vw);
  margin: clamp(2rem, 5vw, 4rem) auto 1rem;  background: rgba(8, 10, 16, 0.65);
  border-radius: clamp(28px, 5vw, 48px);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 40px 120px -48px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

body[data-theme="light"] .page-frame {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 0, 0, 0.08);
}

.bio-section h2 {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  margin-bottom: 1.5rem;
  color: rgba(232, 238, 255, 0.62);
}

@media (max-width: 900px) {
  .page-frame {
    margin: 0;
    border-radius: 0;
    width: 100%;
    padding: 1rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .bio-section {
    padding: 1.5rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }
}

body[data-theme="light"] .bio-tagline {
  color: rgba(13, 15, 26, 0.7);
}

body[data-theme="light"] .bio p,
body[data-theme="light"] .bio-cta,
body[data-theme="light"] .bio-section p,
body[data-theme="light"] .section p,
body[data-theme="light"] .section a,
body[data-theme="light"] .page-frame p,
body[data-theme="light"] .page-frame h2,
body[data-theme="light"] .page-frame h3,
body[data-theme="light"] .page-frame span,
html[data-theme="light"] .bio p,
html[data-theme="light"] .bio-cta,
html[data-theme="light"] .bio-section p,
html[data-theme="light"] .page-frame p,
html[data-theme="light"] .page-frame h2,
html[data-theme="light"] .page-frame h3 {
  color: #0d0f1a !important;
}

body[data-theme="light"] .page-frame {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0d0f1a;
}

body[data-theme="light"] .page-frame p,
body[data-theme="light"] .page-frame h2,
body[data-theme="light"] .page-frame h3,
body[data-theme="light"] .page-frame span:not(.hero-badge):not(.hero-progress-bar),
body[data-theme="light"] .bio p,
body[data-theme="light"] .bio-tagline,
body[data-theme="light"] .bio-cta,
html[data-theme="light"] .page-frame p,
html[data-theme="light"] .page-frame h2,
html[data-theme="light"] .page-frame h3,
html[data-theme="light"] .bio p,
html[data-theme="light"] .bio-tagline,
html[data-theme="light"] .bio-cta {
  color: #0d0f1a !important;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url('assets/danielimage.png') left -2% bottom -5% / auto 92% no-repeat,
    url('assets/logo-lateral.png') right 5% center / auto 80% no-repeat;
  opacity: 0.30;
  pointer-events: none;
  z-index: 2;
}

/* Foto + círculo — desktop: absolute dentro do hero-frame */
.hero-photo-wrap {
  position: absolute;
  right: 0;
  bottom: -1%;
  width: clamp(300px, 32vw, 460px);
  height: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 3;
  pointer-events: auto;
  overflow: hidden;
  border-bottom-right-radius: clamp(28px, 5vw, 48px);
  cursor: pointer;
  text-decoration: none;
}
.hero-photo-wrap:focus-visible {
  outline: 2px solid rgba(255, 51, 92, 0.6);
  outline-offset: 3px;
}

.hero-red-circle {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #cc1a2e;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  transition: transform 0.4s ease;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  mask-image: linear-gradient(to bottom, black 90%, transparent 100%), linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%), linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  transition: transform 0.4s ease;
  transform-origin: bottom center;
}

.hero-photo-wrap:hover .hero-photo,
.hero-photo-wrap:focus-visible .hero-photo {
  transform: scale(1.04);
}

.hero-photo-wrap:hover .hero-red-circle,
.hero-photo-wrap:focus-visible .hero-red-circle {
  transform: translateX(-50%) scale(1.04);
}

.hero-frame {
  position: relative;
  width: min(1200px, 90vw);
  margin: 0 auto;
  background: rgba(8, 10, 16, 0.78);
  border-radius: clamp(28px, 5vw, 48px);
  padding: clamp(2.75rem, 5vw, 4rem) clamp(2.5rem, 5vw, 3.8rem);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 120px -48px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 3.5rem);
  z-index: 1;
  box-sizing: border-box;
  overflow: visible;
}
.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.hero-head-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-tagline-meta {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(235, 241, 255, 0.5);
  white-space: nowrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(235, 241, 255, 0.58);
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 1rem;
  border-radius: 999px;
  background: rgba(255, 51, 92, 0.12);
  color: #ff335c;
  font-weight: 600;
}

.hero-progress {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.hero-progress-bar {
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(90deg, rgba(255, 51, 92, 0.15) 0%, #ff335c 100%);
  box-shadow: 0 0 24px rgba(255, 51, 92, 0.3);
}

.hero-step {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  color: rgba(235, 241, 255, 0.58);
}

.divider {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.lang-option {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(235, 241, 255, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lang-option.is-active {
  background: rgba(255, 51, 92, 0.18);
  color: #ffffff;
}

/* Theme toggle */
.theme-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(235, 241, 255, 0.7);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.theme-icon {
  width: 1rem;
  height: 1rem;
  display: block;
}

.theme-icon--sun { display: none; }
.theme-icon--moon { display: block; }

body[data-theme="light"] .theme-icon--sun { display: block; }
body[data-theme="light"] .theme-icon--moon { display: none; }

body[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.06);
  color: rgba(13, 15, 26, 0.7);
}

.lang-option:hover,
.lang-option:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(230, 235, 255, 0.65);
  margin-top: 0.5rem;
}

.hero-nav a {
  position: relative;
  text-decoration: none;
  color: inherit;
  padding-bottom: 0.35rem;
  transition: color 0.3s ease;
}

.hero-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 51, 92, 0.65);
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  color: #ffffff;
}

.hero-nav a:hover::after,
.hero-nav a:focus-visible::after {
  transform: scaleX(1);
}

.back-btn {
  color: rgba(230, 235, 255, 0.5) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.2em !important;
  margin-right: auto;
  position: relative;
  padding-bottom: 0.35rem;
}

.back-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 51, 92, 0.65);
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.back-btn:hover::after {
  transform: scaleX(1);
}

body[data-theme="light"] .back-btn {
  color: rgba(13, 15, 26, 0.45) !important;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.4rem);
  align-items: flex-start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.4rem);
  max-width: 560px;
}

.hero-orbit {
  display: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.4rem);
  max-width: 520px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: rgba(235, 241, 255, 0.5);
}


.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: clamp(3.4rem, 7.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-transform: none;
}

.hero-name {
  color: #ffffff;
}

.hero-highlight {
  display: inline-block;
  color: #ff335c;
  text-transform: lowercase;
  text-shadow: 0 0 24px rgba(255, 51, 92, 0.45);
}

.hero-copy p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 45ch;
}

/* tema claro — textos escuros */
body[data-theme="light"] .hero-name {
  color: #0d0f1a;
}

body[data-theme="light"] .hero-copy p {
  color: rgba(13, 15, 26, 0.85);
}

body[data-theme="light"] .eyebrow {
  color: rgba(13, 15, 26, 0.6);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  width: min(100%, 320px);
  margin: 0;
  position: relative;
  z-index: 5;
}

.hero-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 5;
  max-width: 480px;
}

.hero-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #0d0f1a;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2.25rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hero-primary {
  background: linear-gradient(120deg, #ff335c 0%, #ff0038 100%);
  color: #08090f;
  position: relative;
  z-index: 5;
  box-shadow: 0 24px 60px -28px rgba(255, 51, 92, 0.6);
  border: none;
  white-space: nowrap;
}

.hero-primary:hover,
.hero-primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px -30px rgba(255, 51, 92, 0.75);
}

.hero-secondary {
  background: transparent;
  color: rgba(230, 235, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  padding-right: 3.6rem;
}

.hero-secondary::after {
  content: "\2193";
  position: absolute;
  right: 1.6rem;
  font-size: 1.1rem;
  color: #ff335c;
  transition: transform 0.35s ease;
}

.hero-secondary:hover,
.hero-secondary:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.hero-secondary:hover::after,
.hero-secondary:focus-visible::after {
  transform: translateY(4px);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orbit {
  position: relative;
  width: clamp(280px, 32vw, 420px);
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: visible;
}

.hero-glow {
  display: none;
}

/* estilos antigos do boneco — mantidos para não quebrar nada */
.hero-circle { display: none; }
.hero-statue { display: none; }
.hero-statue::before { display: none; }
.hero-statue::after { display: none; }

.schedule-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.schedule-hero .hero-frame {
  background: rgba(10, 12, 18, 0.82);
  align-items: stretch;
  gap: clamp(1.8rem, 4vw, 2.8rem);
}

.schedule-hero .hero-head {
  justify-content: space-between;
}

.schedule-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.schedule-hero-content h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 3.8rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.schedule-hero-content p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(232, 236, 255, 0.75);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(-8px) scale(1);
  }
  50% {
    transform: translateY(8px) scale(1.02);
  }
}

@keyframes heroPulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.6;
  }
}

.schedule-hero {
  gap: 1.75rem;
}

.schedule-hero nav {
  gap: 0;
}

.breadcrumbs a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: rgba(31, 41, 51, 0.8);
}

.hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: #525a3a;
  color: #f5f4ed;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 24px 44px -24px rgba(60, 68, 44, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  background: #5e6844;
  box-shadow: 0 28px 52px -28px rgba(60, 68, 44, 0.6);
}

.schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.schedule-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 2.5rem;
  border: 1px solid rgba(31, 41, 51, 0.08);
  box-shadow: var(--shadow-soft);
  color: #111318;
}

.schedule-text h2 {
  font-size: 1.6rem;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #0d1118;
}

.schedule-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e2430;
}

.schedule-form {
  background: var(--surface);
  border-radius: 28px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.schedule-form h2 {
  margin: 0;
  font-size: 1.3rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-grid input {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 51, 0.18);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: #11131d;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-grid input::placeholder {
  color: rgba(17, 19, 29, 0.55);
}

.form-grid input:focus {
  outline: none;
  border-color: rgba(31, 41, 51, 0.45);
  box-shadow: 0 0 0 3px rgba(31, 41, 51, 0.15);
}


.contact-preference {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 1.35rem 1.65rem;
  background: rgba(12, 16, 24, 0.88);
  color: rgba(235, 240, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  align-items: center;
  text-align: center;
}

.contact-preference legend {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
}

.contact-preference .option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  cursor: pointer;
  color: rgba(235, 240, 255, 0.9);
}

.contact-options {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
}

.contact-preference input[type="radio"] {
  accent-color: #ff335c;
}

.schedule-submit {
  grid-column: 1 / -1;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #525a3a;
  color: #f5f4ed;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.schedule-submit:hover,
.schedule-submit:focus-visible {
  transform: translateY(-1px);
  background: #5e6844;
  box-shadow: 0 20px 40px -25px rgba(60, 68, 44, 0.55);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 3rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.main-wrap {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 51, 92, 0.06), transparent 46%),
    radial-gradient(circle at 100% 0%, rgba(0, 162, 255, 0.05), transparent 55%),
    var(--bg);
}

body[data-theme="light"] .main-wrap {
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 51, 92, 0.05), transparent 46%),
    #f0f2f8;
}

.section {
  background: rgba(15, 18, 26, 0.82);
  border-radius: 32px;
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

#projetos.section {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 41, 51, 0.08);
}

.section h2 {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  margin-bottom: 2.2rem;
  color: rgba(232, 238, 255, 0.62);
}

#projetos.section h2 {
  color: rgba(31, 41, 51, 0.55);
}

.section p,
.section a {
  color: var(--text);
  font-size: 1rem;
}

#projetos.section p,
#projetos.section a {
  color: rgba(31, 41, 51, 0.72);
}

.bio {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 780px;
}

.bio-tagline {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--muted);
}
.bio-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bio-block {
  background: rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: 0 20px 45px -32px rgba(15, 23, 42, 0.4);
}

.bio-block h3 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
  color: #111318;
}

.bio-block p {
  color: #111318;
}

.bio-cta {
  font-weight: 500;
  letter-spacing: 0.05em;
}

.projects-slider {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.slider-viewport {
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(31, 41, 51, 0.06);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.75), rgba(245, 245, 245, 0.6));
  box-shadow: 0 25px 60px -45px rgba(15, 23, 42, 0.65);
  padding: clamp(0.85rem, 2.5vw, 1.8rem);
}

.slider-track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  cursor: grab;
  user-select: none;
}

.slider-track:active {
  cursor: grabbing;
}

.project-card {
  flex: 0 0 clamp(220px, 42vw, 360px);
  min-height: 220px;
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: #ffffff;
  color: #0f1016;
  box-shadow: 0 20px 38px -32px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.45s ease, box-shadow 0.45s ease, opacity 0.35s ease;
  opacity: 0.9;
}

.project-image {
  width: 100%;
  max-height: 200px;
  border-radius: 18px;
  object-fit: cover;
}

.project-card.is-active {
  transform: translateY(-6px) scale(1.01);
  opacity: 1;
  box-shadow: 0 32px 46px -34px rgba(15, 23, 42, 0.3);
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: rgba(15, 23, 42, 0.6);
}

.project-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.04);
}

.project-count {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.4);
}

.project-card h3 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0.25rem 0;
  color: #0b0c12;
}

.project-card p {
  color: rgba(15, 23, 42, 0.72);
}

.project-meta {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.62);
}

.project-cta {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: transparent;
  color: #0f1016;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.project-cta:hover,
.project-cta:focus-visible {
  background: #0f1016;
  color: #f8f8fb;
  border-color: #0f1016;
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.slider-arrow {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(31, 41, 51, 0.18);
  background: #ffffff;
  color: #0f1016;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  pointer-events: auto;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -18px rgba(31, 41, 51, 0.65);
}

.slider-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(31, 41, 51, 0.2);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.slider-dot.is-active {
  background: #1f2933;
  transform: scale(1.35);
}

.slider-dot:focus-visible {
  outline: 2px solid rgba(31, 41, 51, 0.35);
  outline-offset: 2px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 1.25rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: rgba(31, 41, 51, 0.75);
  border-bottom-color: rgba(31, 41, 51, 0.45);
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  display: block;
}

.footer {
  width: 100%;
  background: #111;
  color: #f5f5f5;
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-links a {
  color: rgba(245, 245, 245, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 245, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: #ff335c;
  border-color: #ff335c;
}

html[data-theme="light"] .footer-links a {
  color: rgba(245, 245, 245, 0.7) !important;
  border-color: rgba(245, 245, 245, 0.25) !important;
}

html[data-theme="light"] .footer-links a:hover {
  color: #ff335c !important;
  border-color: #ff335c !important;
}

@media (max-width: 900px) {
  .hero {
    padding: 3.75rem 2.25rem 3.5rem;
  }

  .hero-frame {
    width: min(100%, 94vw);
  }

  .hero-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .hero-meta {
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-nav {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.5rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

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

  .hero-actions {
    width: min(100%, 340px);
    margin: 0 auto;
    gap: 0.95rem;
  }

  .hero-visual {
    margin-inline: auto;
  }

  main {
    padding: 0 2.25rem 4rem;
  }

  .section {
    padding: 2.5rem 2rem;
  }

  .projects-slider {
    gap: 1.25rem;
  }

  .slider-viewport {
    padding: clamp(1rem, 4vw, 1.75rem);
  }

  .project-card {
    flex: 0 0 clamp(240px, 70vw, 420px);
  }

  .schedule {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .schedule-form {
    padding: 2rem;
  }

  .schedule-text {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2rem 0.5rem 2rem;
    gap: 1rem;
  }

  .hero-frame {
    width: min(100%, 96vw);
    padding: 1.5rem 0.8rem;
    margin: 0 auto;
  }

  .hero-head {
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }

  .hero-nav {
    flex-wrap: nowrap;
    gap: 0.8rem;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .hero-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-nav a {
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hero-inner {
    gap: 1rem;
  }

  .hero-copy {
    text-align: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .hero-actions {
    width: 100%;
    max-width: 320px;
    gap: 0.65rem;
    padding: 0;
    margin: 0 auto;
  }

  .hero-actions > * {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.15em !important;
  }

  .hero-secondary {
    padding-right: 2rem !important;
  }

  .hero-secondary::after {
    right: 0.8rem !important;
    font-size: 0.9rem !important;
  }

  .hero-orbit {
    width: min(68vw, 260px);
  }

  main {
    padding: 0 1.75rem 3.5rem;
    gap: 3rem;
  }

  .section {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }

  .carousel-track-wrapper {
    padding: 0 1.5rem;
  }

  .carousel [data-slide] {
    flex-basis: calc(100% - 3rem);
  }

  .carousel-controls {
    gap: 1rem;
  }

  .schedule {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .schedule-form {
    padding: 1.75rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .schedule-submit {
    width: 100%;
  }

  .bio {
    gap: 1.5rem;
  }

  .bio-block {
    padding: 1.5rem;
  }

  .contact-links {
    gap: 0.85rem 1.25rem;
  }

  .contact-options {
    justify-content: center;
  }

  .hero-photo-wrap {
    width: clamp(120px, 32vw, 180px);
    position: fixed;
    right: 0;
    bottom: 0;
    top: auto;
    left: auto;
    opacity: 1;
    z-index: 99;
    border-radius: 0;
    overflow: visible;
  }

  .hero-photo {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .hero-frame {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero-red-circle {
    width: 68%;
    bottom: 4%;
  }

  .hero-nav {
    justify-content: flex-start;
    padding-right: clamp(130px, 34vw, 200px);
  }

  body::before {
    background: url('assets/danielimage.png') calc(50% - 250px) bottom / auto 95% no-repeat;
  }

  .hero::after {
    background:
      url('assets/danielimage.png') calc(50% - 250px) bottom / auto 95% no-repeat,
      url('assets/logo-lateral.png') right 5% center / auto 60% no-repeat;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.5rem 0.3rem 1.5rem;
  }

  .hero-frame {
    width: min(100%, 99vw);
    padding: 1rem 0.5rem;
    margin: 0 auto;
  }

  .hero-nav {
    font-size: 0.6rem;
    gap: 0.6rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hero-nav a {
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hero-actions {
    width: 100%;
    max-width: 280px;
    gap: 0.5rem;
    padding: 0;
    margin: 0 auto;
  }

  .hero-primary,
  .hero-secondary {
    letter-spacing: 0.12em !important;
    padding: 0.65rem 0.9rem !important;
    font-size: 0.62rem !important;
  }

  .hero-secondary {
    padding-right: 1.6rem !important;
  }

  .hero-secondary::after {
    right: 0.65rem !important;
    font-size: 0.85rem !important;
  }

  .hero-orbit {
    width: min(74vw, 240px);
  }

  .section {
    padding: 1.75rem 1.4rem;
  }

  .carousel-track {
    gap: 1.5rem;
  }

  .carousel [data-slide] {
    flex-basis: calc(100% - 2.5rem);
  }

  .carousel-control {
    width: 2.4rem;
    height: 2.4rem;
  }

  .schedule {
    gap: 2.5rem;
  }

  .schedule-text h2 {
    font-size: 1.4rem;
  }

  .contact-preference {
    padding: 1rem 1.25rem;
  }

  .hero-photo-wrap {
    width: clamp(100px, 28vw, 150px);
    position: fixed;
    right: 0;
    bottom: 0;
    top: auto;
    left: auto;
    opacity: 1;
    z-index: 99;
    border-radius: 0;
    overflow: visible;
  }
}

/* ============================================
   PROJETOS — carrossel estilo editorial
   ============================================ */

/* Layout da página */
body.page-projetos {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

html:has(body.page-projetos) {
  height: 100%;
  overflow: hidden;
}

body.page-projetos::before,
body.page-projetos::after { display: none; }

/* Wrapper do carrossel */
.proj-carousel-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Trilha horizontal */
.proj-carousel {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 3px;
  cursor: grab;
  min-height: 0;
}

.proj-carousel:active { cursor: grabbing; }
.proj-carousel::-webkit-scrollbar { display: none; }

/* Card individual */
.proj-card {
  flex: 0 0 clamp(280px, 32vw, 440px);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  align-self: stretch;
}

/* Imagem de fundo */
.proj-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.5);
}

.proj-card:hover .proj-card-img {
  transform: scale(1.06);
  filter: brightness(0.65);
}

/* Conteúdo (título + categoria) */
.proj-card-content {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  right: 1.75rem;
  z-index: 2;
  transition: transform 0.4s ease;
}

.proj-card:hover .proj-card-content {
  transform: translateY(-8px);
}

.proj-card-cat {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5) !important;
  margin-bottom: 0.6rem;
}

.proj-card-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

/* Label vertical */
.proj-card-label {
  position: absolute;
  bottom: 2.5rem;
  left: 1.5rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3) !important;
  z-index: 2;
  transition: color 0.3s ease;
}

.proj-card:hover .proj-card-label {
  color: rgba(255,255,255,0.6) !important;
}

/* Barra de navegação */
.proj-carousel-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 1.75rem;
  background: rgba(4,5,9,0.95);
  flex-shrink: 0;
}

.proj-nav-btn {
  background: none;
  border: none;
  color: rgba(235,241,255,0.5) !important;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color 0.25s ease;
  font-family: 'Inter', system-ui, sans-serif;
}

.proj-nav-btn:hover { color: #ffffff !important; }

/* Página de detalhe do projeto */
.project-detail {
  max-width: 1180px;
  margin: 2rem auto;
  padding: 0 2rem 3rem;
}

.project-detail-hero {
  width: 100%;
  height: clamp(280px, 45vh, 520px);
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.project-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.project-detail-pill {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.project-detail-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.project-detail-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.project-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(235,241,255,0.4);
}

.project-detail-desc p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(235,241,255,0.75);
}

@media (max-width: 640px) {
  .proj-card { flex: 0 0 85vw; }
  .project-detail-body { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================
   DETALHE DO PROJETO
   ============================================ */
.proj-detail-wrap {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 2rem 3rem;
}

.proj-detail-cover {
  position: relative;
  width: 100%;
  height: clamp(260px, 42vh, 480px);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

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

.proj-detail-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.proj-detail-pill {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  display: block;
}

.proj-detail-h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.proj-detail-content {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.proj-detail-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem;
  background: rgba(15,18,26,0.7);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

body[data-theme="light"] .proj-detail-meta-grid {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
}

.proj-detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.proj-detail-meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(235,241,255,0.4);
}

body[data-theme="light"] .proj-detail-meta-label {
  color: rgba(13,15,26,0.45) !important;
}

.proj-detail-meta-value {
  font-size: 0.95rem;
  color: rgba(235,241,255,0.85);
}

body[data-theme="light"] .proj-detail-meta-value {
  color: #0d0f1a !important;
}

.proj-detail-link {
  font-size: 0.9rem;
  color: #ff335c;
  text-decoration: none;
  transition: opacity 0.2s;
}

.proj-detail-link:hover { opacity: 0.75; }

.proj-detail-desc {
  padding-top: 0.25rem;
}

.proj-detail-h2 {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(235,241,255,0.4);
  margin: 0 0 1rem;
  font-weight: 500;
}

body[data-theme="light"] .proj-detail-h2 {
  color: rgba(13,15,26,0.45) !important;
}

.proj-detail-desc p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(235,241,255,0.8);
  margin: 0;
}

body[data-theme="light"] .proj-detail-desc p {
  color: rgba(13,15,26,0.8) !important;
}

@media (max-width: 640px) {
  .proj-detail-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Modo claro — fundo correto na página de projetos */
html[data-theme="light"] body,
body[data-theme="light"] {
  background:
    radial-gradient(circle at 12% -8%, rgba(255,51,92,0.08), transparent 46%),
    #f0f2f8;
}

/* Páginas de detalhe de projeto — sem imagens de fundo flutuantes */
body:has(.proj-detail-wrap)::before,
body:has(.proj-detail-wrap)::after {
  display: none;
}

/* Páginas de detalhe — footer colado ao conteúdo */
body:has(.proj-detail-wrap) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(.proj-detail-wrap) .proj-detail-wrap {
  flex: 1;
}

/* ============================================
   PÁGINA DE CONTATO — estilo página principal
   ============================================ */
body.page-contact {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.contact-page-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1100px, 100%);
  align-items: start;
}

/* Info lado esquerdo */
.contact-page-eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(235,241,255,0.45);
  margin-bottom: 0.75rem;
}

body[data-theme="light"] .contact-page-eyebrow,
html[data-theme="light"] .contact-page-eyebrow {
  color: rgba(13,15,26,0.45) !important;
}

.contact-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

body[data-theme="light"] .contact-page-title,
html[data-theme="light"] .contact-page-title {
  color: #0d0f1a !important;
}

.contact-page-sub {
  font-size: 1rem;
  color: rgba(235,241,255,0.65);
  margin: 0 0 0.75rem;
  line-height: 1.7;
}

.contact-page-body-text {
  font-size: 0.95rem;
  color: rgba(235,241,255,0.5);
  margin: 0 0 2rem;
  line-height: 1.7;
}

body[data-theme="light"] .contact-page-sub,
body[data-theme="light"] .contact-page-body-text,
html[data-theme="light"] .contact-page-sub,
html[data-theme="light"] .contact-page-body-text {
  color: rgba(13,15,26,0.65) !important;
}

.contact-page-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(235,241,255,0.75);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.contact-page-link:hover {
  border-color: #ff335c;
  color: #ff335c;
}

body[data-theme="light"] .contact-page-link,
html[data-theme="light"] .contact-page-link {
  border-color: rgba(13,15,26,0.2) !important;
  color: rgba(13,15,26,0.7) !important;
}

/* Formulário lado direito */
.contact-page-form-wrap {
  background: rgba(8,10,16,0.72);
  border-radius: 28px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
}

body[data-theme="light"] .contact-page-form-wrap,
html[data-theme="light"] .contact-page-form-wrap {
  background: rgba(255,255,255,0.85) !important;
  border-color: rgba(0,0,0,0.08) !important;
}

.contact-page-form-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235,241,255,0.6);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

body[data-theme="light"] .contact-page-form-title,
html[data-theme="light"] .contact-page-form-title {
  color: rgba(13,15,26,0.55) !important;
}

@media (max-width: 768px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

/* Contato — melhorias de legibilidade */
.contact-page-sub {
  color: rgba(255,255,255,0.82);
}

.contact-page-body-text {
  color: rgba(255,255,255,0.65);
}

.contact-page-link {
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.22);
}

/* Fieldset modo claro */
body[data-theme="light"] .contact-preference,
html[data-theme="light"] .contact-preference {
  background: rgba(240,242,248,0.9) !important;
  border-color: rgba(13,15,26,0.12) !important;
  color: #0d0f1a !important;
}

body[data-theme="light"] .contact-preference legend,
html[data-theme="light"] .contact-preference legend {
  color: #0d0f1a !important;
}

body[data-theme="light"] .contact-preference .option,
html[data-theme="light"] .contact-preference .option {
  color: #0d0f1a !important;
}

body[data-theme="light"] .form-grid label,
html[data-theme="light"] .form-grid label {
  color: #0d0f1a !important;
}


/* ============================================
   RESPONSIVIDADE — TABLET (481px a 1024px)
   ============================================ */
@media (max-width: 1024px) and (min-width: 481px) {

  /* === GLOBAL === */
  body::before {
    background-size: auto 70%;
    opacity: 0.18;
  }
  body::after {
    background-size: auto 60%;
    opacity: 0.12;
  }

  /* === HERO (index.html) === */
  .hero {
    padding: clamp(2rem, 4vw, 3rem) 0;
  }
  .hero-frame {
    width: min(100%, 94vw);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
  .hero::after {
    background:
      url('assets/danielimage.png') left -2% bottom -5% / auto 75% no-repeat,
      url('assets/logo-lateral.png') right 4% center / auto 65% no-repeat;
    opacity: 0.22;
  }
  .hero-photo-wrap {
    width: clamp(200px, 28vw, 340px);
  }
  .hero-head {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .hero-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .hero-tagline-meta {
    display: none;
  }
  .hero-nav {
    gap: clamp(1rem, 3vw, 2rem);
    font-size: 0.72rem;
  }
  .hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
  }
  .hero-copy {
    max-width: 480px;
  }
  .hero-copy p {
    font-size: 0.95rem;
  }
  .hero-card {
    max-width: 420px;
    padding: 1.25rem 1.5rem;
  }
  .hero-card p {
    font-size: 0.95rem;
  }
  .hero-actions {
    width: min(100%, 300px);
  }
  .hero-primary,
  .hero-secondary {
    padding: 0.85rem 1.8rem;
    font-size: 0.72rem;
  }

  /* === PAGE NAV BAR (páginas internas) === */
  .page-nav-bar {
    padding: 0.65rem clamp(0.75rem, 3vw, 2rem);
  }
  .hero-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.75rem;
  }

  /* === PAGE FRAME (sobre.html) === */
  .page-frame {
    width: min(100%, 94vw);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: clamp(20px, 4vw, 36px);
  }
  .bio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .bio-block {
    padding: 1.5rem;
  }
  .bio-block h3 {
    font-size: 1.2rem;
  }

  /* === PROJETOS (projetos.html) === */
  .proj-item {
    flex: 0 0 clamp(240px, 45vw, 380px);
  }
  .proj-item-name {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
  }
  .proj-bar {
    padding: 0.55rem 1.25rem;
  }

  /* === DETALHE DO PROJETO === */
  .proj-detail-wrap {
    max-width: 100%;
    padding: 0 1.5rem 2rem;
    margin: 1.5rem auto;
  }
  .proj-detail-cover {
    height: clamp(220px, 35vh, 380px);
    border-radius: 16px;
    margin-bottom: 2rem;
  }
  .proj-detail-content {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
  }
  .proj-detail-meta-grid {
    padding: 1.25rem;
  }

  /* === CONTATO (schedule.html) === */
  .contact-page-body {
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
  }
  .contact-page-grid {
    gap: clamp(1.5rem, 4vw, 3rem);
  }
  .contact-page-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
  }
  .contact-page-form-wrap {
    padding: clamp(1.5rem, 3vw, 2rem);
  }
  .form-grid {
    gap: 1.25rem;
  }
  .contact-preference {
    padding: 1.1rem 1.25rem;
  }
  .contact-options {
    gap: 2rem;
  }

  /* === SCHEDULE (layout antigo se usado) === */
  .schedule {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .schedule-text {
    text-align: center;
    align-items: center;
  }
  .schedule-form {
    padding: 2rem;
  }

  /* === SLIDER === */
  .project-card {
    flex: 0 0 clamp(220px, 50vw, 360px);
  }
  .slider-viewport {
    padding: clamp(0.75rem, 2vw, 1.5rem);
  }

  /* === FOOTER === */
  .footer {
    padding: 1rem 0.75rem;
  }

  /* === MAIN === */
  main {
    padding: 0 2rem 4rem;
    gap: 3rem;
  }
  .section {
    padding: 2.25rem 1.75rem;
    border-radius: 28px;
  }
}


/* ============================================
   RESPONSIVIDADE — MOBILE (até 480px)
   ============================================ */
@media (max-width: 480px) {

  /* === GLOBAL === */
  body::before {
    background-size: auto 55%;
    opacity: 0.12;
  }
  body::after {
    display: none;
  }

  /* === HERO (index.html) === */
  .hero {
    min-height: auto;
  }
  .hero::after {
    background:
      url('assets/logo-lateral.png') right 3% bottom 10% / auto 40% no-repeat;
    opacity: 0.12;
  }
  .hero-frame {
    border-radius: clamp(16px, 4vw, 28px);
    gap: 1.25rem;
  }
  .hero-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .hero-head-right {
    width: 100%;
    justify-content: space-between;
  }
  .hero-meta {
    width: 100%;
    gap: 0.6rem;
  }
  .hero-tagline-meta {
    display: none;
  }
  .hero-progress {
    display: none;
  }
  .hero-badge {
    font-size: 0.6rem;
    padding: 0.28rem 0.65rem;
  }
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    gap: 0.25rem;
  }
  .hero-copy {
    max-width: 100%;
    gap: 1rem;
  }
  .hero-copy p {
    font-size: 0.9rem;
    max-width: 100%;
  }
  .hero-card {
    max-width: 100%;
    padding: 1.15rem 1.25rem;
    border-radius: 18px;
    gap: 1rem;
  }
  .hero-card p {
    font-size: 0.9rem;
  }
  .hero-inner {
    gap: 1rem;
  }
  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
  }
  .lang-switch {
    gap: 0.25rem;
    padding: 0.2rem;
  }
  .lang-option {
    font-size: 0.65rem;
    padding: 0.4rem 0.65rem;
  }
  .theme-toggle {
    width: 2rem;
    height: 2rem;
  }
  .theme-icon {
    width: 0.85rem;
    height: 0.85rem;
  }

  /* === PAGE NAV BAR (páginas internas) === */
  .page-nav-bar {
    padding: 0.5rem 0.75rem;
    gap: 0.35rem;
  }
  .page-nav-bar .hero-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .page-nav-bar .hero-meta {
    flex: 0 0 auto;
    min-width: 0;
    gap: 0.5rem;
  }
  .page-nav-bar .hero-meta .hero-progress {
    display: none;
  }
  .page-nav-bar .hero-meta .hero-tagline-meta {
    display: none;
  }
  .page-nav-bar .hero-head-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .page-nav-bar .hero-head-right .lang-switch {
    gap: 0.15rem;
    padding: 0.15rem;
  }
  .page-nav-bar .hero-head-right .lang-option {
    font-size: 0.58rem;
    padding: 0.3rem 0.5rem;
    letter-spacing: 0.2em;
  }
  .page-nav-bar .hero-nav {
    gap: 0.6rem;
    font-size: 0.6rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  .page-nav-bar .hero-nav::-webkit-scrollbar {
    display: none;
  }
  .page-nav-bar .hero-nav a {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
  .page-nav-bar .back-btn {
    font-size: 0.58rem !important;
    letter-spacing: 0.1em !important;
  }

  /* === PAGE FRAME (sobre.html) === */
  .bio-section h2 {
    font-size: 0.88rem;
    letter-spacing: 0.35em;
    margin-bottom: 1.25rem;
  }
  .bio-tagline {
    font-size: 0.85rem;
  }
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .bio-block {
    padding: 1.5rem;
    border-radius: 18px;
  }
  .bio-block h3 {
    font-size: 1.3rem;
  }
  .bio-block p {
    font-size: 1rem;
    line-height: 1.7;
  }
  .bio p {
    font-size: 1rem;
    line-height: 1.75;
  }
  .bio-cta {
    font-size: 1rem;
  }

  /* === PROJETOS (projetos.html) === */
  .proj-stage {
    min-height: 0;
  }
  .proj-item {
    flex: 0 0 85vw;
  }
  .proj-item-top {
    top: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
  }
  .proj-item-cat {
    font-size: 0.55rem;
    letter-spacing: 0.25em;
  }
  .proj-item-name {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }
  .proj-item-label {
    bottom: 1.5rem;
    left: 1rem;
    font-size: 0.5rem;
  }
  .proj-bar {
    padding: 0.5rem 1rem;
    gap: 1rem;
  }
  .proj-btn {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }

  /* === DETALHE DO PROJETO === */
  .proj-detail-wrap {
    padding: 0 1rem 2rem;
    margin: 1rem auto;
  }
  .proj-detail-cover {
    height: clamp(180px, 30vh, 280px);
    border-radius: 14px;
    margin-bottom: 1.5rem;
  }
  .proj-detail-cover-overlay {
    padding: 1.25rem;
  }
  .proj-detail-pill {
    font-size: 0.58rem;
    letter-spacing: 0.25em;
  }
  .proj-detail-h1 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .proj-detail-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .proj-detail-meta-grid {
    padding: 1.25rem;
    border-radius: 14px;
    gap: 1.25rem;
  }
  .proj-detail-meta-label {
    font-size: 0.58rem;
  }
  .proj-detail-meta-value {
    font-size: 0.88rem;
  }
  .proj-detail-link {
    font-size: 0.82rem;
  }
  .proj-detail-h2 {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
  }
  .proj-detail-desc p {
    font-size: 0.95rem;
  }

  /* === CONTATO (schedule.html) === */
  .contact-page-body {
    padding: 1.5rem 1rem;
    align-items: flex-start;
  }
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .contact-page-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.35em;
  }
  .contact-page-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    margin-bottom: 0.75rem;
  }
  .contact-page-sub {
    font-size: 1rem;
    line-height: 1.7;
  }
  .contact-page-body-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
  .contact-page-links {
    gap: 0.85rem;
  }
  .contact-page-link {
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
  }
  .contact-page-form-wrap {
    padding: 1.5rem;
    border-radius: 22px;
  }
  .contact-page-form-title {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .form-grid label {
    font-size: 0.95rem;
  }
  .form-grid input {
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    font-size: 1rem;
  }
  .contact-preference {
    padding: 1.1rem 1.15rem;
    border-radius: 16px;
  }
  .contact-preference legend {
    font-size: 0.9rem;
  }
  .contact-options {
    gap: 1.5rem;
    justify-content: center;
  }
  .contact-preference .option {
    font-size: 0.92rem;
  }
  .schedule-submit {
    padding: 0.9rem 1.4rem;
    font-size: 0.85rem;
    width: 100%;
  }

  /* === SCHEDULE (layout antigo) === */
  .schedule {
    gap: 2rem;
  }
  .schedule-text {
    padding: 1.5rem;
    border-radius: 20px;
  }
  .schedule-text h2 {
    font-size: 1.25rem;
  }
  .schedule-text p {
    font-size: 0.92rem;
  }
  .schedule-form {
    padding: 1.5rem;
    border-radius: 20px;
  }
  .schedule-form h2 {
    font-size: 1.1rem;
  }

  /* === SLIDER === */
  .slider-viewport {
    border-radius: 20px;
    padding: 0.75rem;
  }
  .slider-arrow {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.1rem;
  }

  /* === FOOTER === */
  .footer {
    padding: 1rem 0.75rem;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    gap: 0.65rem;
  }
  .footer-links {
    gap: 0.85rem;
  }
  .footer-links a {
    width: 2rem;
    height: 2rem;
  }
  .footer-links a svg {
    width: 14px;
    height: 14px;
  }

  /* === MAIN === */
  main {
    padding: 0 1rem 2.5rem;
    gap: 2rem;
  }
  .section {
    border-radius: 18px;
  }

  /* === SPLASH (index.html) === */
  #splash {
    padding: 0 1rem;
  }
}

/* ============================================
   RESPONSIVIDADE — TABLET PORTRAIT (481–768px)
   Refinamentos adicionais para tablets menores
   ============================================ */
@media (max-width: 768px) and (min-width: 481px) {

  /* Contato: empilha grid */
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Hero photo menor em tablet portrait */
  .hero-photo-wrap {
    width: clamp(180px, 24vw, 260px);
  }

  /* Detalhe projeto: empilha sidebar */
  .proj-detail-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Projetos: cards maiores */
  .proj-item {
    flex: 0 0 clamp(260px, 55vw, 400px);
  }

  /* Bio grid: coluna única em tablet estreito */
  .bio-grid {
    grid-template-columns: 1fr;
  }

  /* Schedule form: coluna única */
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FIX: Garantir que page-nav-bar funcione bem
   em todos os breakpoints mobile/tablet
   ============================================ */
@media (max-width: 1024px) {
  .page-nav-bar .hero-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .page-nav-bar .hero-nav::-webkit-scrollbar {
    display: none;
  }
  .page-nav-bar .hero-nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}
