/* Hero Section Component Styles */

/* Animation Definitions */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtle-glow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(34, 197, 94, 0.4), 0 0 20px rgba(34, 197, 94, 0.15);
        transform: scale(1.02);
    }
}

@keyframes fade-in-up-rotate {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

@keyframes particle-drift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    33% {
        transform: translateX(5px) translateY(-3px);
    }
    66% {
        transform: translateX(-3px) translateY(2px);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

.animate-card-enter {
    animation: fade-in-up-rotate 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-text {
    animation: subtle-glow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    will-change: transform;
}

/* Typography System */
.fluid-text-hero {
    font-size: clamp(1.875rem, 3.5vw + 0.75rem, 4.5rem);
    line-height: 1.1;
}

.fluid-text-subtitle {
    font-size: clamp(1.125rem, 1.8vw + 0.4rem, 1.875rem);
}

/* Layout Helpers */
.uniform-grid {
    grid-auto-rows: minmax(200px, auto);
}

/* Hero Section Layout */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.hero-content-container {
    position: relative;
    z-index: 20;
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem 5rem;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Proper Overlay System */
.hero-overlay {
    position: absolute;
    inset: 15rem 25% 15rem;
    background: linear-gradient(to bottom, rgba(120, 113, 108, 0.08), rgba(120, 113, 108, 0.12), rgba(120, 113, 108, 0.08));
    border-radius: 1rem;
    backdrop-filter: blur(2px);
}

@media (min-width: 640px) {
    .hero-content-container {
        padding: 4rem 1.5rem 5rem;
    }
    
    .hero-overlay {
        inset: 14rem 28% 14rem;
        border-radius: 1.5rem;
    }
}

@media (min-width: 768px) {
    .hero-overlay {
        inset: 13rem 30% 13rem;
    }
}

@media (min-width: 1024px) {
    .hero-content-container {
        padding: 5rem 2rem;
    }
    
    .hero-overlay {
        inset: 12rem 32% 12rem;
        border-radius: 2rem;
    }
}

@media (min-width: 1280px) {
    .hero-overlay {
        inset: 11rem 35% 11rem;
    }
}

/* Content Area */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Rotating Name Container */
.rotating-name-container {
    display: inline-block;
    position: relative;
    overflow: visible;
    min-width: 8ch;
    height: 1em;
    vertical-align: bottom;
}

.rotating-name {
    position: absolute;
    left: 0;
    bottom: 0;
    transition: all 0.5s;
    background: linear-gradient(to right, #16a34a, #15803d);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 800;
    white-space: nowrap;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}