body {
  font-family: 'Roboto', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

.hero {
  min-height: 90vh;
  background: linear-gradient(to bottom right, #6fb1fc, #4364f7);
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero h1, .hero p {
  color: white;
}

.viz-placeholder {
  height: 400px;
  background-color: #e9ecef;
  border: 2px dashed #adb5bd;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #6c757d;
  font-style: italic;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
}

footer {
  background: linear-gradient(to right, #6fb1fc, #4364f7);
}

.lightning-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* lets clicks pass through */
  z-index: 0;
}

.hero > *:not(.lightning-container) {
  z-index: 1;
  position: relative;
}

.lightning-bolt {
  position: absolute;
  width: 20px;
  height: 60px;
  background: gold;
  clip-path: polygon(
    40% 0%, 
    60% 0%, 
    50% 40%, 
    70% 40%, 
    30% 100%, 
    40% 60%, 
    20% 60%
  );
  animation: fall 2s linear infinite;
  opacity: 0.9;
  transform: rotate(0deg);
}
.lightning-bolt {
  filter: drop-shadow(0 0 5px yellow) drop-shadow(0 0 10px gold);
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.lightning-bolt {
  animation: fall 2s linear infinite, flicker 0.3s infinite alternate;
}

/* Position each bolt differently */
.lightning-bolt:nth-child(1) { top: -50px; left: 10%; animation-delay: 0s; }
.lightning-bolt:nth-child(2) { top: -50px; left: 20%; animation-delay: 0.4s; }
.lightning-bolt:nth-child(3) { top: -50px; left: 30%; animation-delay: 0.8s; }
.lightning-bolt:nth-child(4) { top: -50px; left: 40%; animation-delay: 1.2s; }
lightning-bolt:nth-child(5) { top: -50px; left: 50%; animation-delay: 1.6s; }
.lightning-bolt:nth-child(6) { top: -50px; left: 60%; animation-delay: 2.0s; }
.lightning-bolt:nth-child(7) { top: -50px; left: 70%; animation-delay: 2.4s; }
.lightning-bolt:nth-child(8) { top: -50px; left: 80%; animation-delay: 2.8s; }
.lightning-bolt:nth-child(9) { top: -50px; left: 90%; animation-delay: 3.2s; }
.lightning-bolt:nth-child(10) { top: -50px; left: 95%; animation-delay: 3.6s; }

/* Animation */
@keyframes fall {
  0% {
    transform: translateY(0) rotate(25deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(100vh) rotate(25deg);
    opacity: 0;
  }
}



.ice-cube {
  background: rgba(173, 216, 230, 0.6); /* Light blue with transparency */
  border: 2px solid rgba(173, 216, 230, 0.8); /* Slightly darker border */
  border-radius: 15px; /* Rounded corners for the "ice cube" effect */
  padding: 20px; /* Space inside the bubble */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  backdrop-filter: blur(10px); /* Frosted glass effect */
  -webkit-backdrop-filter: blur(10px); /* Frosted glass effect for Safari */
  transition: transform 0.3s ease; /* Smooth hover effect */
}

.ice-cube:hover {
  transform: translateY(-5px); /* Slight lift on hover */
}

.card-logo {
  display: block;
  margin: 0 auto 10px; /* Center the logo and add spacing below */
  width: 40px; /* Adjust the size of the logo */
  height: auto; /* Maintain aspect ratio */
}

.tableau-embed {
  margin: 20px 0;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.viz-wrapper {
  max-width: 800px; /* Set the maximum width for the visualizations */
  margin: 0 auto 20px; /* Center the visualizations and add spacing */
}

tableau-viz {
  width: 100%; /* Make the visualization responsive */
  height: 400px; /* Adjust the height as needed */
}

.tableau-wrapper {
  margin-bottom: 30px; /* Add spacing below the Tableau visualization */
  overflow: hidden; /* Prevent overflow issues */
  border-radius: 8px; /* Add rounded corners for a cleaner look */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow for depth */
}

#timeline {
  padding-bottom: 50px; /* Add extra padding to the section */
}

#co2-emissions {
  padding-bottom: 50px; /* Add extra padding to the section */
}