* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: white;
}

body {
    background: #f0f8ff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    background: #005f99;
    padding: 1rem 0;
    position: relative;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.navbar .menu-toggle {
    display: none;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}
.navbar .nav-drop {
    list-style: none;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.navbar .nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar .nav-links li a:hover {
    color: #a6e1fa;
}

.navbar .nav-drop li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar .nav-drop li a:hover {
    color: #a6e1fa;
}

.nav-drop.active {
    display: flex;
}

.main-content {
    backdrop-filter: blur(4px);
    background-image: url(asset/why.png);
    background-size: cover;
    background-position: center;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}
.mainn {
    backdrop-filter: blur(4px);
    background-size: cover;
    background-position: center;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.qr-generator {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.qr-generator h2 {
    margin-bottom: 1rem;
    color: #005f99;
}

.qr-generator p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.qr-generator input {
    width: 100%;
    height: 50px;
    border: 1px solid #005f99;
    outline: 0;
    padding: 10px;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-size: 1rem;
}

.qr-generator button {
    width: 100%;
    height: 50px;
    background: #005f99;
    color: #fff;
    border: 0;
    outline: 0;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.3s;
}

.qr-generator button:hover {
    background: #003f66;
}

#imgBox {
    width: 200px;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, margin 0.3s ease-in-out, border 0.3s ease-in-out;
    margin: 0 auto 1rem;
}

#imgBox img {
    width: 100%;
    padding: 10px;
}

#imgBox.show-img {
    max-height: 300px;
    border: 1px solid #d1d1d1;
}

.error {
    animation: shake 0.1s linear 10;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(2px);
    }
    100% {
        transform: translateX(0);
    }
}

footer {
    background: #005f99;
    padding: 1rem 0;
    text-align: center;
    color: #fff;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: end;
    align-items: center;
    flex-wrap: wrap;
}

footer .footer-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

footer .footer-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

footer .footer-links li a:hover {
    color: #a6e1fa;
}

footer .social-links {
    display: flex;
    gap: 1rem;
    justify-content: end;
}

footer .social-links a {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: #a6e1fa;
}


@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .navbar .menu-toggle {
        display: flex;
        cursor: pointer;
        color: #fff;
        justify-content: flex-end;
        font-size: 1.5rem;
        margin-top: 10px;
    }

    .navbar .nav-links {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .navbar .nav-drop {
        display: none;
    }

    .navbar .nav-drop.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer .container {
        flex-direction: column;
        justify-content: end;
    }

    .footer .footer-links {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .cenro {
        text-align: center;
    }
}
