﻿:root {
     /* Color Variables (HEX) */
     --primary-color: #4361ee;
     --secondary-color: #3f37c9;
     --accent-color: #4895ef;
     --light-color: #f8f9fa;
     --dark-color: #212529;
     --success-color: #4cc9f0;
     --warning-color: #f72585;
     
     /* Color Variables (RGB) */
     --primary-rgb: 67, 97, 238;
     --secondary-rgb: 63, 55, 201;
     --accent-rgb: 72, 149, 239;
     --light-rgb: 248, 249, 250;
     --dark-rgb: 33, 37, 41;
     --success-rgb: 76, 201, 240;
     
     /* Design Tokens */
     --border-radius: 8px;
     --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
     --transition: all 0.3 ease;
     
     /* Spacing (Optional) */
     --space-sm: 0.5rem;
     --space-md: 1rem;
     --space-lg: 1.5rem;
     --space-xl: 2rem;
}

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }

 body {
     background-color: #eaf6ff;
     color: var(--dark-color);
     line-height: 1.6;
 }

header {
     background: rgba(110, 142, 251, 0.85); /* Semi-transparent solid color */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);s
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    /* Remove backdrop-filter if you want true transparency */
    color: white;
}

 .container {
     width: 90%;
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 15px;
 }

 .custom-field {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}

.custom-field select {
    width: 150px;
    min-width: 160px;
    padding-right: 20px;
    font-size: 0.9rem;
}

.custom-field input {
    flex: 1;
}

 .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
        }

 .logo {
     font-size: 1.8rem;
     font-weight: 700;
     color: #333;
     text-decoration: none;
 }

 .logo span {
     color: white;
 }

 nav ul {
     display: flex;
     list-style: none;
 }

 nav ul li {
     margin-left: 30px;
 }

 nav ul li a {
     color: #555;
     text-decoration: none;
     font-weight: 500;
     transition: var(--transition);
     padding: 0.5rem 0;
     position: relative;
 }

 nav ul li a:hover {
     color: var(--accent-color);
 }

