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

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  overflow-x: hidden;
}


/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0d0d0d;
  padding: 0 3rem;
  z-index: 10;
  transition: all 0.3s ease;
}

.header.scrolled {
  backdrop-filter: blur(10px);
  background-color: rgba(18, 26, 31, 0.8);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #f5f5f5;
  letter-spacing: 2px;
  line-height: 1;
}

.logo-line {
  width: 100%;
  height: 4px;
  background-color: #e85107;
  margin: 0.3rem 0;
}

.logo-subtext {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #e85107;
  letter-spacing: 1px;
  line-height: 1;
  margin-top: 0.2rem;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-image {
  height: auto;
  max-height: 90px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.logo:hover .logo-image {
  transform: scale(1.05);
}


.nav {
  margin-left: auto;
}

.nav a {
  color: white;
  text-decoration: none;
  margin: 0 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem 0.3rem 1rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.nav a:hover,
.nav a.active {
  color: #e85107;
  background-color: transparent;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #e85107;
  transition: all 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: calc(100% - 2rem);
}

.btn-header {
  background: white;
  color: #0e141b;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-header:hover {
  background-color: #e85107;
  color: #0e141b;
}

.btn-header .btn-icon {
  transition: transform 0.3s ease;
}

.btn-header:hover .btn-icon {
  transform: translateX(3px);
}

/* HEADER BUTTONS */
.header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap;
}

/* MENU TOGGLE (hambúrguer) */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animação de entrada dos botões */
.btn-auth {
  animation: slideInFromRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateX(30px);
}

.btn-auth:nth-child(1) {
  animation-delay: 0.1s;
}

.btn-auth:nth-child(2) {
  animation-delay: 0.2s;
}

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

.btn-auth {
  background: white;
  color: #0e141b;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: fit-content;
  width: auto;
  transform: translateY(0);
}

.btn-auth:hover {
  background-color: #e85107;
  color: #000;
  transform: translateY(-2px);
  z-index: 10;
}

.btn-text-short {
  display: inline;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  opacity: 1;
  width: auto;
  transform: translateX(0);
}

.btn-text-full {
  display: none;
  white-space: nowrap;
  opacity: 0;
  width: auto;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-auth:hover .btn-text-short {
  opacity: 0;
  transform: translateX(-10px);
  width: 0;
  overflow: hidden;
}

.btn-auth:hover .btn-text-full {
  display: inline;
  opacity: 1;
  transform: translateX(0);
}

.btn-arrow {
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
}

.btn-auth:hover .btn-arrow {
  transform: translateY(-2px) translateX(2px) rotate(45deg);
}

/* Efeito ripple no clique */
.btn-auth::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.btn-auth:active::before {
  width: 300px;
  height: 300px;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/img-backgroud.avif');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 795px;
  padding: 0 4rem;
  padding-top: 80px;
}

.hero-subtitle {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 2.5rem;
}

.btn-main {
  background-color: #e85107;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-main:hover {
  background-color: #ff6a1a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232, 81, 7, 0.4);
}

.btn-main .btn-icon {
  transition: transform 0.3s ease;
}

.btn-main:hover .btn-icon {
  transform: translateX(3px);
}

/* DECORAÇÃO SVG */
.hero-decor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 4;
  pointer-events: none;
}

.hero-decor img {
  width: 100%;
  display: block;
  transform: translateY(1px);
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #0d0d0d;
  box-shadow: -6px 0 24px rgba(0,0,0,0.4);
  transform: translateX(100%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 2rem;
}

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

.sidebar-close {
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.sidebar-close .bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sidebar-close .bar-1 { transform: translate(-50%, -50%) rotate(45deg); }
.sidebar-close .bar-2 { transform: translate(-50%, -50%) rotate(-45deg); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  margin-top: 0;
}
.sidebar-nav a {
  color: white;
  text-decoration: none;
  padding: 0.8rem 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}
.sidebar-nav a.active { color: #e85107; }

.sidebar-actions {
  margin-top: auto;
  display: grid;
  gap: 0.6rem;
}
.sidebar-actions .btn-auth {
  width: 100%;
  justify-content: center;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 900;
}

body.sidebar-open .sidebar {
  transform: translateX(0%);
  opacity: 1;
}
body.sidebar-open .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}
body.sidebar-open { overflow: hidden; }

/* RESPONSIVE */
@media (max-width: 1400px) {
  .nav { display: none; }
  .header-buttons { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .header-buttons {
    gap: 0.5rem;
    display: none;
  }

  .btn-auth {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .btn-auth:hover {
    transform: translateY(-1px);
  }

  .btn-arrow {
    width: 10px;
    height: 10px;
  }

  .hero-section {
    min-height: 90vh;
  }

  .hero-content {
    padding: 0 2.5rem;
    padding-top: 70px;
    max-width: 550px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .btn-main {
    padding: 0.875rem 2rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 2rem;
  }

  .header .container {
    gap: 1rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-subtext {
    font-size: 0.7rem;
  }

  .header-buttons {
    flex-direction: column;
    gap: 0.5rem;
    display: none;
  }

  .btn-auth {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .btn-auth:hover {
    transform: translateY(-1px);
  }

  .btn-text-full {
    font-size: 0.75rem;
  }

  .hero-section {
    min-height: 85vh;
  }

  .hero-content {
    padding: 0 1.75rem;
    padding-top: 60px;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.2;
  }

  .btn-main {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
  }

  .hero-overlay {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(0, 0, 0, 0.4) 100%
    );
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.75rem 1.25rem;
  }

  .hero-section {
    min-height: 80vh;
  }

  .hero-content {
    padding: 0 1.25rem;
    padding-top: 50px;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .btn-main {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.85) 100%
    );
  }
}

/* Esconder seta quando o botão estiver expandido */
.header-buttons .btn-auth.is-open .btn-arrow {
  display: none;
}

/* HEADER LANGUAGE SELECTOR */
.header-language {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.header-lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.header-lang-toggle.active {
  background: rgba(232, 81, 7, 0.3);
  border-color: #e85107;
}

/* Flag Icons Library - Header Language Toggle */
.header-lang-toggle .current-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Flag Icons Library - Dropdown */
.header-lang-dropdown .flag-icon {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.header-lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(26, 26, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-lang-dropdown li {
  margin: 0;
  padding: 0;
}

.header-lang-dropdown .language-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.header-lang-dropdown .language-option:hover {
  background: rgba(232, 81, 7, 0.15);
  color: #fff;
}

.header-lang-dropdown .language-option.active {
  background: rgba(232, 81, 7, 0.25);
  color: #e85107;
  font-weight: 600;
}

.header-lang-dropdown .flag-icon {
  flex-shrink: 0;
  border-radius: 2px;
}

.header-lang-dropdown .lang-name {
  flex: 1;
}

/* LANGUAGE SELECTOR */
.language-selector {
  position: relative;
  display: table-caption;
  align-items: center;
}

.language-toggle {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.language-toggle svg {
  transition: transform 0.3s ease;
}

.language-toggle.active svg {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown li {
  margin: 0;
  padding: 0;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.language-option:hover {
  background: rgba(232, 81, 7, 0.1);
}

.language-option.active {
  background: rgba(232, 81, 7, 0.2);
  color: #e85107;
}

.language-option .flag {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.language-option .lang-name {
  flex: 1;
}

/* SIDEBAR LANGUAGE SELECTOR */
.sidebar-language {
  width: 100%;
  margin: 0.5rem 0;
}

.sidebar-language .language-selector {
  width: 100%;
  height: 60px;
}

.sidebar-lang-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.sidebar-lang-toggle.active {
  background: rgba(232, 81, 7, 0.15);
  border-color: #e85107;
}

.sidebar-lang-toggle .current-flag-sidebar {
  width: 24px;
  height: 18px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

.sidebar-lang-toggle .current-lang {
  flex: 1;
  text-align: left;
}

.sidebar-lang-toggle .dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sidebar-lang-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.sidebar-language .language-dropdown {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  margin-top: 0.5rem;
  background: rgba(26, 26, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.sidebar-language .language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sidebar-language .language-dropdown li {
  margin: 0;
  padding: 0;
}

.sidebar-language .language-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.sidebar-language .language-option:hover {
  background: rgba(232, 81, 7, 0.15);
  color: #fff;
}

.sidebar-language .language-option.active {
  background: rgba(232, 81, 7, 0.25);
  color: #e85107;
  font-weight: 600;
}

.sidebar-language .language-option .flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

.sidebar-language .language-option .lang-name {
  flex: 1;
}

/* RESPONSIVE - Hide header language selector on smaller screens */
@media (max-width: 1400px) {
  .header-language {
    display: none;
  }
}

