/*-- -------------------------- -->
<---         Demo Hero           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #demo-hero {
        padding: clamp(6rem, 12vw, 10rem) 1rem;
        text-align: center;
        position: relative;
        z-index: 1;
    }
    #demo-hero .cs-container {
        max-width: 50rem;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }
    #demo-hero .cs-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    #demo-hero .cs-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    #demo-hero .cs-background:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
        opacity: .75;
        z-index: 2;
    }
    #demo-hero .cs-topper {
        color: var(--secondary);
        margin-bottom: 0.75rem;
    }
    #demo-hero .cs-title {
        color: #fff;
        max-width: 45rem;
        margin: 0 auto 1rem;
        font-size: clamp(1.75rem, 4vw, 3rem);
    }
    #demo-hero .cs-text {
        color: rgba(255, 255, 255, 0.85);
        max-width: 35rem;
        margin: 0 auto;
        font-size: clamp(1rem, 2vw, 1.125rem);
    }
}

/*-- -------------------------- -->
<---       Demo Options          -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #demo-options {
        padding: var(--sectionPadding);
    }
    #demo-options .cs-container {
        max-width: 60rem;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #demo-options .cs-main-option {
        background: #fff;
        border-radius: 1rem;
        padding: 3rem 2.5rem;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
        align-items: center;
        border: 1px solid #e8e8e8;
        transition: box-shadow .3s, transform .3s;
        width: 100%;
        max-width: 40rem;
        margin: 0 auto;
    }
    #demo-options .cs-main-option:hover {
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
        transform: translateY(-4px);
    }
    #demo-options .cs-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary);
        border-radius: 50%;
        padding: 1rem;
    }
    #demo-options .cs-icon img {
        width: 2rem;
        height: 2rem;
        filter: brightness(0) invert(1);
    }
    #demo-options .cs-h3 {
        font-size: 1.5rem;
        font-weight: 900;
        color: var(--headerColor);
        margin: 0 0 0.75rem;
    }
    #demo-options .cs-item-text {
        font-size: 1rem;
        color: var(--bodyTextColor);
        margin: 0 0 2rem;
        line-height: 1.6;
        max-width: 28rem;
    }
    #demo-options .cs-button-solid {
        width: 100%;
        max-width: 20rem;
    }
    #demo-options .cs-demo-secondary {
        margin-top: 1.5rem;
        font-size: 0.875rem;
        color: var(--bodyTextColor);
        text-align: center;
    }
    #demo-options .cs-demo-secondary a {
        color: var(--primary);
        text-decoration: underline;
        font-weight: 700;
    }
    #demo-options .cs-demo-secondary a:hover {
        text-decoration: none;
    }
}

/* Under 768px */
@media only screen and (max-width: 48rem) {
    #demo-options .cs-main-option {
        padding: 2rem 1.5rem;
    }
}

/* Dark Mode */
@media only screen and (min-width: 0rem) {
    body.dark-mode #demo-options .cs-main-option {
        background: #1a1a2e;
        border-color: #2a2a3e;
    }
    body.dark-mode #demo-options .cs-h3 {
        color: #fff;
    }
    body.dark-mode #demo-options .cs-item-text {
        color: rgba(255, 255, 255, 0.8);
    }
    body.dark-mode #demo-options .cs-demo-secondary {
        color: rgba(255, 255, 255, 0.7);
    }
    body.dark-mode #demo-options .cs-demo-secondary a {
        color: var(--secondary);
    }
}
