/* Animations Styling */

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease 0.3s forwards;
}

.fade-in-delay-2 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease 0.6s forwards;
}

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

/* Scroll indicator animation */
.scroll-indicator {
  position: relative;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  margin: 15px auto 0;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #fff;
  margin-left: -3px;
  border-radius: 50%;
  animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

/* Diagonal divider animation */
.diagonal-divider {
  position: relative;
  height: 80px;
  background: linear-gradient(135deg, #fff 0%, #fff 50%, #f9f9f9 50%, #f9f9f9 100%);
  margin-top: -40px;
  z-index: 10;
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}

/* Entrance animations for sections with IntersectionObserver (added via JS) */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered animation for feature cards */
.feature-card {
  opacity: 0;
  transform: translateY(30px);
}

.feature-card:nth-child(1) {
  animation: cardFadeIn 0.8s ease 0.1s forwards;
}

.feature-card:nth-child(2) {
  animation: cardFadeIn 0.8s ease 0.3s forwards;
}

.feature-card:nth-child(3) {
  animation: cardFadeIn 0.8s ease 0.5s forwards;
}

.feature-card:nth-child(4) {
  animation: cardFadeIn 0.8s ease 0.7s forwards;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effects */
.feature-card,
.info-card,
.policy-section {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.info-card:hover,
.policy-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Image zoom effect */
.about-image,
.rooftop-image,
.sustainability-image,
.map-placeholder {
  overflow: hidden;
}

.about-image img,
.rooftop-image img,
.sustainability-image img,
.map-placeholder img {
  transition: transform 0.5s ease;
}

.about-image:hover img,
.rooftop-image:hover img,
.sustainability-image:hover img,
.map-placeholder:hover img {
  transform: scale(1.05);
}

/* Button hover animation */
.cta-button {
  position: relative;
  overflow: hidden;
}

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

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

/* Form animations */
.input-wrapper input,
.input-wrapper textarea,
.input-wrapper label {
  transition: all 0.3s ease;
}

.submit-button {
  position: relative;
  overflow: hidden;
}

.submit-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: 0.5s;
}

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