/* ================================================================
   PUBLIC HEADER - TOP BAR
   Customer-facing header with partner badge and user actions
   ================================================================ */

/* Header Container */
.public-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    font-family: 'Poppins', 'Open Sans', sans-serif;
}

/* ================================================================
   TOP BAR - Thin informative strip
   ================================================================ */
.public-topbar {
    background: var(--main-dark-blue);
    color: #ffffff;
    font-size: 0.60rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay for depth */
.public-topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(0, 201, 80, 0.05) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(0, 201, 80, 0.05) 100%);
    pointer-events: none;
}

.topbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    position: relative;
    z-index: 1;
}

/* Left Side - Partner Badge */
.topbar-left {
    display: flex;
    align-items: center;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 7px;
    background: rgba(0, 201, 80, 0.1);
    border: 1px solid rgba(0, 201, 80, 0.25);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.partner-badge:hover {
    background: rgba(0, 201, 80, 0.15);
    border-color: rgba(0, 201, 80, 0.4);
    transform: translateY(-1px);
}

.partner-badge i {
    color: var(--main-green);
    font-size: 0.9rem;
    filter: drop-shadow(0 0 4px rgba(0, 201, 80, 0.4));
}

.partner-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    letter-spacing: 0.2px;
    font-size: 0.60rem;
}

.partner-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* Right Side - Actions */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.60rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.topbar-link i {
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.topbar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Location icon - green like shield */
.locations-link i {
    color: var(--main-green);
}

.topbar-link:hover i {
    color: var(--main-green);
    transform: scale(1.1);
}

/* Profile Link Special Styling */
.profile-link {
    background: rgba(0, 201, 80, 0.08);
    border: 1px solid rgba(0, 201, 80, 0.2);
    padding: 5px 8px;
}

.profile-link:hover {
    background: rgba(0, 201, 80, 0.15);
    border-color: rgba(0, 201, 80, 0.4);
}

.profile-link i {
    color: var(--main-green);
    font-size: 1.05rem;
}

/* Divider between links */
.topbar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

/* ================================================================
   BREATHING ANIMATION - Shrinking & Expanding
   ================================================================ */

/* Primary breathing animation (shield icon) */
@keyframes breathe {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 4px rgba(0, 201, 80, 0.4));
    }
    50% { 
        transform: scale(1.18); 
        filter: drop-shadow(0 0 8px rgba(0, 201, 80, 0.7));
    }
}

/* Alternate breathing (location icon - offset timing) */
@keyframes breatheAlt {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.15); 
    }
}

.icon-breathe {
    animation: breathe 2.5s ease-in-out infinite;
    transform-origin: center;
}

.icon-breathe-alt {
    animation: breatheAlt 2.5s ease-in-out infinite;
    animation-delay: 1.25s;
    transform-origin: center;
}

/* Pause animation on hover for better UX */
.partner-badge:hover .icon-breathe,
.locations-link:hover .icon-breathe-alt {
    animation-play-state: paused;
}

/* ================================================================
   MAIN BAR - Placeholder for next phase
   ================================================================ */
.public-mainbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(2, 6, 24, 0.04);
    transition: all 0.3s ease;
}

.public-mainbar.is-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(2, 6, 24, 0.1);
    border-bottom-color: transparent;
}

.mainbar-wrapper {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.35rem 0;
}

/* Navigation in main bar */
.mainbar-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}


.mainbar-placeholder {
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
    font-style: italic;
    background: repeating-linear-gradient(
        45deg,
        #fafafa,
        #fafafa 10px,
        #f5f5f5 10px,
        #f5f5f5 20px
    );
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
}

/* ================================================================
   LOADING STATE (for profile click)
   ================================================================ */
.profile-link.loading {
    pointer-events: none;
    opacity: 0.7;
}

.profile-link.loading i {
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}






/* ================================================================
   MAIN BAR - Logo + Contact Us
   ================================================================ */
