/* Hero Component Styles */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    position: sticky;
    /* Sticky effect */
    top: 0;
    z-index: 0;
    /* Behind other content */
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-top: 60px;
    /* Offset for fixed header */
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    /* Center vertically in the container */
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 9rem;
    line-height: 1;
    color: #000;
    margin-bottom: 3rem;
    font-weight: normal;
    display: flex;
    flex-direction: column;
    /* Force vertical stacking */
}

.text-mask {
    overflow: hidden;
    display: block;
}

.hero-text-line {
    display: block;
    /* Will be animated by GSAP */
    opacity: 0; /* Hidden initially to prevent FOUC */
    visibility: hidden;
}

.you-text {
    font-weight: 600;
    /* Heavier weight for "You." */
    opacity: 0; /* Hidden initially to prevent FOUC */
    visibility: hidden;
}

.hero-description-container {
    max-width: 600px;
}

/* 5) Use a thinner font weight for the subheader text */
.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-weight: 300;
    /* Thinner weight */
    margin: 0;
    /* Reset margin for clean animation */
    opacity: 0; /* Hidden initially to prevent FOUC */
    visibility: hidden;
}

.hero-description strong {
    color: #444;
    font-weight: 500;
    /* Slightly bolder than the thin text */
}

/* 3) Make the arrow (indicating scroll) longer and thinner */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    /* Using an SVG background or pseudo-element for a custom arrow */
    width: 20px;
    height: 40px;
    /* Reduced length */
}

/* Creating a custom thin arrow using CSS borders */
.scroll-arrow {
    display: block;
    width: 1px;
    /* Very thin shaft */
    height: 70%;
    background-color: #999;
    margin: 0 auto;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 10px solid #999;
    /* Arrowhead */
}

@keyframes bounce {

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

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

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

/* Responsive adjustments for Hero */
@media (max-width: 768px) {
    .hero {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 8rem;
    }
}