/* ===================================
   Hero Section Styles
   =================================== */

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

/* Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    width: 100%;
    height: 100%;
    z-index: 0;
    z-index: 0;
    overflow: hidden;
}

#hero-3d-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

#hero-3d-scene::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--hero-overlay-opacity, 0.4));
    /* Dark transparent fill with dynamic opacity */
    pointer-events: none;
    z-index: 1;
    /* Above canvas, below content */
}

.hero-grid {
    display: none;
}

.hero-bg::after {
    display: none;
}

/* Floating Objects */
.hero-floating-objects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(65, 209, 236, 0.5));
}

.floating-icon:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    top: 60%;
    left: 8%;
    animation-delay: 2s;
}

.floating-icon:nth-child(4) {
    top: 70%;
    right: 10%;
    animation-delay: 0.5s;
}

.floating-icon:nth-child(5) {
    top: 40%;
    left: 5%;
    animation-delay: 1.5s;
}

.floating-icon:nth-child(6) {
    top: 80%;
    left: 20%;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

.hero-title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
    text-shadow: 4px 4px 0px rgba(65, 209, 236, 0.2);
}

.hero-title .highlight {
    display: inline-block;
    font-size: 1.1em;
    background: linear-gradient(90deg, #41D1EC, #F949EF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: gradient-shift 8s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-text {
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
        /* Reduce max size */
    }

    .hero-content {
        max-width: 80%;
        /* Constrain width to avoid edge-to-edge text */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        /* Use small viewport height for mobile browsers */
        padding-top: 70px;
        /* Account for smaller mobile header */
        padding-bottom: var(--space-2xl);
    }

    .hero-content {
        padding: 0 var(--space-sm);
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.15;
        margin-bottom: var(--space-lg);
    }

    .hero-title .desktop-br {
        display: none;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        /* ~16.5px - increased from 0.9rem */
        margin-bottom: var(--space-xl);
    }

    .section-label {
        font-size: 0.5rem;
        /* ~7.5px */
        letter-spacing: 0.1em;
        padding: var(--space-xs) var(--space-md);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: var(--space-md);
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        padding: var(--space-md) var(--space-lg);
    }

    .floating-icon {
        font-size: 1.5rem;
        opacity: 0.4;
    }

    .hero-scroll-indicator {
        bottom: var(--space-lg);
    }

    .scroll-line {
        height: 30px;
    }

    /* Increase overlay on mobile for text readability */
    #hero-3d-scene::after {
        background: rgba(0, 0, 0, 0.6);
    }
}