/* ========================================
   Modern Breadcrumb with Clip Path
   ======================================== */

.modern-breadcrumb {
    position: relative;
    min-height: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 80px 0 60px;
    width: 100%;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .modern-breadcrumb {
        min-height: 350px;
        height: 350px;
        background-size: cover;
        background-position: center center;
    }
}

/* Desktop - Proper height */
@media (min-width: 992px) {
    .modern-breadcrumb {
        min-height: 520px;
        height: 520px;
        padding: 120px 0 100px;
        background-size: cover;
        background-position: center center;
    }
}

/* Animated Overlay with Gradient - Lighter for 90% image visibility */
.breadcrumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(0, 86, 179, 0.2) 100%);
    z-index: 1;
}

/* Decorative Animated Shapes */
.breadcrumb-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(0, -60px) rotate(180deg);
    }
    75% {
        transform: translate(-30px, -30px) rotate(270deg);
    }
}

/* Content Box */
.breadcrumb-content-box {
    position: relative;
    z-index: 3;
    text-align: center;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge */
.breadcrumb-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease forwards 0.2s;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Title */
.breadcrumb-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.7), 0 4px 8px rgba(0, 0, 0, 0.5);
    animation: slideInDown 0.8s ease forwards 0.4s;
    opacity: 0;
}

/* Responsive breadcrumb title */
@media (max-width: 576px) {
    .breadcrumb-title {
        font-size: 28px;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .breadcrumb-title {
        font-size: 36px;
        text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9), 0 0 22px rgba(0, 0, 0, 0.7);
    }
}

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

/* Breadcrumb Navigation */
.breadcrumb-nav {
    animation: fadeIn 0.8s ease forwards 0.6s;
    opacity: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.breadcrumb-link i {
    font-size: 14px;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.breadcrumb-item.active span {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
}

/* Bottom Wave Clip Path */
.breadcrumb-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    z-index: 3;
    clip-path: polygon(
        0 50%,
        10% 40%,
        20% 50%,
        30% 40%,
        40% 50%,
        50% 40%,
        60% 50%,
        70% 40%,
        80% 50%,
        90% 40%,
        100% 50%,
        100% 100%,
        0 100%
    );
}

/* Alternative Wave Styles */
.breadcrumb-wave.wave-style-2 {
    clip-path: ellipse(150% 100% at 50% 100%);
}

.breadcrumb-wave.wave-style-3 {
    clip-path: polygon(
        0 30%,
        5% 40%,
        10% 30%,
        15% 40%,
        20% 30%,
        25% 40%,
        30% 30%,
        35% 40%,
        40% 30%,
        45% 40%,
        50% 30%,
        55% 40%,
        60% 30%,
        65% 40%,
        70% 30%,
        75% 40%,
        80% 30%,
        85% 40%,
        90% 30%,
        95% 40%,
        100% 30%,
        100% 100%,
        0 100%
    );
}

/* Responsive Design */
@media (max-width: 1200px) {
    .breadcrumb-title {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .modern-breadcrumb {
        min-height: 300px;
        padding: 80px 0 60px;
    }

    .breadcrumb-title {
        font-size: 36px;
    }

    .shape-1 {
        width: 200px;
        height: 200px;
    }

    .shape-2 {
        width: 150px;
        height: 150px;
    }

    .shape-3 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .modern-breadcrumb {
        min-height: 320px;
        padding: 80px 20px 60px;
        display: flex;
        align-items: center;
    }

    .breadcrumb-content-box {
        width: 100%;
        padding: 0 15px;
    }

    .breadcrumb-title {
        font-size: 32px;
        margin-bottom: 25px;
        line-height: 1.3;
        word-wrap: break-word;
        max-width: 100%;
    }

    .breadcrumb-badge {
        font-size: 12px;
        padding: 8px 18px;
        margin-bottom: 15px;
    }

    .breadcrumb-link,
    .breadcrumb-item.active span {
        padding: 10px 18px;
        font-size: 14px;
    }

    .breadcrumb-wave {
        height: 60px;
    }

    /* Ensure text is always visible */
    .breadcrumb-overlay {
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.92) 0%, rgba(0, 86, 179, 0.95) 100%);
    }
}

@media (max-width: 576px) {
    .modern-breadcrumb {
        min-height: 300px;
        padding: 70px 15px 50px;
    }

    .breadcrumb-title {
        font-size: 26px;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .breadcrumb-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .breadcrumb-list {
        gap: 8px;
        flex-wrap: wrap;
    }

    .breadcrumb-link,
    .breadcrumb-item.active span {
        padding: 8px 14px;
        font-size: 13px;
    }

    .breadcrumb-separator {
        font-size: 10px;
    }

    .breadcrumb-wave {
        height: 50px;
    }
}

/* Hover Effects for Interactive Elements */
.breadcrumb-link {
    position: relative;
    overflow: hidden;
}

.breadcrumb-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.breadcrumb-link:hover::before {
    width: 300px;
    height: 300px;
}

/* Accessibility */
.breadcrumb-link:focus,
.breadcrumb-item.active span:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .breadcrumb-shapes,
    .breadcrumb-wave {
        display: none;
    }

    .breadcrumb-overlay {
        background: #007bff;
    }
}
