/*
 * Intelligen — Scroll Reveal Animations
 * assets/css/animations.css
 */

/* Will-reveal state */
.ig-will-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Revealed state (added by JS IntersectionObserver) */
.ig-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky header scrolled state */
.ig-header--scrolled {
    background: rgba(6, 7, 10, 0.97) !important;
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.4);
}

/* Mobile nav open state */
@media (max-width: 768px) {
    .ig-nav__menu--open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(6, 7, 10, 0.97);
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 999;
    }
    .ig-nav__menu--open li a {
        font-size: 1.5rem !important;
    }
    .ig-nav__toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1000;
        padding: 8px;
    }
    .ig-nav__toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--ig-white);
        transition: transform 0.3s, opacity 0.3s;
    }
    .ig-nav__toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .ig-nav__toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    .ig-nav__toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}
@media (min-width: 769px) {
    .ig-nav__toggle { display: none; }
}
