@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Rajdhani:wght@500;700&display=swap');

@keyframes lightningFlash {
    0%, 100% {
        text-shadow: 0 0 10px #ffe600, 0 0 20px #ffe600, 0 0 40px #ffcc00;
        opacity: 1;
    }
    20%, 80% {
        text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00;
        opacity: 0.95;
    }
    23% {
        text-shadow: none;
        opacity: 0.7;
    }
    25% {
        text-shadow: 0 0 30px #ffffff, 0 0 50px #ffe600;
        opacity: 1;
    }
    75% {
        text-shadow: 0 0 8px #ffcc00;
        opacity: 0.9;
    }
}

@keyframes textShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 230, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 230, 0, 0.6); }
}

@keyframes fadeIn {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #050505;
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(5, 5, 5, 0.95)), url('https://images6.alphacoders.com/104/thumb-1920-1040994.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    padding: 40px 20px;
    overflow-x: hidden;
}

header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-out;
}

.lightning-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #000000 0%, #ffea00 25%, #ffffff 50%, #ffea00 75%, #000000 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lightningFlash 4s linear infinite, textShimmer 4s linear infinite;
    display: inline-block;
}

.tagline {
    color: #cccccc;
    margin: 10px auto 0;
    max-width: 700px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.card-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 3px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease-out;
}

.card-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(#ffe600, #111111, #ffcc00, #000000, #ffe600);
    animation: rotateBorder 6s linear infinite;
    z-index: 1;
}

.container {
    position: relative;
    width: 100%;
    background: #0d0d0d;
    border-radius: 14px;
    padding: 40px 30px;
    z-index: 2;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: span 2;
    margin-top: 10px;
}

label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffe600;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

input, select {
    background: #141414;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 14px;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: #ffe600;
    box-shadow: 0 0 12px rgba(255, 230, 0, 0.25);
    background: #1a1a1a;
}

#pasteArea {
    border: 2px dashed #ffcc00;
    background: #141414;
    border-radius: 8px;
    padding: 35px;
    text-align: center;
    color: #cccccc;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#pasteArea:focus {
    border-color: #ffffff;
    background: #1a1a1a;
    box-shadow: 0 0 10px rgba(255, 230, 0, 0.15);
}

#previewContainer img {
    max-width: 100%;
    max-height: 280px;
    margin-top: 20px;
    border-radius: 8px;
    border: 2px solid #ffe600;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 40px;
}

.btn-submit, .btn-back {
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background: linear-gradient(90deg, #ffe600, #ffcc00);
    color: #000000;
    box-shadow: 0 4px 20px rgba(255, 230, 0, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 230, 0, 0.5);
    background: linear-gradient(90deg, #ffffff, #ffe600);
}

.btn-back {
    background: #141414;
    border: 1px solid #333333;
    color: #ffffff;
}

.btn-back:hover {
    background: #222222;
    border-color: #ffe600;
    color: #ffe600;
    transform: translateY(-2px);
}

.site-footer {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    background: rgba(13, 13, 13, 0.85);
    border: 1px solid #222222;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    animation: fadeIn 1s ease-out;
}

.footer-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    background: #ffe600;
    color: #000000;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    animation: pulseGlow 2.5s infinite ease-in-out;
}

.footer-text {
    font-weight: 700;
    color: #cccccc;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .full-width {
        grid-column: span 1;
    }
    .action-buttons {
        grid-template-columns: 1fr;
    }
    body {
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        flex-direction: column;
        gap: 8px;
    }
}