nav ul li a::after {
    display: none;
}

 nav ul li a:hover::after {
     width: 100%;
 }


 .hero {
    padding: 0;
    text-align: center;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 2rem;
}

 .hero-content {
    padding: 1rem 0;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

 .hero h1 {
     font-size: 2.5rem;
     margin-bottom: 1rem;
     color: var(--dark-color);
 }

 .hero p {
    font-size: 1.1rem;
    color: #555;
    margin: 0 auto;
}

 /* Enhanced Button Styles */
 .btn-container {
     display: flex;
     gap: 2rem;
     justify-content: center;
     margin-top: 3rem;
     flex-wrap: wrap;
 }

 .generator-btn {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     background: white;
     border-radius: var(--border-radius);
     padding: 2rem;
     width: 330px;
     height: 250px;
     box-shadow: var(--box-shadow);
     transition: var(--transition);
     text-decoration: none;
     border: 2px solid var(--accent-color);
 }

 .generator-btn:hover {
     transform: translateY(-8px);
     box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
     background: linear-gradient(to bottom right, #f8f9fa, #eaf6ff);
 }

 .btn-icon {
     font-size: 3rem;
     margin-bottom: 1rem;
     color: var(--primary-color);
 }

 .btn-title {
     font-size: 1.4rem;
     font-weight: 600;
     margin-bottom: 0.75rem;
     color: var(--dark-color);
 }

 .btn-description {
     font-size: 0.95rem;
     color: #555;
     text-align: center;
     line-height: 1.4;
 }

 .features {
     padding: 4rem 0;
     background-color: white;
 }

 .features h2 {
     text-align: center;
     margin-bottom: 3rem;
     color: var(--dark-color);
     font-size: 2rem;
 }

 .features-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 2rem;
 }

 .feature-card {
     background-color: var(--light-color);
     padding: 2rem;
     border-radius: var(--border-radius);
     text-align: center;
     transition: var(--transition);
 }

 .feature-card:hover {
     transform: translateY(-5px);
     box-shadow: var(--box-shadow);
 }

 .feature-icon {
     font-size: 2.5rem;
     color: var(--primary-color);
     margin-bottom: 1rem;
 }

 .feature-card h3 {
     margin-bottom: 1rem;
     color: var(--dark-color);
 }

 footer {
     background-color: var(--dark-color);
     color: white;
     padding: 3rem 0 1.5rem;
 }

 .footer-content {
     display: flex;
     flex-wrap: wrap;
     justify-content: space-between;
     gap: 2rem;
     margin-bottom: 2rem;
 }

 .footer-column {
     flex: 1;
     min-width: 200px;
 }

 .footer-column h3 {
     margin-bottom: 1.5rem;
     font-size: 1.2rem;
     color: var(--accent-color);
 }

 .footer-column ul {
     list-style: none;
 }

 .footer-column ul li {
     margin-bottom: 0.75rem;
 }

 .footer-column ul li a {
     color: #ddd;
     text-decoration: none;
     transition: var(--transition);
 }

 .footer-column ul li a:hover {
     color: var(--accent-color);
     padding-left: 5px;
 }

 .copyright {
     text-align: center;
     padding-top: 1.5rem;
     border-top: 1px solid #444;
     color: #aaa;
     font-size: 0.9rem;
 }

/* ======================
   Generator Tool Styling
   ====================== */
.tool-container {
    max-width: 600px;
    margin: 1rem auto 2rem auto; /* Changed from 2rem auto */
    padding: 2rem 2.5rem; /* Reduced top padding */
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    position: relative;
    
}

.tool-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-card h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
    color: var(--dark-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}



/* Enhanced Button Styles */
.btn {
    position: relative;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
    text-align: center;
    text-transform: uppercase;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

.btn:hover::after {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
}

/* Pulse animation on page load */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.9);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 13px rgba(var(--primary-rgb), 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

.btn {
    animation: pulse 1.5s ease-out 1.5s 1;
}

/* Arrow icon animation */
.btn::before {
    content: '→';
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::before {
    right: 1rem;
    opacity: 1;
}

.btn span {
    display: inline-block;
    transition: var(--transition);
}

.btn:hover span {
    transform: translateX(-0.5rem);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-block {
    width: auto; /* Changed from 100% to auto */
    padding: 1rem 2rem; /* More horizontal padding */
    display: inline-block; /* Makes it only as wide as its content */
    margin: 0 auto; /* Centers the button */
}

.download-btn {
    background: linear-gradient(135deg, var(--success-color), #3aa8d8);
    margin-top: 1.5rem;
}

.result-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(var(--light-rgb), 0.5);
    border-radius: var(--border-radius);
    border: 1px dashed rgba(var(--primary-rgb), 0.2);
    text-align: center;
}

.result-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.result-placeholder p {
    color: #777;
    font-size: 0.9rem;
    margin-top: 1rem;
}

canvas {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    background: white;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

 @media (max-width: 768px) {
     .header-content {
         flex-direction: column;
         text-align: center;
     }

     nav ul {
         margin-top: 1rem;
         justify-content: center;
     }

     nav ul li {
         margin: 0 0.75rem;
     }

     .hero h1 {
         font-size: 2rem;
     }

     .generator-btn {
         width: 100%;
         height: auto;
         padding: 1.5rem;
     }
 }

 @keyframes fadeIn {
     from { opacity: 0; transform: translateY(20px); }
     to { opacity: 1; transform: translateY(0); }
 }

 @keyframes scaleUp {
    from { 
        transform: scale(0.7);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

 .feature-card {
     animation: fadeIn 0.5s ease-out forwards;
 }

 .feature-card:nth-child(2) {
     animation-delay: 0.1s;
 }

 .feature-card:nth-child(3) {
     animation-delay: 0.2s;
 }

 .generator-btn {
     animation: fadeIn 0.6s ease-out forwards;
 }

 /* Add this to your existing animations */
.blog-animate {
    animation: blogFadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes blogFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 /* QR Types Page Styles */
.qr-types-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

/* Replace the existing .qr-types-grid styles with this */
.qr-types-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


.qr-type-btn {
    flex: 0 0 250px; /* Fixed width but can grow if needed */
    max-width: 300px;
}

.qr-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid var(--accent-color);
    text-align: center;
    height: 100%;
    animation: scaleUp 0.5s ease-out forwards;
    opacity: 0;
}

.qr-type-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.15);
    background: linear-gradient(135deg, white, var(--light-color));
}

.qr-type-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Add this right after the existing .qr-type-icon styles */
.qr-type-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    min-height: 48px; /* Add this line */
    display: flex; /* Add this line */
    align-items: center; /* Add this line */
    justify-content: center; /* Add this line */
    width: 100%; /* Add this line */
}

/* Add this new rule below the .qr-type-icon styles */
.qr-type-btn .qr-type-icon {
    font-size: 2.5rem !important;
    line-height: 1;
}

.qr-type-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.qr-type-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Add this right after the existing .qr-type-desc styles */
.qr-types-container {
    text-align: center;
}

.qr-types-grid {
    justify-items: center;
}

.qr-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* These ensure the inner elements are properly centered */
.qr-type-icon, 
.qr-type-title, 
.qr-type-desc {
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
   
/* Replace the existing .qr-types-grid styles with this */
.qr-types-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Keep all existing .qr-type-btn styles but add this */
.qr-type-btn {
    flex: 0 0 250px; /* Fixed width but can grow if needed */
    max-width: 300px;

}

/* Add icon styling for buttons */
.btn i {
    margin-right: 8px;
    font-size: 0.9em;
}

/* Optional: Add animation when generating */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.generating i {
    animation: spin 1s linear infinite;
}

/* Download options styling */
.download-options {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--success-color), #3aa8d8);
    margin-top: 0;
}

.download-btn i {
    margin-right: 5px;
}

@media (max-width: 480px) {
    .download-options {
        flex-direction: column;
        align-items: center;
    }
}
/* Dynamic Form Styling */
#dynamic-form-fields .form-group {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.wifi-field, .crypto-field {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Blog Animation Styles */
.blog-animate {
    animation: blogFadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes blogFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.special-type {
    position: relative;
    border: 2px solid var(--success-color);
    background: linear-gradient(135deg, white, rgba(var(--success-rgb), 0.1));
}

.special-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--success-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.special-type:hover {
    background: linear-gradient(135deg, white, rgba(var(--success-rgb), 0.2));
    border-color: var(--success-color);
}

/* Staggered delays for barcode buttons */
.qr-types-grid a:nth-child(1) {
    animation-delay: 0.1s;
}

.qr-types-grid a:nth-child(2) {
    animation-delay: 0.2s;
}

.qr-types-grid a:nth-child(3) {
    animation-delay: 0.3s;
}

.qr-types-grid a:nth-child(4) {
    animation-delay: 0.4s;
}


