/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    height: 100vh;
    width: 100%;
    background-image: url("background.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevents scrollbars */
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    width: 100%;
    /*max-width: 800px;*/
    /*gap: 40px; !* Space between major sections *!*/
}

/* --- Line Styles --- */

.line-top {
    width: 98%;
    /*max-width: 400px;*/
    height: 2px;
    background-color: #d8e4eb;
    opacity: 0.5;
    position: relative;
    top: -200px;
}

.line-bottom {
    width: 98%;
    /*max-width: 400px;*/
    height: 2px;
    background-color: #d8e4eb;
    opacity: 0.5;
    position: relative;
    top: 200px;
}

.line-middle {
    width: 2px;
    height: 200px;
    background-color: #d8e4eb;
    opacity: 0.5;
    position: relative;
    top: -10px;
}

/* --- Middle Section Layout --- */

.middle-section {
    display: flex;
    align-items: center;
    gap: 40px;
}

.subtitle-container {
    text-align: left;
    margin-left: 50px;
}

/* --- Icon Styles --- */

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

.book-icon {
    width: 450px;
    margin-right: 30px;
    height: auto;
    display: block;
}

/* --- Typography Specs --- */

.subtitle {
    /* Spec: Plus Jakarta Sans, Normal (400), size 36, color #d8e4eb */
    font-weight: 200;
    font-size: 36px;
    color: #d8e4eb;
    line-height: 1.3;
    margin-bottom: 0;
    white-space: nowrap;
}

.coming-soon-text {
    /* Spec: Plus Jakarta Sans, Extra Light (200), size 48, color #d8e4eb */
    font-weight: 300;
    font-size: 40px;
    color: #d8e4eb;
    letter-spacing: 2px; /* Adds a bit of elegance */

    /* Spec: Drop shadow opacity 50%, angle 145, distance 20, blur 9 */
    /* Mathematical approx for Angle 145 distance 20: X ~16px, Y ~12px */
    text-shadow: 16px 12px 9px rgba(0, 0, 0, 0.5);
}

/* --- Loading Bar Specs --- */

.loader-container {
    width: 100%;
    max-width: 420px; /* Limits width on large screens */
    padding: 0 20px;
    position: relative;
    top: 30px;
}

.loader-track {
    width: 100%;
    height: 12px;
    border-radius: 0px;
    /* Spec: Base color #3d85c6 */
    background-color: #3d85c6;
    position: relative;
    overflow: hidden;

    /* Spec: Drop shadow for the bar container */
    box-shadow: 16px 12px 9px rgba(0, 0, 0, 0.5);
}

.loader-bar {
    height: 100%;
    /* Spec: Bar color #d8e4eb */
    background-color: #d8e4eb;
    border-radius: 0px 10px 10px 0px;
    width: 0%; /* Starts at 0 */
    animation: loadProgress 3s ease-out forwards;
}

/* Animation for the loader */
@keyframes loadProgress {
    0% { width: 0%; }
    30% { width: 40%; }
    100% { width: 85%; } /* Ends at 85% to mimic "in progress" */
}

/* --- Responsiveness --- */

/* Phone Portrait Mode - Stacked Layout */
@media (max-width: 767px) {
    body {
        overflow: auto;
    }

    .content-wrapper {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 20px;
        justify-content: space-evenly;
    }

    .line-top {
        width: 98%;
        position: static;
        margin-bottom: 20px;
    }

    .line-bottom {
        width: 98%;
        position: static;
        margin-top: 20px;
    }

    .middle-section {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 80%;
    }

    .logo-container {
        width: 100%;
        margin: 0;
    }

    .book-icon {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }

    .line-middle {
        width: 80%;
        max-width: 300px;
        height: 2px;
        position: static;
    }

    .subtitle-container {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .subtitle {
        font-size: 20px;
        white-space: normal;
    }

    .coming-soon-text {
        font-size: 28px;
    }

    .coming-soon-text-container {
        position: static;
        margin: 20px 0;
    }

    .loader-container {
        width: 100%;
        max-width: 80%;
        position: static;
        margin-top: 20px;
        padding: 0;
    }
}

/* Tablet Portrait Mode (768px - 1024px, taller than wide) - Stacked Layout */
@media (min-width: 768px) and (max-width: 1024px) and (min-height: 768px) {
    body {
        overflow: auto;
    }

    .content-wrapper {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 30px;
        justify-content: space-evenly;
    }

    .line-top {
        width: 98%;
        position: static;
        margin-bottom: 25px;
    }

    .line-bottom {
        width: 98%;
        position: static;
        margin-top: 25px;
    }

    .middle-section {
        flex-direction: column;
        gap: 25px;
        width: 100%;
        max-width: 80%;
    }

    .logo-container {
        width: 100%;
        margin: 0;
    }

    .book-icon {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }

    .line-middle {
        width: 80%;
        max-width: 350px;
        height: 2px;
        position: static;
    }

    .subtitle-container {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .subtitle {
        font-size: 28px;
        white-space: normal;
    }

    .coming-soon-text {
        font-size: 36px;
    }

    .coming-soon-text-container {
        position: static;
        margin: 25px 0;
    }

    .loader-container {
        width: 100%;
        max-width: 80%;
        position: static;
        margin-top: 25px;
        padding: 0;
    }
}

/* Landscape Mode - Horizontal Layout (wider than tall) */
@media (max-height: 900px) and (min-width: 768px) {
    body {
        overflow: auto;
    }

    .content-wrapper {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 15px 5vw;
        justify-content: center;
    }

    .line-top {
        width: 98%;
        position: static;
        margin-bottom: 10px;
    }

    .line-bottom {
        width: 98%;
        position: static;
        margin-top: 10px;
    }

    .middle-section {
        flex-direction: row;
        gap: 25px;
        width: 80%;
        max-width: 80%;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .logo-container {
        margin: 0;
    }

    .book-icon {
        width: 130px;
        height: auto;
        margin: 0;
        display: block;
    }

    .line-middle {
        width: 2px;
        height: 90px;
        position: static;
    }

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

    .subtitle {
        font-size: 18px;
        white-space: nowrap;
    }

    .coming-soon-text {
        font-size: 26px;
    }

    .coming-soon-text-container {
        position: static;
        margin: 15px auto;
    }

    .loader-container {
        width: 100%;
        max-width: 400px;
        position: static;
        margin: 15px auto 0;
        padding: 0;
    }
}

/* Smaller Landscape Devices */
@media (max-height: 600px) and (min-width: 768px) {
    .book-icon {
        width: 100px;
    }

    .line-middle {
        height: 70px;
    }

    .subtitle {
        font-size: 15px;
    }

    .coming-soon-text {
        font-size: 20px;
    }
}