/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.hero-section {
    /* --- DARK NEUTRAL BACKGROUND --- */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 75%, #16213e 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    
    height: 100vh;
    width: 100%;
    text-align: center;
    
    /* --- CRITICAL FOR THE EFFECT --- */
    position: relative;
    overflow: hidden;
    
    /* Keep the flexbox for centering the *content* */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* --- ANIMATED GRADIENT --- */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- CONTENT STYLING --- */
.content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    animation: titleGlow 3s ease-in-out infinite alternate;
    background: linear-gradient(45deg, #ffffff, #e0e0e0, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGradient 4s ease infinite;
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin: 15px auto 0;
    max-width: 600px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 20px 45px;
    background: linear-gradient(135deg, #4a5568, #2d3748, #1a202c, #2d3748);
    background-size: 300% 300%;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: buttonPulse 2s ease-in-out infinite, fadeInUp 1s ease-out 1s both;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-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: left 0.5s ease;
}

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

.cta-button:hover {
    background-position: 100% 50%;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* --- TEXT ANIMATIONS --- */
@keyframes titleGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes titleGlow {
    from { filter: brightness(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)); }
    to { filter: brightness(1.2) drop-shadow(0 0 30px rgba(255, 255, 255, 0.8)); }
}

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

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* --- MOBILE STYLING --- */
@media (max-width: 600px) {
    .title {
        font-size: 2.8rem;
    }
    .subtitle {
        font-size: 1.1rem;
    }
    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

/*
 * =========================================
 * ENHANCED ANIMATED PARTICLES
 * =========================================
 */

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 0.1s ease-out;
}

.particles li {
    position: absolute;
    list-style: none;
    display: block;
    border-radius: 50%;
    bottom: -150px;
    animation: floatUp 25s infinite linear;
    filter: blur(0.5px);
}

/* --- NEUTRAL PARTICLES --- */
.particles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    animation-duration: 20s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.particles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    animation-duration: 15s;
    animation-delay: 2s;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.particles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    animation-duration: 30s;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.particles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    animation-duration: 18s;
    animation-delay: 5s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.particles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    animation-duration: 16s;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.particles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    animation-duration: 28s;
    animation-delay: 2s;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.particles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    animation-duration: 22s;
    animation-delay: 7s;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.particles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    animation-duration: 15s;
    animation-delay: 4s;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* --- ENHANCED FLOAT ANIMATION --- */
@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-120vh) rotate(360deg) scale(1.5);
        opacity: 0;
    }
}

/* --- ADDITIONAL VISUAL EFFECTS --- */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

/* --- DECORATIVE SHAPES --- */
.decorative-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.2;
    animation: shapeFloat 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    top: 10%;
    left: -150px;
    animation-duration: 25s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    bottom: 10%;
    right: -200px;
    animation-duration: 30s;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 20s;
    animation-delay: 10s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(40px, 10px) scale(1.05);
    }
}

/* --- CLICK RIPPLE EFFECT --- */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: rippleExpand 1s ease-out;
    z-index: 100;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

/* --- ENTRANCE ANIMATION COMPLETION --- */
.content-wrapper.entrance-complete .title {
    animation: titleGradient 4s ease infinite, titleGlow 3s ease-in-out infinite alternate;
}

/* --- ENHANCED MOBILE STYLING --- */
@media (max-width: 768px) {
    .shape {
        filter: blur(30px);
        opacity: 0.15;
    }
    
    .shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-2 {
        width: 250px;
        height: 250px;
    }
    
    .shape-3 {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 600px) {
    .title {
        font-size: 2.8rem;
    }
    .subtitle {
        font-size: 1.1rem;
    }
    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }
}
