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

:root {
  /* Theme Colors - Dark Theme (Default) */
  --bg-primary: #000000;
  --bg-secondary: #171717;
  --bg-tertiary: #262626;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --bg-input: rgba(255, 255, 255, 0.06);
  --bg-input-focus: rgba(255, 255, 255, 0.08);
  --bg-button: rgba(255, 255, 255, 0.03);
  --bg-button-hover: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;
  --text-muted: #525252;

  --border-primary: rgba(255, 255, 255, 0.1);
  --border-secondary: rgba(255, 255, 255, 0.05);
  --border-focus: rgba(255, 255, 255, 0.25);

  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-light: rgba(255, 255, 255, 0.05);

  /* Original colors for compatibility */
  --primary: var(--bg-primary);
  --primary-dark: #1a1a1a;
  --primary-light: #333333;
  --secondary: var(--text-primary);
  --accent: #f5f5f5;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: var(--text-secondary);
  --gray-500: var(--text-tertiary);
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: var(--bg-secondary);

  --white: #ffffff;
  --black: #000000;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Fluid Typography */
  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --fs-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --fs-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3rem);

  /* Fluid Spacing */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --space-xl: clamp(2rem, 1.6rem + 2vw, 3rem);
  --space-2xl: clamp(3rem, 2.4rem + 3vw, 4rem);
  --space-3xl: clamp(4rem, 3.2rem + 4vw, 6rem);

  /* Container Sizes */
  --container-xs: 20rem;
  --container-sm: 24rem;
  --container-md: 28rem;
  --container-lg: 32rem;
  --container-xl: 36rem;
  --container-2xl: 42rem;
  --container-3xl: 48rem;
  --container-4xl: 56rem;
  --container-5xl: 64rem;
  --container-6xl: 72rem;
  --container-7xl: 80rem;

  /* Header Height */
  --header-height: clamp(60px, 4rem + 1vw, 80px);
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.05);
  --bg-input: rgba(0, 0, 0, 0.04);
  --bg-input-focus: rgba(0, 0, 0, 0.06);
  --bg-button: rgba(0, 0, 0, 0.03);
  --bg-button-hover: rgba(0, 0, 0, 0.08);

  --text-primary: #000000;
  --text-secondary: #404040;
  --text-tertiary: #666666;
  --text-muted: #999999;

  --border-primary: rgba(0, 0, 0, 0.1);
  --border-secondary: rgba(0, 0, 0, 0.05);
  --border-focus: rgba(0, 0, 0, 0.25);

  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.05);

  /* Update gray variables for light theme */
  --gray-400: var(--text-secondary);
  --gray-500: var(--text-tertiary);
  --gray-900: var(--bg-secondary);
}

/* Prevent horizontal scrolling */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Adjust base font size for different screen sizes */
@media (max-width: 320px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 18px;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--fs-base);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(var(--bg-primary-rgb, 0, 0, 0), 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-primary);
  transition: all 0.3s ease;
  height: var(--header-height);
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.95);
}

.header.scrolled {
  background: rgba(var(--bg-primary-rgb, 0, 0, 0), 0.98);
  box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.98);
}

.nav {
  max-width: var(--container-7xl);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  gap: var(--space-md);
}

