/* Add/Update these in your style.css */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --secondary: #0ea5e9;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-600: #475569;
}

.hero-home {
    background: radial-gradient(circle at top right, #1e1b4b, #0f172a);
    color: white;
    padding: 120px 0 160px;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: -80px; /* Pulls cards into the hero section */
    position: relative;
    z-index: 20;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}
        * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
        body { background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%); min-height: 100vh; color: var(--dark); overflow-x: hidden; }

        /* Navigation */
        nav { background: var(--glass); backdrop-filter: blur(10px); padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.3); }
        .logo { font-weight: 800; font-size: 1.5rem; color: var(--primary); display: flex; align-items: center; gap: 8px; text-decoration: none; }
        
        .nav-links { display: flex; gap: 25px; align-items: center; }
        .nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.95rem; transition: 0.3s; }
        .nav-links a:hover { color: var(--primary); }
        
        /* Mobile Menu Toggle */
        .menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--dark); }

        /* Containers */
        .container { max-width: 1000px; margin: 20px auto; padding: 0 20px; }
        .hero { text-align: center; margin: 40px 0; }
        .hero h1 { font-size: 2.8rem; margin-bottom: 12px; background: linear-gradient(to right, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; }

        .tab-container { background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05); border: 1px solid white; }
        .tab-nav { display: flex; border-bottom: 1px solid #f1f5f9; }
        .tab-nav button { flex: 1; padding: 18px; border: none; background: #f8fafc; cursor: pointer; font-weight: 700; transition: 0.3s; font-size: 1rem; color: #64748b; }
        .tab-nav button.active { background: white; color: var(--primary); border-bottom: 3px solid var(--primary); }

        .tool-content { padding: 30px; display: none; }
        .tool-content.active { display: block; }
        
        /* Grid Fixes */
        .qr-grid { display: grid; grid-template-columns: 1fr 300px; gap: 30px; }
        .input-group { margin-bottom: 20px; }
        label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.85rem; color: #475569; }
        
        input[type="text"], input[type="url"], select { width: 100%; padding: 14px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 1rem; outline: none; transition: 0.3s; background: #fdfeff; }
        input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }
        
        .action-btn { width: 100%; padding: 16px; border-radius: 12px; border: none; background: var(--primary); color: white; font-weight: 700; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .action-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 15px rgba(79, 70, 229, 0.2); }

        .ad-slot { background: rgba(241, 245, 249, 0.6); border: 1px dashed #cbd5e1; border-radius: 12px; padding: 15px; text-align: center; margin: 20px 0; color: #94a3b8; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }

        /* Responsive UI */
        @media (max-width: 768px) {
            .menu-toggle { display: block; }
            .nav-links { 
                display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; 
                background: white; padding: 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); border-bottom: 1px solid #eee;
            }
            .nav-links.active { display: flex; }
            .qr-grid { grid-template-columns: 1fr; }
            .hero h1 { font-size: 2rem; }
            #qrCanvas { min-height: 300px; margin-top: 20px; }
        }
        /* Professional Spinner / Loader */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Add some disabled button styling */
.action-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
}
#dropZone:hover {
    border-color: var(--primary);
    background: #f1f5f9;
}
/* Animated Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Glassmorphism Card Effect */
.info-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 20px;
    transition: 0.3s;
}
.info-card:hover { transform: scale(1.02); border-color: var(--primary); }

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.float-icon { animation: float 3s ease-in-out infinite; }
