/* Parallax Base Styles */
.parallax {
  transform-style: preserve-3d;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: center;
  will-change: transform;
}

.parallax-bg {
  background: linear-gradient(135deg, #f4efe6 0%, #e8dcc4 50%, #f4efe6 100%);
  transform: translateZ(-2px) scale(3);
}

.parallax-shapes {
  transform: translateZ(-1px) scale(2);
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }
.fade-in-delay-4 { animation-delay: 0.8s; }

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

/* Card Hover Effects */
.benefit-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  will-change: transform;
}

.benefit-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(201, 111, 50, 0.2);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s ease;
}

/* Icon Animations */
.benefit-icon {
  transition: transform 0.3s ease;
  will-change: transform;
}

/* Button Animations */
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 111, 50, 0.3);
}

/* Floating Shapes */
.shape-1 {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 60px;
  height: 60px;
  background: rgba(201, 111, 50, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  position: absolute;
  top: 60%;
  right: 15%;
  width: 40px;
  height: 40px;
  background: rgba(31, 111, 120, 0.1);
  border-radius: 20px;
  animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
  position: absolute;
  bottom: 20%;
  left: 20%;
  width: 80px;
  height: 80px;
  background: rgba(93, 105, 120, 0.1);
  border-radius: 40px;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Performance Optimizations */
.parallax-container {
  will-change: transform;
}

.benefit-card, .cta-button, .benefit-icon {
  will-change: transform;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .fade-in, .benefit-card, .cta-button, .benefit-icon {
    animation: none !important;
    transition: none !important;
  }

  .shape-1, .shape-2, .shape-3 {
    animation: none !important;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .parallax-layer {
    transform: none !important;
  }

  .benefit-card:hover {
    transform: none;
  }

  .shape-1, .shape-2, .shape-3 {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .benefit-card {
    padding: 1.5rem;
  }

  .benefit-card h3 {
    font-size: 1.5rem;
  }
}

/* Large Screen Optimizations */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .benefits-grid {
    gap: 3rem;
  }
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
}

/* Hide sidebar globally if body has no-sidebar */
body.no-sidebar aside {
  display: none !important;
}

/* Mobile Sidebar */
@media (max-width: 1024px) {
  aside {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: min(320px, 90vw);
    height: 100vh;
    border-right: none;
    box-shadow: 8px 0 28px rgba(24, 33, 44, 0.12);
    transition: transform 0.26s ease;
    z-index: 60;
    background: #fff;
  }

  body.sidebar-open aside {
    transform: translateX(0);
    display: block;
    z-index: 100;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 20, 30, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s ease, visibility 0.26s ease;
    z-index: 50;
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  main {
    padding-left: 0 !important;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #dbe4ea;
  border-radius: 10px;
}