/* Hero Animation Styles */

/* 1. Enhanced Minimalist Background (Particle System) */
.hero {
    position: relative;
    overflow: hidden;
    /* Start full screen */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: min-height 0.1s ease-out, padding 0.1s ease-out;
    background-color: #3b4cca; /* Base blue color */
}

/* Canvas Positioning */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind content */
    pointer-events: none; /* Allow clicks to pass through */
}

/* 2. Text Fade-in & Slide-up Animation */
.hero h2,
.hero p,
.hero-buttons {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero h2 {
    animation-delay: 0.1s;
}

.hero p {
    animation-delay: 0.3s;
}

.hero-buttons {
    animation-delay: 0.5s;
}

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

/* 3. Button Shimmer Effect */
.hero .cta-button {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero .cta-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    10% { left: 100%; }
    100% { left: 100%; }
}
