/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

body,
html {
    /* background-color: #f8f9fa; */
    color: #333;
    overflow-x: hidden;
    background: transparent;
    scroll-behavior: smooth;
}


/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    /* Keep particles behind all content */
    /* background: transparent; */
}

/* Example for feature cards and generator card */
.section {
    background: rgba(255, 255, 255, 0.8);
    /* Semi-transparent white */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: 10px 10px;
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.hero p {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s ease-out 0.5s forwards;
}

/* Modern Floating Scan Button */
#scan-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Optional: Tooltip on hover */
#scan-button::after {
    content: "Scan";
    position: absolute;
    right: 70px;
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

/* Show tooltip on hover */
#scan-button:hover::after {
    opacity: 1;
}
@media screen and (max-width: 768px) {
    #scan-button {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 25px;
        right: 25px;
        border-radius: 10px;
    }
}



/* Features Section */
.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 80px 20px;
    background-color: white;
    z-index: 1;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-card .icon {
    font-size: 2.5rem;
    color: #6e8efb;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* QR Generator Section */
.qr-generator {
    padding: 80px 20px;
    text-align: center;
    z-index: 1;
}

.generator-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    z-index: 1;

}

.qr-generator h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    /* color: #333; */
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.input-container {
    margin-bottom: 30px;
}

input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #6e8efb;
    outline: none;
}

button {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.share-buttons button {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 25px;
    font-size: 16px;
    cursor: pointer;
    margin: 0.25rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.share-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}


button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}

button:active {
    transform: translateY(-1px);
}

button:disabled {
    background: linear-gradient(135deg, #ccc, #999);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/*  qr code to other format */
.format-selector {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.format-selector label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.format-selector select {
    padding: 10px 14px;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.format-selector select:hover {
    border-color: #6e8efb;
}

.format-selector select:focus {
    border-color: #6e8efb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(110, 142, 251, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .format-selector {
        flex-direction: column;
        gap: 8px;
    }

    .format-selector label,
    .format-selector select {
        width: 100%;
        text-align: center;
    }
}

.embed-section {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.embed-section h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.embed-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#embed-code {
    width: 100%;
    max-width: 500px;
    height: 100px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    resize: none;
    text-align: center;
}

#copy-embed {
    padding: 8px 12px;
    background-color: #6e8efb;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#copy-embed:hover {
    background-color: #5a7de9;
}

.copy-message {
    margin-top: 8px;
    font-size: 14px;
    color: green;
    display: none;
}

/* Responsive for mobile */
@media (max-width: 480px) {
    .embed-code-container {
        flex-direction: column;
    }

    #embed-code,
    #copy-embed {
        width: 100%;
    }
}



.qr-output {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code-container {
    margin: 20px 0;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s, transform 0.5s;
}

.qr-code-container.show {
    opacity: 1;
    transform: scale(1);
}

#download-btn {
    margin-top: 20px;
}

select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #ddd;
    margin-bottom: 20px;
    font-size: 16px;
}

select:focus {
    border-color: #6e8efb;
    outline: none;
}

.color-pickers {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.color-pickers label {
    font-size: 14px;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.color-pickers input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

/* QR CODE SCANNER */
.qr-scanner {
    padding: 80px 20px;
}

.scanner-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
}

.scanner-buttons {
    margin: 20px 0;
}

#scanner-area {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

#scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-frame {
    width: 200px;
    height: 200px;
    border: 2px solid #6e8efb;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    position: relative;
}

.scanner-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #6e8efb;
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

.result-content {
    background-color: whitesmoke;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    word-break: break-all;
    text-align: left;
    border: 1px solid #ddd;
}

#scan-result {
    margin-top: 20px;
}

/* Wrapper for action buttons */
.qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    /* Center buttons */
}

/* Individual buttons */
.action-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 25px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}

.action-btn:active {
    transform: translateY(-1px);
}

/* Responsive for small screens */
@media (max-width: 600px) {
    .qr-actions {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/*  */
/* Add this to your existing CSS */
.help-section {
    padding: 80px 20px;
}

.help-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 40px;
}

.help-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.tutorial-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}

.tab-btn.active {
    transform: translateY(-1px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tutorial-step {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.step-content p {
    margin: 0;
    color: #666;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #666;
}

.tips-list li:last-child {
    border-bottom: none;
}

.format-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.format-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.format-card h4 {
    margin-top: 0;
    color: #333;
}

.format-card p {
    margin-bottom: 0;
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .tutorial-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        border-radius: 8px;
    }

    .tutorial-step {
        flex-direction: column;
    }

    .step-number {
        margin-bottom: 10px;
    }
}

/* Modal container */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* semi-transparent background */
}

/* Hidden by default */
.hidden {
    display: none;
}

/* Modal content box */
.modal-content {
    background-color: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
    position: relative;
    text-align: center;
}

/* Close button (X) */
.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* Responsive heading */
.modal-content h3 {
    margin-top: 0;
    font-size: 20px;
    color: #d9534f;
    /* red tone for error */
}

/* Error message text */
#errorMessage {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

/* Animation for modal */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media screen and (max-width: 480px) {
    .modal-content {
        width: 90%;
        padding: 15px 20px;
    }

    .modal-content h3 {
        font-size: 18px;
    }

    #errorMessage {
        font-size: 14px;
    }
}




/* Footer Section */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
    z-index: 1;
    position: relative;
}

footer p {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: #6e8efb;
    transform: translateY(-3px);
}

#report-bug-btn {
    position: absolute;
    bottom: 40px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.2);
    transition: all 0.3s ease;
}

#report-bug-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 65, 108, 0.3);
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .features {
        padding: 60px 20px;
    }

    .feature-card {
        width: 100%;
        max-width: 350px;
    }

    .generator-container {
        padding: 30px 20px;
    }

    #report-bug-btn {
        right: 10px;
        bottom: 28px;
        padding: 6px 12px;
        font-size: 14px;
    }

    #report-bug-btn i {
        font-size: 16px;
    }
}


/* ADS of adstrra */
.footer-ad-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-ad-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    backdrop-filter: blur(8px);
    gap: 10px;
}


.footer-ad-container p {
    position: absolute;
    top: 5px;
    left: 5px;
    color: #555;
    padding: 2px 6px;
    z-index: 10;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-ad-container iframe {
    animation: pulseImage 2s ease-in-out infinite alternate;
    border-radius: 8px;

}

.native-ad-container {
    max-width: 300px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;

}

.native-ad-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}




/* Pulsing animation for the image */
@keyframes pulseImage {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(110, 142, 251, 0.3);
        /* Updated color */
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(110, 142, 251, 0.6);
        /* Updated color */
    }
}

/* Glow animation inside ad box */
@keyframes glow {
    0% {
        box-shadow: 0 0 8px rgba(167, 119, 227, 0.3);
        /* Updated color */
    }

    100% {
        box-shadow: 0 0 20px rgba(167, 119, 227, 0.8);
        /* Updated color */
    }
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .footer-ad-container {
        padding: 16px 8px;
    }

    .native-ad-container {
        padding: 10px;
        margin: 15px auto;
    }

    .native-ad-label {
        font-size: 13px;
    }

    #container-2c079c93ea44cb197b3a6d72539b8ab5 {
        width: 100% !important;
        overflow-x: auto;
    }
}