@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

/* ============================
   GLOBAL STYLES
============================ */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}
body::-webkit-scrollbar {
    display: none;
}

.bg {
    background-size: cover;
}

/* ============================
   NAVBAR
============================ */
.main-header {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    height: 4.5em;
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100vw;
    box-shadow: 0 1em 2em rgba(80, 91, 160, 0.3);
}

/* Logo */
.logo-container img {
    height: 3em;
}
.logo-container a {
    display: flex;
    align-items: center;
}

/* Navigation */
.navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.navigation-links {
    list-style: none;
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
}

.navigation-links a {
    color: #122023;
    text-decoration: none;
}
.navigation-links a:hover {
    border-bottom: 2px solid #5d4ce6;
    color: #5d4ce6;
}

/* Desktop wider screens */
@media (min-width: 1025px) {
    .navigation-links {
        gap: 60px;
        justify-content: center;
    }
}

/* Hamburger */
.hamburger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Close Button */
.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .main-header {
        height: 3.5em;
    }

    .navigation {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        background-color: white;
        width: 50%;
        height: auto;
        padding: 42px;

        flex-direction: column;
        align-items: center;
        justify-content: center;

        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);

        z-index: 1000;
    }

    .navigation.active {
        display: flex;
        transform: translateX(0);
    }

    .close-menu {
        display: block;
    }

    .navigation-links {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .action-buttons {
        flex-direction: column;
        margin-top: 50px;
    }

    .hamburger-menu {
        display: block;
    }
}

/* Phone stats */
@media (max-width: 481px) {
    .stats {
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }

    .stats-item {
        margin-bottom: 15px;
    }

    .text-large {
        font-size: 20px;
    }

    .label {
        font-size: 12px;
    }
}

/* ============================
   MAIN CONTAINERS
============================ */
.Main-container {
    display: flex;
    margin: 50px;
    align-items: flex-start;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.container1,
.container2 {
    background-color: #DADFFD;
    padding: 30px 50px;
    border-radius: 10px;
    margin-top: 46px;
    min-height: 350px;
    width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.heading {
    text-align: center;
    margin-bottom: 15px;
}

.reset-container {
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

/* ============================
   QR CODE AREA
============================ */
.qr-code-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.qr-code-wrapper.demo #qrcode {
    filter: blur(6px);
    opacity: 0.4;
}

.qr-overlay {
    position: absolute;
    text-align: center;
    font-size: 14px;
    color: #777;
    font-weight: 500;
}

.qr-code-wrapper.active #qrcode {
    filter: none;
    opacity: 1;
}
.qr-code-wrapper.active .qr-overlay {
    display: none;
}

/* Input fields */
.input-container {
    position: relative;
    margin-bottom: 15px;
}

.input-container input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

.copybtn,
.toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
}
.copybtn:hover,
.toggle-btn:hover {
    color: #000;
}

/*QR Code Section Styling*/
.qrcontainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

/* Buttons */
.btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.qr-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-btn-wrapper button {
    margin-top: 20px;
}

.main-btn {
    background-color: #6674CC;
    border: none;
    padding: 10px 40px;
    font-size: large;
    border-radius: 10px;
    cursor: pointer;
    color: white;
}
.main-btn:hover {
    background-color: #0056b3;
}

.img1 {
    height: 100px;
    margin-top: 10px;
    border-radius: 15px;
    padding: 7px;
    background-color: white;
}

/* ============================
   FOOTER
============================ */
.container {
    display: flex;
    margin: auto;
    width: 98%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.footer {
    background-color: #ffffff;
    padding: 2em 0;
}

.footer-col {
    flex: 1 1 calc(25% - 1em);
    padding: 0 1em;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 35px;
    font-weight: 600;
    color: #000;
    position: relative;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5em;
    background-color: #5d4ce6;
    height: 2px;
    width: 3em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 1em;
    color: #000;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-col ul li a:hover {
    padding-left: 0.5em;
}

.footer-logo {
    max-width: 12.5em;
    margin-bottom: 15px;
}

.social-links {
    margin-top: 1em;
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone i,
.email i,
.location i {
    color: #5d4ce6;
    font-size: 1.2em;
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: #e9eaf5;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #5d4ce6;
    transition: 0.5s ease;
}

.footer-col .social-links a:hover {
    color: #fff;
    background-color: #5d4ce6;
}

.copyright {
    text-align: center;
    margin-top: 1em;
}

/* ============================
   FINAL RESPONSIVE FIXES
============================ */
@media screen and (max-width:447px) {
    .qrcontainer {
        flex-direction: row;
    }
}

@media screen and (min-width:448px) and (max-width:894px) {
    .qrcontainer {
        flex-wrap: wrap;
    }
}
