body {
  box-sizing: border-box;
}

* {
  font-family: 'Ubuntu', sans-serif;
}

:root {
  --primary-red: #e82b38;
  --primary-red-dark: #c41f2b;
  --primary-red-light: #ff4655;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(232, 43, 56, 0.15);
}

.portfolio-item {
  transition: transform 0.3s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-red-light) 0%, var(--primary-red) 100%);
  transition: left 0.3s ease;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.pulse-dot {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

nav {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  transition: box-shadow 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-card {
  background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-slider-container {
  position: relative;
}

.about-slide {
  display: none;
  animation: slideIn 0.5s ease-in-out;
}

.about-slide.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slider-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  transform: scale(1.2);
}

.slider-dot.active {
  width: 2rem;
  border-radius: 9999px;
}

/* Parallax Background Styles for Hero */
.video-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.parallax-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: url('../img/background/main-hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
  transform: translateY(0);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 245, 246, 0.88) 40%,
      rgba(232, 43, 56, 0.15) 100%);
  z-index: 1;
}

.video-content {
  position: relative;
  z-index: 2;
}

/* Parallax Background Styles for Contact */
.contact-parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.contact-parallax-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: url('../img/background/detail-cta.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
  transform: translateY(0);
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.85) 0%, 
    rgba(232, 43, 56, 0.75) 100%
  );
  z-index: 1;
}

.contact-content {
  position: relative;
  z-index: 2;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .video-hero {
    min-height: 500px;
  }

  .parallax-background {
    height: 200%;
    background-attachment: scroll;
  }

  .video-overlay {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 245, 246, 0.92) 100%);
  }

  .contact-parallax-section {
    min-height: 400px;
  }

  .contact-parallax-bg {
    height: 200%;
    background-attachment: scroll;
    top: 0;
  }
}

.portfolio-image {
    height: 100%;
}
}