
/* ==========================================================================
   BREADCRUMB SECTION - Tech Dithering Style
   ========================================================================== */

.tech-breadcrumb {
    position: relative;
    background: linear-gradient(135deg, #0A2540 0%, #1a3a52 100%);
    padding: 20px 0;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Dithering Background Effect */
.breadcrumb-dither-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/tech-dither-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: contrast(200%) brightness(1.2);
    mix-blend-mode: overlay;
    z-index: 0;
}

/* Overlay for better text readability */
.breadcrumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(10, 37, 64, 0.95) 0%,
        rgba(10, 37, 64, 0.85) 50%,
        rgba(10, 37, 64, 0.95) 100%
    );
    z-index: 1;
}

/* Breadcrumb Wrapper */
.breadcrumb-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Main Breadcrumb List */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

/* Breadcrumb Item */
.breadcrumb-item {
    display: flex;
    align-items: center;
    animation: fadeInSlide 0.5s ease forwards;
    opacity: 0;
}

.breadcrumb-item:nth-child(1) { animation-delay: 0.1s; }
.breadcrumb-item:nth-child(3) { animation-delay: 0.2s; }
.breadcrumb-item:nth-child(5) { animation-delay: 0.3s; }
.breadcrumb-item:nth-child(7) { animation-delay: 0.4s; }

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Breadcrumb Link */
.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.breadcrumb-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.breadcrumb-link:hover::before {
    left: 100%;
}

.breadcrumb-link:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--ai-accent);
    color: var(--ai-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.breadcrumb-link i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.breadcrumb-link:hover i {
    transform: scale(1.2);
}

/* Current Page (Active) */
.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--secondary-color), #ff8533);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 0, 0.6);
    }
}

.breadcrumb-current i {
    font-size: 16px;
}

/* Separator */
.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.breadcrumb-item:nth-child(1) + .breadcrumb-separator { animation-delay: 0.15s; }
.breadcrumb-item:nth-child(3) + .breadcrumb-separator { animation-delay: 0.25s; }
.breadcrumb-item:nth-child(5) + .breadcrumb-separator { animation-delay: 0.35s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Mobile Toggle Button */
.breadcrumb-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--secondary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.breadcrumb-toggle:hover {
    background: #ff8533;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.breadcrumb-toggle i {
    font-size: 18px;
}

/* Mobile Menu */
.breadcrumb-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #0A2540 0%, #1a3a52 100%);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.breadcrumb-mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header span {
    color: white;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.close-menu {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
    color: var(--ai-accent);
}

.mobile-menu-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 10px;
    animation: slideInRight 0.4s ease forwards;
    opacity: 0;
}

.mobile-menu-list li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-list li:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-list li:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-list li:nth-child(4) { animation-delay: 0.25s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu-list a:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--ai-accent);
    color: var(--ai-accent);
    transform: translateX(5px);
}

.mobile-menu-list a i {
    font-size: 20px;
}

.mobile-menu-list .active-link {
    background: linear-gradient(135deg, var(--secondary-color), #ff8533);
    border-color: var(--secondary-color);
    color: white;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large screens and up - Show full breadcrumb */
@media (min-width: 992px) {
    .breadcrumb-toggle {
        display: none;
    }
    
    .breadcrumb {
        display: flex;
    }
}

/* Medium screens - Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .breadcrumb-link .link-text,
    .breadcrumb-current .link-text {
        font-size: 13px;
    }
    
    .breadcrumb-link {
        padding: 6px 12px;
    }
    
    .breadcrumb-wrapper {
        flex-direction: column;
        gap: 15px;
    }
}

/* Small screens - Mobile */
@media (max-width: 767px) {
    .tech-breadcrumb {
        padding: 15px 0;
        min-height: 70px;
    }
    
    .breadcrumb {
        display: none;
    }
    
    .breadcrumb-toggle {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    
    .breadcrumb-wrapper {
        width: 100%;
    }
}

/* ==========================================================================
   BACKDROP FOR MOBILE MENU
   ========================================================================== */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-backdrop.show {
    opacity: 1;
    visibility: visible;
}


/* ==========================================================================
   FIX: BREADCRUMB VISIBILITY (Hidden behind fixed navbar)
   ========================================================================== */
.tech-breadcrumb {
    margin-top: 80px; /* Adjust this value (70px-90px) if your navbar height differs */
}