/* Base Styles and Variables */
:root {
    --primary-color: #4B0082; /* Dark Purple */
    --primary-light: #6A1B9A;
    --primary-dark: #38006b;
    --accent-color: #9C27B0;
    --text-color: #333333;
    --text-light: #666666;
    --background: #f0f0f5;
    --card-bg: #ffffff;
    --shadow-light: rgba(255, 255, 255, 0.8);
    --shadow-dark: rgba(75, 0, 130, 0.15);
    --success: #4CAF50;
    --error: #F44336;
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 80px 0;
}

/* Neumorphic Elements */
.neumorphic {
    background: var(--background);
    border-radius: var(--border-radius);
    box-shadow: 
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
}

.neumorphic-inset {
    background: var(--background);
    border-radius: var(--border-radius);
    box-shadow: 
        inset 8px 8px 16px var(--shadow-dark),
        inset -8px -8px 16px var(--shadow-light);
}

/* Header Styles */
header {
    background-color: var(--card-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.menu a:hover:after,
.menu a.active:after {
    width: 100%;
}

.menu a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background) 0%, #e6e6fa 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 500px;
}

/* Generator Section */
.generator {
    padding: 80px 0;
}

.generator-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 
        10px 10px 20px var(--shadow-dark),
        -10px -10px 20px var(--shadow-light);
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.input-section {
    flex: 1;
    min-width: 300px;
}

.output-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.input-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background-color: var(--background);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 
        inset 3px 3px 5px var(--shadow-dark),
        inset -3px -3px 5px var(--shadow-light);
}

.input-group input[type="text"]:focus {
    outline: none;
    box-shadow: 
        inset 5px 5px 8px var(--shadow-dark),
        inset -5px -5px 8px var(--shadow-light);
}

.customization {
    margin-bottom: 30px;
}

.customization h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.color-picker {
    display: flex;
    align-items: center;
}

.color-picker input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    margin-right: 10px;
}

.color-picker span {
    font-size: 0.9rem;
    color: var(--text-light);
}

select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background-color: var(--background);
    border-radius: var(--border-radius);
    font-size: 1rem;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%234B0082" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    box-shadow: 
        inset 3px 3px 5px var(--shadow-dark),
        inset -3px -3px 5px var(--shadow-light);
}

select:focus {
    outline: none;
}

input[type="file"] {
    display: none;
}

.option-group label[for="logo-upload"] {
    display: inline-block;
    padding: 12px 20px;
    background-color: var(--background);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.option-group label[for="logo-upload"]:hover {
    box-shadow: 
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
    transform: translateY(2px);
}

.option-group label[for="logo-upload"]:active {
    box-shadow: 
        inset 3px 3px 5px var(--shadow-dark),
        inset -3px -3px 5px var(--shadow-light);
}

.logo-preview {
    margin-top: 15px;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    background-color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 
        inset 3px 3px 5px var(--shadow-dark),
        inset -3px -3px 5px var(--shadow-light);
}

.logo-preview img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.generate-btn {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.generate-btn i {
    margin-right: 10px;
}

.generate-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 
        7px 7px 14px var(--shadow-dark),
        -7px -7px 14px var(--shadow-light);
}

.generate-btn:active {
    transform: translateY(1px);
    box-shadow: 
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
}

.qr-result {
    width: 100%;
    height: 300px;
    background-color: var(--background);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 
        inset 5px 5px 10px var(--shadow-dark),
        inset -5px -5px 10px var(--shadow-light);
    overflow: hidden;
}

.qr-result .placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
}

.qr-result .placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.qr-result img {
    max-width: 90%;
    max-height: 90%;
}

.download-options {
    display: flex;
    gap: 15px;
    width: 100%;
}

.download-btn {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background-color: var(--background);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.download-btn i {
    margin-right: 8px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        7px 7px 14px var(--shadow-dark),
        -7px -7px 14px var(--shadow-light);
}

.download-btn:active {
    transform: translateY(1px);
    box-shadow: 
        inset 3px 3px 5px var(--shadow-dark),
        inset -3px -3px 5px var(--shadow-light);
}

/* Features Section */
.features {
    padding: 100px 0;
    text-align: center;
}

.features h2 {
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    box-shadow: 
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: var(--background);
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 50px;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

/* Examples Section */
.examples {
    padding: 100px 0;
    background-color: var(--background);
}

.examples h2 {
    text-align: center;
    margin-bottom: 20px;
}

.examples p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-light);
}

.examples-showcase {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
}

.showcase-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius);
    box-shadow:
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
    transition: transform 0.3s ease;
}

.showcase-image:hover {
    transform: scale(1.02);
}

.examples-text {
    flex: 1;
    min-width: 300px;
}

.examples-features {
    margin-top: 20px;
}

.examples-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.examples-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* QR Examples Section for About Page */
.qr-examples {
    margin: 80px 0;
}

.qr-examples h2 {
    text-align: center;
    margin-bottom: 40px;
}

.examples-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.examples-image {
    flex: 1;
    min-width: 300px;
}

.examples-content {
    flex: 1;
    min-width: 300px;
}

.examples-content h3 {
    margin-bottom: 20px;
}

.examples-content p {
    margin-bottom: 20px;
}

.examples-content .btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow:
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.examples-content .btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow:
        7px 7px 14px var(--shadow-dark),
        -7px -7px 14px var(--shadow-light);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
}

.cta h2,
.cta p {
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: white;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-links {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-links h3 {
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-contact {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-contact h3 {
    margin-bottom: 20px;
}

.footer-contact p {
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-image {
        justify-content: center;
    }
    
    .generator-card {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu li {
        margin: 0 0 30px 0;
    }
    
    .menu a {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .generator-card {
        padding: 30px 20px;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .download-options {
        flex-direction: column;
    }
}