/* AEM Labs Limited - Builder's Lab CSS */
/* ==================================== */

.builder-lab {
    padding: 30px 0;
    width: 100%;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
}

.builder-lab .container {
    width: 85%;
    background: linear-gradient(180deg, rgb(0, 0, 0) 0%, var(--accent-color) 100%);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 35vh;
    transition: max-width 0.4s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 0 60px;
}

.builder-lab .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
}

.builder-lab .container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top center,
            rgba(120, 0, 0, 0.2) 0%,
            rgba(80, 0, 0, 0.2) 20%,
            rgba(50, 0, 0, 0.3) 40%,
            rgba(30, 0, 0, 0.4) 60%,
            rgba(20, 0, 0, 0.5) 80%,
            rgba(10, 0, 0, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.builder-lab .content-block {
    position: relative;
    padding: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 5;
    color: white;
    text-align: left;
}

.builder-lab .content-block:first-child {
    width: 45%;
}

.builder-lab .content-block:last-child {
    width: 40%;
    height: 300px;
}

.builder-lab .content-block h1 {
    font-size: 36px;
    line-height: 1.1;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 24px;
    font-weight: 700;
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}

.builder-lab .content-block p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.builder-lab .content-block .buttons {
    display: flex;
    gap: 12px;
}

.builder-lab .buttons a {
    background: white;
    color: var(--accent-color);
    padding: 10px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.4);
    text-align: center;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.builder-lab .buttons a:hover {
    transform: translateY(-2px);
}

/* Hero Slideshow */
.builder-lab .slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

.builder-lab .slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.builder-lab .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    overflow: hidden;
    border-radius: 12px;
}

.builder-lab .slide.active {
    opacity: 1;
    z-index: 2;
}

.builder-lab .slide-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
}

.builder-lab .slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.75);
    padding: 0 6%;
    z-index: 1;
    border-radius: 12px;
}

.builder-lab .slide:nth-child(2) .slide-content {
    background: rgba(0, 0, 0, 0.25);
}

.builder-lab .slide-text {
    max-width: 600px;
    color: #fff;
    z-index: 3;
}

.builder-lab .slide-text h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    display: flex;
}

.builder-lab .slide-text h2 span {
    font-size: 14px;
}

.builder-lab .slide-text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
    text-shadow: 0 0 14px rgba(0, 0, 0, 1);
    width: 80%;
}

.builder-lab .slide-text a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    color: #222;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.builder-lab .slide-text a:hover {
    transform: translateY(-2px);
}

.builder-lab .slideshow-navigation {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.builder-lab .nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.builder-lab .nav-btn:hover {
    opacity: 1;
}

.builder-lab .slideshow-dots {
    display: flex;
    gap: 8px;
}

.builder-lab .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.builder-lab .dot.active {
    background: white;
    transform: scale(1.2);
}

.builder-lab .slide .floating-element.coordinates,
.builder-lab .slide .floating-badge.mission-status {
    position: absolute;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 100;
}

.builder-lab .slide .floating-element.coordinates {
    top: 16px;
    left: 16px;
    background: linear-gradient(270deg, #6907c5, #a71c1c);
}

.builder-lab .slide .floating-badge.mission-status {
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #fff;
}

@media (max-width: 1440px) {
    .builder-lab .container {
        width: 95%;
        min-height: 40vh;
    }

    .builder-lab .content-block h1 {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .builder-lab .content-block p {
        font-size: 13px;
        width: 90%;
    }

    .builder-lab .primary-btn, .builder-lab .secondary-btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 14px;
    }

    .builder-lab .content-block:last-child {
        width: 48%;
        height: 250px;
    }
}

@media (max-width: 992px) {
    .builder-lab .container {
        padding: 20px;
        gap: 12px;
        min-height: 25vh;
        width: 100%;
        border-radius: 0;
    }

    .builder-lab .content-block h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .builder-lab .content-block p {
        font-size: 12px;
        width: 90%;
    }

    .builder-lab .content-block:last-child {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .builder-lab .container {
        padding: 40px 20px;
        gap: 30px;
        flex-direction: column;
        min-height: 50vh;
    }

    .builder-lab .content-block:first-child {
        width: 90% !important;
    }

    .builder-lab .content-block:last-child {
        height: 250px;
        width: 75%;
    }

    .builder-lab .slide-text {
        max-width: 100%;
    }

    .builder-lab .slide-content {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
        padding: 0 5%;
    }

    .builder-lab .slide-text h2 {
        font-size: 18px;
    }

    .builder-lab .slide-text p {
        font-size: 11px;
        margin-bottom: 16px;
    }

    .builder-lab .slide-text a {
        padding: 10px 20px;
        font-size: 12px;
    }

    .builder-lab .slide .floating-element.coordinates {
        top: 15px;
        left: 15px;
        padding: 4px 8px;
        font-size: 9px;
    }

    .builder-lab .slide .floating-badge.mission-status {
        top: 15px;
        right: 15px;
        padding: 4px 8px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .builder-lab .container {
        padding: 20px;
        gap: 15px;
        min-height: fit-content;
    }

    .builder-lab .content-block:first-child {
        width: 100% !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .builder-lab .content-block .buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .builder-lab .content-block .buttons a {
        white-space: nowrap;
    }

    .builder-lab .content-block:last-child {
        height: 175px;
        width: 100%
    }

    .builder-lab .content-block h1 {
        font-size: 16px;
        max-width: 100%;
        margin-bottom: 8px;
    }

    .builder-lab .content-block p {
        font-size: 10px;
        font-weight: 500;
        max-width: 100%;
        margin-bottom: 8px;
    }

    .builder-lab .primary-btn, .builder-lab .secondary-btn {
        padding: 6px 12px;
        font-size: 10px;
        border-radius: 10px;
    }

    .builder-lab .slide-text h2 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .builder-lab .slide-text p {
        font-size: 8px;
        margin-bottom: 8px;
    }

    .builder-lab .slide-text a {
        padding: 6px 12px;
        font-size: 8px;
    }

    .builder-lab .nav-btn {
        font-size: 14px;
    }

    .builder-lab .dot {
        width: 6px;
        height: 6px;
    }

    .builder-lab .slideshow-dots {
        gap: 6px;
    }

    .builder-lab .slide .floating-element.coordinates {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        font-size: 7px;
    }

    .builder-lab .slide .floating-badge.mission-status {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 7px;
    }
}
