/* ===========================
   RESET & BASE
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===========================
   HEADER
   =========================== */
.header-logo {
    text-align: center;
    margin-bottom: 20px;
}

.header-logo img {
    height: 60px;
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.header-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}


/* ===========================
   MAIN LAYOUT
   =========================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(9, 9, 11, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 20px;
    width: 100%;
}

.controls-section {
    display: flex;
    flex-direction: column;
}

/* ===========================
   INPUT GROUP
   =========================== */
.input-group {
    margin-bottom: 25px;
    position: relative;
}

input[type="url"] {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px !important;
    font-size: 16px;
    transition: all 0.3s
    ease;
    outline: none;
    background: #ffffff00;
    color: #fff;

}

input[type="url"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.input{
    border-radius: 12px !important;
    position: relative;
    width: 100%;
    background: rgb(10 10 11);
    transition: transform 0.4s
    cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}
.input::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px !important;
    padding: 2px;
    /* background: linear-gradient(90deg, #a1a1aa 0%, #71717a 25%, #71717a 50%, #6c757d 75%, #a1a1aa 100%); */
    background: linear-gradient(
            90deg,
            #d12d9c 0%,
            #5ea2ef 25%,
            #d12d9c 50%,
            #5ea2ef 75%,
            #d12d9c 100%
    );
    background-size: 400% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: flowGradient 6s linear infinite;
    pointer-events: none;
}
.error-message {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.visible {
    opacity: 1;
}

/* ===========================
   SIZE CONTROLS
   =========================== */
.size-controls {
    margin-bottom: 25px;
}

.size-buttons {
    display: flex;
    gap: 10px;
}
.size-buttons button {
    display: inline-flex;
    padding: 6px 40px;
    justify-content: center;
    align-items: center;
    border-radius: 9999px;
    background: #09090B;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #A1A1AA;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s
    ease;
}
.size-buttons button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.00) 0%, rgba(34, 211, 238, 0.90) 50%, rgba(34, 211, 238, 0.00) 100%);
}
.size-btn {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #e4e4e7;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.size-btn.active {
    border-color: #667eea;
    background: linear-gradient(145deg, rgba(13, 110, 253, 0.25), #5eb0ef);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ===========================
   STYLE SECTION
   =========================== */
.style-section {
    margin-bottom: 25px;
}

.style-label {
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
    color: #e4e4e7;
    font-weight: 500;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.style-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 8px;
    border-radius: 12px;
    background: #09090B;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #A1A1AA;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s
    ease;
}

.style-option::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.00) 0%, rgba(34, 211, 238, 0.90) 50%, rgba(34, 211, 238, 0.00) 100%);
}
.style-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}


.style-option.active {
    border-color: #667eea;
    background: linear-gradient(145deg, rgba(13, 110, 253, 0.25), #5eb0ef);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}



.style-preview {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-pattern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 20px;
    height: 20px;
}

.preview-dot {
    background: #fff;
    width: 8px;
    height: 8px;
}

.pattern-classic .preview-dot {
    border-radius: 0;
}

.pattern-rounded .preview-dot {
    border-radius: 4px;
}

.pattern-smooth .preview-dot {
    border-radius: 8px;
}

.style-option span {
    font-size: 11px;
    color: #e4e4e7;
    font-weight: 500;
    text-align: center;
}

.style-option.active span {
    color: #fff;
    font-weight: 600;
}

/* ===========================
   COLOR CONTROLS
   =========================== */
.color-section {
    margin-bottom: 25px;
}

.color-controls {
    display: flex;
    gap: 20px;
}

.color-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-group label {
    font-size: 12px;
    color: #e4e4e7;
    font-weight: 500;
}

input[type="color"] {
    width: 50px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="color"]:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

/* ===========================
   LOGO SECTION
   =========================== */
.logo-section {
    margin-bottom: 25px;
}

.logo-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.logo-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 8px;
    border-radius: 12px;
    background: #09090B;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #A1A1AA;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s
    ease;
}

.logo-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.logo-option::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.00) 0%, rgba(34, 211, 238, 0.90) 50%, rgba(34, 211, 238, 0.00) 100%);
}