.nav-brand {
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav-brand:hover {
  opacity: 0.8;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover {
  background: var(--bg-button-hover);
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.theme-toggle:hover .theme-toggle-icon {
  color: var(--text-primary);
  transform: scale(1.1);
}

/* Ícone do tema - apenas lua por padrão */
.theme-toggle-icon {
  opacity: 1;
}

[data-theme="light"] .theme-toggle-icon {
  opacity: 0.8;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 300;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-button-hover);
}

.nav-link-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-link-icon svg {
  width: 16px;
  height: 16px;
}

.nav-link-text {
  font-size: var(--fs-sm);
  letter-spacing: 0.3px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-brand {
    order: 1;
    flex: 1;
  }

  .theme-toggle {
    order: 3;
    margin: 0 var(--space-xs) 0 0;
  }

  .mobile-menu-toggle {
    order: 4;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(var(--bg-primary-rgb, 0, 0, 0), 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-primary);
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm) 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    order: 4;
  }

  [data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
  }

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

  .nav-link {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border-radius: 0;
    justify-content: flex-start;
    border-bottom: 1px solid var(--border-secondary);
    font-size: var(--fs-base);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

/* Tablet Navigation */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-menu {
    gap: var(--space-sm);
  }

  .nav-link {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--fs-xs);
  }
}

/* Simplificar navegação desktop - tornar mais sutil */
@media (min-width: 769px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-brand {
    order: 1;
  }

  .nav-menu {
    order: 2;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-left: auto;
    margin-right: var(--space-md);
  }

  .theme-toggle {
    order: 3;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .nav-link {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--fs-xs);
    font-weight: 300;
    color: var(--text-secondary);
    gap: 0;
    opacity: 1;
  }

  .nav-link-icon {
    display: none;
  }

  .nav-link-text {
    font-size: var(--fs-xs);
    letter-spacing: 0.3px;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--text-primary);
    background: transparent;
    border-bottom: 1px solid var(--text-primary);
    border-radius: 0;
    opacity: 1;
  }

  .nav-link {
    border-radius: 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
  }

  .nav-brand {
    font-size: var(--fs-lg);
    opacity: 0.9;
  }
}

/* Manter ícones apenas no mobile */
@media (max-width: 768px) {
  .nav-link-icon {
    display: flex;
  }
}

/* Landing Page Styles */
.container {
  width: 100%;
  max-width: min(var(--container-md), 90vw);
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-lg)) var(--space-md) var(--space-md);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile optimization for container spacing */
@media (max-width: 768px) {
  .container {
    padding: calc(var(--header-height) + var(--space-md)) var(--space-md) var(--space-md);
    min-height: calc(100vh - var(--header-height));
  }
}

/* Very small screens - even less spacing */
@media (max-width: 480px) {
  .container {
    padding: calc(var(--header-height) + var(--space-sm)) var(--space-sm) var(--space-sm);
  }
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: clamp(16px, 1rem + 1vw, 24px);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px var(--shadow-color);
  animation: fadeInUp 0.6s ease-out;
  position: relative;
  width: 100%;
}

/* Efeito de brilho sutil no card */
.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-focus), transparent);
  opacity: 0.6;
}

.profile-header {
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  text-align: center;
  background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
  position: relative;
}

.profile-image {
  width: clamp(80px, 15vw, 120px);
  height: clamp(80px, 15vw, 120px);
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-primary);
  position: relative;
  box-shadow: 0 8px 32px var(--shadow-color);
}

.profile-image::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--border-primary), transparent, var(--border-primary));
  z-index: -1;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.profile-name {
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.5px;
}

.profile-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: var(--space-lg);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 8vw, 44px);
  height: clamp(36px, 8vw, 44px);
  background: var(--bg-button);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  text-decoration: none;
  font-size: var(--fs-base);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 44px;
  min-height: 44px;
}

.social-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, var(--border-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon svg {
  width: clamp(16px, 4vw, 20px);
  height: clamp(16px, 4vw, 20px);
  transition: all 0.3s ease;
  z-index: 1;
}

.social-icon:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-light);
}

.social-icon:hover svg {
  transform: scale(1.1);
}

.navigation-menu {
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-button);
  border: 1px solid var(--border-secondary);
  border-radius: clamp(12px, 1rem + 0.5vw, 16px);
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: 300;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInLeft 0.6s ease-out;
  animation-fill-mode: both;
  min-height: 48px;
}

.nav-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--bg-button-hover), transparent);
  transition: left 0.5s ease;
}

.nav-button:hover::before {
  left: 100%;
}

