.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background: var(--bg-primary);
}

.hero-large {
    min-height: 95vh;
}

.hero-medium {
    min-height: 70vh;
}

.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(102, 126, 234, 0.8) 0%, 
        rgba(118, 75, 162, 0.9) 30%,
        rgba(240, 147, 251, 0.7) 60%,
        rgba(16, 185, 129, 0.8) 100%);
    z-index: 0;
    opacity: 1;
    transition: opacity 2s ease-in-out;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.8) 0%, 
        rgba(240, 147, 251, 0.9) 30%,
        rgba(118, 75, 162, 0.7) 60%,
        rgba(102, 126, 234, 0.8) 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    animation: gradientShift 8s ease-in-out infinite;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 2px, transparent 3px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.12) 1.5px, transparent 2.5px);
    background-size: 150px 150px, 80px 80px, 120px 120px;
    animation: patternFloat 25s linear infinite;
}

@keyframes patternFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(120deg); }
    66% { transform: translate(-20px, 30px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.hero-glow {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.15), 
        rgba(102, 126, 234, 0.1) 40%, 
        transparent 70%);
    animation: glowPulse 6s ease-in-out infinite alternate;
}

/* Add floating geometric shapes */
.hero-background::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 15%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(240, 147, 251, 0.2));
    border-radius: 50%;
    animation: float1 8s ease-in-out infinite;
}

.hero-background::before {
    content: '';
    position: absolute;
    bottom: 25%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 30%;
    animation: float2 10s ease-in-out infinite reverse;
}

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

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

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes glowPulse {
    0% { 
        opacity: 0.6; 
        transform: scale(1) rotate(0deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1.1) rotate(5deg); 
    }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { 
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
    }
    100% { 
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

.hero:not(.hero-gradient) .hero-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    animation: slideInUp 1s ease-out 0.6s both;
}

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

.hero:not(.hero-gradient) .hero-subtitle,
.hero:not(.hero-gradient) .hero-description {
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 0.9s both;
}

/* Hero-specific button styling for better contrast */
.hero-gradient .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.hero-gradient .btn-secondary::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 ease;
}

.hero-gradient .btn-secondary:hover::before {
    left: 100%;
}

.hero-gradient .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.3);
}

.hero-gradient .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    position: relative;
    overflow: hidden;
}

.hero-gradient .btn-primary::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.5s ease;
}

.hero-gradient .btn-primary:hover::before {
    left: 100%;
}

.hero-gradient .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    position: relative;
    overflow: hidden;
}

.cta-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.hero-cta:hover .cta-arrow {
    transform: translateX(4px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.hero:not(.hero-gradient) .scroll-dot {
    background: var(--primary-color);
}

.scroll-line {
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
}

.hero:not(.hero-gradient) .scroll-line {
    background: var(--text-light);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-large {
        min-height: 85vh;
    }

    .hero-medium {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-content {
        padding: 1rem;
    }
}