/* Welcome Page Styles */

/* Font Families */
.montserrat {
    font-family: 'Montserrat', sans-serif;
}

.mochiy-pop {
    font-family: 'Mochiy Pop One', sans-serif;
}

/* Body Styles */
.welcome-body {
    background-color: white;
    min-height: 100vh;
    overflow: hidden;
}

/* Main Container */
.welcome-container {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    width: 402px;
    height: 874px;
}

/* Main Title Section */
.welcome-title-section {
    position: absolute;
    left: 31px;
    top: 46px;
    width: 329px;
    height: 245px;
}

.welcome-title {
    color: black;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.219;
}

/* Title Text Styling */
.title-bold {
    font-weight: 700;
    /* Bold */
}

.title-normal {
    font-weight: 400;
    /* Normal */
}

/* Typing Cursor Animation */
.typing-cursor {
    font-weight: 400;
    animation: blink 1s infinite;
    color: black;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Typing Container */
#typing-container {
    display: inline;
}

/* Character Images */
.green-eye-section {
    position: absolute;
    left: 298px;
    top: 46px;
    width: 74px;
    height: 73px;
}

.orange-ball-section {
    position: absolute;
    left: 142px;
    top: 305px;
    width: 241px;
    height: auto;
}

.blue-creature-section {
    position: absolute;
    left: 22px;
    top: 525px;
    width: 157px;
    height: 150px;
}

/* Image Styles */
.welcome-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Button Sections */
.masuk-button-section {
    font-family: 'Mochiy Pop One', sans-serif;
    color: #F3F4F6;
    position: absolute;
    left: 224px;
    top: 589px;
    width: 160px;
    height: 55px;
    z-index: 15;
}

.daftar-button-section {
    position: absolute;
    left: 224px;
    top: 653px;
    width: 160px;
    height: 55px;
    z-index: 15;
}

.main-cta-section {
    position: absolute;
    left: 31px;
    top: 727px;
    width: 340px;
    height: 60px;
}

/* Button Base Styles */
.welcome-button {
    width: 100%;
    height: 100%;
    border: 3px solid black;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    /* Ensure buttons are visible by default and clickable */
}

/* Button Hover Effects */
.welcome-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Button Active/Press Effects */
.welcome-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.1s ease;
}

/* Primary Button (Black) */
.primary-button {
    background-color: black;
    border-color: black;
}

.primary-button:hover {
    background-color: #374151;
    border-color: #374151;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.primary-button:active {
    background-color: #1f2937;
    border-color: #1f2937;
}

/* Secondary Button (Gray) */
.secondary-button {
    background-color: #D9D9D9;
    border-color: black;
}

.secondary-button:hover {
    background-color: #F3F4F6;
    border-color: #374151;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.secondary-button:active {
    background-color: #E5E7EB;
    border-color: #1f2937;
}

/* Button Text Effects */
.welcome-button span {
    transition: all 0.3s ease;
    position: relative;
}

.welcome-button:hover span {
    transform: scale(1.05);
}

.welcome-button:active span {
    transform: scale(0.98);
}

/* Ripple Effect */
.welcome-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.welcome-button:active::before {
    width: 300px;
    height: 300px;
}

/* Text Colors */
.text-white {
    color: white;
}

.text-black {
    color: black;
}

/* Text Sizes */
.text-small {
    font-size: 14px;
}

.text-large {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-container {
        width: 100vw;
        max-width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .welcome-title-section {
        left: 20px;
        top: 60px;
        width: calc(100% - 40px);
        height: auto;
        text-align: left;
    }

    .welcome-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .green-eye-section {
        left: auto;
        right: 20px;
        top: 60px;
        width: 70px;
        height: 69px;
    }

    .orange-ball-section {
        left: 50%;
        top: 320px;
        width: 220px;
        height: 219px;
        transform: translateX(-50%);
    }

    .blue-creature-section {
        left: 20px;
        top: 500px;
        width: 140px;
        height: 135px;
    }

    .masuk-button-section {
        left: auto;
        right: 20px;
        top: 550px;
        width: 160px;
        height: 50px;
    }

    .daftar-button-section {
        left: auto;
        right: 20px;
        top: 610px;
        width: 160px;
        height: 50px;
    }

    .main-cta-section {
        left: 20px;
        top: 670px;
        width: calc(100% - 40px);
        height: 55px;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .welcome-container {
        padding: 0 15px;
    }

    .welcome-title-section {
        left: 15px;
        top: 50px;
        width: calc(100% - 30px);
        text-align: left;
    }

    .welcome-title {
        font-size: 32px;
        line-height: 1.1;
    }

    .green-eye-section {
        right: 15px;
        top: 50px;
        width: 60px;
        height: 59px;
    }

    .orange-ball-section {
        top: 280px;
        width: 180px;
        height: 179px;
    }

    .blue-creature-section {
        left: 15px;
        top: 430px;
        width: 120px;
        height: 116px;
    }

    .masuk-button-section {
        right: 15px;
        top: 480px;
        width: 140px;
        height: 45px;
    }

    .daftar-button-section {
        right: 15px;
        top: 535px;
        width: 140px;
        height: 45px;
    }

    .main-cta-section {
        left: 15px;
        top: 590px;
        width: calc(100% - 30px);
        height: 50px;
    }

    .welcome-button {
        font-size: 14px;
    }

    .text-large {
        font-size: 16px;
    }

    .text-small {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .welcome-title-section {
        top: 40px;
        text-align: left;
    }

    .welcome-title {
        font-size: 28px;
    }

    .green-eye-section {
        top: 40px;
        width: 55px;
        height: 54px;
    }

    .orange-ball-section {
        top: 250px;
        width: 160px;
        height: 159px;
    }

    .blue-creature-section {
        top: 400px;
        width: 110px;
        height: 106px;
    }

    .masuk-button-section {
        top: 450px;
        width: 125px;
        height: 40px;
    }

    .daftar-button-section {
        top: 500px;
        width: 125px;
        height: 40px;
    }

    .main-cta-section {
        top: 550px;
        height: 45px;
    }

    .welcome-button {
        font-size: 12px;
        border-width: 2px;
    }
}