/* ===== PROJETOS SHOWCASE ===== */
.project-showcase {
  overflow: hidden;
}

.project-showcase-shell {
  padding: 44px;
  border: 1px solid rgba(184, 92, 47, 0.15);
  border-radius: 28px;
  background:
    radial-gradient(560px 220px at 50% -10%, rgba(224, 161, 58, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 237, 0.98));
  box-shadow: 0 20px 50px rgba(91, 50, 30, 0.09);
}

.project-showcase-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.project-showcase-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-showcase-breadcrumb span:last-child {
  color: var(--accent);
}

.project-showcase-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #4a3025;
  margin-bottom: 12px;
}

.project-showcase-intro {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.8;
}

.project-showcase-toolbar {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.project-search-field {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.project-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.project-search-field input {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.94rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.project-search-field input:focus {
  border-color: rgba(184, 92, 47, 0.46);
  box-shadow: 0 0 0 4px rgba(224, 161, 58, 0.14);
}



.project-gallery-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.project-gallery-main {
  min-width: 0;
}

.project-gallery-nav {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #66727a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.project-gallery-nav:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #4e5961;
}

.project-gallery-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.project-gallery-grid {
  display: flex;
  gap: 18px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.project-gallery-grid > .project-showcase-card {
  min-width: calc((100% - 36px) / 3);
  max-width: calc((100% - 36px) / 3);
  flex-shrink: 0;
}

.project-showcase-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(126, 70, 31, 0.07);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 79, 39, 0.24);
  box-shadow: 0 22px 48px rgba(126, 70, 31, 0.13);
}

.project-showcase-preview {
  padding: 14px;
  height: 188px;
  min-height: 188px;
  border-bottom: 1px solid rgba(169, 79, 39, 0.09);
}

.project-showcase-preview-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(145deg, #ffe1ae, #fff6e7);
}

.project-showcase-preview-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(145deg, #fff7e9, #ffffff);
}

.project-showcase-logo {
  display: block;
  width: min(100%, 300px);
  max-height: 148px;
  object-fit: contain;
}

.project-showcase-shot {
  display: block;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(91, 51, 32, 0.18);
}

.project-showcase-shot-main {
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.project-showcase-shot-overlay {
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 34%;
  min-width: 112px;
  max-width: 156px;
  border: 4px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 26px rgba(91, 51, 32, 0.22);
}

.project-preview-chrome {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.project-preview-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(91, 51, 32, 0.28);
}

/* To-Do List preview */
.preview-todo {
  background: linear-gradient(145deg, #ffead0, #fff8ed);
}

.project-preview-todo {
  min-height: 132px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(91, 51, 32, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.preview-todo-icon {
  opacity: 0.85;
}

.preview-todo-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80%;
}

.preview-todo-item {
  height: 10px;
  border-radius: 999px;
  background: rgba(184, 92, 47, 0.14);
}

.preview-todo-item.checked {
  background: rgba(224, 161, 58, 0.34);
  position: relative;
}

.preview-todo-item.checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  width: 60%;
  height: 2px;
  background: rgba(184, 92, 47, 0.5);
  transform: translateY(-50%);
}

/* "Em breve" badge */
.badge-soon {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(224, 161, 58, 0.14);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}

/* Disabled link for coming soon projects */
.project-showcase-link--disabled {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: default;
  pointer-events: none;
  opacity: 0.6;
}

.project-showcase-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  flex: 1;
}

.project-showcase-type {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-showcase-name {
  font-size: 1.02rem;
  line-height: 1.35;
  color: #4a3025;
}

.project-showcase-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.project-showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-showcase-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
}

.project-showcase-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  transition: letter-spacing var(--transition), color var(--transition);
}

.project-showcase-link:hover {
  color: var(--accent-dark);
  letter-spacing: 0.02em;
}

.project-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.project-gallery-count {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.project-gallery-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-gallery-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(169, 79, 39, 0.22);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.project-gallery-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

@media (max-width: 1040px) {
  .project-showcase-shell {
    padding: 32px 24px;
  }

  .project-gallery-grid > .project-showcase-card {
    min-width: calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
  }
}

@media (max-width: 760px) {
  .project-gallery-layout {
    grid-template-columns: 1fr;
  }

  .project-gallery-nav {
    width: 100%;
    height: 48px;
    border-radius: 16px;
  }

  .project-gallery-grid > .project-showcase-card {
    min-width: 100%;
    max-width: 100%;
  }

  .project-gallery-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-showcase-shot-overlay {
    width: 40%;
    right: 18px;
    bottom: 16px;
  }
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.skill-category {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.skill-cat-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all var(--transition);
}

.skill-pill:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ===== CONTATO ===== */
.contact-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.contact-card svg {
  flex-shrink: 0;
  color: var(--accent);
}

.contact-card:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.contact-card:hover svg {
  color: #fff;
}

/* ===== CURRICULO MODAL ===== */
.cv-modal[hidden] {
  display: none;
}

.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(9, 23, 35, 0.78);
  backdrop-filter: blur(12px);
}

.cv-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.cv-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  height: min(88vh, 920px);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: #fff8ed;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
}

.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
}

.cv-modal-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cv-modal-header h2 {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.2;
}

.cv-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-modal-download,
.cv-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.cv-modal-download {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.86rem;
}

.cv-modal-download:hover,
.cv-modal-download:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.cv-modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}

