/* ========================================
   HERO COMPONENT STYLES
   ======================================== */

.hero {
    background: linear-gradient(135deg, rgba(160, 174, 192, 0.05), rgba(74, 85, 104, 0.05));
    padding: var(--spacing-4xl) var(--spacing-lg);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* ========================================
   PARALLAX BACKGROUND
   ======================================== */

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Fixed parallax background that covers the entire page */
.parallax-bg--fixed {
    position: fixed;
    top: 0;
    left: -25vw;
    width: 150vw;
    height: 100vh;
    pointer-events: none;
    overflow: visible;
    z-index: -1;
}

/* Stars */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                0 0 20px rgba(255, 255, 255, 0.4),
                0 0 30px rgba(255, 255, 255, 0.2);
}

.star--sm {
    width: 3px;
    height: 3px;
    opacity: 0.6;
}

.star--md {
    width: 5px;
    height: 5px;
    opacity: 0.8;
}

.star--lg {
    width: 7px;
    height: 7px;
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.9),
                0 0 30px rgba(255, 255, 255, 0.5),
                0 0 45px rgba(255, 255, 255, 0.3);
}

/* Twinkling animation */
@keyframes twinkle {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4); }
    50% { opacity: 1; box-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.6); }
}

@keyframes twinkle-slow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

.star--sm { animation: twinkle 3s ease-in-out infinite; }
.star--md { animation: twinkle-slow 4s ease-in-out infinite 0.5s; }
.star--lg { animation: twinkle 5s ease-in-out infinite 1s; }

/* Randomize twinkle timing */
.star:nth-child(2) { animation-delay: 0.3s; }
.star:nth-child(3) { animation-delay: 1.2s; }
.star:nth-child(4) { animation-delay: 0.8s; }
.star:nth-child(5) { animation-delay: 2s; }
.star:nth-child(6) { animation-delay: 0.5s; }
.star:nth-child(7) { animation-delay: 1.5s; }
.star:nth-child(8) { animation-delay: 2.3s; }
.star:nth-child(9) { animation-delay: 0.7s; }
.star:nth-child(10) { animation-delay: 1.8s; }
.star:nth-child(11) { animation-delay: 2.5s; }
.star:nth-child(12) { animation-delay: 0.4s; }
.star:nth-child(13) { animation-delay: 1.1s; }
.star:nth-child(14) { animation-delay: 2.8s; }
.star:nth-child(15) { animation-delay: 0.9s; }
.star:nth-child(16) { animation-delay: 1.6s; }
.star:nth-child(17) { animation-delay: 2.1s; }
.star:nth-child(18) { animation-delay: 0.6s; }
.star:nth-child(19) { animation-delay: 1.3s; }
.star:nth-child(20) { animation-delay: 2.4s; }
.star:nth-child(21) { animation-delay: 1.9s; }

/* Constellation lines */
.constellation-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.15s ease-out;
}

.constellation-lines line {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
    stroke-linecap: round;
}

/* Line drawing animation - continuous loop */
@keyframes draw-line {
    0% { stroke-dashoffset: 1000; opacity: 0; }
    10% { opacity: 0.6; }
    40% { stroke-dashoffset: 0; opacity: 0.4; }
    60% { stroke-dashoffset: 0; opacity: 0.4; }
    90% { opacity: 0; }
    100% { stroke-dashoffset: 1000; opacity: 0; }
}

.constellation-lines line {
    stroke-dasharray: 1000;
    animation: draw-line 8s ease-in-out infinite;
}

.constellation-lines line:nth-child(1) { animation-delay: 0.2s; }
.constellation-lines line:nth-child(2) { animation-delay: 0.4s; }
.constellation-lines line:nth-child(3) { animation-delay: 0.6s; }
.constellation-lines line:nth-child(4) { animation-delay: 0.8s; }
.constellation-lines line:nth-child(5) { animation-delay: 1s; }
.constellation-lines line:nth-child(6) { animation-delay: 1.2s; }
.constellation-lines line:nth-child(7) { animation-delay: 1.4s; }
.constellation-lines line:nth-child(8) { animation-delay: 1.6s; }
.constellation-lines line:nth-child(9) { animation-delay: 1.8s; }
.constellation-lines line:nth-child(10) { animation-delay: 2s; }
.constellation-lines line:nth-child(11) { animation-delay: 2.2s; }
.constellation-lines line:nth-child(12) { animation-delay: 2.4s; }
.constellation-lines line:nth-child(13) { animation-delay: 2.6s; }

/* ========================================
   HERO CONTENT
   ======================================== */

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero__content {
    z-index: 1;
}

.hero__title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm) 0;
    background: linear-gradient(180deg, var(--color-primary-light), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow: visible;
}

.hero__subtitle {
    font-size: var(--font-size-2xl);
    color: var(--color-primary-light);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-semibold);
}

.hero__description {
    font-size: var(--font-size-lg);
    color: var(--color-gray);
    margin-bottom: var(--spacing-2xl);
    max-width: 500px;
}

.hero__cta {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
}

.hero__img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-3xl) var(--spacing-lg);
        min-height: auto;
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
    }
}