/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

body.dark-mode {
  color: rgb(244, 231, 212);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode span,
body.dark-mode div,
body.dark-mode a,
body.dark-mode li {
  color: rgb(244, 231, 212);
}

body.dark-mode .hero h1,
body.dark-mode .hero p,
body.dark-mode .about h2,
body.dark-mode .about p,
body.dark-mode .work h2,
body.dark-mode .work p,
body.dark-mode .about-section h2,
body.dark-mode .about-section p,
body.dark-mode .timeline-item h3,
body.dark-mode .timeline-item p,
body.dark-mode .skills-list li,
body.dark-mode .contact-info p,
body.dark-mode .contact-info a,
body.dark-mode footer p {
  color: rgb(244, 231, 212);
}

body.dark-mode .highlight {
  color: rgb(244, 231, 212);
}

body.dark-mode .project-card h2,
body.dark-mode .project-card p,
body.dark-mode .project-card .project-category,
body.dark-mode .project-card .project-link {
  color: rgb(244, 231, 212);
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

body.dark-mode header {
  background: rgba(12, 12, 12, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(244, 231, 212, 0.1);
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

nav a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #666;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  background-color: #fff;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 2rem;
  margin-bottom: 6rem;
}

.hero-text h1 {
  font-size: 6.5rem;
  line-height: 1;
  margin: 0;
  color: #333;
  font-weight: 600;
}

.hero-about {
  display: flex;
  align-items: center;
  gap: 5rem;
  padding: 0 2rem;
}

.seal {
  width: 140px;
  height: 140px;
  position: relative;
  flex-shrink: 0;
}

.seal-image {
  width: 85%;
  height: 85%;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-about p {
  font-size: 1.5rem;
  line-height: 1.4;
  color: #666;
  margin: 2rem 0 0 0;
  max-width: 52rem;
}

.hero-about p br {
  display: block;
}

body.dark-mode .hero {
  background-color: #121212;
}

body.dark-mode .hero-text h1 {
  color: rgb(244, 231, 212);
}

body.dark-mode .hero-about p {
  color: rgb(244, 231, 212);
}

@media (max-width: 1200px) {
  .hero-text h1 {
    font-size: 5rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    margin-bottom: 4rem;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .hero-about {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
    align-items: center;
  }

  .seal {
    width: 140px;
    height: 140px;
  }

  .hero-about p {
    font-size: 1.25rem;
    margin-top: 0 !important;
  }

  .hero-about p br {
    display: none;
  }
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #333;
  border-radius: 30px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #333;
  color: #fff;
}

/* Work Section */
body.dark-mode .work,
body.dark-mode div.work,
html body.dark-mode .work {
  background-color: #121212 !important;
}

.work {
  position: relative;
  padding: 100px 0;
  background-color: #fff;
  overflow: hidden;
}

.video-background {
  position: relative;
  max-width: none !important;
  width: 100% !important;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.video-background:hover .video-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.video-background video {
  display: block;
  width: 100%;
  height: auto;
}

.video-background .video-mobile {
  display: none !important;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  object-position: top center;
}

.video-background .video-desktop {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  object-position: top center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.work-content {
  text-align: center;
  padding: 40px;
  position: relative;
}

.work-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  z-index: -1;
}

.work h2 {
  font-size: 6.5rem;
  line-height: 1;
  margin-bottom: 30px;
  color: rgb(244, 231, 212);
  font-weight: 600;
}

body.dark-mode .work-content::before {
  background: rgba(18, 18, 18, 0.3);
}

body.dark-mode .work h2 {
  color: rgb(244, 231, 212);
}

.work .btn {
  color: rgb(244, 231, 212);
  text-decoration: none;
  font-size: 1.5rem;
  padding: 1rem 2rem;
  border: 1px solid rgb(244, 231, 212);
  border-radius: 100px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(244, 231, 212, 0.1);
}

.work .btn:hover {
  background: rgba(244, 231, 212, 0.2);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.work-item {
  position: relative;
  overflow: hidden;
}

.work-item img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.work-item:hover img {
  transform: scale(1.05);
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: #fff;
}

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

.about h2 {
  font-size: 48px;
  margin-bottom: 30px;
}

.about p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #666;
}

/* Footer */
footer {
  padding: 2rem 0;
  background-color: #fff;
  color: #333;
  border-top: 1px solid rgba(51, 51, 51, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode footer {
  background-color: #121212;
  color: rgb(244, 231, 212);
  border-top: 1px solid rgba(244, 231, 212, 0.1);
}

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

.footer-right {
  display: flex;
  gap: 2rem;
}

.footer-right a {
  color: rgb(244, 231, 212);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-right a:hover {
  opacity: 0.7;
}

/* Página Sobre */
.about-page {
  padding: 120px 0 80px;
}

.about-images {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 -2rem 6rem;
  height: 500px;
}

.profile-image {
  position: absolute;
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-image:nth-child(1) {
  transform: translateX(-70%) translateY(20%) rotate(-5deg);
  z-index: 1;
}

.profile-image:nth-child(2) {
  transform: translateY(0%);
  z-index: 2;
}

.profile-image:nth-child(3) {
  transform: translateX(70%) translateY(20%) rotate(5deg);
  z-index: 1;
}

.profile-image:nth-child(1):hover {
  transform: translateX(-70%) translateY(20%) rotate(-5deg) scale(1.05);
  z-index: 3;
}

.profile-image:nth-child(2):hover {
  transform: translateY(0%) scale(1.05);
  z-index: 3;
}

.profile-image:nth-child(3):hover {
  transform: translateX(70%) translateY(20%) rotate(5deg) scale(1.05);
  z-index: 3;
}

.about-page h1 {
  font-size: 6.5rem;
  margin: 0 0 6rem;
  line-height: 1;
  font-weight: 600;
  padding-top: 80px;
}

.about-section {
  margin-bottom: 120px;
}

.about-section:last-child {
  margin-bottom: 60px;
}

.about-section h2 {
  font-size: 6.5rem;
  line-height: 1;
  margin-bottom: 40px;
  font-weight: 600;
}

.about-section p {
  font-size: 18px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}

.about-section .intro {
  font-size: 20px;
  color: #666;
}

.bio-section {
  margin: 120px 0;
}

.timeline {
  display: grid;
  gap: 60px;
}

.timeline-item {
  padding-left: 20px;
  border-left: 2px solid #eee;
}

.timeline-item h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.timeline-item .company {
  font-weight: 500;
  color: #666;
  margin-bottom: 5px;
}

.timeline-item .period {
  font-size: 14px;
  color: #666;
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: inherit;
  text-decoration: none;
}

.social-links i {
  font-size: 1.2rem;
}

.skills-list {
  display: flex;
  overflow: hidden;
  margin: 120px -20px;
  padding: 2rem 20px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.skills-list-container {
  display: flex;
  gap: 1rem;
  animation: scroll 30s linear infinite;
}

.skills-list-container:hover {
  animation-play-state: paused;
}

.skills-items {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}

.skills-items li {
  font-size: 1.5rem;
  color: #333;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
  list-style: none;
}

.skills-items li:hover {
  border-color: rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

body.dark-mode .skills-items li {
  color: rgb(244, 231, 212);
  border-color: rgba(244, 231, 212, 0.2);
}

body.dark-mode .skills-items li:hover {
  border-color: rgba(244, 231, 212, 0.5);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .skills-items li {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
  }
}

.contact-info {
  max-width: 600px;
}

.contact-info p {
  margin-bottom: 20px;
}

.contact-info a {
  color: #666;
  text-decoration: none;
  border-bottom: 1px solid #666;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  color: #666;
  border-color: #666;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 48px;
  }
  
  .hero p {
    font-size: 20px;
  }
  
  nav {
    justify-content: center;
  }
  
  nav a {
    margin: 0 15px;
  }
  
  .about-page h1 {
    font-size: 3.5rem;
    padding-top: 60px;
    margin-bottom: 4rem;
  }
  
  .about-section h2 {
    font-size: 3.5rem;
  }
  
  .timeline-item h3 {
    font-size: 20px;
  }
  
  .video-background {
    margin: 0 20px;
  }
  
  .work h2 {
    font-size: 3.5rem;
  }
  
  .work .btn {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
  }
}

.work-together {
  padding: 100px 0;
  background-color: #fff;
  color: #333;
}

.work-together-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.work-together-left h2 {
  font-size: 6.5rem;
  line-height: 1;
  margin: 0;
  font-weight: 600;
  color: #333;
}

.work-together-right {
  padding-top: 1rem;
}

.work-together-right p {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: #333;
}

.work-together-right a {
  color: #333;
  text-decoration: none;
  font-size: 1.5rem;
  border-bottom: 1px solid #333;
  transition: opacity 0.3s ease;
}

body.dark-mode .work-together {
  background-color: #121212;
  color: rgb(244, 231, 212);
}

body.dark-mode .work-together-left h2 {
  color: rgb(244, 231, 212);
}

body.dark-mode .work-together-right p {
  color: rgb(244, 231, 212);
}

body.dark-mode .work-together-right a {
  color: rgb(244, 231, 212);
  border-bottom: 1px solid rgb(244, 231, 212);
}

@media (max-width: 1200px) {
  .work-together-left h2 {
    font-size: 5rem;
  }
}

@media (max-width: 768px) {
  .work-together-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .work-together-left h2 {
    font-size: 3.5rem;
  }

  .work-together-right p {
    font-size: 1.25rem;
  }

  .work-together-right a {
    font-size: 1.25rem;
  }

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

  .footer-right {
    flex-direction: column;
    gap: 1rem;
  }
}

body.dark-mode .work-together .btn {
  background: rgb(244, 231, 212);
  color: rgb(12, 12, 12);
}

body.dark-mode .work-together .btn:hover {
  background: rgb(255, 255, 255);
}

body.dark-mode .form-check-input {
  background-color: #333;
  border-color: #666;
}

body.dark-mode .form-check-input:before {
  background-color: rgb(244, 231, 212);
  border-color: rgb(244, 231, 212);
}

body.dark-mode .form-check-input:checked {
  background-color: rgb(244, 231, 212);
  border-color: rgb(244, 231, 212);
}

body.dark-mode .form-check-input:checked:before {
  background-color: #121212;
}

.form-check {
  display: flex;
  align-items: center;
  margin: 0;
  margin-left: 2rem;
}

.form-check-input {
  position: relative;
  width: 2em !important;
  height: 1em !important;
  margin: 0;
  margin-right: 0.5em;
  background-color: #fff;
  background-image: none !important;
  border: 1px solid #adb5bd;
  appearance: none;
  border-radius: 2em !important;
  transition: background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-check-input:before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: calc(1em - 4px);
  height: calc(1em - 4px);
  background-color: #fff;
  border: 1px solid #adb5bd;
  border-radius: 50%;
  transition: transform .15s ease-in-out;
}

.form-check-input:checked:before {
  transform: translateX(1em);
}

.form-check-label {
  margin: 0;
  line-height: 1;
}

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

.svg-circle-text {
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.svg-circle-text text {
  font-size: 8px;
  letter-spacing: 0.32em;
  fill: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
}

body.dark-mode .svg-circle-text text {
  fill: rgb(244, 231, 212);
}

.svg-circle-text textPath {
  word-spacing: 0.5em;
}

.circle-text {
  fill: rgb(244, 231, 212);
  font-size: 8px;
}

body.dark-mode .skills-list li {
  background: #121212;
  color: rgb(244, 231, 212);
}

body.dark-mode footer {
  background-color: #121212;
  border-top: 1px solid rgba(244, 231, 212, 0.1);
}

@media (max-width: 1200px) {
  .about-section h2 {
    font-size: 5rem;
  }
}

@media (max-width: 768px) {
  .about-section h2 {
    font-size: 3.5rem;
  }
}

.specialties {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.specialties-line {
  margin: 2rem 0;
  will-change: transform;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.specialties-content {
  position: relative;
  font-size: 6.5rem;
  font-weight: 700;
  display: inline-block;
  padding-right: 4rem;
  transition: opacity 0.3s ease, color 0.3s ease;
}

body:not(.dark-mode) .specialties-content {
  color: rgba(51, 51, 51, 0.1);
}

body.dark-mode .specialties-content {
  color: rgba(244, 231, 212, 0.1);
}

.specialties-content.active {
  opacity: 1;
}

body:not(.dark-mode) .specialties-content.active {
  color: #333;
}

body.dark-mode .specialties-content.active {
  color: rgb(244, 231, 212);
}

.specialties-content span {
  display: inline-block;
  margin-right: 2rem;
}

.line-left .specialties-content {
  transform: translateX(100%);
}

.line-right .specialties-content {
  transform: translateX(-100%);
}

@media (max-width: 768px) {
  .specialties-content {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .specialties-content {
    font-size: 2.5rem;
  }
}

.dark-mode .specialties {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

@media (max-width: 1024px) {
  .about-images {
    min-height: 50vh;
  }

  .profile-image {
    width: 350px;
    height: 233px;
  }
}

@media (max-width: 768px) {
  .about-images {
    height: auto;
    flex-direction: column;
    align-items: center;
    margin: 0 0 4rem;
    gap: 2rem;
  }

  .profile-image {
    position: relative;
    width: 100%;
    max-width: 350px;
    transform: none !important;
  }

  .profile-image:hover {
    transform: translateY(-5px) !important;
  }
}

@media (max-width: 768px) {
  .work {
    padding: 50px 0 !important;
  }
  
  .work .container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  
  .video-background {
    margin: 0 20px !important;
    width: calc(100% - 40px) !important;
    position: relative;
  }
  
  .video-background .video-desktop {
    display: none !important;
  }
  .video-background .video-mobile {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 80vh !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

@media (max-width: 768px) {
  /* Header mobile: logo, toggle e hambúrguer em linha única */
  header .navbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  header .navbar .logo,
  header .navbar .form-check,
  header .navbar .navbar-toggler {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
}

/* Remover borda circular em volta do botão hamburger */
.navbar-toggler {
  border: none !important;
  background-color: transparent;
  border-radius: 0 !important;
}
.navbar-toggler:focus {
  outline: none !important;
  box-shadow: none !important;
} 