.cv-modal-close:hover,
.cv-modal-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.cv-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5e6d7;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: auto;
  z-index: 300;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(24, 50, 71, 0.16);
}

.nav-separator {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg);
}

.nav-cta {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: all var(--transition);
  flex-shrink: 0;
}

.nav-cta:hover {
  color: var(--text);
}

.nav-cta-primary {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
}

.nav-cta-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ===== FOOTER ===== */
footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 280;
  text-align: center;
  padding: 10px 48px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(24, 50, 71, 0.1);
  box-shadow: 0 -12px 30px rgba(24, 50, 71, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ===== PORTFOLIO REDESIGN ===== */
body:not(.project-detail-page) .hero {
  position: relative;
  isolation: isolate;
  max-width: min(1012px, 100%);
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 72px 24px 58px;
}

body:not(.project-detail-page) .hero::before {
  display: none;
}

body:not(.project-detail-page) .hero-content {
  padding-left: 10px;
  max-width: 610px;
}

body:not(.project-detail-page) .hero-label,
.project-showcase-breadcrumb,
.academic-label,
.academic-card-kicker,
.project-showcase-type {
  letter-spacing: 0.16em;
}

body:not(.project-detail-page) .hero-title {
  max-width: 680px;
  font-size: clamp(2.85rem, 5vw, 3.7rem);
  margin-bottom: 18px;
  color: #3f2d26;
}

body:not(.project-detail-page) .hero-title em {
  color: var(--accent);
}

body:not(.project-detail-page) .hero-photo-wrapper {
  width: 300px;
  height: 300px;
  border: 0;
  border-radius: 24px;
  transform: rotate(2deg);
  box-shadow: 0 22px 54px rgba(91, 50, 30, 0.17);
}

body:not(.project-detail-page) .hero-photo-wrapper img {
  transform: scale(1.04);
}

body:not(.project-detail-page) .hero-badge {
  right: -24px;
  bottom: 26px;
  border-radius: 16px;
  padding: 12px 18px;
  border-color: rgba(184, 92, 47, 0.2);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

body:not(.project-detail-page) .hero-label {
  margin-bottom: 16px;
}

body:not(.project-detail-page) .hero-desc {
  margin-bottom: 20px;
}

body:not(.project-detail-page) .hero-buttons {
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 18px;
}

body:not(.project-detail-page) .btn {
  min-height: 44px;
  padding: 11px 22px;
}

.btn {
  min-height: 48px;
}

.btn-primary,
.nav-cta-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-amber));
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(184, 92, 47, 0.2);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(24, 50, 71, 0.14);
  backdrop-filter: blur(12px);
}

.section {
  position: relative;
}

.section-alt {
  background: transparent;
}

.section-title {
  color: #3f2d26;
}

.section-title::after {
  width: 54px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.about-text,
.about-highlights,
.academic-matrix,
.skills-grid,
.contact-intro,
.contact-grid {
  position: relative;
}

.about-grid {
  grid-template-columns: minmax(0, 1.75fr) minmax(240px, 0.75fr);
  gap: 40px;
}

.about-intro {
  margin-bottom: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(184, 92, 47, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 225, 0.72));
  box-shadow: 0 18px 42px rgba(63, 45, 38, 0.07);
}

.about-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.6;
}

