/* Hero Section */
.hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #e0e7ff;
    padding: 5rem 2rem;
    text-align: center;
    margin: 4rem 2rem 50rem;
    border-radius: 20px;
    position: relative;
    animation: fadeIn 3s ease forwards;
}

.hero::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00d4ff, #00ff88, #8000ff);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.hero-badge {
    position: absolute;
    top: 20px;
    left: -30px;
    background: linear-gradient(45deg, rgb(18,97,128), #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    color: white;
    padding: 8px 16px;
    transform: rotate(-45deg);
    z-index: 10;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: gradientShift 6s ease infinite;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #00d4ff, #00ff88, #8000ff, rgb(18,97,128));
    background-size: 400% 400%;
    border-radius: 7px;
    z-index: -1;
    opacity: 0;
    animation: electricalCircuit 6s ease-in-out infinite;
}

/* EKG pulse animation for hero title text shadows */
@keyframes ekgPulse {
    0% { text-shadow: -60px 0 8px rgba(78, 205, 196, 0.3); }
    10% { text-shadow: -48px 0 12px rgba(78, 205, 196, 0.5); }
    20% { text-shadow: -36px 0 16px rgba(78, 205, 196, 0.7); }
    30% { text-shadow: -24px 0 20px rgba(78, 205, 196, 0.9); }
    40% { text-shadow: -12px 0 24px rgba(69, 183, 209, 1); }
    50% { text-shadow: 0 0 28px rgba(69, 183, 209, 1); }
    60% { text-shadow: 12px 0 24px rgba(150, 206, 180, 0.9); }
    70% { text-shadow: 24px 0 20px rgba(150, 206, 180, 0.7); }
    80% { text-shadow: 36px 0 16px rgba(150, 206, 180, 0.5); }
    90% { text-shadow: 48px 0 12px rgba(150, 206, 180, 0.3); }
    100% { text-shadow: 60px 0 8px rgba(78, 205, 196, 0.3); }
}

.hero-badge:hover {
    transform: rotate(-45deg) scale(1.05);
}

.hero-badge a,
.hero-badge button {
    color: inherit;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
}

.hero-badge a:hover,
.hero-badge button:hover {
    outline:none;
}

.hero-content {
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    font-family: Fraunces, 'Fraunces Fallback', 'Rock Salt', 'Rock Salt Fallback', serif;
    animation: ekgPulse 3s ease-in-out infinite;
}

.hero-title span:first-child,
.hero-title span:last-child {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9em;
    line-height: 1;
    animation: ekgPulse 3s ease-in-out infinite;
}

.hero-title span:last-child {
    margin-left: 0.25rem;
}

.hero-subtitle .formula {
    font-size: 1.5em;
    animation: fadeIn 2s ease forwards;
}

.cursor {
    animation: blink 1s infinite;
    color: #cbd5e1;
}

/* Responsive styles */
@media (max-width: 320px) {
    .hero {
        padding: 3rem 1rem;
        margin: 2rem 1rem 50rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .hero-title {
        margin-bottom: 0;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 0;
        max-width: 32rem;
        margin-left: auto;
        margin-right: auto;
        color: #cbd5e1;
        orphans: 2;
        widows: 2;
        min-height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: none;
        backdrop-filter: none;
    }

    .hero-content button {
        margin-top: 0;
    }
}