:root {
    --primary-color: #010535;
    --secondary-color: #FFFFFF;
    --bg-color: #F3F6FC;
    --text-color: #2E314D;
    --accent-color: #3662CC;
    --white-color: #FFFFFF;
    --divider-color: #0105351A;
    --dark-divider-color: #FFFFFF1A;
    --error-color: rgb(230,87,87);
    --default-font: "DM Sans", sans-serif;
    --accent-font: "Apfel Grotezk";
}

/* Open Button */
.cyber-btn {
    padding: 14px 32px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--default-font);
    font-weight: 600;
    transition: .35s;
    box-shadow: 0 10px 25px rgba(54,98,204,.35);
}

.cyber-btn:hover {
    transform: translateY(-3px);
    background: #274fb0;
}

/* Common Modal Overlay Base */
.cyber-popup {
    position: fixed;
    inset: 0;
    background: rgba(1, 5, 53, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
}

.cyber-popup.show {
    visibility: visible;
    opacity: 1;
}

@keyframes popupScale {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================================
   MODAL 1: HERO SECTION MODAL POPUP (#cyberPopup)
   ============================================================ */

#cyberPopup .popup-container {
    width: 90vw;
    max-width: 1200px;
    max-height: 90vh;
    background: rgba(1, 5, 53, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: popupScale 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 75px 15px 75px;
    box-sizing: border-box;
}

/* Hero Modal Close (X) Button */
#cyberPopup .popup-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#cyberPopup .popup-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

/* Hero Modal Slider Wrapper & Slides */
#cyberPopup .slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}

#cyberPopup .slider {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cyberPopup .slide {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#cyberPopup .slide.active {
    display: flex;
}

#cyberPopup .slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Hero Modal Fixed Navigation Arrows */
#cyberPopup .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    font-size: 24px;
    background: rgba(1, 5, 53, 0.8);
    transition: all 0.3s ease;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#cyberPopup .nav:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.08);
}

#cyberPopup .prev {
    left: 15px;
}

#cyberPopup .next {
    right: 15px;
}

/* Hero Modal Dots */
#cyberPopup .dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 15px 0 5px 0;
    width: 100%;
}

#cyberPopup .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
}

#cyberPopup .dot.active {
    background: var(--accent-color);
    transform: scale(1.35);
    box-shadow: 0 0 10px rgba(54, 98, 204, 0.6);
}

/* Hero Modal Responsive Breakpoints */
@media (max-width: 992px) {
    #cyberPopup .popup-container {
        width: 94vw;
        max-height: 92vh;
        padding: 15px 60px 10px 60px;
        border-radius: 16px;
    }

    #cyberPopup .slide img {
        max-height: 68vh;
    }

    #cyberPopup .nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    #cyberPopup .prev {
        left: 10px;
    }

    #cyberPopup .next {
        right: 10px;
    }

    #cyberPopup .popup-close {
        width: 38px;
        height: 38px;
        font-size: 20px;
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 768px) {
    #cyberPopup .popup-container {
        width: 96vw;
        padding: 45px 45px 10px 45px;
    }

    #cyberPopup .slide img {
        max-height: 65vh;
    }

    #cyberPopup .nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    #cyberPopup .prev {
        left: 5px;
    }

    #cyberPopup .next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    #cyberPopup .popup-container {
        width: 98vw;
        padding: 45px 5px 10px 5px;
        border-radius: 12px;
    }

    #cyberPopup .slide img {
        max-height: 60vh;
        max-width: 98%;
    }

    #cyberPopup .nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
        background: rgba(1, 5, 53, 0.85);
    }

    #cyberPopup .prev {
        left: 4px;
    }

    #cyberPopup .next {
        right: 4px;
    }

    #cyberPopup .popup-close {
        width: 34px;
        height: 34px;
        font-size: 18px;
        top: 8px;
        right: 8px;
    }

    #cyberPopup .dots {
        padding: 10px 0 2px 0;
        gap: 8px;
    }

    #cyberPopup .dot {
        width: 10px;
        height: 10px;
    }
}

/* ============================================================
   MODAL 2: INSIGHTS THAT MATTER MODAL (#cardBannerModal)
   ============================================================ */

#cardBannerModal .popup-container {
    width: auto;
    max-width: 92vw;
    max-height: 90vh;
    background: transparent;
    border-radius: 16px;
    overflow: visible;
    position: relative;
    box-shadow: none;
    animation: popupScale 0.4s ease;
    display: inline-block;
}

#cardBannerModal .popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 22px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#cardBannerModal .popup-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

#cardBannerModal .slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#cardBannerModal .slider {
    position: relative;
}

#cardBannerModal .slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

#cardBannerModal .slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    margin: auto;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

@media (max-width: 992px) {
    #cardBannerModal .popup-container {
        max-width: 94vw;
    }

    #cardBannerModal .slide img {
        max-width: 94vw;
        max-height: 82vh;
    }

    #cardBannerModal .popup-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    #cardBannerModal .popup-container {
        max-width: 96vw;
    }

    #cardBannerModal .slide img {
        max-width: 96vw;
        max-height: 78vh;
    }

    #cardBannerModal .popup-close {
        width: 34px;
        height: 34px;
        font-size: 18px;
        top: 8px;
        right: 8px;
    }
}