.about-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.about-timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 63px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-warm));
  opacity: 0.32;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.timeline-year {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(184, 92, 47, 0.18);
  border-radius: 999px;
  color: var(--accent-dark);
  background: #fffaf3;
  box-shadow: 0 8px 18px rgba(63, 45, 38, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.timeline-content {
  padding: 18px 20px;
  border: 1px solid rgba(24, 50, 71, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(24, 50, 71, 0.055);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.timeline-content:hover {
  border-color: rgba(184, 92, 47, 0.2);
  box-shadow: 0 20px 44px rgba(24, 50, 71, 0.09);
  transform: translateY(-2px);
}

.timeline-content h3 {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.timeline-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.91rem;
  line-height: 1.68;
}

.timeline-content p + p {
  margin-top: 10px;
}

.timeline-item-current .timeline-year {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-amber));
  box-shadow: 0 10px 24px rgba(184, 92, 47, 0.24);
}

.timeline-item-current .timeline-content {
  border-color: rgba(184, 92, 47, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 239, 213, 0.72));
}

.about-highlights {
  position: sticky;
  top: 110px;
}

.certificates-block {
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 48, 68, 0.1);
}

.certificates-heading {
  margin-bottom: 14px;
}

.certificates-heading > span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.certificates-heading h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
}

.certificates-list {
  display: grid;
  gap: 12px;
}

.certificate-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 10px;
  border: 1px solid rgba(23, 48, 68, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(23, 48, 68, 0.06);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.certificate-card:hover {
  border-color: rgba(183, 90, 50, 0.22);
  box-shadow: 0 20px 44px rgba(23, 48, 68, 0.1);
  transform: translateY(-3px);
}

.certificate-card:focus-visible {
  outline: 3px solid rgba(217, 155, 67, 0.28);
  outline-offset: 3px;
}

.certificate-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 68px;
  overflow: hidden;
  border: 1px solid rgba(130, 59, 36, 0.1);
  border-radius: 11px;
  background: #fff;
}

.certificate-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-preview-contain img {
  padding: 4px;
  object-fit: contain;
}

