@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* --- Desktop & Laptop --- */
@media screen and (min-width: 1025px) {
    body, html {
        overflow: auto;
        margin: 0;
    }

    .page-wrapper {
        width: 100vw;
        height: 100vh;
        display: block;
        overflow-x: hidden;
        position: relative;
        background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(43, 43, 43, 1) 80%, rgba(28, 28, 30, 1) 100%);
    }

    .main-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        overflow: hidden;
        display: block;
        position: relative;
    }

    .content-section {
        position: relative;
        height: calc(100vh - 125px);
        overflow: hidden;
        margin-top: 70px;
        width: 90%;
        margin-left: 5%;
        background-color: black;
        border-radius: 20px;
    }

    div#homeCanvas {
        width: calc(100% - 40px);
        height: calc(100vh - 200px);
        margin: 100px 20px;
    }

    .info-container {
        position: absolute;
        bottom: 10px;
        left: 10px;
        width: 310px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(14px);
        border-radius: 0px 10px 00px 20px;
        padding: 20px;
        color: white;
        z-index: 2;
        background-image:linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('/images/home/background-overlay.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .info-container .headline {
        font-size: 2rem;
        text-align: left;
    }

    .info-container .subheadline {
        font-size: 1rem;
        font-weight: 400;
        opacity: 0.8;
        margin-bottom: 20px;
        text-align: left;
    }

    .info-container .action-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .info-container .action-btn {
        flex: 1;
        padding: 10px;
        border-radius: 20px;
        font-weight: 500;
        background: rgb(255 255 255 / 53%);
        border: none;
        color: black;
        cursor: pointer;
        font-family: 'Rubik Dirt', system-ui;
        transition-duration: 0.4s;
    }
    .info-container .action-btn:hover {
        background-color: white;
    }
    .home-slide-text {
        position: absolute;
        bottom: 140px;
        left: 60px;
        z-index: 3;
        color: white;
        font-family: 'Poppins', sans-serif;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        animation: fadeIn 1s ease-in-out;
    }

    .home-slide-text h1 {
        font-size: 2rem;
        margin: 0;
    }

    .home-slide-text p {
        font-size: 1rem;
        margin: 5px 0 0;
    }
}

/* --- Mobile Vertical --- */
@media screen and (max-width: 480px) and (orientation: portrait) {
    body, html {
        margin: 0;
        padding: 0;
        overflow: hidden;
        font-family: 'Poppins', sans-serif;
        background-color: #302629;
        max-width: 100%;
        max-height: 100%;
    }

    .page-wrapper {
        width: 100vw;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-container {
        position: relative;
        width: 100%;
        max-width: 420px;
        height: calc(100vh - 150px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    main#app-content {
        background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(43, 43, 43, 1) 80%, rgba(28, 28, 30, 1) 100%);
    }

    .content-section {
        position: relative;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    div#homeCanvas {
        width: 100%;
        height: calc(100vh - 200px);
        margin: 100px 20px;
    }

    .info-container {
        margin-top: 10px;
        margin-left: 10px;
        width: calc(100% - 50px);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        padding: 15px;
        border-radius: 25px;
        text-align: center;
        background-image:linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('/images/home/background-overlay.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .headline {
        font-size: 1.8rem;
        font-weight: 700;
        color: #fff;
        margin: 0;
    }

    .subheadline {
        font-size: 1rem;
        color: #fff;
        opacity: 0.8;
        margin-top: 5px;
    }

    .action-group {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }

    .action-btn {
        flex: 1;
        padding: 10px;
        border-radius: 20px;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: #fff;
        cursor: pointer;
        font-family: 'Rubik Dirt', system-ui;
    }

    .home-slide-text {
        position: absolute;
        bottom: 80px;
        left: 30px;
        right: 30px;
        z-index: 3;
        color: white;
        font-family: 'Poppins', sans-serif;
        text-align: center;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        animation: fadeIn 1s ease-in-out;
    }

    .home-slide-text h1 {
        font-size: 1.5rem;
        margin: 0;
    }

    .home-slide-text p {
        font-size: 0.9rem;
        margin: 5px 0 0;
    }
}

/* --- Hidden slide data (HTML only) --- */
#home-slide-data {
    display: none;
}

/* --- FadeIn Animation --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


@media screen and (max-width: 480px) and (orientation: portrait) {
    div#homeCanvasContainer {
        width: calc(100% - 60px);
        margin-left: 10px;
        margin-top: 10px;
        height: calc(100% - 243px);
                margin-bottom: 50px;
        padding: 10px 20px;
        background-color: #000000ba;
        border-radius: 8px;
    }
    
    div.home-slide-component {
        height: calc(100%);
    }
}

div.home-slide-component {
    display: flex;
    flex-direction: column;
    align-items: center;
}


div.home-slide-component h2 {
    font-family: 'Shadows Into Light', cursive;
    color: #000000;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
}

div.home-slide-component p {
    color: #000000;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-family: system-ui;
    font-weight: 600;
    width: 100%;
}