/* ========================================
   RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, "Noto Sans Thai", sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}


/* ========================================
   LOGO
======================================== */

.logo {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
}

.logo img {
    display: block;
    width: 80px;
    height: auto;
}


/* ========================================
   MAIN CONTAINER
======================================== */

.container {
    width: 100%;
    min-height: 100vh;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
}


/* ========================================
   VIDEO BOX
======================================== */

.video-box {
    position: relative;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Video */

.video-box video {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}


/* ========================================
   DARK OVERLAY
======================================== */

.overlay {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.35);

    z-index: 1;

    transition: background 0.3s ease;
}


/* ========================================
   CONTENT
======================================== */

.content {
    position: relative;

    z-index: 2;

    width: 90%;
    max-width: 600px;

    text-align: center;

    padding: 20px;

    transition: transform 0.3s ease;
}

.content h1 {
    font-size: clamp(2rem, 4vw, 4rem);

    font-weight: 600;

    margin-bottom: 15px;

    line-height: 1.1;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.content p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);

    margin-bottom: 30px;

    line-height: 1.6;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}


/* ========================================
   BUTTON
======================================== */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 130px;

    padding: 12px 30px;

    border: 1px solid #fff;

    border-radius: 50px;

    color: #fff;

    text-decoration: none;

    font-size: 16px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.btn:hover {
    background: #fff;

    color: #000;

    transform: translateY(-3px);
}


/* ========================================
   DESKTOP HOVER
======================================== */

@media (min-width: 769px) {

    .video-box {
        transition: transform 0.5s ease;
    }

    .video-box:hover .overlay {
        background: rgba(0, 0, 0, 0.15);
    }

    .video-box:hover .content {
        transform: scale(1.05);
    }
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {

    .logo {
        top: 20px;
        left: 20px;
    }

    .logo img {
        width: 65px;
    }

    .content h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .content p {
        font-size: 1rem;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .logo {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        width: 60px;
    }

    /* Container */
    .container {
        width: 100%;
        min-height: 100vh;

        display: flex;
        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 20px;

        padding: 100px 20px 30px;
    }

    /* Video Box */
    .video-box {
        position: relative;

        width: 100%;
        max-width: 600px;

        height: 45vh;
        min-height: 280px;

        border-radius: 20px;

        overflow: hidden;

        flex-shrink: 0;
    }

    .video-box video {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }

    .content {
        width: 90%;
        max-width: 500px;

        text-align: center;

        padding: 20px;
    }

    .content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .content p {
        font-size: 1rem;

        margin-bottom: 20px;
    }

    .btn {
        min-width: 120px;
        padding: 10px 25px;
    }
}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 480px) {

    .logo {
        top: 15px;
    }

    .logo img {
        width: 50px;
    }

    .video-box {
        height: 50vh;
        min-height: 280px;
    }

    .content h1 {
        font-size: 2rem;
    }

    .content p {
        font-size: 0.9rem;

        margin-bottom: 18px;
    }

    .btn {
        min-width: 110px;

        padding: 9px 22px;

        font-size: 14px;
    }

}