/* Fixed Hero and Particles CSS */
body, html {
  margin: 0;
  width: 100%;
  height: 100%;
}

#hero {
  height: 100vh;
  width: 100%;
  background: blue;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* Important: makes it a positioning context */
}

#particles {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  width: 100%;
  height: 100%;
  position: relative; /* Changed from inheriting height */
}

#particles h1 {
  --fontSize: 2rem;
  width: auto;
  height: calc(2 * var(--lineHeight));
  line-height: var(--lineHeight);
  margin: calc(50vh - var(--lineHeight)) auto 0;
  font-size: var(--fontSize);
  text-transform: uppercase;
}

#particles a {
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
  color: #fff;
}

#particles canvas {
  display: block;
  position: absolute;
  z-index: 25;
  top: 0;
  opacity: 0.55;
  pointer-events: none;
  touch-action: pan-y;
}

#hero video {
  height: 100vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 5;
  object-fit: cover;
  pointer-events: none;
}

#hero .w3-top {
  z-index: 35;
}

#hero .w3-bar {
  z-index: 30;
}

#hero .w3-bar-item {
  z-index: 30;
}

/* Download Container - Fixed positioning */
.download-container {
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: absolute; 
  z-index: 30;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} 

.download-container h1 {
  color: #2d3748;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.download-container .subtitle {
  color: #718096;
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.buttons-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 30px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  color: white;
}

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

.download-btn:hover::before {
  left: 100%;
}

.pdf-btn {
  background: linear-gradient(135deg, #FF4B2B 0%, #FF416C 100%);
  box-shadow: 0 0 10px rgba(255, 75, 43, 0.4), 0 4px 15px rgba(255, 75, 43, 0.4);
  color: #fff;
  transition: all 0.3s ease;
}

.pdf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.pdf-btn:active {
  transform: translateY(0);
}

.word-btn {
  background: linear-gradient(135deg, #0072ff 0%, #0047ab 100%);
  box-shadow: 0 0 10px rgba(0, 114, 255, 0.4), 0 4px 15px rgba(0, 114, 255, 0.4);
  color: #fff;
  transition: all 0.3s ease;
}

.word-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 114, 255, 0.6);
}

.word-btn:active {
  transform: translateY(0);
}

.icon {
  width: 55px;
  height: 55px;
  margin-left: 30px;
}

.divider {
  display: flex;
  align-items: center;
  margin: 30px 0 20px;
  color: #0a0f14;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.divider::before {
  margin-right: 16px;
}

.divider::after {
  margin-left: 16px;
}

.note {
  margin-top: 30px;
  color: #25436b;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .download-container {
    padding: 40px 30px;
    width: 85%;
  }

  .download-container h1 {
    font-size: 1.75rem;
  }

  .download-btn {
    font-size: 1rem;
    padding: 16px 24px;
  }
}