/* --- Variables & Reset --- */
:root {
    --bg-dark: #050505;
    --card-bg: rgba(20, 20, 20, 0.6); /* Semi-transparent black */
    --gold: #D4AF37; /* Luxury Gold */
    --gold-hover: #F6cf57;
    --text-main: #f0f0f0;
    --text-muted: #aaaaaa;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; outline: none; }

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    overflow: hidden;
}

/* --- Background Animation (Morph Feel) --- */
.background-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
}

/* Images Update Here */
.bg-1 {
    background-image: url('https://github.com/ShivHanda/QR-Generator/blob/main/bg2.jpeg?raw=true'); 
    animation: fadeZoom 16s infinite alternate;
}
.bg-2 {
    background-image: url('https://github.com/ShivHanda/QR-Generator/blob/main/bg1.jpeg?raw=true'); 
    animation: fadeZoom 16s infinite alternate-reverse;
    opacity: 0;
}

.dark-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%);
}

/* Simple CSS trick for continuous morph/fade */
@keyframes fadeZoom {
    0% { opacity: 1; transform: scale(1); }
    45% { opacity: 1; transform: scale(1.05); }
    55% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.15); }
}

/* --- The Glass Card --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px); /* This creates the glass effect */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

h1 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 2.5rem;
    margin: 0 0 10px 0;
}

.gold-text { color: var(--gold); }

p { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }

/* --- Inputs & Buttons --- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    color: var(--gold);
    font-size: 1rem;
    text-align: center;
    transition: 0.3s;
}

input:focus {
    border-color: var(--gold);
    background: rgba(0, 0, 0, 0.4);
}

button {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: #000;
    border: none;
    padding: 15px;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* --- QR Output Area --- */
.qr-output {
    margin-top: 2rem;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
    padding: 20px;
}

.placeholder-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Generated Image Styling */
.qr-output img {
    border: 5px solid #fff; /* White border looks crisp */
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); /* Gold Glow */
}
