/* Custom Hero Background Pattern */
.hero-pattern {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 25%, #dc2626 50%, #b91c1c 75%, #991b1b 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

.hero-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    background-size: 200px 200px, 300px 300px, 400px 400px;
    animation: patternFloat 20s ease-in-out infinite;
}

/* Enhanced hero section styling */
.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

/* Responsive text sizing */
@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1.125rem;
        line-height: 1.6;
    }
}

@media (min-width: 769px) {
    .hero-section h1 {
        font-size: 3.5rem;
        line-height: 1.1;
    }
    
    .hero-section p {
        font-size: 1.25rem;
        line-height: 1.7;
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes patternFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Text shadow untuk memastikan keterbacaan */
.hero-text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: textGlow 3s ease-in-out infinite alternate;
}

.hero-text-shadow-sm {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: textFade 4s ease-in-out infinite;
}

/* Button animations */
.hero-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-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;
}

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

@keyframes textGlow {
    0% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); }
    100% { text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.3), 2px 2px 4px rgba(0, 0, 0, 0.7); }
}

@keyframes textFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* Scroll indicator animation */
@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-indicator {
    animation: scrollBounce 2s infinite;
}

/* Enhanced button styling */
.hero-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.hero-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;
}

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

/* Content fade in animation */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

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