/* Hero Section */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-xl);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    max-width: 1000px;
    animation: fadeInBlur 1s ease 0.5s both;
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-lg);
    color: var(--color-accent-cyan);
    text-shadow:
        0 0 10px var(--glow-cyan),
        0 0 20px var(--glow-cyan),
        0 0 30px rgba(0, 245, 255, 0.2),
        0 0 40px rgba(0, 245, 255, 0.1);
    line-height: var(--line-height-tight);
    animation: titleGlow 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: var(--line-height-normal);
}

/* Rotating Text Effect */
.rotating-text {
    display: inline-block;
    perspective: 300px;
}

.rotating-word {
    display: none;
    color: var(--color-accent-cyan);
    font-weight: var(--font-weight-semibold);
}

.rotating-word.active {
    display: inline-block;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Flip animation keyframes */
@keyframes flipOut {
    0% {
        opacity: 1;
        transform: rotateX(0deg);
    }
    100% {
        opacity: 0;
        transform: rotateX(-90deg);
    }
}

@keyframes flipIn {
    0% {
        opacity: 0;
        transform: rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: rotateX(0deg);
    }
}

.rotating-word.flip-out {
    animation: flipOut 0.3s ease-in forwards;
}

.rotating-word.flip-in {
    animation: flipIn 0.3s ease-out forwards;
}

/* CTA Button Group */
.cta-group {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Button Base */
.cta-button {
    position: relative;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    animation: scaleInBounce 0.8s ease 0.8s both;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Primary CTA Button */
.cta-primary {
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-purple));
    color: var(--color-text-primary);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px var(--glow-cyan);
    animation: scaleInBounce 0.8s ease 0.8s both, ctaPulse 3s ease-in-out 2s infinite;
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.cta-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 30px var(--glow-cyan-strong),
        0 0 50px var(--glow-cyan);
}

.cta-primary:hover::before {
    opacity: 1;
}

.cta-primary:active {
    transform: scale(1.02) translateY(0);
}

/* Secondary CTA Button */
.cta-secondary {
    background: transparent;
    color: var(--color-accent-cyan);
    border: 2px solid var(--color-accent-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
    animation-delay: 1s;
}

.cta-secondary:hover {
    background: rgba(0, 245, 255, 0.1);
    transform: scale(1.05) translateY(-2px);
    box-shadow:
        0 0 20px var(--glow-cyan),
        inset 0 0 20px rgba(0, 245, 255, 0.1);
}

.cta-secondary:active {
    transform: scale(1.02) translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-base);
    font-size: var(--font-size-3xl);
    color: var(--color-accent-cyan);
    animation: float 3s ease-in-out infinite;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

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

/* Responsive Hero */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-xl);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: var(--space-2xl) var(--space-lg);
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-xl);
    }

    .cta-button {
        font-size: var(--font-size-base);
        padding: var(--space-sm) var(--space-xl);
    }

    .scroll-indicator {
        bottom: var(--space-lg);
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .rotating-text {
        display: block;
        margin-top: var(--space-xs);
    }
}
