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

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #ffffff;
  background-color: #121212;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: 2px;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.9rem;
}

.primary-btn {
  background-color: #d4af37; /* Gold color */
  color: #000000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
  background-color: #e5c158;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.secondary-btn {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #d4af37;
}

.secondary-btn:hover {
  background-color: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

/* Sections Common Styles */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.underline {
  display: block;
  width: 80px;
  height: 4px;
  background: #d4af37;
  margin: 15px auto;
  border-radius: 2px;
}

/* Great Vibes Font */
.great-vibes-regular {
  font-family: "Great Vibes", cursive, "Times New Roman", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 5rem;
  color: #d4af37; /* Gold color */
  margin: 0;
  line-height: 1;
}

/* Hero Section with Parallax Video */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  background-color: var(--color-background);
  object-fit: cover;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  color: var(--color-white);
  padding: var(--space-lg);
  animation: fadeIn 1s ease-in-out;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pre-title {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
}

.brand-name {
  margin-bottom: var(--space-sm);
  line-height: 1.1;
  display: flex;
  justify-content: center;
  align-items: baseline;
  width: 100%;
  text-align: center;
}

/* Enhanced Don styling for the main hero section */
.brand-name .don-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5.5rem;
  letter-spacing: 2px;
  color: #ffffff;
  margin-right: -8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  display: inline-block;
  transform: scaleY(1.05);
  position: relative;
}

/* Add a subtle line effect under the Don text */
.brand-name .don-text::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  transform: scaleX(0.8);
  transform-origin: center;
  opacity: 0.7;
}

.brand-name span:last-child {
  font-family: "Great Vibes", cursive, "Times New Roman", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 6rem;
  color: var(--color-primary);
}

.tagline {
  font-size: 1rem;
  letter-spacing: 5px;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  width: 100%;
  text-align: center;
}

.hero-description {
  margin-bottom: var(--space-lg);
  font-size: 1.2rem;
  width: 100%;
  text-align: center;
  max-width: 100%;
  padding: 0 20px;
}

/* CTA Section - Enhance Don text in paragraph */
.cta-content p .don-text {
  font-size: 1.4rem;
  vertical-align: middle;
  margin-right: -3px;
  letter-spacing: 1px;
}

.typing-effect {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--color-primary);
  animation: typing 3.5s steps(40) 1s 1 normal both,
             blink 1s steps(1) infinite;
  margin: 0 auto;
  max-width: 100%;
  width: fit-content;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

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

.scroll-indicator a {
  color: var(--color-white);
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity var(--transition-normal);
}

.scroll-indicator a:hover {
  opacity: 1;
}

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

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

/* About Section */
.about-section {
  background-color: var(--color-secondary);
  padding: var(--space-xl) 0;
}

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

.underline {
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--color-primary);
  margin: var(--space-md) auto 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image {
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

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

.about-text h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  font-size: 2rem;
}

.feature-list {
  margin: var(--space-lg) 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.feature-list i {
  color: var(--color-primary);
  margin-right: var(--space-md);
  font-size: 1.2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  transition: all var(--transition-normal);
}

.text-link i {
  transition: transform var(--transition-normal);
}

.text-link:hover i {
  transform: translateX(5px);
}

/* Services Section */
.services-section {
  background-color: var(--color-background);
  padding: var(--space-xl) 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.service-card {
  background-color: var(--color-secondary);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background-color: var(--color-primary);
  transition: height var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 2rem;
  color: var(--color-primary);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: rotateY(180deg);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.service-card p {
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.services-cta {
  text-align: center;
}

/* Gallery Section */
.gallery-section {
  background-color: var(--color-secondary);
  padding: var(--space-xl) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 300px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-info {
  text-align: center;
  padding: var(--space-md);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.gallery-info h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-background);
  padding: var(--space-xl) 0;
}

.testimonials-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slider {
  display: flex;
  overflow: hidden;
}

.testimonial-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  transform: translateX(50px);
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-content {
  background-color: var(--color-secondary);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
  margin: 0 var(--space-md);
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-icon {
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.2);
  margin-bottom: var(--space-md);
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.client-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.client-info h4 {
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.stars {
  color: var(--color-primary);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.testimonial-controls button {
  background: var(--color-secondary);
  border: none;
  color: var(--color-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-controls button:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: var(--space-xl) 0;
  background-image: url('../../../static/images/cadeiras.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .brand-name .don-text {
    font-size: 4.5rem;
  }
  
  .brand-name span:last-child {
    font-size: 5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 768px) {
  .brand-name .don-text {
    font-size: 3.5rem;
  }
  
  .brand-name span:last-child {
    font-size: 4rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .typing-effect {
    white-space: normal;
    width: 100%;
    max-width: 100%;
    text-align: center;
    border-right: none;
    animation: fadeIn 2s ease-in-out 1s both;
  }
}

@media screen and (max-width: 576px) {
  .brand-name .don-text {
    font-size: 2.8rem;
  }
  
  .brand-name span:last-child {
    font-size: 3.2rem;
  }
  
  .brand-name .don-text::after {
    bottom: 5px;
    height: 2px;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .typing-effect {
    white-space: normal;
    width: 100%;
    max-width: 100%;
    text-align: center;
    border-right: none;
    animation: fadeIn 2s ease-in-out 1s both;
    padding: 0 10px;
  }
}

/* Fix for Safari */
@supports (-webkit-appearance:none) {
  .video-container {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
  }
  
  #bg-video {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
  }
}