/* Enhanced Hero Sections */
/* Note: Homepage content sections styled in home-sections.css */

/* Base Hero Container - Enhanced Contrast */
.hero-enhanced {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 50%, #7c4ae0 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 80px;
    margin-top: 0;
    margin-bottom: 0;
}

/* Improved contrast overlay for better text readability */
.hero-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Animated Background Elements */
.hero-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

/* Removed - consolidated into first ::after declaration above */

/* Floating Orbs */
.hero-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent);
    filter: blur(40px);
    opacity: 0.4;
}

.hero-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: float-orb 15s ease-in-out infinite;
}

.hero-orb:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation: float-orb 20s ease-in-out infinite reverse;
}

.hero-orb:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
    animation: float-orb 25s ease-in-out infinite;
}

/* Star Pattern Overlay */
.hero-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.3;
    animation: twinkle 5s ease-in-out infinite;
}

/* Content Container */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animated Icon */
.hero-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float-icon 3s ease-in-out infinite;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

/* Enhanced Title */
.hero-title {
    font-size: 3.5rem;
    font-family: 'Cormorant Garamond', serif;
    color: white;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    animation: fade-in-up 0.8s ease-out;
}

/* Subtitle with Better Typography */
.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fade-in-up 0.8s ease-out 0.2s both;
}

/* Call-to-Action Buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-in-up 0.8s ease-out 0.4s both;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--cosmic-violet);
    border: 2px solid transparent;
}

.hero-btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Feature Pills */
.hero-features {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fade-in-up 0.8s ease-out 0.6s both;
}

.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.hero-feature i {
    color: rgba(255, 255, 255, 0.8);
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hero-scroll:hover {
    opacity: 1;
}

/* Variations for Different Pages */
.hero-enhanced.hero-calculator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8b5cf6 100%);
}

.hero-enhanced.hero-horoscope {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
}

.hero-enhanced.hero-compatibility {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a855f7 100%);
}

.hero-enhanced.hero-knowledge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
}

.hero-enhanced.hero-special {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

/* Geometric Pattern Overlay */
.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.05;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(255, 255, 255, 0.1) 35px,
        rgba(255, 255, 255, 0.1) 70px
    );
}

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

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, -30px);
    }
    50% {
        transform: translate(-30px, 40px);
    }
    75% {
        transform: translate(40px, 20px);
    }
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-enhanced {
        min-height: 350px;
        padding: 3rem 0;
    }

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

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

    .hero-icon {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .hero-enhanced {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

[data-theme="dark"] .hero-enhanced.hero-calculator {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

[data-theme="dark"] .hero-enhanced.hero-horoscope {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 50%, #7c3aed 100%);
}

[data-theme="dark"] .hero-enhanced.hero-compatibility {
    background: linear-gradient(135deg, #581c87 0%, #6b21a8 50%, #7c3aed 100%);
}

[data-theme="dark"] .hero-enhanced.hero-knowledge {
    background: linear-gradient(135deg, #3730a3 0%, #4c1d95 50%, #5b21b6 100%);
}

[data-theme="dark"] .hero-enhanced.hero-special {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
}

[data-theme="dark"] .hero-enhanced::before {
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 168, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
}

[data-theme="dark"] .hero-btn-primary {
    background: var(--cosmic-violet);
    color: white;
}

[data-theme="dark"] .hero-btn-primary:hover {
    background: var(--stellar-magenta);
}

/* Parallax Effect (optional with JS) */
.hero-enhanced[data-parallax="true"] {
    transform: translateY(0);
    transition: transform 0.5s ease-out;
}

/* Gradient Text Effect */
.hero-gradient-text {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}