/* CSS Custom Properties for Theme */
:root {
  --font-outfit: "Outfit", sans-serif;

  /* Light Theme - Using explicit RGB values */
  --background: rgb(255, 255, 255);
  --foreground: rgb(10, 10, 10);
  --card: rgb(255, 255, 255);
  --card-foreground: rgb(10, 10, 10);
  --primary: rgb(23, 23, 23);
  --primary-foreground: rgb(250, 250, 250);
  --secondary: rgb(245, 245, 245);
  --secondary-foreground: rgb(23, 23, 23);
  --muted: rgb(245, 245, 245);
  --muted-foreground: rgb(115, 115, 115);
  --accent: rgb(139, 92, 246);
  --accent-foreground: rgb(250, 250, 250);
  --border: rgb(229, 229, 229);
  --input: rgb(229, 229, 229);
  --ring: rgb(10, 10, 10);
}

/* Added styles for theme icon SVGs */
.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.theme-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--foreground);
  transition: all 0.3s ease;
}

.theme-toggle:hover .theme-icon svg {
  stroke: var(--accent);
  transform: rotate(15deg);
}

/* Dark theme specific SVG styles */
[data-theme="dark"] .theme-icon svg {
  stroke: rgb(250, 250, 250) !important;
}

[data-theme="dark"] .theme-toggle:hover .theme-icon svg {
  stroke: var(--accent) !important;
}

[data-theme="dark"] {
  /* Dark Theme - Using explicit RGB values */
  --background: rgb(10, 10, 10);
  --foreground: rgb(250, 250, 250);
  --card: rgb(10, 10, 10);
  --card-foreground: rgb(250, 250, 250);
  --primary: rgb(250, 250, 250);
  --primary-foreground: rgb(23, 23, 23);
  --secondary: rgb(38, 38, 38);
  --secondary-foreground: rgb(250, 250, 250);
  --muted: rgb(38, 38, 38);
  --muted-foreground: rgb(163, 163, 163);
  --accent: rgb(139, 92, 246);
  --accent-foreground: rgb(250, 250, 250);
  --border: rgb(38, 38, 38);
  --input: rgb(38, 38, 38);
  --ring: rgb(212, 212, 212);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-outfit);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles with High Specificity */
html[data-theme="dark"] body .header .nav-container .nav-menu .nav-link,
html[data-theme="dark"] body .nav-link,
body[data-theme="dark"] .nav-link,
[data-theme="dark"] .nav-link {
  color: rgb(250, 250, 250) !important;
  background-color: transparent !important;
}

html[data-theme="dark"] body .header .nav-container .nav-menu .nav-button,
html[data-theme="dark"] body .nav-button,
body[data-theme="dark"] .nav-button,
[data-theme="dark"] .nav-button {
  color: rgb(250, 250, 250) !important;
  background-color: transparent !important;
}

html[data-theme="dark"] body .btn-primary,
body[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary {
  background-color: rgb(250, 250, 250) !important;
  color: rgb(23, 23, 23) !important;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
}

.brand-text {
  color: var(--foreground);
}

.logo {
  width: 240px;
  height: 70px;
}

.logo-dark {
  display: none;
}

/* Quando o sistema estiver em modo escuro */
@media (prefers-color-scheme: dark) {
  .logo-light {
    display: none;
  }
  .logo-dark {
    display: inline;
  }
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:visited {
  color: var(--foreground);
}

.nav-button {
  background: none;
  border: none;
  padding: 0;
  font-weight: 500;
  cursor: pointer;
  color: var(--foreground);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--foreground);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}

.hamburger {
  width: 20px;
  height: 2px;
  background-color: var(--foreground);
  margin: 2px 0;
  transition: 0.3s;
}

/* Hero Styles */
.hero {
  padding: 8rem 1rem 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  color: var(--foreground);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  position: relative;
  width: 300px;
  height: 300px;
}

.floating-card {
  position: absolute;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  animation: float 3s ease-in-out infinite;
}

.card-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  right: 10%;
  animation-delay: 1s;
}

