/* =========================
   HERO SECTION (TOP)
   ========================= */
.hero--top {
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    text-align: center;
    padding: 2rem;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-dark);
    display: block;
}

.hero__tagline {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
    display: block;
}

/* =========================
   TYPEWRITER ANIMATION
   ========================= */
.typewriter {
    display: block;
    position: relative;
    overflow: hidden;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: 0;
    animation: blink 1s infinite;
    opacity: 1;
}

.typewriter.completed::after {
    animation: none;
    opacity: 0;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero__title.animate,
.hero__tagline.animate {
    opacity: 1;
}

/* =========================
   HERO SLIDER STYLES
   ========================= */
.hero--image-slider {
    position: relative;
    height: calc(100vh - var(--navbar-height) - 5rem);
    overflow: hidden;
    transition: opacity 0.3s ease-out;
}

.hero--image-slider picture,
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    margin: 0;
}

.hero--image-slider picture.active,
.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero--image-slider picture img,
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--color-bg);
}

/* =========================
   HERO REMOVAL STYLES
   ========================= */
.hero-removed .navbar {
    position: sticky;
    top: 0;
}

.hero-removed {
    scroll-behavior: smooth;
}

/* Smooth transitions for hero elements */
.hero--top {
    transition: opacity 0.3s ease-out;
}

.hero-removed .hero--top {
    opacity: 0;
}

.hero--top.is-hidden {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: all 280ms ease;
}
