/* ===========================
   RYCK TATTOO — REALISMO
   =========================== */

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-strong: #1c1c1c;
  --text: #f4f4f4;
  --muted: #b0b0b0;
  --primary: #f39d1a;
  --primary-soft: #f7c87d;
  --border: rgba(255, 255, 255, 0.07);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

ol, ul {
  padding-left: 1.2rem;
}

/* ===== Buttons ===== */

.button {
  font: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), #ffb64d);
  color: #111;
  box-shadow: 0 4px 24px rgba(243, 157, 26, 0.25);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--border);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(243, 157, 26, 0.3);
}

/* ===== Navbar ===== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar-content {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.navbar-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 20px rgba(243, 157, 26, 0.3);
}

.navbar-logo span {
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-links a:hover {
  color: var(--primary);
  opacity: 1;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}

/* ===== Layout ===== */

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

/* ===== Hero ===== */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 6rem 1rem 4rem;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(243, 157, 26, 0.14), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(243, 157, 26, 0.06), transparent 50%),
    linear-gradient(180deg, #080808 0%, #0f0f0f 100%);
}

.hero-content {
  max-width: 780px;
}

.hero-logo {
  margin-bottom: 2rem;
  animation: logoFloat 3s ease-in-out infinite;
}

.hero-logo img {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 
    0 0 40px rgba(243, 157, 26, 0.4),
    0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-logo img:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 60px rgba(243, 157, 26, 0.6),
    0 12px 40px rgba(0, 0, 0, 0.4);
}

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

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  margin: 1.5rem auto 2.5rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Sections ===== */

.intro,
.portfolio,
.videos,
.atendimento,
.contact {
  position: relative;
}

.section-header {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
}

.section-subtitle {
  color: var(--muted);
  max-width: 42rem;
}

.intro p,
.feature-card p,
.skill-card p,
.contact-card p {
  color: var(--muted);
}

/* ===== Skills Grid ===== */

.skills-grid,
.features-grid {
  display: grid;
  gap: 1.25rem;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.5rem;
}

.skill-card,
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover,
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 157, 26, 0.25);
}

.skill-icon,
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(212, 162, 76, 0.18), rgba(212, 162, 76, 0.05));
  border: 1px solid rgba(212, 162, 76, 0.35);
  color: var(--accent);
}

.skill-icon svg,
.feature-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.skill-card h3,
.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

/* ===== Gallery Grid ===== */

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

.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  position: relative;
  background: var(--surface);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== Videos Grid ===== */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.video-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.video-item video {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 2.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.video-play-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

.video-item.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

.video-item.playing:hover .video-play-btn {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.25);
}

/* ===== Features Grid ===== */

.atendimento .features-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

/* ===== Contact ===== */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr;
}

.contact-card h2 {
  margin-bottom: 0.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  color: var(--text);
}

.contact-note {
  background: rgba(243, 157, 26, 0.06);
  border: 1px solid rgba(243, 157, 26, 0.18);
  padding: 1.75rem;
  border-radius: 1.25rem;
  align-self: start;
}

.contact-note p {
  margin-bottom: 0.75rem;
}

.contact-steps {
  color: var(--muted);
  display: grid;
  gap: 0.5rem;
  padding-left: 1.2rem;
}

.contact-steps li {
  padding-left: 0.25rem;
}

/* ===== Lightbox ===== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.75rem;
  user-select: none;
  transition: transform 0.3s ease;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  display: grid;
  place-items: center;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(243, 157, 26, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-close:hover {
  transform: scale(1.05);
}

/* ===== Scroll Reveal ===== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delay for grid items */
.gallery-grid .reveal:nth-child(1) { transition-delay: 0s; }
.gallery-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.gallery-grid .reveal:nth-child(7) { transition-delay: 0.08s; }
.gallery-grid .reveal:nth-child(8) { transition-delay: 0.16s; }
.gallery-grid .reveal:nth-child(9) { transition-delay: 0.24s; }
.gallery-grid .reveal:nth-child(10) { transition-delay: 0.32s; }
.gallery-grid .reveal:nth-child(11) { transition-delay: 0.4s; }
.gallery-grid .reveal:nth-child(12) { transition-delay: 0.48s; }

.videos-grid .reveal:nth-child(1) { transition-delay: 0s; }
.videos-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.videos-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.videos-grid .reveal:nth-child(4) { transition-delay: 0.1s; }
.videos-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.videos-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ===== Footer ===== */

.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */

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

  .navbar-links {
    gap: 1.5rem;
  }

  .navbar-links a {
    font-size: 0.9rem;
  }
}

@media (max-width: 680px) {
  .navbar-content {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .navbar-logo img {
    width: 35px;
    height: 35px;
  }

  .navbar-links {
    gap: 1.25rem;
  }

  .hero {
    padding: 8rem 1rem 3rem;
  }

  .hero-logo img {
    width: 100px;
    height: 100px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .container {
    padding: 3rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
  }

  .gallery-item img {
    height: 240px;
  }

  .videos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .video-item video {
    height: 300px;
  }

  .video-play-btn {
    font-size: 1.8rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }

  .contact-card {
    padding: 1.5rem;
  }
}

@media (max-width: 420px) {
  .navbar-content {
    padding: 0.25rem 0;
  }

  .navbar-logo {
    font-size: 1rem;
  }

  .navbar-logo img {
    width: 32px;
    height: 32px;
  }

  .navbar-links {
    gap: 1rem;
  }

  .navbar-links a {
    font-size: 0.85rem;
  }

  .hero-logo img {
    width: 80px;
    height: 80px;
  }

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

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

  .video-item video {
    height: 360px;
  }
}
