/* ==========================================================================
   MODERN RESPONSIVE HEADER & ANIMATIONS (IPA CONVEX)
   ========================================================================== */

:root {
    --hdr-navy-dark: #03072b;
    --hdr-navy-primary: #06105a;
    --hdr-navy-light: #0d1e78;
    --hdr-gold-bright: #ffb800;
    --hdr-gold-hover: #ffa000;
    --hdr-gold-light: #ffe885;
    --hdr-white: #ffffff;
    --hdr-transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --hdr-transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --hdr-shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.08);
    --hdr-shadow-lg: 0 14px 40px rgba(3, 7, 43, 0.35);
    --hdr-shadow-gold: 0 8px 25px rgba(255, 184, 0, 0.5);
}

/* Base Wrapper */
.ipa-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: var(--hdr-transition-smooth);
}

/* Body Padding Offset */
body {
    padding-top: 130px !important;
}
@media (max-width: 991px) {
    body {
        padding-top: 110px !important;
    }
}

/* Top White Header Bar */
.ipa-top-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 0;
    transition: var(--hdr-transition-smooth);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ipa-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Styling & Hover Animation */
.ipa-logo-link {
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    transition: transform var(--hdr-transition-fast);
}

.ipa-logo-link:hover {
    transform: scale(1.02);
}

.ipa-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: filter var(--hdr-transition-fast), transform var(--hdr-transition-fast);
}

/* Top Action Buttons (Desktop) */
.ipa-action-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Modern Pill Button Base */
.ipa-btn-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #FFB800 0%, #FFA000 100%);
    border: 2px solid #FFCA28;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: transform var(--hdr-transition-fast), box-shadow var(--hdr-transition-fast), border-color var(--hdr-transition-fast);
    box-shadow: 0 4px 16px rgba(255, 160, 0, 0.38);
}

/* Shimmer Sweep Animation on Non-Hover (Idle State) */
.ipa-btn-pill::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: ipa-shimmer 3.2s infinite ease-in-out;
    z-index: 2;
}

@keyframes ipa-shimmer {
    0% {
        left: -75%;
    }
    35%, 100% {
        left: 125%;
    }
}

/* Idle Pulse Animation for "REGISTER NOW" */
.ipa-btn-pulse {
    animation: ipa-idle-pulse 2.4s infinite ease-in-out;
}

@keyframes ipa-idle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(255, 160, 0, 0.38);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 8px 22px rgba(255, 184, 0, 0.6);
    }
}

/* Hover Animation on Action Buttons */
.ipa-btn-pill:hover {
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: var(--hdr-shadow-gold) !important;
    border-color: #ffffff;
    color: #ffffff !important;
}

.ipa-btn-pill:active {
    transform: translateY(-1px) scale(0.99) !important;
}

/* Secondary Action Button (JOIN AS EXHIBITOR) */
.ipa-btn-secondary {
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    border: 2px solid #FFD54F;
    box-shadow: 0 4px 16px rgba(255, 143, 0, 0.38);
}


/* ==========================================================================
   BOTTOM NAVIGATION BAR (DARK NAVY - CENTERED)
   ========================================================================== */
.ipa-main-nav {
    background: linear-gradient(180deg, #06105a 0%, #03072b 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    position: relative;
}

.ipa-nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center; /* CENTERED NAV BAR */
}

/* Nav List - CENTERED */
.ipa-nav-list {
    display: flex;
    align-items: center;
    justify-content: center; /* CENTERED MENU ITEMS */
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Home Icon Link */
.ipa-home-item {
    position: relative;
    margin-right: 14px;
}

.ipa-home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #ffffff !important;
    font-size: 1.15rem;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--hdr-transition-fast);
    position: relative;
    overflow: hidden;
}

.ipa-home-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0.8;
    transition: var(--hdr-transition-fast);
}

.ipa-home-link:hover::before {
    background: var(--hdr-gold-bright);
    opacity: 1;
}

.ipa-home-link i {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color var(--hdr-transition-fast);
}

.ipa-home-link:hover i {
    transform: scale(1.25) rotate(-8deg);
    color: #06105a !important;
}

/* Main Nav Menu Items */
.ipa-nav-item {
    position: relative;
}

.ipa-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: color var(--hdr-transition-fast), transform var(--hdr-transition-fast);
    position: relative;
}

/* Animated Sliding Underline on Hover */
.ipa-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #FFB800, #FFE885);
    border-radius: 4px;
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 10px rgba(255, 184, 0, 0.85);
}

.ipa-nav-item:hover > .ipa-nav-link::after,
.ipa-nav-item.active > .ipa-nav-link::after {
    width: 80%;
}

.ipa-nav-item:hover > .ipa-nav-link {
    color: var(--hdr-gold-light) !important;
    transform: translateY(-2px);
}

