/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(to bottom, #8b5cf6, #1a1a1a, #000000);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h2 {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#foto-rosto {
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

#foto-rosto.visible {
  opacity: 1;
  transform: scale(1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #8b5cf6;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 0 80px 0;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: linear-gradient(
    45deg,
    rgba(139, 92, 246, 0.3),
    rgba(236, 72, 153, 0.2)
  );
  background-size: 400% 400%;
  animation: gradientShift 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 0px;
  margin-bottom: 2rem;
  border: 4px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  opacity: 1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.4s both;
  text-align: center;
  color: #ffffff;
}

.hero-video-container {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 2rem auto;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.6s both;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 10;
}

.scroll-indicator i {
  font-size: 1.5rem;
  opacity: 0.7;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about {
  padding: 100px 0;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.8;
}

/* Portfolio Section */
.portfolio {
  padding: 100px 0;
}

.category-section {
  margin-bottom: 80px;
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.category-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.category-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, transparent);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.media-grid-vertical {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Videoclipe section specific layout - side by side items */
#videoclipe .media-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}

#videoclipe .media-item {
  flex: 1;
  max-width: 500px;
}

/* Instagram section specific layout - single centered item */
#instagram .media-grid {
  display: flex;
  justify-content: center;
  max-width: 400px;
  margin: 2rem auto 0;
}

#instagram .media-item {
  width: 100%;
  max-width: 350px;
}

/* Institucional section specific layout - single centered item */
#institucional .media-grid {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 2rem auto 0;
}

#institucional .media-item {
  width: 100%;
  max-width: 500px;
}

/* Gameplay section specific layout - single centered item */
#gameplay .media-grid {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 2rem auto 0;
}

#gameplay .media-item {
  width: 100%;
  max-width: 500px;
}

/* Educacional section specific layout - side by side items */
#educacional .media-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}

#educacional .media-item {
  flex: 1;
  max-width: 500px;
}

/* Color Grading section specific layout */
#color-grading .media-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

#color-grading .media-item {
  width: 100%;
  max-width: 600px;
}

.media-item {
  aspect-ratio: 16/9;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.media-item-vertical {
  aspect-ratio: 9/16;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
}

.media-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.3);
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem;
}

.media-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.media-placeholder p {
  font-size: 1rem;
  opacity: 0.7;
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  text-align: center;
}

.footer-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.whatsapp {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
}

.whatsapp:hover {
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.instagram {
  background: linear-gradient(135deg, #e4405f, #833ab4, #c13584);
  color: white;
}

.instagram:hover {
  box-shadow: 0 10px 30px rgba(228, 64, 95, 0.4);
}

.email {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
}

.email:hover {
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

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

  /* Videoclipe responsive */
  #videoclipe .media-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  #videoclipe .media-item {
    max-width: 100%;
  }

  /* Instagram responsive */
  #instagram .media-grid {
    max-width: 100%;
    padding: 0 1rem;
  }

  #instagram .media-item {
    max-width: 100%;
  }

  /* Institucional responsive */
  #institucional .media-grid {
    max-width: 100%;
    padding: 0 1rem;
  }

  #institucional .media-item {
    max-width: 100%;
  }

  /* Gameplay responsive */
  #gameplay .media-grid {
    max-width: 100%;
    padding: 0 1rem;
  }

  #gameplay .media-item {
    max-width: 100%;
  }

  /* Educacional responsive */
  #educacional .media-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  #educacional .media-item {
    max-width: 100%;
  }

  /* Color Grading responsive */
  #color-grading .media-grid {
    gap: 2rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  #color-grading .media-item {
    max-width: 100%;
  }

  .media-grid-vertical {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .social-buttons {
    flex-direction: column;
    align-items: center;
  }

  .social-btn {
    width: 200px;
    justify-content: center;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .category-line {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
  }

  .container {
    padding: 0 15px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .about,
  .portfolio,
  .footer {
    padding: 60px 0 40px;
  }

  .category-section {
    margin-bottom: 60px;
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Comparison Slider Styles */
.comparison-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.before-image {
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  position: relative;
}

.after-image {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.comparison-slider .before-image,
.comparison-slider .after-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

.after-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 4px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
  z-index: 3;
  cursor: ew-resize;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-handle::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  border: 3px solid white;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-handle:hover::before {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
}

.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #8b5cf6;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.slider-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border: 3px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: white;
  font-weight: bold;
}

.slider-circle::before {
  content: "⟨ ⟩";
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .comparison-slider {
    height: 300px;
  }

  .slider-circle {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .slider-circle::before {
    letter-spacing: 1px;
  }
}

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

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}
