/* ============================================================
   GO FREELANCE LANDING PAGE – STYLE SHEET
   Design: Dark premium theme with crimson accents
   ============================================================ */

/* ==================== CSS CUSTOM PROPERTIES ==================== */
:root {
  /* Colors */
  --color-bg-primary: #758471;
  --color-bg-secondary: #667562;
  --color-bg-card: #f2efe9;
  --color-bg-dark: #586654;
  --color-accent: #cc8b60;
  --color-accent-hover: #b87a50;
  --color-accent-glow: rgba(204, 139, 96, 0.35);
  --color-text-primary: #ffffff;
  --color-text-secondary: #e2e8e0;
  --color-text-muted: #c2ccbf;
  --color-border: rgba(255, 255, 255, 0.15);
  --color-card-text: #333d2e;
  --color-card-text-muted: #55604f;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --fs-hero: clamp(2.2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.3rem, 3vw, 1.6rem);
  --fs-body: clamp(0.9rem, 2vw, 1rem);
  --fs-small: 0.875rem;

  /* Spacing */
  --section-padding: clamp(3rem, 8vw, 6rem);
  --container-max: 1100px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px var(--color-accent-glow);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.6s ease;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

strong {
  font-weight: 700;
  color: var(--color-accent);
}

/* ==================== UTILITY ==================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--color-accent-glow);
  }

  50% {
    box-shadow: 0 0 20px 6px var(--color-accent-glow);
  }
}

@keyframes scrollDown {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) perspective(800px) rotateY(-8deg) rotateX(2deg);
  }

  50% {
    transform: translateY(-10px) perspective(800px) rotateY(-8deg) rotateX(2deg);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* Animation states */
[data-animate] {
  opacity: 0;
}

[data-animate].animate-in {
  animation-duration: 0.7s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate="fade-up"].animate-in {
  animation-name: fadeInUp;
}

[data-animate="fade-right"].animate-in {
  animation-name: fadeInRight;
}

[data-animate="fade-left"].animate-in {
  animation-name: fadeInLeft;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-large {
  padding: 18px 42px;
  font-size: 1.05rem;
}

.pulse-btn {
  animation: pulseGlow 2.5s infinite;
}

.pulse-btn:hover {
  animation: none;
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-pattern canvas {
  width: 100%;
  height: 100%;
  opacity: 0.07;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0e5f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.hero-description {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.8;
}

/* Book 3D effect */
.book-3d {
  position: relative;
  display: flex;
  justify-content: center;
  animation: float 5s ease-in-out infinite;
}

.book-3d img {
  width: 280px;
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(230, 52, 98, 0.15);
  transition: transform var(--transition-normal);
}

.book-3d:hover img {
  transform: scale(1.03);
}

.book-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent);
  animation: shimmer 4s infinite;
  pointer-events: none;
  border-radius: var(--radius-sm);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

/* ==================== FEATURES SECTION ==================== */
.features {
  background: var(--color-bg-secondary);
  padding: var(--section-padding) 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.4;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  color: var(--color-card-text);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #ff6b9d);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(230, 52, 98, 0.2);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(230, 52, 98, 0.15), rgba(230, 52, 98, 0.05));
  border: 1px solid rgba(230, 52, 98, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.1);
}

.feature-title {
  font-family: var(--font-primary);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-bg-dark);
  margin-bottom: 1rem;
}

.feature-text {
  color: var(--color-card-text-muted);
  line-height: 1.8;
  font-size: var(--fs-small);
}

.text-link {
  color: var(--color-accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.text-link:hover {
  border-bottom-color: var(--color-accent);
}

/* ==================== ABOUT SECTION ==================== */
.about {
  background: var(--color-bg-dark);
  padding: var(--section-padding) 0;
  position: relative;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.authors-placeholder {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  overflow: hidden;
  /* Isso faz com que a imagem não vaze para fora das bordas arredondadas */
}

.authors-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  flex: 1;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
  color: #fff;
}

.about-description {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  background: var(--color-bg-secondary);
  padding: var(--section-padding) 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0e5f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-description {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-guarantee {
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  letter-spacing: 0.3px;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-bg-dark);
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.footer-separator {
  opacity: 0.4;
}

.footer-link {
  color: var(--color-accent);
  font-weight: 500;
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.footer-right {
  font-size: var(--fs-small);
}

/* ==================== RESPONSIVE – TABLET ==================== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 0;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .book-3d img {
    width: 220px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }
}

/* ==================== RESPONSIVE – MOBILE ==================== */
@media (max-width: 480px) {
  :root {
    --section-padding: 3rem;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .book-3d img {
    width: 180px;
  }

  .book-3d {
    animation: none;
    transform: none;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .btn-large {
    padding: 16px 32px;
  }



  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .cta-title {
    font-size: 1.5rem;
  }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .book-3d {
    animation: none;
  }

  [data-animate] {
    opacity: 1;
  }
}