/* Base Variables (Cyber Theme) */
:root {
    --bg-gradient-1: #050b14;
    --bg-gradient-2: #0a192f;
    --bg-gradient-3: #020c1b;
    --bg-gradient-4: #0f172a;
    
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-accent: #64ffda; /* Neon cyan/green */

    --card-bg: rgba(10, 25, 47, 0.4);
    --card-border: rgba(100, 255, 218, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: linear-gradient(-45deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3), var(--bg-gradient-4));
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

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

.gradient-text {
    background: linear-gradient(to right, #64ffda 0%, #00b4d8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-accent { color: var(--text-accent); }
.text-green { color: #10b981; }

.hero-section {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    animation: holoReveal 1s ease-out forwards;
    opacity: 0;
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    padding: 0 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
}
.glass-card:hover {
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 40px -10px rgba(100, 255, 218, 0.1);
}

/* Main App Layout */
.qr-app-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    width: 100%;
    margin-bottom: 2rem;
    animation: holoReveal 1.2s ease-out 0.2s forwards;
    opacity: 0;
}

/* Left Side: Forms */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tabs */
.qr-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    padding-bottom: 1rem;
}

.tab-btn {
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.tab-btn:hover {
    background: rgba(100, 255, 218, 0.05);
    border-color: rgba(100, 255, 218, 0.2);
    color: var(--text-primary);
}

.tab-btn.active {
    background: rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.5);
    color: var(--text-accent);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.1);
}

/* Forms Content */
.forms-container {
    flex-grow: 1;
}

.qr-form {
    display: none;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.3s ease-out forwards;
}

.qr-form.active {
    display: flex;
}

.qt-form label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: -0.5rem;
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.input-field:focus {
    border-color: var(--text-accent);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.textarea-field {
    resize: vertical;
    min-height: 80px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--text-accent);
    border-color: var(--text-accent);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #0f172a;
    font-size: 12px;
}

/* Right Side: Preview */
.preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.preview-section h3 {
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
}

.qr-frame {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    aspect-ratio: 1/1;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4), inset 0 0 10px rgba(100, 255, 218, 0.2);
    transition: var(--transition);
    border: 2px solid var(--text-accent);
}

.qr-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #64ffda;
    text-align: center;
    padding: 1rem;
    background: rgba(10, 25, 47, 0.9);
    border-radius: 14px;
    overflow: hidden;
}

.qr-placeholder::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #64ffda;
    box-shadow: 0 0 15px 5px rgba(100, 255, 218, 0.5);
    animation: scanLine 3s ease-in-out infinite;
}

.qr-placeholder i {
    font-size: 3rem;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

#qrcode {
    display: none;
}

#qrcode img {
    width: 100%;
    height: 100%;
}

/* Buttons */
.action-btn {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.4);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.7);
}

.action-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.action-btn:disabled {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.2);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.action-btn.success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}
.action-btn.success:hover:not(:disabled) {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.7);
}

/* Language Selector */
.language-selector-container {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

.language-dropdown {
    background: rgba(10, 25, 47, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--text-accent);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    backdrop-filter: blur(10px);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364ffda%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    transition: var(--transition);
}

.language-dropdown:hover {
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}

.language-dropdown option {
    background: var(--bg-gradient-3);
    color: white;
}

/* SEO Content Section */
.secondary-card {
    width: 100%;
    margin-bottom: 2rem;
}

.secondary-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.secondary-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.secondary-card ul {
    list-style: none;
}

.secondary-card li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.secondary-card li i {
    margin-top: 0.3rem;
}

/* Ad Spaces Placements */
.ad-space {
    background: rgba(10, 25, 47, 0.4);
    border: 1px dashed rgba(100, 255, 218, 0.2);
    color: rgba(100, 255, 218, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.header-ad { width: 100%; max-width: 728px; height: 90px; margin-top: 1rem; }
.footer-ad { width: 100%; max-width: 728px; height: 90px; margin-bottom: 2rem; }

.side-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    display: none;
}
.left-ad { left: 1rem; }
.right-ad { right: 1rem; }

/* Generic Footer */
.main-footer {
    padding: 3rem 1.5rem;
    width: 100%;
    margin-top: auto;
    background: rgba(10, 25, 47, 0.4);
    border-top: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-links a { color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--text-accent); text-shadow: 0 0 8px rgba(100, 255, 218, 0.5); }
.footer-links .separator { color: rgba(100, 255, 218, 0.2); }

.social-links { display: flex; gap: 1.2rem; font-size: 1.5rem; }
.social-links a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 5px;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(100, 255, 218, 0.2);
}
.social-links a:hover {
    color: var(--bg-gradient-1);
    background: var(--text-accent);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
}

.copyright { text-align: center; color: var(--text-secondary); font-size: 0.85rem; opacity: 0.8; }
.agency-link { color: var(--text-accent); text-decoration: none; font-weight: 600; }
.agency-link:hover { text-shadow: 0 0 8px rgba(100, 255, 218, 0.5); }

/* Responsive */
@media (min-width: 1400px) {
    .side-ad { display: flex; }
}

@media (max-width: 900px) {
    .qr-app-layout {
        grid-template-columns: 1fr;
    }
    .preview-section {
        order: -1; 
    }
}

@media (max-width: 768px) {
    .glass-card { padding: 1.5rem; border-radius: 12px; }
    .header-ad, .footer-ad { height: 100px; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* SEO-friendly Hardware Accelerated Animations */
@keyframes holoReveal {
    0% { 
        opacity: 0; 
        transform: translateY(20px) scale(0.98);
        filter: blur(10px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes scanLine {
    0%, 100% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(220px); opacity: 1; }
    90% { opacity: 0; }
}
