@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

/* -------------------- RESET & GLOBAL -------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #1D2021;
    font-family: 'Montserrat', sans-serif;
    color: #edf0f1;
}

/* Reusable */
a,
li,
button {
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

button {
    padding: 9px 25px;
    border: none;
    border-radius: 50px;
    background-color: rgb(53, 138, 235);
    transition: all 0.3s ease;
}

button:hover {
    background-color: rgb(0, 145, 255);
    color: #000;
    box-shadow: 0 0 8px #fff;
}

/* -------------------- HEADER -------------------- */
header {
    position: fixed;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 15px;
    background: rgba(53, 138, 235, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.logo img {
    width: 40px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.2) translateY(-3px);
}

.logo a:hover {
    color: #0088A9;
}

.nav_links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav_links a:hover {
    color: #0088A9;
}

.cta button {
    margin-left: 20px;
    background-color: rgb(255, 200, 0);
}

/* -------------------- MAIN -------------------- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px;
    /* space for fixed header */
}

/* QR Section */
.qr_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.title {
    font-size: 28px;
    margin-bottom: 15px;
}

.content {
    width: 100%;
    max-width: 440px;
    height: 50px;
    margin-top: 15px;
    padding: 0 20px;
    border: none;
    border-radius: 50px;
    text-align: center;
}

.qr_button {
    margin-top: 25px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background-color: rgb(53, 138, 235);
    transition: all 0.3s ease;
    color: white;
    cursor: pointer;
    font-size: 15px;
}

.qr_button:hover {
    background-color: rgb(0, 145, 255);
    color: #000;
    box-shadow: 0 0 8px #fff;
}

#valid {
    display: none ;
    color: red;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

.qrcode {
    margin-top: 20px;
    width: 280px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgb(53, 138, 235);
}

.Download {
    margin-top: 20px;
    padding: 12px 20px;
}

/* About Section */
.Sec_section {
    text-align: center;
    padding: 60px 20px;
}

.About_title {
    font-size: 24px;
    margin-bottom: 20px;
}

.About {
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.6;
}

/* Guide Section */
.section3 {
    text-align: center;
    padding: 60px 20px;
}

.title3 {
    font-size: 24px;
    margin-bottom: 10px;
}

#slogan {
    font-size: 18px;
    margin-bottom: 40px;
}

/* Grid Section */
.grid {
    display: grid;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    h4{
        text-align: center;
    }
}

.grid_start {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.grid_start p {
    padding: 15px;
    line-height: 1.6;
    border-left: 2px solid rgb(53, 138, 235);
    border-right: 2px solid rgb(53, 138, 235);
}

.grid_start img {
    width: 100%;
    max-width: 300px;
    margin: auto;
}

/* -------------------- FOOTER -------------------- */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(53, 138, 235, 0.1);
    font-size: 14px;
}

/* -------------------- RESPONSIVE -------------------- */

/* Tablets */
@media (max-width: 992px) {
    header {
        padding: 10px 20px;
    }

    .nav_links {
        gap: 15px;
    }

    .grid_start {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
    }

    .logo img {
        width: 30px;
    }

    .nav_links {
        display: none;
    }

    /* could be replaced with hamburger */
    .cta {
        display: none;
    }

    .title {
        font-size: 22px;
    }

    .content {
        max-width: 100%;
    }

    .grid {
        display: block;
    }
}