/* ==========================================================================
   Looponia - Hero Section
   Main landing section with glassmorphism and animated background
   ========================================================================== */

/* -------------------------------------------------------------------------
   Hero Container
   ------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + var(--space-12)) var(--container-padding) var(--space-16);
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   Animated Background
   ------------------------------------------------------------------------- */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

/* Gradient overlay */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%,
            rgba(99, 102, 241, 0.15) 0%,
            transparent 50%);
}

/* Floating circles */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.hero-circle-1 {
    width: 600px;
    height: 600px;
    background: var(--wellness-lavender);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.hero-circle-2 {
    width: 500px;
    height: 500px;
    background: var(--wellness-serenity);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.hero-circle-3 {
    width: 400px;
    height: 400px;
    background: var(--wellness-mint);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.2;
}

/* Grid pattern overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* -------------------------------------------------------------------------
   Hero Content
   ------------------------------------------------------------------------- */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

/* Logo */
.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.hero-logo img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-glow-lg);
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Title */
.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: var(--font-bold);
    color: var(--splash-purple);
    letter-spacing: var(--tracking-logo);
    line-height: var(--leading-none);
    margin-bottom: var(--space-4);
    text-shadow: 0 0 40px rgba(98, 55, 160, 0.3);
}

/* Subtitle */
.hero-subtitle {
    font-size: var(--text-2xl);
    font-weight: var(--font-light);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

/* Description */
.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: var(--leading-relaxed);
}

/* CTA Buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-10);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    animation: bounce 2s infinite;
}

.hero-scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-full);
    position: relative;
}

.hero-scroll-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: var(--radius-full);
    animation: scroll-dot 2s infinite;
}

/* -------------------------------------------------------------------------
   Hero Glass Card (optional feature highlight)
   ------------------------------------------------------------------------- */
.hero-glass-card {
    position: relative;
    padding: var(--space-8);
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-glass);
    max-width: 500px;
    margin: 0 auto;
}

.hero-glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%);
    pointer-events: none;
}

/* -------------------------------------------------------------------------
   Hero Stats (optional)
   ------------------------------------------------------------------------- */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-6);
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-2xl);
    max-width: fit-content;
    margin: var(--space-8) auto 0;
}

.hero-stat {
    text-align: center;
    padding: 0 var(--space-4);
}

.hero-stat:not(:last-child) {
    border-right: 1px solid var(--border-secondary);
}

.hero-stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

/* -------------------------------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: calc(80px + var(--space-8));
        padding-bottom: var(--space-12);
    }

    .hero-circle-1 {
        width: 300px;
        height: 300px;
    }

    .hero-circle-2 {
        width: 250px;
        height: 250px;
    }

    .hero-logo img {
        width: 80px;
        height: 80px;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }

    .hero-stat:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border-secondary);
        padding-bottom: var(--space-4);
    }

    .hero-scroll {
        display: none;
    }
}

/* -------------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------------- */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(30px, -30px);
    }

    50% {
        transform: translate(-20px, 20px);
    }

    75% {
        transform: translate(20px, 30px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll-dot {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(12px);
    }
}