body {
  box-sizing: border-box;
}

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

:root {
  --primary-red: #e82b38;
  --primary-red-dark: #c41f2b;
  --bg-light: #fafafa;
  --text-dark: #1a1a1a;
}

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

/* Hero Parallax Styles */
.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;
}

/* CTA Parallax Styles */
.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.85) 0%, 
    rgba(232, 43, 56, 0.75) 100%
  );
  z-index: 1;
}

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

.value-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

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

.team-card {
  transition: transform 0.3s ease;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(232, 43, 56, 0.9) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.btn-primary {
  background: white;
  color: var(--primary-red);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

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

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

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

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  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;
}

@media (max-width: 768px) {
  .hero-parallax-section, .cta-parallax-section {
    min-height: 250px;
  }
  
  .hero-parallax-bg, .cta-parallax-bg {
    height: 200%;
    background-attachment: scroll;
    top: 0;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}