/* Home Awal - Sama seperti Login Page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Main Container - sama seperti login */
.main-container {
    width: 1024px;
    height: 1366px;
    max-width: 100vw;
    max-height: 100vh;
    background: #F9F7F4;
    border-radius: 0;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

/* Splash Sections */
.splash-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #F9F7F4;
}

.splash-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* Splash Content - sama seperti login main-content */
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 32px 40px;
    width: 100%;
    position: relative;
}

/* Logo Container - sama seperti login */
.logo-container {
    margin-bottom: 32px;
    max-width: 120px;
    max-height: fit-content;
}

.logo-circle {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 4s ease-in-out infinite;
    position: relative;
}

.main-logo {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 20px 60px rgba(47, 82, 51, 0.25)) 
            drop-shadow(0 8px 30px rgba(47, 82, 51, 0.15));
    display: block;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Title Container - sama seperti login title-section */
.title-container {
    text-align: center;
    margin-bottom: 36px;
}

.app-title {
    font-size: 32px;
    font-weight: 700;
    color: #2F5233;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    opacity: 0;
    line-height: 1.2;
}

.app-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: rgba(47, 82, 51, 0.8);
    line-height: 1.3;
    opacity: 0;
}

/* Welcome Section - Splash 3 */
.welcome-section {
    background: #F9F7F4;
    position: relative;
}

/* Background Image - full height dengan overlay blend */
.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1621451537084-482c73073a0f?w=1200&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.grid-item {
    display: none;
}

/* Welcome Overlay - gradient blend dari transparan ke hijau */
.welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(47, 82, 51, 0) 0%,
        rgba(47, 82, 51, 0.1) 30%,
        rgba(47, 82, 51, 0.4) 50%,
        rgba(47, 82, 51, 0.8) 70%,
        rgba(47, 82, 51, 1) 100%
    );
    z-index: 2;
}