.card-3 {
  bottom: 20%;
  left: 30%;
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-description {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Styles */
.services {
  padding: 6rem 1rem;
  background-color: var(--secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.service-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Portfolio Styles */
.portfolio {
  padding: 6rem 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background-color: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.portfolio-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.portfolio-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* About Styles */
.about {
  padding: 6rem 1rem;
  background-color: var(--secondary);
}

/* FAQ Styles */
.faq {
  padding: 6rem 1rem;
  background-color: var(--secondary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question span {
  color: inherit;
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: inherit;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* CTA Styles */
.cta {
  padding: 6rem 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, #c56eff 100%);
  color: var(--accent-foreground);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-foreground);
}

.cta-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: var(--accent-foreground);
}

/* Footer Styles */
.footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
}

.footer-brand-text {
  color: var(--foreground);
}

.footer-logo {
  width: 240px;
  height: 70px;
}

.footer-text {
  color: var(--muted-foreground);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--card);
  border-radius: 1rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--card-foreground);
}

.modal-large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--card-foreground);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0.5rem;
}

.modal-close:hover {
  color: var(--foreground);
}

.modal-body {
  padding: 1.5rem;
}

/* Form Styles */
.contact-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--card-foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--background);
  color: var(--foreground);
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

   .about-grid,
  .team-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .btn {
    padding: 0.75rem 1rem;
  }

    .about-hero-title {
    font-size: 2rem;
  }

  .about-section-title {
    font-size: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* Force dark theme styles with maximum specificity */
html[data-theme="dark"] body,
body[data-theme="dark"],
[data-theme="dark"] body {
  background-color: rgb(10, 10, 10) !important;
  color: rgb(250, 250, 250) !important;
}

/* Force light text on dark backgrounds for all navigation elements */
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .nav-button,
body[data-theme="dark"] .nav-link,
body[data-theme="dark"] .nav-button,
[data-theme="dark"] .nav-link,
[data-theme="dark"] .nav-button {
  color: rgb(250, 250, 250) !important;
}

/* Force proper button colors in dark theme */
html[data-theme="dark"] .btn-primary,
body[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary {
  background-color: rgb(250, 250, 250) !important;
  color: rgb(23, 23, 23) !important;
}

/* Ensure all text elements have proper contrast in dark mode */
[data-theme="dark"] * {
  color: rgb(250, 250, 250) !important;
}

[data-theme="dark"] .btn-primary {
  color: rgb(23, 23, 23) !important;
}

[data-theme="dark"] .floating-card {
  color: rgb(250, 250, 250) !important;
}

[data-theme="dark"] .cta-title,
[data-theme="dark"] .cta-description {
  color: rgb(250, 250, 250) !important;
}

/* About Styles */
.about {
  padding: 6rem 1rem;
  background-color: var(--secondary);
}

/* About Hero Section */
.about-hero {
  padding: 8rem 1rem 4rem;
  background: linear-gradient(135deg, var(--accent) 0%, #c56eff 100%) !important;
  color: var(--accent-foreground);
  text-align: center;
}

.about-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent-foreground);
}

.about-hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.9;
  color: var(--accent-foreground);
}

/* About Mission Section */
.about-mission {
  padding: 6rem 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content {
  max-width: 600px;
}

.about-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* About Values Section */
.about-values {
  padding: 6rem 1rem;
  background-color: var(--secondary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.value-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* About Team Section */
.about-team {
  padding: 6rem 1rem;
}

.team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.team-description {
  max-width: 600px;
}

.skills-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-name {
  font-weight: 500;
  color: var(--foreground);
}

.skill-bar {
  width: 100%;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: 4px;
  transition: width 0.8s ease;
}

/* About Process Section */
.about-process {
  padding: 6rem 1rem;
  background-color: var(--secondary);
}

.process-timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.process-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: var(--accent-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.process-content {
  padding-top: 0.5rem;
}

.process-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.process-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Ensure all text elements have proper contrast in dark mode */
[data-theme="dark"] * {
  color: rgb(250, 250, 250) !important;
}

[data-theme="dark"] .btn-primary {
  color: rgb(23, 23, 23) !important;
}

[data-theme="dark"] .floating-card {
  color: rgb(250, 250, 250) !important;
}

[data-theme="dark"] .cta-title,
[data-theme="dark"] .cta-description {
  color: rgb(250, 250, 250) !important;
}

/* [data-theme="dark"] .about-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%) !important;
  color: var(--accent-foreground) !important;
} */

[data-theme="dark"] .about-hero-title {
  color: var(--accent-foreground) !important;
}

[data-theme="dark"] .about-hero-description {
  color: var(--accent-foreground) !important;
}

[data-theme="dark"] .about-section-title {
  color: var(--foreground) !important;
}

[data-theme="dark"] .about-text {
  color: var(--muted-foreground) !important;
}

[data-theme="dark"] .stat-number {
  color: var(--accent) !important;
}

[data-theme="dark"] .stat-label {
  color: var(--muted-foreground) !important;
}

[data-theme="dark"] .value-title {
  color: var(--card-foreground) !important;
}

[data-theme="dark"] .value-description {
  color: var(--muted-foreground) !important;
}

[data-theme="dark"] .process-number {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%) !important;
  color: var(--accent-foreground) !important;
}

[data-theme="dark"] .process-title {
  color: var(--foreground) !important;
}

[data-theme="dark"] .process-description {
  color: var(--muted-foreground) !important;
}