.nav-button:hover {
  background: var(--bg-button-hover);
  border-color: var(--border-primary);
  transform: translateX(5px);
  box-shadow: 0 4px 20px var(--shadow-light);
}

.nav-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--border-primary);
}

.nav-icon {
  font-size: var(--fs-lg);
  width: 20px;
  height: 20px;
  text-align: center;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.nav-text {
  letter-spacing: 0.3px;
  text-align: center;
  font-size: var(--fs-sm);
}

.nav-button:hover .nav-icon svg {
  transform: scale(1.1);
}

/* Search Section */
.search-section {
  background: var(--bg-secondary);
  padding: var(--space-2xl) var(--space-md) var(--space-2xl);
  position: relative;
  width: 100%;
  overflow-x: hidden;
  min-height: auto;
}

.search-section.with-header-padding {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .search-section.with-header-padding {
    padding-top: calc(var(--header-height) + var(--space-lg));
    padding-bottom: var(--space-lg);
  }
}

.search-container {
  max-width: var(--container-7xl);
  margin: 0 auto;
  width: 100%;
}

.search-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.search-title {
  font-size: var(--fs-3xl);
  font-weight: 200;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -1px;
}

.search-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: var(--container-2xl);
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

.search-input-wrapper {
  max-width: var(--container-2xl);
  margin: 0 auto var(--space-lg);
  position: relative;
}

.search-input {
  width: 100%;
  height: clamp(52px, 4rem + 1vw, 60px);
  padding: 0 clamp(3rem, 4rem + 1vw, 4rem);
  background: var(--bg-input);
  border: 1px solid var(--border-primary);
  border-radius: clamp(12px, 1rem + 0.5vw, 16px);
  font-size: var(--fs-base);
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 300;
}

.search-input:focus {
  border-color: var(--border-focus);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--shadow-light), 0 8px 25px var(--shadow-color);
  transform: translateY(-1px);
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-icon {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon svg {
  width: 20px;
  height: 20px;
}

.search-input:focus ~ .search-icon {
  color: var(--text-tertiary);
}

.search-clear {
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
}

.search-clear:hover {
  color: var(--text-primary);
  background: var(--bg-button-hover);
}

.search-input:not(:placeholder-shown) ~ .search-clear {
  opacity: 1;
  visibility: visible;
}

/* Search Bar Section */
.search-bar-section {
  background: var(--bg-primary);
  padding: calc(var(--header-height) + var(--space-md)) var(--space-md) var(--space-md);
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.search-bar-container {
  max-width: var(--container-7xl);
  margin: 0 auto;
  width: 100%;
}

.search-bar-section .search-input-wrapper {
  max-width: var(--container-2xl);
  margin: 0 auto;
  position: relative;
}

.search-bar-section .search-input {
  width: 100%;
  height: clamp(52px, 4rem + 1vw, 60px);
  padding: 0 clamp(3rem, 4rem + 1vw, 4rem);
  background: var(--bg-input-focus);
  border: 1px solid var(--border-primary);
  border-radius: clamp(12px, 1rem + 0.5vw, 16px);
  font-size: var(--fs-base);
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 300;
}

.search-bar-section .search-input:focus {
  border-color: var(--border-focus);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--shadow-light), 0 8px 25px var(--shadow-color);
  transform: translateY(-1px);
}

.search-bar-section .search-input::placeholder {
  color: var(--text-secondary);
}

.search-bar-section .search-icon {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar-section .search-icon svg {
  width: 20px;
  height: 20px;
}

.search-bar-section .search-input:focus ~ .search-icon {
  color: var(--text-tertiary);
}

.search-bar-section .search-clear {
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
}

.search-bar-section .search-clear:hover {
  color: var(--text-primary);
  background: var(--bg-button-hover);
}

.search-bar-section .search-input:not(:placeholder-shown) ~ .search-clear {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .search-bar-section {
    padding: calc(var(--header-height) + var(--space-sm)) var(--space-md) var(--space-sm);
  }
}

.filters {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  overflow-x: auto;
  padding: var(--space-xs) 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-button);
  border: 1px solid var(--border-primary);
  border-radius: clamp(8px, 0.5rem + 0.5vw, 12px);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.filter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, var(--bg-button-hover), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  opacity: 1;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--shadow-light);
}

/* Groups Section */
.groups-section {
  background: var(--bg-primary);
  padding: var(--space-2xl) var(--space-md);
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.groups-container {
  max-width: var(--container-7xl);
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 200;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: var(--container-3xl);
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: var(--space-xl);
  width: 100%;
}

@media (max-width: 480px) {
  .groups-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .groups-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (min-width: 1200px) {
  .groups-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  }
}

.group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: clamp(16px, 1rem + 0.5vw, 20px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 100%;
}

.group-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-focus), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.group-card:hover::before {
  opacity: 1;
}

.group-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.group-header {
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  border-bottom: 1px solid var(--border-primary);
  position: relative;
}

.group-name {
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: 1px;
}

.group-description {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

.group-body {
  padding: 0 var(--space-lg) var(--space-xl);
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.platform-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: clamp(8px, 0.5rem + 0.5vw, 12px);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 56px;
}

.platform-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--bg-button-hover), transparent);
  transition: left 0.5s ease;
}

