/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: linear-gradient(135deg, #0f2847 0%, #1a4373 25%, #2a5a99 50%, #4A90E2 100%);
    overflow: hidden;
}

/* Enhanced Animated Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Animated Gradient Overlay */
.hero-bg-elements::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.3) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.hero-bg-elements::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(74, 144, 226, 0.15) 0%, transparent 50%);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Floating Shapes - More Dynamic */
.floating-shape {
    position: absolute;
    opacity: 0.15;
    filter: blur(2px);
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(74, 144, 226, 0.3));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float1 20s infinite ease-in-out;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.3);
}

.shape-2 {
    top: 50%;
    right: 10%;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(46, 92, 138, 0.3));
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: float2 25s infinite ease-in-out;
    box-shadow: 0 8px 32px rgba(46, 92, 138, 0.3);
}

.shape-3 {
    bottom: 15%;
    left: 15%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(74, 144, 226, 0.25));
    border-radius: 50%;
    animation: float3 18s infinite ease-in-out;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.4);
}

/* Additional Decorative Elements */
.hero-bg-elements .shape-1::before,
.hero-bg-elements .shape-2::before,
.hero-bg-elements .shape-3::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, 30px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) rotate(270deg) scale(1.05);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-40px, 30px) rotate(120deg) scale(1.15);
    }
    66% {
        transform: translate(30px, -40px) rotate(240deg) scale(0.85);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, -30px) scale(1.2);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* Grid Pattern Overlay */
.hero-bg-elements .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* Particles Effect */
.hero-bg-elements .particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particles 15s infinite linear;
}

.particle:nth-child(4) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 25%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    width: 6px;
    height: 6px;
    top: 40%;
    left: 60%;
    animation-delay: 3s;
    animation-duration: 25s;
}

.particle:nth-child(6) {
    width: 3px;
    height: 3px;
    top: 70%;
    left: 40%;
    animation-delay: 6s;
    animation-duration: 18s;
}

.particle:nth-child(7) {
    width: 5px;
    height: 5px;
    top: 30%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.particle:nth-child(8) {
    width: 4px;
    height: 4px;
    top: 80%;
    left: 70%;
    animation-delay: 5s;
    animation-duration: 19s;
}

@keyframes particles {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Hero Content */
.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: scroll 2s infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 0;
        top: 8px;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    #hero {
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-left: 0;
    }

    .hero-buttons .btn-outline {
        margin-left: 0;
    }

    .shape-1,
    .shape-2,
    .shape-3 {
        opacity: 0.08;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .scroll-indicator {
        bottom: 20px;
    }
}