* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%);
    background-attachment: fixed;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 0.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}




.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}


/* Logo Styles */
.nav-brand {
    flex-shrink: 0;
}

.nav-brand a {
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    transform: scale(1.05);
}

.nav-brand svg {
    transition: all 0.3s ease;
    display: block;
}

.nav-brand a:hover svg {
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.6)) drop-shadow(0 0 25px rgba(118, 75, 162, 0.4));
    transform: translateY(-2px);
}


.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-link:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

/* Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* QR Container */
.qr-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1000px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
}

.tool-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Main Layout */
.qr-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Input Section */
.input-section {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.input-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.type-btn {
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.type-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.type-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    color: white;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group.hidden {
    display: none;
}

.input-label {
    display: block;
    font-weight: 500;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.input-field {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    color: white;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-field:focus {
    outline: none;
    border-color: white;
    background: rgba(0, 0, 0, 0.3);
}

.textarea-field {
    resize: vertical;
    min-height: 100px;
}

/* Customization Section */
.customization-section {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.custom-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.custom-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.custom-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.custom-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-value {
    font-weight: 600;
    color: white;
}

.custom-color {
    width: 100%;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    background: transparent;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generate-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Output Section */
.output-section {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.output-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.qr-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 2rem;
    min-height: 300px;
}

.placeholder-text {
    text-align: center;
    color: #999;
}

.placeholder-text i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder-text p {
    font-size: 1.1rem;
}

.download-section {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.download-section.hidden {
    display: none;
}

.download-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 5px 10px rgba(102, 126, 234, 0.6));
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
    transform: translateY(-2px);
}

/* Tool Navigation Buttons */
.tool-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    z-index: 999;
    max-width: 120px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tool-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.tool-nav-btn.prev {
    left: 20px;
}

.tool-nav-btn.next {
    right: 20px;
}

.tool-nav-btn i {
    font-size: 1.5rem;
}

.tool-nav-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.tool-nav-name {
    font-size: 0.7rem;
    opacity: 0.7;
    line-height: 1.2;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.6);
}

.scroll-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .nav {
        gap: 0.8rem;
    }




    .logo {
        font-size: 1.2rem;
    }


/* Logo Styles */
.nav-brand {
    flex-shrink: 0;
}

.nav-brand a {
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    transform: scale(1.05);
}

.nav-brand svg {
    transition: all 0.3s ease;
    display: block;
}

.nav-brand a:hover svg {
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.6)) drop-shadow(0 0 25px rgba(118, 75, 162, 0.4));
    transform: translateY(-2px);
}


    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        flex-wrap: nowrap;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        margin-top: 1rem;
        border-radius: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        font-size: 1rem;
        white-space: normal;
        border-radius: 0;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .qr-container {
        padding: 2rem 1.5rem;
    }

    .tool-title {
        font-size: 2rem;
    }

    .qr-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .type-selector {
        grid-template-columns: 1fr;
    }

    .download-section {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tool-nav-btn {
        padding: 0.6rem;
        max-width: 80px;
        font-size: 0.85rem;
        top: auto;
        bottom: 80px;
        transform: none;
    }

    .tool-nav-btn:hover {
        transform: scale(1.05);
    }

    .tool-nav-btn.prev {
        left: 10px;
    }

    .tool-nav-btn.next {
        right: 10px;
    }

    .tool-nav-btn i {
        font-size: 1.2rem;
    }

    .tool-nav-label {
        font-size: 0.65rem;
    }

    .tool-nav-name {
        font-size: 0.6rem;
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .qr-container {
        padding: 1.5rem 1rem;
    }

    .tool-title {
        font-size: 1.8rem;
    }

    .input-section,
    .output-section {
        padding: 1.5rem;
    }
}