.public-mainbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(2, 6, 24, 0.04);
}

.mainbar-wrapper {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.mainbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 8px 12px 8px 8px;
    border-radius: 12px;
}

.mainbar-logo:hover {
    background: rgba(0, 201, 80, 0.05);
    transform: translateX(2px);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--main-dark-blue), #0a2540);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-green);
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(2, 6, 24, 0.15);
    transition: all 0.3s ease;
}

.mainbar-logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 201, 80, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    align-items: flex-start;
}

.logo-tagline {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
    align-self: flex-end;
    text-align: right;
}

.logo-name {
    letter-spacing: -0.02em;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--main-dark-blue);
    letter-spacing: -0.5px;
    line-height: 1;
}

/* Make the "T" in Traxxis stand out beautifully */
.logo-name::first-letter {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--main-green);
    letter-spacing: -0.03em;
    display: inline-block;
    margin-right: -1px;
    text-shadow: 0 2px 4px rgba(0, 201, 80, 0.2);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.mainbar-logo:hover .logo-name::first-letter {
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 4px 8px rgba(0, 201, 80, 0.35);
}


.logo-tagline {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.5px;
    
    margin-top: 2px;
}

/* Main Bar Actions */
/* Main Bar Actions */
.mainbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1.25rem;
    flex-shrink: 0;
}

/* Contact Us Button */
.btn-contact-us {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: var(--main-red);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(224, 25, 30, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-contact-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-contact-us:hover::before {
    left: 100%;
}

.btn-contact-us:hover {
    background: #c01519;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 25, 30, 0.4);
    color: #ffffff;
}

.btn-contact-us:active {
    transform: translateY(0);
}

.btn-contact-us i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-contact-us:hover i {
    transform: rotate(-10deg) scale(1.1);
}

/* Responsive - Main Bar */
@media (max-width: 767.98px) {
    .mainbar-wrapper {
        min-height: 65px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .logo-name {
        font-size: 1.25rem;
    }
    
    .logo-tagline {
        font-size: 0.65rem;
    }
    
    .btn-contact-us {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .btn-contact-us span {
        display: none;
    }
    
    .btn-contact-us {
        padding: 8px 12px;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        justify-content: center;
    }
    
    .btn-contact-us i {
        font-size: 1rem;
    }
    
    .logo-tagline {
        display: none;
    }
}









/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

/* Tablet */
/* Tablet */
@media (max-width: 991.98px) {
    .public-topbar {
        font-size: 0.68rem;
    }
    
    .partner-text {
        font-size: 0.68rem;
    }
    
    .topbar-link span {
        display: none;
    }
    
    .topbar-link {
        padding: 5px 7px;
    }
    
    .topbar-link i {
        font-size: 1rem;
    }
    
    .topbar-wrapper {
        min-height: 34px;
    }
}

/* Mobile */
/* Mobile */
@media (max-width: 575.98px) {
    .public-topbar {
        font-size: 0.65rem;
    }
    
    .topbar-wrapper {
        min-height: 32px;
    }
    
    .partner-badge {
        padding: 2px 7px 2px 5px;
        gap: 4px;
    }
    
    .partner-badge i {
        font-size: 0.85rem;
    }
    
    .partner-text {
        font-size: 0.68rem;
    }
    
    /* Hide "DU Telecom" strong text on very small screens */
    .partner-text strong {
        display: none;
    }
    
    .partner-text::after {
        content: 'DU — Since 2013';
        color: #ffffff;
        font-weight: 600;
    }
    
    .topbar-right {
        gap: 0.3rem;
    }
    
    .topbar-divider {
        display: none;
    }
    
    .profile-link {
        padding: 4px 6px;
    }
    
    .profile-link i {
        font-size: 0.95rem;
    }
}

/* ================================================================
   PAGE LOAD ANIMATION
   ================================================================ */
.public-header {
    animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}






