/* Enhanced Hero Section with Better Animations */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    max-height: 1000px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #5e35b1 100%);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Parallax Effect */
.hero-image {
    transform: translateZ(0);
    will-change: transform;
}

/* Advanced Animated Background */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%232E7D32;stop-opacity:0.8" /><stop offset="50%" style="stop-color:%23388E3C;stop-opacity:0.6" /><stop offset="100%" style="stop-color:%234CAF50;stop-opacity:0.4" /></linearGradient><radialGradient id="grad2" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23FFD700;stop-opacity:0.6" /><stop offset="100%" style="stop-color:%23FFA000;stop-opacity:0.2" /></radialGradient></defs><rect width="1200" height="800" fill="url(%23grad1)" /><circle cx="200" cy="150" r="80" fill="url(%23grad2)" /><circle cx="800" cy="300" r="120" fill="%23FF9800" opacity="0.3" /><circle cx="1000" cy="600" r="60" fill="%23FF5722" opacity="0.4" /><path d="M0,400 Q300,200 600,400 T1200,400 L1200,800 L0,800 Z" fill="%23795548" opacity="0.5" /></svg>') center/cover no-repeat;
    z-index: 1;
    animation: gentleFloat 20s ease-in-out infinite, colorShift 30s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes gentleFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: translateY(-15px) rotate(1deg) scale(1.02); 
        filter: hue-rotate(5deg);
    }
    50% { 
        transform: translateY(-8px) rotate(-1deg) scale(1.01); 
        filter: hue-rotate(-3deg);
    }
    75% { 
        transform: translateY(-20px) rotate(0.5deg) scale(1.03); 
        filter: hue-rotate(8deg);
    }
}

@keyframes colorShift {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    33% { filter: hue-rotate(30deg) brightness(1.1); }
    66% { filter: hue-rotate(-20deg) brightness(0.9); }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(46, 125, 50, 0.6) 0%,
        rgba(56, 142, 60, 0.4) 30%,
        rgba(76, 175, 80, 0.2) 60%,
        rgba(129, 199, 132, 0.1) 100%
    );
    z-index: 2;
}

/* Floating Elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float1 8s ease-in-out infinite;
    z-index: 2;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: float2 6s ease-in-out infinite reverse;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    opacity: 0.95;
    animation: subtitleFade 1.5s ease-out 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    animation: actionsFade 1.5s ease-out 0.6s both;
}

.hero-actions .btn {
    font-size: 1.25rem;
    padding: 18px 36px;
    border-radius: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.hero-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.hero-actions .btn:hover::before {
    left: 100%;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 50%, #4CAF50 100%);
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(46, 125, 50, 0.6);
}

.hero-actions .btn-link {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    text-decoration: none;
}

.hero-actions .btn-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounceGlow 2s infinite;
    cursor: pointer;
}

.scroll-indicator::before {
    content: '';
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
    display: block;
    margin: 0 auto 15px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.scroll-indicator::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid rgba(255, 255, 255, 0.8);
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Animations */
@keyframes titleGlow {
    0% { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.3); }
    100% { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 255, 255, 0.5); }
}

@keyframes subtitleFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

@keyframes actionsFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceGlow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(120deg); }
    66% { transform: translate(-15px, 15px) rotate(240deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-25px, -30px) rotate(180deg); }
}

/* Particle Effect */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-text {
        padding: 40px 24px;
        margin: 0 16px;
    }
    
    .hero-title {
        font-size: 2.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    
    .hero-actions .btn {
        width: 300px;
        max-width: 100%;
        font-size: 1.125rem;
        padding: 16px 32px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-text {
        padding: 32px 20px;
    }
}

/* High Performance Mode */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-subtitle,
    .hero-actions,
    .scroll-indicator,
    .hero-section::before,
    .hero-section::after,
    .hero-image::before {
        animation: none !important;
    }
    
    .hero-actions .btn {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-image::after {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .hero-title {
        color: white;
        -webkit-text-fill-color: white;
    }
    
    .hero-actions .btn {
        border-width: 3px;
    }
}