.logo-option.active {
    border-color: #667eea;
    background: linear-gradient(145deg, rgba(13, 110, 253, 0.25), #5eb0ef);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.logo-icon {
    font-size: 24px;
}

.logo-option span {
    font-size: 10px;
    color: #e4e4e7;
    font-weight: 500;
    text-align: center;
}

.logo-option.active span {
    color: #ffffff;
    font-weight: 600;
}

.logo-preview-container {
    margin-top: 15px;
    padding: 15px;
    border: 2px dashed #667eea;
    border-radius: 10px;
    background: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-preview {
    max-width: 100px;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

.logo-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* ===========================
   GENERATE BUTTON
   =========================== */
.generate-btn {
    background: linear-gradient(270deg, rgb(94 176 239 / 0%) 0%, rgba(28, 24, 94, 1) 50%, rgb(94 176 239 / 0%) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    width: 100%;
    position: relative;
    transition: all 0.3s
    ease;
}
.generate-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.00) 0%, rgba(34, 211, 238, 0.90) 50%, rgba(34, 211, 238, 0.00) 100%);
}
.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: rgba(102, 126, 234, 0.45) 0px 25px 20px -20px;
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===========================
   QR OUTPUT SECTION
   =========================== */
.qr-output-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.qr-container {
    margin: 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.qr-placeholder {
    border: none;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: transparent;
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-animation {
    width: 300px;
    height: 300px;
    position: relative;
    border: 2px solid #667eea;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    overflow: hidden;
}

.qr-pattern {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background-image:
            repeating-linear-gradient(
                    90deg,
                    #667eea 0px,
                    #667eea 10px,
                    transparent 10px,
                    transparent 20px
            ),
            repeating-linear-gradient(
                    0deg,
                    #667eea 0px,
                    #667eea 10px,
                    transparent 10px,
                    transparent 20px
            );
    opacity: 0.3;
    border-radius: 8px;
    animation: qrPulse 3s ease-in-out infinite;
}

.qr-corners {
    position: absolute;
}

.qr-corner {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    position: absolute;
    animation: cornerPulse 2s ease-in-out infinite;
}

.qr-corner.top-left {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
    animation-delay: 0s;
}

.qr-corner.top-right {
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
    animation-delay: 0.5s;
}

.qr-corner.bottom-left {
    bottom: 15px;
    left: 15px;
    border-right: none;
    border-top: none;
    animation-delay: 1s;
}

.qr-corner.bottom-right {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
    animation-delay: 1.5s;
}

.qr-text {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

@keyframes qrPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

@keyframes cornerPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

#qrcode {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    display: none;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
    height: 300px;
}

/* ===========================
   DOWNLOAD BUTTONS
   =========================== */
.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.2s;
    flex-wrap: wrap;
}

.download-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}


.download-btn {
    padding: 12px 25px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 140px;
    }

    .qr-output-section {
        min-height: 300px;
    }

    .logo-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .style-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .color-controls {
        gap: 15px;
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        justify-content: start;
        align-items: center;
    }

    .download-buttons {
        flex-direction: column;
    }

    .logo-options {
        grid-template-columns: repeat(2, 1fr);
    }
}
    .hero-content {
        padding-top: 150px !important;
        max-width: 100% !important;
        min-height: 1200px !important;
        justify-content: start !important;
    }
.hero-gradient{
    min-height: 1200px !important;
}
@media (max-width: 768px) {
    .hero-content {
        padding-top: 130px !important;
    }
    .main-content {
        background: none;
        -webkit-backdrop-filter: blur(0);
        backdrop-filter: blur(0);
        padding: 15px;
        border-radius: 0;
    }
}