/* Welcome Content - di bagian bawah dengan blending */
.welcome-content {
    position: absolute;
    top: 60%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 40px 80px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-text {
    text-align: center;
    color: white;
    max-width: 680px;
    opacity: 0;
    transform: translateY(50px);
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.8px;
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-description {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 44px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.2px;
}

/* Start Button */
.start-button {
    width: 100%;
    max-width: 360px;
    padding: 18px 40px;
    background: rgba(180, 180, 180, 0.9);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(47, 82, 51, 0.15), transparent);
    transition: left 0.6s ease;
}

.start-button:hover::before {
    left: 100%;
}

.start-button:hover {
    background: #2F5233;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 12px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: white;
}

.start-button:active {
    transform: translateY(-1px) scale(1.01);
}

.start-button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

/* Button Spinner */
.button-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(47, 82, 51, 0.3);
    border-top: 3px solid #2F5233;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    .splash-content {
        padding: 60px 40px;
    }

    .logo-circle {
        width: 180px;
        height: 180px;
    }

    .main-logo {
        width: 110px;
        height: 110px;
    }

    .app-title {
        font-size: 56px;
        margin-bottom: 12px;
    }

    .app-subtitle {
        font-size: 18px;
    }

    .title-container {
        margin-top: 50px;
    }

    .welcome-content {
        padding: 40px 50px 100px;
    }

    .welcome-title {
        font-size: 36px;
        margin-bottom: 24px;
    }

    .welcome-description {
        font-size: 15px;
        margin-bottom: 36px;
    }

    .start-button {
        max-width: 320px;
        padding: 16px 36px;
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .splash-content {
        padding: 40px 30px;
    }

    .logo-circle {
        width: 160px;
        height: 160px;
    }

    .main-logo {
        width: 95px;
        height: 95px;
    }

    .app-title {
        font-size: 48px;
        margin-bottom: 10px;
    }

    .app-subtitle {
        font-size: 16px;
    }

    .title-container {
        margin-top: 40px;
    }

    .welcome-content {
        padding: 30px 30px 80px;
    }

    .welcome-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .welcome-description {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .start-button {
        max-width: 280px;
        padding: 15px 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .splash-content {
        padding: 30px 20px;
    }

    .logo-circle {
        width: 140px;
        height: 140px;
    }

    .main-logo {
        width: 80px;
        height: 80px;
    }

    .app-title {
        font-size: 40px;
    }

    .app-subtitle {
        font-size: 15px;
    }

    .title-container {
        margin-top: 35px;
    }

    .welcome-content {
        padding: 25px 20px 70px;
    }

    .welcome-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 18px;
    }

    .welcome-description {
        font-size: 13px;
        margin-bottom: 28px;
    }

    .start-button {
        max-width: 260px;
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Landscape orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .main-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .splash-content {
        padding: 20px 50px;
        flex-direction: row;
        gap: 50px;
    }

    .logo-container {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .logo-circle {
        width: 120px;
        height: 120px;
    }

    .main-logo {
        width: 70px;
        height: 70px;
    }

    .title-container {
        text-align: left;
        margin-top: 0;
    }

    .app-title {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .app-subtitle {
        font-size: 14px;
    }

    .welcome-content {
        padding: 30px 50px;
        align-items: center;
    }

    .welcome-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .welcome-description {
        font-size: 12px;
        margin-bottom: 24px;
    }

    .start-button {
        max-width: 220px;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 0;
        background: #F9F7F4;
    }

    .main-container {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    /* Mobile Splash Content */
    .splash-content {
        padding: 60px 20px 40px;
        min-height: 100vh;
        justify-content: center;
    }

    /* Mobile Logo */
    .logo-container {
        margin-bottom: 16px;
    }

    .logo-circle {
        width: 100px;
        height: 100px;
    }

    .main-logo {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }

    /* Mobile Typography - Splash 2 */
    .title-container {
        margin-bottom: 16px;
    }

    .app-title {
        font-size: 24px;
        margin-bottom: 6px;
        letter-spacing: -0.3px;
    }

    .app-subtitle {
        font-size: 14px;
    }

    /* Mobile Welcome Section */
    .welcome-content {
        top: 60%;
        padding: 30px 20px 40px;
        align-items: center;
        bottom: 0;
    }

    .welcome-text {
        max-width: 100%;
        padding: 20px 15px;
    }

    .welcome-title {
        font-size: 22px;
        margin-bottom: 16px;
        letter-spacing: -0.3px;
        line-height: 1.3;
    }

    .welcome-description {
        font-size: 13px;
        margin-bottom: 24px;
        line-height: 1.4;
    }

    .start-button {
        width: 100%;
        max-width: 280px;
        padding: 16px 32px;
        font-size: 16px;
        font-weight: 600;
    }

    /* Background Grid Mobile */
    .background-grid {
        height: 100%;
        background-position: center;
    }
}

/* Small Mobile (iPhone SE, etc) */
@media (max-width: 375px) {
    .splash-content {
        padding: 40px 16px 30px;
    }

    .logo-container {
        margin-bottom: 12px;
    }

    .logo-circle {
        width: 80px;
        height: 80px;
    }

    .main-logo {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px !important;
        max-height: 80px !important;
    }

    .title-container {
        margin-bottom: 12px;
    }

    .app-title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .app-subtitle {
        font-size: 12px;
    }

    .welcome-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .welcome-description {
        font-size: 12px;
        margin-bottom: 24px;
    }

    .welcome-text {
        padding: 24px 16px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .splash-content {
        padding: 20px 20px;
        min-height: 100vh;
    }

    .logo-container {
        margin-bottom: 8px;
    }

    .title-container {
        margin-bottom: 8px;
    }

    .app-title {
        margin-bottom: 4px;
    }

    .welcome-content {
        top: 55%;
        padding: 10px 20px 15px;
        align-items: center;
        bottom: 0;
    }

    .welcome-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .welcome-description {
        font-size: 11px;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .welcome-text {
        padding: 15px;
    }

    .start-button {
        padding: 10px 24px;
        font-size: 14px;
    }
}
