/* ============================================
   Hero Logo Redesign - Cinematic Sequence
   Line -> Text -> Icon -> Tagline
   ============================================ */

.hero-brand {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 1;
}

/* 1. Divider (Line) - First to appear */
.brand-divider {
    width: 2px;
    height: 0px;
    /* Start hidden */
    background: linear-gradient(to bottom,
            rgba(32, 188, 237, 0) 0%,
            rgba(32, 188, 237, 0.5) 50%,
            rgba(32, 188, 237, 0) 100%);
    box-shadow: 0 0 5px rgba(32, 188, 237, 0.3);
    border-radius: 2px;
    opacity: 0;
    /* Sequence: Starts at 0.5s */
    animation: beamExpand 0.8s cubic-bezier(0.1, 0.7, 0.1, 1) 0.5s forwards;
}

/* 2. Text - Slides out from the line */
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    align-items: flex-start;
    /* Ensure left alignment */
    /* Mask for reveal */
}

.brand-name {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #ffffff;
    opacity: 0;
    transform: translateX(-30px);
    /* Start "behind" the line */
    /* Sequence: Starts after line expands (0.5s + 0.5s = ~1.0s) */
    animation: textRevealSlide 0.8s ease-out 1.2s forwards;
}

.brand-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    margin-left: 0;
    /* Removed 0.2em offset */
    opacity: 0;
    transform: translateX(-20px);
    animation: textRevealSlide 0.8s ease-out 1.4s forwards;
}

/* 3. Icon - Rotates and takes place */
.brand-icon-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Sequence: Starts after text (1.8s) */
    animation: iconRotateIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.8s forwards;
    filter: drop-shadow(0 0 0 transparent);
}

.brand-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Subtle float after reveal */
    /* Animation removed as requested */
    /* animation: iconFloat 6s ease-in-out infinite 3.0s; */
}

.brand-icon-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(32, 188, 237, 0.15) 0%, transparent 60%);
    z-index: -1;
    opacity: 0;
    transform: scale(0.5);
    animation: glowIgnite 1.5s ease-out 2.5s forwards, pulse 4s infinite ease-in-out 4.0s;
}


/* 
   ----------------------------------------
   Cinematic Keyframes
   ----------------------------------------
*/

/* Line Expansion */
@keyframes beamExpand {
    0% {
        height: 0px;
        opacity: 0;
    }

    100% {
        height: 90px;
        opacity: 1;
    }
}

/* Text Slide Out (From Left/Line) */
@keyframes textRevealSlide {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

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

/* Icon Rotate & Scale In */
@keyframes iconRotateIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-90deg);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

/* Glow Ignite */
@keyframes glowIgnite {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Persistent Animations */
@keyframes iconFloat {

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

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

@keyframes pulse {

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

    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-brand {
        flex-direction: row;
        /* Keep horizontal */
        gap: 1rem;
        text-align: left;
        justify-content: center;
        /* Center the whole group */
    }

    .brand-divider {
        /* Keep vertical divider, just shorter */
        width: 2px;
        height: 0px;
        background: linear-gradient(to bottom,
                rgba(32, 188, 237, 0) 0%,
                rgba(32, 188, 237, 0.5) 50%,
                rgba(32, 188, 237, 0) 100%);
        animation-name: beamExpandMobile;
        /* Use vertical animation */
    }

    @keyframes beamExpandMobile {
        0% {
            height: 0px;
            opacity: 0;
        }

        100% {
            height: 50px;
            opacity: 1;
        }

        /* Shorter height for mobile */
    }

    .brand-text {
        align-items: flex-start;
        /* Align text left */
    }

    .brand-name {
        font-size: 2rem;
        /* Smaller font */
        transform: translateX(-20px);
        animation-name: textRevealSlide;
        /* Keep side slide */
    }

    .brand-suffix {
        font-size: 0.9rem;
        transform: translateX(-10px);
    }

    .brand-icon-wrapper {
        width: 60px;
        /* Smaller icon */
        height: 60px;
    }
}

/* ============================================
   Static Footer Variant
   ============================================ */

.hero-brand.static-footer {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 0;
    opacity: 1;
    transform: none;
    animation: none;
}

.hero-brand.static-footer .brand-divider {
    display: none;
    /* No divider in footer variant usually, or keep it static? Let's hide it to match the image provided or keep it simple. The user said 'same logo', let's assume just icon + text. But the hero has a divider. Let's keep it but make it static. */
    width: 2px;
    height: 40px;
    /* Fixed height */
    opacity: 1;
    animation: none;
    background: rgba(32, 188, 237, 0.5);
}

.hero-brand.static-footer .brand-text {
    opacity: 1;
    transform: none;
    animation: none;
}

.hero-brand.static-footer .brand-name {
    font-size: 1.4rem;
    /* Reduced from 1.8rem */
    opacity: 1;
    transform: none;
    animation: none;
}

.hero-brand.static-footer .brand-suffix {
    font-size: 0.65rem;
    /* Reduced from 0.8rem */
    opacity: 1;
    transform: none;
    animation: none;
    margin-left: 0;
}

.hero-brand.static-footer .brand-icon-wrapper {
    width: 50px;
    height: 50px;
    opacity: 1;
    transform: none;
    animation: none;
    filter: none;
}

.hero-brand.static-footer .brand-icon-glow {
    display: none;
    /* No glow in footer */
}