/* Chevron Dropdown Arrow Animation */
.ipa-caret {
    font-size: 0.72rem;
    transition: transform 0.35s ease;
    opacity: 0.8;
}

.ipa-nav-item:hover > .ipa-nav-link .ipa-caret {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--hdr-gold-bright);
}

/* Dropdown Menu (Glassmorphic Card) */
.ipa-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 240px;
    background: rgba(6, 16, 90, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 10px 0;
    margin-top: 0;
    list-style: none;
    box-shadow: var(--hdr-shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 12px) scale(0.96);
    transform-origin: top center;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    z-index: 100;
}

.ipa-nav-item:hover > .ipa-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

/* Dropdown Menu Items */
.ipa-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    color: #e2e8f0 !important;
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s ease;
    position: relative;
}

.ipa-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 0%;
    background: var(--hdr-gold-bright);
    border-radius: 0 4px 4px 0;
    transform: translateY(-50%);
    transition: height 0.25s ease;
}

.ipa-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--hdr-gold-light) !important;
    padding-left: 28px;
}

.ipa-dropdown-item:hover::before {
    height: 70%;
}


/* ==========================================================================
   SCROLLED STATE (STICKY ANIMATION)
   ========================================================================== */
.ipa-header-wrapper.scrolled .ipa-top-bar {
    padding: 6px 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.ipa-header-wrapper.scrolled .ipa-logo-img {
    height: 45px;
}

.ipa-header-wrapper.scrolled .ipa-btn-pill {
    padding: 8px 20px;
    font-size: 0.82rem;
}


/* ==========================================================================
   MOBILE ELEMENTS (CRITICAL: HIDDEN BY DEFAULT ON DESKTOP)
   ========================================================================== */
.ipa-mobile-drawer,
.ipa-mobile-overlay,
.ipa-mobile-banner,
.ipa-hamburger {
    display: none !important;
}

/* Media Queries for Mobile/Tablet Breakpoint (<= 991px) */
@media (max-width: 991px) {
    .ipa-hamburger {
        display: block !important;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        outline: none;
        z-index: 10001;
    }

    .ipa-mobile-banner {
        display: block !important;
        background: #03072b;
        color: #ffffff;
        text-align: center;
        padding: 8px 15px;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ipa-main-nav {
        display: none !important;
    }

    .ipa-action-buttons {
        display: none !important;
    }

    .ipa-top-container {
        padding: 6px 15px;
    }

    .ipa-logo-img {
        height: 44px;
    }

    /* Mobile Hamburger Icon Lines */
    .ipa-hamburger-box {
        width: 28px;
        height: 20px;
        position: relative;
        display: inline-block;
    }

    .ipa-hamburger-inner,
    .ipa-hamburger-inner::before,
    .ipa-hamburger-inner::after {
        width: 28px;
        height: 3px;
        background-color: #06105a;
        border-radius: 4px;
        position: absolute;
        transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
    }

    .ipa-hamburger-inner {
        top: 50%;
        transform: translateY(-50%);
    }

    .ipa-hamburger-inner::before {
        content: '';
        top: -8px;
    }

    .ipa-hamburger-inner::after {
        content: '';
        bottom: -8px;
    }

    .ipa-hamburger.is-active .ipa-hamburger-inner {
        transform: rotate(45deg);
        background-color: #06105a;
    }

    .ipa-hamburger.is-active .ipa-hamburger-inner::before {
        top: 0;
        opacity: 0;
    }

    .ipa-hamburger.is-active .ipa-hamburger-inner::after {
        bottom: 0;
        transform: rotate(-90deg);
        background-color: #06105a;
    }

    /* Mobile Offcanvas Drawer */
    .ipa-mobile-drawer {
        display: block !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: linear-gradient(180deg, #06105a 0%, #03072b 100%);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.45);
        z-index: 10000;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 80px 20px 30px 20px;
    }

    .ipa-mobile-drawer.is-open {
        right: 0;
    }

    /* Mobile Backdrop Overlay */
    .ipa-mobile-overlay {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .ipa-mobile-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .ipa-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 25px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .ipa-mobile-actions .ipa-btn-pill {
        width: 100%;
        text-align: center;
    }

    .ipa-mobile-nav {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .ipa-mobile-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .ipa-mobile-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 10px;
        color: #ffffff;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        text-decoration: none;
    }

    .ipa-mobile-link:hover,
    .ipa-mobile-link.active {
        color: var(--hdr-gold-bright);
    }

    .ipa-mobile-subnav {
        display: none;
        list-style: none;
        padding: 0 0 10px 15px;
        margin: 0;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
    }

    .ipa-mobile-sublink {
        display: block;
        padding: 10px;
        color: #cbd5e1;
        font-size: 0.88rem;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .ipa-mobile-sublink:hover {
        color: var(--hdr-gold-light);
    }
}