.platform-item:hover::before {
  left: 100%;
}

.platform-item:hover {
  background: var(--bg-button-hover);
  border-color: var(--border-primary);
  transform: translateX(5px);
  box-shadow: 0 4px 20px var(--shadow-light);
}

.platform-item-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  min-width: 0;
}

.platform-icon {
  width: clamp(32px, 6vw, 40px);
  height: clamp(32px, 6vw, 40px);
  background: linear-gradient(135deg, var(--bg-button-hover), var(--bg-button));
  border: 1px solid var(--border-primary);
  border-radius: clamp(6px, 0.5rem + 0.25vw, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.platform-item:hover .platform-icon {
  background: linear-gradient(135deg, var(--border-focus), var(--bg-button-hover));
  border-color: var(--border-focus);
  transform: scale(1.1);
}

.platform-info {
  flex: 1;
  min-width: 0;
}

.platform-name {
  font-size: var(--fs-sm);
  font-weight: 300;
  margin-bottom: 0;
  letter-spacing: 0.5px;
  word-break: break-word;
}

.platform-status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  opacity: 0.7;
}

.platform-arrow {
  font-size: var(--fs-base);
  opacity: 0.5;
  transition: all 0.3s ease;
  transform: translateX(0);
  flex-shrink: 0;
}

.platform-item:hover .platform-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Ver Mais Button */
.see-more-container {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-button);
  color: var(--text-secondary);
  padding: var(--space-md) var(--space-xl);
  border: 1px solid var(--border-primary);
  border-radius: clamp(8px, 0.5rem + 0.5vw, 12px);
  font-size: var(--fs-sm);
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 48px;
}

.see-more-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-light);
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 8vw, 44px);
  height: clamp(36px, 8vw, 44px);
  background: var(--bg-button);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
  border-radius: clamp(6px, 0.5rem + 0.25vw, 10px);
  font-size: var(--fs-xs);
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
}

.pagination-btn:hover:not(.disabled) {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--shadow-light);
}

.pagination-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.pagination-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-info {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin: 0 var(--space-md);
  font-weight: 300;
  white-space: nowrap;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg-primary);
}

.empty-state-icon {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-lg);
  opacity: 0.3;
}

.empty-state-title {
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.empty-state-description {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: var(--container-lg);
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: var(--space-3xl) var(--space-md) var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--border-primary);
}

.footer-content {
  max-width: var(--container-7xl);
  margin: 0 auto;
}

.footer-text {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xl);
  font-weight: 300;
}