.certificate-preview-alura {
  flex-direction: column;
  gap: 1px;
  color: #fffaf3;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.22), transparent 35%),
    linear-gradient(135deg, #7b3fc7, #4569d4 58%, #1a8e91);
}

.certificate-preview-alura strong {
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}

.certificate-preview-alura small {
  font-size: 0.58rem;
  font-weight: 700;
}

.certificate-copy {
  display: grid;
  min-width: 0;
}

.certificate-copy small {
  overflow: hidden;
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.certificate-copy strong {
  margin: 3px 0 5px;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.28;
}

.certificate-copy > span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.highlight-card,
.academic-card,
.skill-category,
.contact-card {
  border-color: rgba(24, 50, 71, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(24, 50, 71, 0.06);
  backdrop-filter: blur(14px);
}

.highlight-card:hover,
.academic-card:hover,
.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(24, 50, 71, 0.1);
}

.project-showcase {
  background: transparent;
}

.project-showcase-shell {
  position: relative;
  overflow: hidden;
  border-color: rgba(24, 50, 71, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  box-shadow: 0 34px 90px rgba(24, 50, 71, 0.12);
}

.project-showcase-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(191, 107, 46, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(227, 166, 74, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

.project-showcase-shell > * {
  position: relative;
  z-index: 1;
}

.project-showcase-title {
  color: #3f2d26;
}

.project-search-field input {
  border-color: rgba(24, 50, 71, 0.12);
  box-shadow: 0 14px 30px rgba(24, 50, 71, 0.06);
}

.project-gallery-nav {
  background: #183247;
  box-shadow: 0 16px 30px rgba(24, 50, 71, 0.14);
}

.project-gallery-nav:hover:not(:disabled) {
  background: var(--accent);
}

.project-showcase-card {
  --scroll-shift: 0px;
  --scroll-tilt: 0deg;
  border-color: rgba(24, 50, 71, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 52px rgba(24, 50, 71, 0.1);
  transform: translate3d(0, var(--scroll-shift), 0) rotate(var(--scroll-tilt));
  will-change: transform;
}

.project-showcase-card:hover {
  transform: translate3d(0, calc(var(--scroll-shift) - 8px), 0) rotate(var(--scroll-tilt));
  border-color: rgba(184, 92, 47, 0.3);
  box-shadow: 0 30px 70px rgba(24, 50, 71, 0.16);
}

.project-showcase-card:nth-child(2n) {
  --scroll-tilt: -0.35deg;
}

.project-showcase-card:nth-child(2n + 1) {
  --scroll-tilt: 0.35deg;
}

.project-showcase-preview {
  overflow: hidden;
  background: linear-gradient(145deg, #fff0d8, #ffffff);
}

.project-showcase-preview-media {
  background:
    linear-gradient(135deg, rgba(191, 107, 46, 0.18), rgba(240, 181, 76, 0.2)),
    #fff8ec;
}

.project-showcase-preview-brand {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 215, 0.9)),
    linear-gradient(90deg, rgba(191, 107, 46, 0.15), transparent);
}

.project-showcase-preview img,
.project-preview-todo {
  transform: translate3d(0, calc(var(--scroll-shift, 0px) * -0.45), 0);
  transition: transform 0.45s ease;
}

.project-showcase-tags span,
.skill-pill {
  border-color: rgba(184, 92, 47, 0.14);
  background: rgba(224, 161, 58, 0.12);
}

.contact-card:hover,
.skill-pill:hover {
  background: #183247;
  border-color: #183247;
}

.bottom-nav {
  background: rgba(255, 255, 255, 0.76);
  border-bottom-color: rgba(24, 50, 71, 0.11);
  box-shadow: 0 16px 40px rgba(24, 50, 71, 0.08);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(224, 161, 58, 0.14);
}

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.project-showcase-card.reveal-item {
  transform: translate3d(0, calc(28px + var(--scroll-shift, 0px)), 0) rotate(var(--scroll-tilt, 0deg));
}

.project-showcase-card.reveal-item.is-visible {
  transform: translate3d(0, var(--scroll-shift, 0px), 0) rotate(var(--scroll-tilt, 0deg));
}

.project-showcase-card.reveal-item.is-visible:hover {
  transform: translate3d(0, calc(var(--scroll-shift, 0px) - 8px), 0) rotate(var(--scroll-tilt, 0deg));
}

body:not(.project-detail-page) :is(#projetos, #projects) .section-inner {
  max-width: 1120px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-shell {
  padding: 20px 34px 18px;
  border-radius: 24px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-head {
  margin-bottom: 14px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-breadcrumb {
  margin-bottom: 8px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-title {
  margin-bottom: 6px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-intro {
  max-width: 560px;
  font-size: 0.92rem;
  line-height: 1.55;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-toolbar {
  margin-bottom: 14px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-search-field input {
  height: 46px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-gallery-layout {
  gap: 14px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-gallery-nav {
  width: 48px;
  height: 48px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-preview {
  height: 118px;
  min-height: 118px;
  padding: 10px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-logo {
  max-height: 96px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-shot-overlay {
  min-width: 86px;
  max-width: 118px;
  right: 16px;
  bottom: 12px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-content {
  gap: 7px;
  padding: 14px 16px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-name {
  font-size: 0.96rem;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-desc {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-gallery-grid {
  padding-bottom: 2px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-tags {
  gap: 6px;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-showcase-tags span {
  padding: 4px 8px;
  font-size: 0.7rem;
}

body:not(.project-detail-page) :is(#projetos, #projects) .project-gallery-footer {
  margin-top: 14px;
}

.skill-project-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-project-link {
  display: inline-flex;
  margin-top: auto;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

/* ===== FEATURED PROJECT ===== */
.project-showcase-card-featured {
  border-color: rgba(169, 79, 39, 0.36);
  box-shadow: 0 22px 48px rgba(126, 70, 31, 0.16);
}

.project-showcase-preview-brand {
  position: relative;
  overflow: hidden;
}

.project-showcase-preview-featured {
  background: linear-gradient(145deg, #fff0da, #ffffff);
}

.project-preview-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  box-shadow: 0 8px 18px rgba(169, 79, 39, 0.2);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-preview-label-secondary {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(91, 51, 32, 0.09);
  color: var(--accent-dark);
}

.project-showcase-featured-logo {
  position: relative;
  z-index: 2;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.project-showcase-featured-shot {
  position: absolute;
  inset: 10px;
  z-index: 1;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 14px;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.project-showcase-proof {
  padding-left: 10px;
  border-left: 3px solid var(--accent-amber);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.4;
}

/* ===== PROJECT PARTNERS ===== */
.project-partners {
  margin: 14px 0 18px;
}

.project-partners-label {
  display: block;
  margin-bottom: 9px;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-partners-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.project-partner-card {
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(169, 79, 39, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
}

.project-partner-card img {
  display: block;
  width: min(100%, 170px);
  max-height: 38px;
  object-fit: contain;
}

.project-partner-card > span {
  overflow: hidden;
  max-width: 100%;
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-partner-card .project-partner-eclinic {
  width: min(100%, 150px);
  height: 40px;
  max-height: none;
  border-radius: 7px;
  object-fit: cover;
  object-position: center;
}

.project-partner-card-unisanta {
  background: rgba(255, 255, 255, 0.88);
}

.project-partner-card-unisanta img {
  width: min(100%, 150px);
  max-height: 44px;
}

.project-partner-card .project-partner-public {
  width: min(100%, 184px);
  height: 40px;
  max-height: none;
  object-fit: cover;
  object-position: center 45%;
}

/* ===== AUTOMATIC PROJECT CONVEYOR ===== */
.project-conveyor-window {
  position: relative;
  overflow: hidden;
  padding: 5px 0 12px;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.project-gallery-grid.is-conveyor-running,
.project-gallery-grid.is-conveyor-static {
  display: flex;
  width: max-content;
  max-width: none;
  gap: 18px;
  overflow: visible;
  scroll-behavior: auto;
}

.project-gallery-grid.is-conveyor-running {
  animation: projectConveyor var(--project-conveyor-duration, 30s) linear infinite;
  will-change: transform;
}

.project-conveyor-group {
  display: flex;
  flex: none;
  gap: 18px;
}

.project-conveyor-group > .project-showcase-card {
  width: clamp(286px, 27vw, 340px);
  min-width: clamp(286px, 27vw, 340px);
  max-width: clamp(286px, 27vw, 340px);
}

.project-conveyor-window:hover .project-gallery-grid.is-conveyor-running,
.project-conveyor-window:focus-within .project-gallery-grid.is-conveyor-running,
.project-conveyor-window.is-conveyor-paused .project-gallery-grid.is-conveyor-running,
.project-conveyor-window.is-page-hidden .project-gallery-grid.is-conveyor-running,
.project-conveyor-window.is-conveyor-offscreen .project-gallery-grid.is-conveyor-running {
  animation-play-state: paused;
}

.project-conveyor-window.is-conveyor-static {
  overflow-x: auto;
  mask-image: none;
  scrollbar-width: thin;
}

.project-conveyor-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.project-conveyor-note > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38a169;
  box-shadow: 0 0 0 4px rgba(56, 161, 105, 0.12);
  animation: conveyorPulse 1.8s ease-in-out infinite;
}

@keyframes projectConveyor {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-50% - 9px), 0, 0);
  }
}

@keyframes conveyorPulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (hover: hover) {
  .project-showcase-card-featured:hover .project-showcase-featured-logo {
    opacity: 0.08;
    transform: scale(0.92);
  }

  .project-showcase-card-featured:hover .project-showcase-featured-shot {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== SKILLS WITH EVIDENCE ===== */
.skill-category {
  display: flex;
  min-height: 300px;
  flex-direction: column;
}

.skill-project-kicker {
  margin-bottom: 8px;
}

.skill-project-desc {
  margin: -6px 0 18px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

.skill-project-link {
  margin-top: auto;
  padding-top: 20px;
}

@media (max-width: 900px) {
  .project-partners-logos {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .project-partner-card {
    min-width: 150px;
  }

  .project-conveyor-group > .project-showcase-card {
    width: min(72vw, 320px);
    min-width: min(72vw, 320px);
    max-width: min(72vw, 320px);
  }
}

@media (max-width: 480px) {
  .project-showcase-proof {
    font-size: 0.68rem;
  }

  .skill-category {
    min-height: auto;
  }

  .project-partners {
    margin-top: 10px;
  }

  .project-partner-card {
    min-width: 132px;
    min-height: 66px;
  }

  .project-conveyor-group > .project-showcase-card {
    width: min(82vw, 300px);
    min-width: min(82vw, 300px);
    max-width: min(82vw, 300px);
  }

  .project-conveyor-note {
    font-size: 0.62rem;
  }
}

/* ===== LUXURY VERTICAL EXPERIENCE ===== */
:root {
  --luxury-ink: #173044;
  --luxury-copper: #b45d32;
  --luxury-gold: #d9a24d;
  --pointer-x: 50vw;
  --pointer-y: 32vh;
}

body:not(.project-detail-page) {
  background: #fffaf3;
}

body:not(.project-detail-page)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px circle at var(--pointer-x) var(--pointer-y), rgba(217, 162, 77, 0.11), transparent 66%),
    radial-gradient(700px circle at 82% 16%, rgba(180, 93, 50, 0.08), transparent 70%);
}

.bottom-nav {
  top: 14px;
  right: 20px;
  left: 20px;
  border: 1px solid rgba(23, 48, 68, 0.09);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 16px 42px rgba(23, 48, 68, 0.08);
}

.nav-inner {
  height: 58px;
}

.nav-links a {
  position: relative;
}

.nav-links a.active {
  color: var(--luxury-ink);
  background: rgba(180, 93, 50, 0.08);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 2px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--luxury-copper), var(--luxury-gold));
}

body:not(.project-detail-page) .hero {
  max-width: min(1140px, 100%);
  gap: clamp(46px, 7vw, 92px);
  padding-top: 118px;
}

.hero-availability {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(48, 115, 73, 0.15);
  border-radius: 999px;
  color: #326344;
  background: rgba(244, 255, 246, 0.72);
  box-shadow: 0 10px 24px rgba(50, 99, 68, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-availability > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4c9a64;
  box-shadow: 0 0 0 5px rgba(76, 154, 100, 0.12);
  animation: availabilityPulse 2.4s ease-in-out infinite;
}

body:not(.project-detail-page) .hero-title {
  font-size: clamp(3.25rem, 6vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

body:not(.project-detail-page) .hero-title em {
  display: inline-block;
  padding-right: 0.05em;
  background: linear-gradient(135deg, var(--luxury-copper), #8e3f25 58%, var(--luxury-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body:not(.project-detail-page) .hero-desc {
  max-width: 570px;
  font-size: 1.06rem;
}

body:not(.project-detail-page) .hero-photo-wrapper {
  width: clamp(300px, 28vw, 374px);
  height: clamp(370px, 36vw, 474px);
  border: 7px solid rgba(255, 255, 255, 0.76);
  border-radius: 180px 180px 34px 34px;
  transform: rotate(1.4deg);
  box-shadow:
    0 40px 90px rgba(23, 48, 68, 0.18),
    0 0 0 1px rgba(180, 93, 50, 0.1);
}

body:not(.project-detail-page) .hero-photo-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 -90px 90px rgba(23, 48, 68, 0.08);
  pointer-events: none;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 590px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 48, 68, 0.1);
}

.hero-proof > div {
  padding: 0 18px;
  border-left: 1px solid rgba(23, 48, 68, 0.1);
}

.hero-proof > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-proof dt {
  color: var(--luxury-ink);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.hero-proof dd {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

body:not(.project-detail-page) .section-title {
  margin-bottom: 48px;
  color: var(--luxury-ink);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  letter-spacing: -0.025em;
}

body:not(.project-detail-page) .section[data-chapter] .section-title::before {
  content: attr(data-chapter);
  display: block;
  margin-bottom: 8px;
  color: var(--luxury-copper);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.highlight-card,
.academic-card,
.skill-category,
.contact-card,
.timeline-content {
  border-color: rgba(23, 48, 68, 0.085);
  box-shadow: 0 20px 48px rgba(23, 48, 68, 0.07);
}

.skill-category,
.academic-card {
  position: relative;
  overflow: hidden;
}

.skill-category::before,
.academic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 42px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--luxury-copper), var(--luxury-gold));
}

#contato .section-inner {
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(23, 48, 68, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(440px circle at 12% 0%, rgba(217, 162, 77, 0.16), transparent 72%),
    rgba(255, 255, 255, 0.54);
  box-shadow: 0 36px 100px rgba(23, 48, 68, 0.08);
}

@keyframes availabilityPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.72; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 900px) {
  .bottom-nav {
    top: 8px;
    right: 10px;
    left: 10px;
    padding: 0 14px;
    border-radius: 15px;
  }

  body:not(.project-detail-page) .hero {
    padding-top: 104px;
  }

  body:not(.project-detail-page) .hero-title {
    font-size: clamp(2.85rem, 10vw, 4.2rem);
  }

  .hero-proof {
    width: 100%;
  }

}

@media (max-width: 600px) {
  .hero-availability {
    max-width: 300px;
    text-align: left;
  }

  .hero-proof {
    gap: 0;
  }

  .hero-proof > div {
    padding: 0 10px;
  }

  .hero-proof dd {
    font-size: 0.6rem;
  }

  body:not(.project-detail-page) .section-title {
    margin-bottom: 36px;
  }

  #contato .section-inner {
    padding: 26px 20px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-availability > span {
    animation: none;
  }

  body:not(.project-detail-page)::after {
    display: none;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes ambientGradient {
  0% {
    background-position: 0% 40%, 100% 20%, 50% 100%, 0 0;
  }
  100% {
    background-position: 24% 18%, 78% 42%, 64% 76%, 0 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 48px 24px 40px;
    min-height: auto;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-desc {
    text-align: center;
  }

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

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

  .hero-photo-wrapper {
    width: 260px;
    height: 260px;
  }

  .hero-badge {
    right: -10px;
    bottom: 0;
  }

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

  .about-highlights {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .certificates-block {
    grid-column: 1 / -1;
  }

  .certificates-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .certificate-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .certificate-preview {
    width: 100%;
    height: 112px;
  }

  .academic-matrix {
    margin-top: 36px;
  }

  .academic-matrix-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 24px;
  }

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

  .bottom-nav {
    padding: 0 16px;
  }

  .nav-inner {
    gap: 12px;
    overflow-x: auto;
  }

  .nav-links a {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  footer {
    padding: 8px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-photo-wrapper {
    width: 200px;
    height: 200px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

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

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

  .academic-card {
    min-height: auto;
    padding: 20px;
  }
}

@media (max-width: 900px) {
  body:not(.project-detail-page) .hero {
    gap: 26px;
    min-height: 100svh;
    justify-content: center;
    padding: 86px 24px 52px;
  }

  body:not(.project-detail-page) .hero::before {
    display: none;
  }

  body:not(.project-detail-page) .hero-content {
    padding-left: 0;
  }

  body:not(.project-detail-page) .hero-label {
    margin-bottom: 16px;
  }

  body:not(.project-detail-page) .hero-title {
    margin-bottom: 18px;
  }

}

@media (max-width: 480px) {
  .about-intro {
    padding: 18px;
  }

  .about-timeline::before {
    left: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 34px;
  }

  .timeline-year {
    justify-self: start;
    min-height: 30px;
    margin-top: 0;
  }

  .timeline-content {
    padding: 16px;
  }

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

  .certificates-block {
    grid-column: auto;
  }

  .certificates-list {
    grid-template-columns: 1fr;
  }

  .certificate-card {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
  }

  .certificate-preview {
    width: 88px;
    height: 68px;
  }

  body:not(.project-detail-page) .hero {
    padding: 82px 24px 46px;
  }

  body:not(.project-detail-page) .hero-photo-wrapper {
    width: 160px;
    height: 200px;
    border-radius: 24px;
  }

  body:not(.project-detail-page) .hero-badge {
    right: -16px;
    bottom: 16px;
    padding: 12px 16px;
  }

  body:not(.project-detail-page) .hero-title {
    font-size: 2rem;
  }

  body:not(.project-detail-page) .hero-desc {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  body:not(.project-detail-page) .hero-buttons {
    gap: 10px;
    margin-bottom: 24px;
  }

  body:not(.project-detail-page) .btn {
    min-height: 44px;
    padding: 11px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}

html {
  scroll-snap-type: none;
}

body:not(.project-detail-page) .section {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  padding-top: 116px;
  padding-bottom: 80px;
}

body:not(.project-detail-page) .section::before {
  content: "";
  position: absolute;
  inset: 40px max(28px, calc((100vw - 1320px) / 2));
  z-index: -1;
  border: 1px solid rgba(23, 48, 68, 0.075);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 249, 239, 0.38));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.82),
    0 36px 100px rgba(23, 48, 68, 0.055);
  pointer-events: none;
}

body:not(.project-detail-page) .section > .section-inner {
  width: 100%;
  opacity: 1;
  filter: none;
  transform: none;
}

@media (max-width: 900px) {
  body:not(.project-detail-page) .section {
    padding-top: 96px;
    padding-bottom: 64px;
  }

  body:not(.project-detail-page) .section::before {
    inset: 18px 12px;
    border-radius: 24px;
  }
}

