/* =========================================
   Variáveis e reset
   ========================================= */
:root {
  --color-bg: #FCFBF7;
  --color-text: #111111;
  --color-accent: #FFC700;
  --color-border: rgba(17, 17, 17, 0.12);
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-width: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  background-image: url("../assets/website/bg.jpg");
  background-repeat: repeat;
  background-size: 900px auto;
  background-position: top center;
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 20px;
}

.highlight {
  color: var(--color-text);
}

/* =========================================
   Header
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav ul a {
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding-bottom: 4px;
}

.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.main-nav ul a:hover::after {
  width: 100%;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* =========================================
   Hero
   ========================================= */
.hero {
  padding: calc(var(--header-height) + 64px) 0 80px;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.hero-text {
  flex: 1 1 640px;
  min-width: 0;
}

.hero-text h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
  margin-bottom: 28px;
}

.hero-text p {
  font-size: 15.5px;
  color: #2b2b2b;
  margin: 0 0 18px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 36px;
}

.skills li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.skills li:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid var(--color-text);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--color-text);
  color: #fff;
}

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

.link-secondary {
  font-weight: 700;
  font-size: 15px;
  position: relative;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--color-text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link-secondary:hover {
  border-color: var(--color-accent);
  color: #555;
}

.hero-photo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hero-photo .hero-actions {
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.photo-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(255, 199, 0, 0.35);
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-circle.no-photo img {
  display: none;
}

.photo-circle.no-photo::after {
  content: "MK";
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 64px;
  color: rgba(17, 17, 17, 0.75);
}

/* =========================================
   Trabalhos
   ========================================= */
.work {
  padding: 60px 0 100px;
}

.work h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 36px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
}

.work-card.no-link {
  cursor: default;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.12);
}

.work-card-media {
  aspect-ratio: 4 / 3;
  background: var(--card-color, var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  overflow: hidden;
}

.work-card-media:has(img) {
  padding: 0;
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.work-card:hover .work-card-media img {
  transform: scale(1.06);
  opacity: 0.92;
}

.work-card-media.dark {
  color: #fff;
}

.work-card-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
  opacity: 0.85;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.work-card:hover .work-card-label {
  transform: scale(1.05);
  opacity: 1;
}

.work-card-info {
  padding: 16px 18px 20px;
}

.work-card-info h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.work-card-tag {
  font-size: 12.5px;
  color: #666;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* =========================================
   Responsivo
   ========================================= */
@media (max-width: 960px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    gap: 40px;
  }

  .photo-circle {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .nav-burger {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--header-height) + 40px);
  }

  .hero-inner {
    flex-direction: column-reverse;
  }

  .hero-photo {
    margin-bottom: 8px;
  }

  .photo-circle {
    width: 180px;
    height: 180px;
  }

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