/**
 * Hero Section Component CSS
 */

.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="80" r="3" fill="rgba(255,255,255,0.08)"/></svg>');
    animation: float 20s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero .btn {
    margin: 0.5rem;
}

/* Hero Variants */
.hero-small {
    padding: 2rem 0;
    min-height: 300px;
}

.hero-large {
    padding: 6rem 0;
    min-height: 600px;
}

.hero-fullscreen {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero with Background Image */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-bg .hero-content {
    z-index: 2;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Animated Elements */
.hero-animated {
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
        min-height: 350px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Hero Particles Effect */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particle-float 20s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    width: 6px;
    height: 6px;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    width: 8px;
    height: 8px;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 30%;
    width: 4px;
    height: 4px;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 40%;
    width: 10px;
    height: 10px;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    left: 60%;
    width: 5px;
    height: 5px;
    animation-delay: 8s;
}

.particle:nth-child(6) {
    left: 70%;
    width: 7px;
    height: 7px;
    animation-delay: 10s;
}

.particle:nth-child(7) {
    left: 80%;
    width: 9px;
    height: 9px;
    animation-delay: 12s;
}

.particle:nth-child(8) {
    left: 90%;
    width: 3px;
    height: 3px;
    animation-delay: 14s;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}