/* Homepage Scroller Styles */
body {
    margin: 0;
    font-family: sans-serif;
}

#homepage-scroller {
    overflow: hidden;
    background: linear-gradient(135deg, #4B0082 0%, #6A0DAD 35%, #800080 65%, #C71585 85%, #58187A 100%);
    background-size: 200% 200%;
    animation: waveBackground 18s ease infinite;
}

.scroller-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.scroller-content {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    opacity: 0;
    transition: opacity 1s;
    box-sizing: border-box;
}

.scroller-section.active .scroller-content {
    opacity: 1;
}

.scroller-section .text-content,
.scroller-section .image-content {
    transition: transform 0.5s, opacity 0.5s;
}

.scroller-section.layout-text-left .text-content {
    transform: translateX(-100%);
}

.scroller-section.layout-text-left .image-content {
    transform: translateX(100%);
}

.scroller-section.layout-image-left .text-content {
    transform: translateX(100%);
}

.scroller-section.layout-image-left .image-content {
    transform: translateX(-100%);
}

.scroller-section.active .text-content,
.scroller-section.active .image-content {
    transform: translateX(0);
    opacity: 1;
}

.scroller-section.exit .text-content,
.scroller-section.exit .image-content {
    opacity: 0;
}

.scroller-section.exit-up .text-content,
.scroller-section.exit-up .image-content {
    transform: translateY(100%);
    opacity: 0;
}

.scroller-section.exit-down .text-content,
.scroller-section.exit-down .image-content {
    transform: translateY(-100%);
    opacity: 0;
}

.text-content {
    flex: 1;
    padding: 20px;
    color: #ffffff;
    max-width: 50%;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    opacity: 0;
}

.text-content h2,
.text-content p,
.text-content .scroller-button {
    transition: transform 0.3s ease;
}

.text-content h2:hover,
.text-content p:hover {
    transform: scale(1.05);
}

.text-content h2 {
    font-size: 2.2em;
    margin-bottom: 0.75em;
    font-weight: 600;
    line-height: 1.3;
}

.role-choice-container {
    display: flex;
    width: 100%;
    justify-content: space-around;
    text-align: center;
    align-items: center;
}

.role-choice {
    flex-basis: 45%;
    padding: 40px;
    box-sizing: border-box;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.role-choice h2 {
    color: #ffffff;
    font-size: 3em;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.role-choice .scroller-button {
    font-size: 1.2em;
    padding: 14px 28px;
    transition: transform 0.3s ease;
}

.role-choice:hover h2,
.role-choice:hover .scroller-button {
    transform: scale(1.05);
}

.text-content p {
    font-size: 1.05em;
    line-height: 1.65;
    margin-bottom: 1.5em;
}

.scroller-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD700;
    color: #333333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
    font-size: 1em;
}

.scroller-button:hover,
.scroller-button:focus {
    background-color: #FFC700;
    color: #000000;
    transform: scale(1.05);
    text-decoration: none;
}

.image-content {
    flex: 1;
    max-width: 50%;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.scroller-section.layout-text-left .text-content {
    order: 1;
}

.scroller-section.layout-text-left .image-content {
    order: 2;
}

.scroller-section.layout-image-left .text-content {
    order: 2;
}

.scroller-section.layout-image-left .image-content {
    order: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.5s;
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator.visible,
.scroll-indicator.first-slide {
    opacity: 1;
    pointer-events: auto;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: wheel 1.5s infinite;
}

.touch-indicator {
    display: none;
    width: 50px;
    height: 50px;
    position: relative;
}

.touch-indicator {
    width: 30px;
    height: 50px;
    position: relative;
}

.touch-indicator::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: swipe 1.5s infinite;
}

@keyframes wheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 10px);
        opacity: 0;
    }
}

@keyframes swipe {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@media (min-width: 769px) {
    .text-content h2 {
        font-size: 3em;
    }

    .text-content p {
        font-size: 1.4em;
    }

    .scroller-button {
        padding: 14px 28px;
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .role-choice-container {
        flex-direction: column;
    }

    .role-choice h2 {
        font-size: 2em;
    }

    .role-choice .scroller-button {
        font-size: 1em;
        padding: 12px 24px;
    }

    .scroller-section {
        align-items: flex-start;
        padding-top: 5vh;
    }

    .scroller-content {
        flex-direction: column;
    }

    .text-content,
    .image-content {
        max-width: 100%;
        padding: 20px;
    }

    .scroller-section .text-content {
        order: 1 !important;
    }

    .scroller-section .image-content {
        order: 2 !important;
    }

    .hps-browser-mockup {
        max-width: 90%;
    }

    .mouse {
        display: none;
    }

    .touch-indicator {
        display: block;
    }
}

@keyframes waveBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* CSS for Browser Mockup */
.hps-browser-mockup {
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hps-browser-mockup:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.hps-browser-top-bar {
    background-color: #e8e8e8;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    height: 30px;
    box-sizing: border-box;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom: 1px solid #d8d8d8;
}

.hps-browser-buttons {
    display: flex;
    align-items: center;
    height: 18px;
}

.hps-browser-buttons span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.hps-browser-button.hps-red { background-color: #ff5f57; }
.hps-browser-button.hps-yellow { background-color: #febc2e; }
.hps-browser-button.hps-green { background-color: #28c840; }

.hps-browser-address-bar {
    flex-grow: 1;
    background-color: #ffffff;
    border-radius: 3px;
    padding: 2px 8px;
    margin-left: 15px;
    font-size: 0.75em;
    color: #555;
    height: 18px;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hps-browser-content {
    background-color: #fff;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    overflow: hidden;
}

.hps-browser-content img {
    display: block;
    width: 100%;
    height: auto;
}
