:root {
  --accent-white: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.4);
  --accent-gradient: linear-gradient(135deg, #ffffff, #888888);
  --bg-primary: #000;
  --bg-secondary: #0a0a0a;
  --text-main: #ffffff;
  --text-muted: #888888;
  --border-color: rgba(255, 255, 255, 0.05);
  --accent-pink: #ffffff;
  /* Replaced color with white for consistency */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.text-center {
  text-align: center;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 0;
  z-index: 1000;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent-pink);
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 1;
}

.btn-sm {
  background: #fff;
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700 !important;
  opacity: 1 !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-sm:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ===== HERO SECTION ===== */
.hero-stagger {
  position: relative;
  min-height: auto;
  /* Removed fixed height */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  padding: 160px 0 100px 0;
  /* Balanced padding to contain text and arrow */
}

.hero-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
}

.hero-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-badge .dot {
  width: 8px;
  height: 8px;
  background: #00ff80;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

.hero-title-centered {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 30px;
  letter-spacing: -2px;
}

.hero-desc-centered {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 50px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-outline {
  background: transparent;
  color: #fff;
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: inline-block;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  padding: 20px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: none;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.25);
  background: #ffffff;
}

.btn-primary:hover::after {
  left: 150%;
  transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: relative;
  /* Back to relative to stay below buttons naturally */
  margin-top: 60px;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 20;
}

.scroll-arrow {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.7));
  position: relative;
  animation: bounce-arrow 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  border-right: 2px solid rgba(255, 255, 255, 0.7);
}

@keyframes bounce-arrow {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }

  50% {
    transform: translateY(15px);
    opacity: 1;
  }
}

/* ===== 3D GALLERY ===== */
.container-scroll {
  position: relative;
  height: 250vh;
  z-index: 30;
  margin-top: -80px;
  /* Controlled negative margin */
}

.container-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 0px;
  /* Gallery starts at the very top of its container */
  justify-content: center;
  overflow: hidden;
  perspective: 2000px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  width: 1600px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.gallery-col:nth-child(2) {
  transform: translateY(-100px);
}

.gallery-col img {
  width: 100%;
  aspect-ratio: 16/10; /* Proporção fixa para garantir alinhamento perfeito */
  object-fit: cover; /* Preenche o retângulo completamente */
  object-position: top center; /* Foca no topo (header) dos sites */
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  filter: brightness(0.9);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-col img:hover {
  filter: brightness(1);
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

/* ===== MARQUEE ===== */
.marquee-section {
  background: #000;
  padding: 100px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.marquee-content {
  display: inline-block;
  animation: marquee 35s linear infinite;
}

.marquee-content span {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  -webkit-text-stroke: 0;
  padding-right: 100px;
  letter-spacing: 5px;
  text-transform: uppercase;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  /* Reduced from 150px */
  background: #000;
  position: relative;
  z-index: 50;
}

.section-label {
  color: #555;
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 25px;
  display: block;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  margin-bottom: 100px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  background: #0a0a0a;
  padding: 50px 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-align: left;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
  background: #0f0f0f;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feat-icon-gradient {
  width: 60px;
  height: 60px;
  background: #000;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover .feat-icon-gradient {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: 100px 0;
  /* Reduced from 150px */
  background: #000;
  position: relative;
  z-index: 50;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.portfolio-item {
  text-align: left;
}

.portfolio-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover .portfolio-img {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.portfolio-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.2);
  pointer-events: none;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* Show the top of the site first */
  transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-info h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.portfolio-info p {
  color: var(--text-muted);
}

/* ===== PRICING ===== */
.pricing-info-section {
  padding: 120px 0;
  /* Reduced from 180px */
  background: #000;
  position: relative;
  z-index: 50;
}

.price-tag-large {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 30px 0;
}


/* ===== FOOTER ===== */
.footer {
  padding: 120px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 120px;
  margin-bottom: 100px;
  text-align: left;
}

.footer-social {
  display: block;
  font-size: 0.7rem;
  color: #555;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

.footer-social .label {
  display: block;
  font-size: 0.7rem;
  color: #555;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

.social-icons {
  display: flex;
  gap: 25px;
}

.social-icons a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.social-icons a:hover {
  opacity: 1;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.nav-col h4 {
  font-size: 0.75rem;
  color: #444;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.nav-col a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 15px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.nav-col a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #333;
  font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
.animate-blur {
  opacity: 0;
  filter: blur(15px);
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .features-grid,
  .portfolio-grid,
  .footer-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .gallery-container {
    width: 100%;
    gap: 20px;
  }

  .gallery-col {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }

  .container {
    padding: 0 var(--container-padding);
  }

  .nav-links {
    display: none;
  }

  .hero-stagger {
    padding: 140px 0 40px 0;
    min-height: auto;
  }

  .hero-title-centered {
    font-size: 2.4rem;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.1;
  }

  .hero-desc-centered {
    font-size: 1rem;
    margin-bottom: 35px;
    padding: 0 5px;
  }

  .hero-btns {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 10px;
  }

  .btn-primary, .btn-outline {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .scroll-indicator {
    margin-top: 40px;
  }

  .scroll-arrow {
    height: 40px;
  }

  /* Adjust Gallery for mobile to prevent overflow/distortion */
  .container-scroll {
    height: 200vh;
    margin-top: -40px;
  }

  .container-sticky {
    perspective: 1200px;
    align-items: center; /* Back to center for mobile cards */
    padding-top: 0;
  }

  .gallery-container {
    grid-template-columns: 1fr; /* Single column on mobile is much cleaner */
    width: 100%;
    max-width: 320px; /* Control card width */
    gap: 30px;
    padding: 0;
  }

  .gallery-col.col-1,
  .gallery-col.col-3 {
    display: none; /* Show only one column for a focused mobile look */
  }

  .gallery-col.col-2 {
    display: flex;
  }

  .gallery-col {
    gap: 30px;
  }

  .gallery-col:nth-child(2) {
    transform: translateY(0);
  }

  .gallery-col img {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  }

  .section-title {
    margin-bottom: 50px;
    font-size: 2.2rem;
  }

  .features, .portfolio, .pricing-info-section, .contact-section {
    padding: 70px 0;
  }

  .feature-card {
    padding: 30px 20px;
    border-radius: 18px;
  }

  .portfolio-grid {
    gap: 30px;
  }

  .price-tag-large {
    font-size: 3rem;
  }

  .contact-form {
    padding: 30px 20px;
    margin-top: 30px;
  }

  .footer {
    padding: 70px 0 40px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    font-size: 0.75rem;
  }

  /* Increase marquee brightness on mobile */
  .marquee-content span {
    color: rgba(255, 255, 255, 0.15); /* Increased from 0.04 */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    letter-spacing: 3px;
  }
}

/* Extra small devices fix */
@media (max-width: 480px) {
  .hero-title-centered {
    font-size: 2rem;
  }
}