body {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

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

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

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);
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-red {
  background: linear-gradient(135deg, #e82b38 0%, #c41f2b 100%);
}

.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(232, 43, 56, 0.92) 0%, 
    rgba(196, 31, 43, 0.88) 100%
  );
  z-index: 1;
}

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

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

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

.cta-parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.cta-parallax-bg {
  position: absolute;
  top: -20%;
  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);
}

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

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

.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 43, 56, 0.05), transparent);
  transition: left 0.6s ease;
}

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

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

.gradient-red {
  background: linear-gradient(135deg, #e82b38 0%, #c41f2b 100%);
}

.hover-lift {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

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

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }

.scroll-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.tech-tag {
  transition: all 0.3s ease;
}

.tech-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(232, 43, 56, 0.3);
}

.step-number {
  background: linear-gradient(135deg, #e82b38 0%, #c41f2b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accordion-item {
  transition: all 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 500px;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-icon.active {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
    .hero-parallax-section {
        min-height: 250px;
    }
}