.footer-text strong {
  color: var(--text-primary);
  font-weight: 300;
}

.footer-bottom {
  border-top: 1px solid var(--border-primary);
  padding-top: var(--space-xl);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-weight: 300;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: clamp(44px, 10vw, 56px);
  height: clamp(44px, 10vw, 56px);
  background: var(--bg-button-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  font-size: var(--fs-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-light);
}

.launch-date {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-weight: 300;
}

.platform-item:hover .launch-date {
  color: var(--text-secondary);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-secondary);
  border-radius: 50%;
  border-top-color: var(--text-primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animation on load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation delays for nav buttons */
.nav-button:nth-child(1) {
  animation-delay: 0.1s;
}
.nav-button:nth-child(2) {
  animation-delay: 0.2s;
}
.nav-button:nth-child(3) {
  animation-delay: 0.3s;
}
.nav-button:nth-child(4) {
  animation-delay: 0.4s;
}
.nav-button:nth-child(5) {
  animation-delay: 0.5s;
}
.nav-button:nth-child(6) {
  animation-delay: 0.6s;
}
.nav-button:nth-child(7) {
  animation-delay: 0.7s;
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .container {
    padding: calc(var(--header-height) + var(--space-md)) var(--space-md) var(--space-md);
    min-height: auto;
  }

  .profile-header {
    padding: var(--space-lg) var(--space-lg) var(--space-md);
  }

  .navigation-menu {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    gap: var(--space-sm);
  }

  .nav-button {
    padding: var(--space-sm) var(--space-md);
    min-height: 40px;
  }
}

/* Very Small Screens */
@media (max-width: 320px) {
  .nav {
    padding: 0 var(--space-sm);
  }

  .container {
    padding: calc(var(--header-height) + var(--space-md)) var(--space-sm) var(--space-sm);
  }

  .profile-header {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .navigation-menu {
    padding: var(--space-md) var(--space-md) var(--space-lg);
  }

  .search-section,
  .groups-section {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .group-header,
  .group-body {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* Large Screens */
@media (min-width: 1400px) {
  .groups-grid {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  }
}

/* Ultra-wide Screens */
@media (min-width: 1800px) {
  .groups-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .profile-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .header,
  .scroll-to-top,
  .mobile-menu-toggle,
  .theme-toggle {
    display: none !important;
  }

  .container,
  .search-section,
  .groups-section {
    padding: var(--space-md) !important;
  }

  .group-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Focus Styles for Better Accessibility */
*:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Improve text selection */
::selection {
  background: var(--bg-button-hover);
  color: var(--text-primary);
}

::-moz-selection {
  background: var(--bg-button-hover);
  color: var(--text-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Support for older browsers */
@supports not (clamp(1rem, 1vw, 2rem)) {
  .search-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .profile-name {
    font-size: 1.5rem;
  }
}

/* Mobile optimizations for better UX */
@media (max-width: 768px) {
  .search-section {
    padding: var(--space-md) var(--space-md) var(--space-md);
  }

  .search-header {
    margin-bottom: var(--space-sm);
  }

  .search-subtitle {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-md);
    text-align: center;
  }

  .search-input-wrapper {
    margin-bottom: var(--space-md);
  }

  .search-input {
    background: var(--bg-input-focus);
    border: 1px solid var(--border-primary);
  }

  .filters {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    overflow-x: auto;
    padding: var(--space-xs) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
}

/* Desktop - show full content */
@media (min-width: 769px) {
  .mobile-short {
    display: none;
  }

  .desktop-long {
    display: block;
  }

  .mobile-hidden {
    display: block;
  }
}

@media (max-width: 768px) {
  .mobile-short {
    display: block;
    font-size: var(--fs-sm);
    margin-bottom: var(--space-md);
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.5;
  }

  .desktop-long {
    display: none;
  }

  .mobile-hidden {
    display: none;
  }
}
