html {
    scroll-behavior: smooth;
}
  
body {
    font-family: 'Inter', sans-serif;
    padding-top: 4.5rem;
    background-color: #f0fdf4;
}
  
h1, h2 {
    font-family: 'Poppins', sans-serif;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    z-index: 200;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transform: translateZ(0);
}

section, footer {
    position: relative;
    z-index: 1;
}

.hero {
    background-color: transparent !important;
}

.hero-content h1, 
.hero-content p, 
.hero-section > *:not(button):not(a) {
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    padding: 3.5rem;
    border-radius: 3rem;
    max-width: 90%;
    margin: 0 auto;
    border: none;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.98) 10%,
        rgba(255, 255, 255, 0.95) 20%,
        rgba(255, 255, 255, 0.85) 40%,
        rgba(255, 255, 255, 0.4) 65%,
        rgba(255, 255, 255, 0.05) 85%,
        rgba(255, 255, 255, 0) 95%
    );
    -webkit-mask-image: radial-gradient(
        ellipse at center, 
        black 0%, 
        black 75%, 
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse at center, 
        black 0%, 
        black 75%, 
        transparent 100%
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: none;
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #ffffff 0%, #f0fdf4 70%);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    z-index: 0;
    pointer-events: auto !important;
    -webkit-backface-visibility: hidden;
    perspective: 1000;
    -webkit-perspective: 1000;
    -webkit-transform: translate3d(0,0,0);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

section:not(form, button, a, input, textarea, select, .interactive, .g-recaptcha) {
    pointer-events: none;
}

section button,
section a,
section input,
section textarea,
section select,
section .interactive {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

#success-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    background: #4BB543;
    color: white;
    padding: 20px 30px; 
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1100; 
    font-size: 18px;
    font-weight: bold;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9); /* Center the element and scale */
    max-width: 80%; /* Prevent it from being too wide on small screens */
    text-align: center;
}

/* Show the popup with animation */
#success-popup.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* Keep centered when scaling up */
}

/* Optional: Add a longer duration for the popup to stay visible */
#success-popup.stay-longer {
    animation: fadeOut 5s ease forwards; /* Stays visible for 5 seconds */
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .hero-content-wrapper {
        max-width: 95%;
        padding: 2rem 1.5rem;
        background: radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.98) 15%,
            rgba(255, 255, 255, 0.95) 30%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.45) 70%,
            rgba(255, 255, 255, 0) 100%
        );
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        box-shadow: none;
    }

    header {
        position: fixed !important;
        top: 0 !important;
    }
  
    body {
        padding-top: 4rem;
    }
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000; 
  display: none; 
}