:root {
    --bg-color: #050b14;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-cyan: #00e5ff;
    --accent-blue: #2563eb;
    --glass-bg: rgba(10, 15, 30, 0.45);
    --glass-border: rgba(0, 229, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* subtle background pattern to complement canvas overlay */
    background-image: radial-gradient(circle at center, rgba(10, 20, 40, 0.8) 0%, var(--bg-color) 100%);
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 15s infinite alternate ease-in-out;
    pointer-events: none;
}

.top-left {
    top: -15%;
    left: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 60%);
}

.bottom-right {
    bottom: -15%;
    right: -15%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 60%);
    animation-delay: -7s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 80px) scale(1.15);
    }
}

.container {
    max-width: 900px;
    width: 100%;
    padding: 3rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    z-index: 1;
}

.hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 5vh;
}

.glitch-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: white;
    text-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
    letter-spacing: 4px;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-title::before {
    left: 4px;
    text-shadow: -2px 0 rgba(255, 0, 85, 0.8);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 4s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: -4px;
    text-shadow: -2px 0 rgba(0, 255, 255, 0.8);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 4.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(72px, 9999px, 89px, 0);
    }

    20% {
        clip: rect(23px, 9999px, 43px, 0);
    }

    40% {
        clip: rect(35px, 9999px, 28px, 0);
    }

    60% {
        clip: rect(73px, 9999px, 12px, 0);
    }

    80% {
        clip: rect(67px, 9999px, 96px, 0);
    }

    100% {
        clip: rect(91px, 9999px, 7px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(12px, 9999px, 56px, 0);
    }

    20% {
        clip: rect(2px, 9999px, 45px, 0);
    }

    40% {
        clip: rect(23px, 9999px, 60px, 0);
    }

    60% {
        clip: rect(67px, 9999px, 56px, 0);
    }

    80% {
        clip: rect(56px, 9999px, 34px, 0);
    }

    100% {
        clip: rect(90px, 9999px, 45px, 0);
    }
}

.subtitle-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--accent-cyan);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(4px);
}

.hero-image-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.4);
    animation: pulse-glow 3s infinite alternate;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.3), inset 0 0 10px rgba(37, 99, 235, 0.3);
    }

    100% {
        box-shadow: 0 0 50px rgba(0, 229, 255, 0.6), inset 0 0 20px rgba(37, 99, 235, 0.6);
    }
}

.content-section {
    max-width: 850px;
    text-align: center;
    padding: 0 1rem;
}

.description {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

.description .highlight {
    color: var(--text-primary);
    font-weight: 500;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.capture-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 5vh;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3.5rem 3rem;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 70px -15px rgba(0, 229, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.4);
}

.glass-panel h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.glass-panel p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

#capture-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    background: rgba(5, 10, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem 1.25rem;
    font-size: 1.05rem;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
    background: rgba(5, 10, 20, 0.8);
}

.input-group label {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
    top: 0;
    left: 1rem;
    font-size: 0.8rem;
    background: #0a0f1d;
    padding: 0 0.5rem;
    color: var(--accent-cyan);
    border-radius: 4px;
    transform: translateY(-50%);
}

.input-group input::placeholder {
    color: transparent;
}

.cyber-btn {
    position: relative;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 1.2rem 2rem;
    font-size: 1.05rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cyber-btn span {
    position: relative;
    z-index: 2;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    z-index: 1;
}

.cyber-btn:hover {
    color: var(--bg-color);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
    border-color: transparent;
}

.cyber-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.success-msg {
    color: #4ade80;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    height: 0;
    overflow: hidden;
}

.success-msg.show {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-top: -0.5rem;
}

.error-msg {
    color: #ef4444;
    /* Neon red */
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    height: 0;
    overflow: hidden;
}

.error-msg.show {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-top: -0.5rem;
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 2.5rem 1.5rem;
    }

    .description {
        text-align: left;
    }

    .glitch-title {
        letter-spacing: 2px;
    }
}