body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#main-screen {
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #317cc5 0%, #09203f 80%, #020e1f 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}


.lines-container {
    position: absolute;
    left: 100px;
    top:45%;
    transform: translateY(-50%);
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    height: 600px;
}

.line {
    position: relative;
    width: 4px;
    height: 100%;
    background-color: #00ffff;
}

.dot {
    position: absolute;
    left: 50%;
    width: 15px;
    height: 15px;
    background-color: #00ffff;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: moveUpDown 2s ease-in-out infinite alternate;
}

.line:nth-child(2) .dot {
    animation-delay: 0.2s;
}
.line:nth-child(3) .dot {
    animation-delay: 0.4s;
}
.line:nth-child(4) .dot {
    animation-delay: 0.8s;
}

.line:nth-child(1) .dot {
    animation-delay: -0s;
}

.line:nth-child(2) .dot {
    animation-delay: -0.5s;
}

.line:nth-child(3) .dot {
    animation-delay: -1s;
}

.line:nth-child(4) .dot {
    animation-delay: -1.5s;
}

@keyframes moveUpDown {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

#dna {
    position: absolute;
    top: 45%;
    left: 350px;
    width: 100px;
    height: 600px;
    transform: translateY(-50%);
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#dna div {
    position: relative;
    width: 160px;
    height: 2px;
    background-color: rgba(255,255,255,0.1);
    transform-style: preserve-3d;
    animation: rotation 4s linear infinite;
    margin: 0;
    padding: 0;
}

#dna div::before, #dna div::after {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 10px;
    height: 10px;
    background-color: #00ffff;
    border-radius: 50%;
}

#dna div::before {
    left: -10px;
}

#dna div::after {
    right: -10px;
}

#dna div:nth-child(1),
#dna div:nth-child(1)::before,
#dna div:nth-child(1)::after {
    animation-delay: 0s;
}

#dna div:nth-child(2),
#dna div:nth-child(2)::before,
#dna div:nth-child(2)::after {
    animation-delay: 0.15s;
}

#dna div:nth-child(3),
#dna div:nth-child(3)::before,
#dna div:nth-child(3)::after {
    animation-delay: 0.3s;
}

#dna div:nth-child(4),
#dna div:nth-child(4)::before,
#dna div:nth-child(4)::after {
    animation-delay: 0.45s;
}
#dna div:nth-child(5),
#dna div:nth-child(5)::before,
#dna div:nth-child(5)::after {
    animation-delay: 0.6s;
}

#dna div:nth-child(6),
#dna div:nth-child(6)::before,
#dna div:nth-child(6)::after {
    animation-delay: 0.75s;
}

#dna div:nth-child(7),
#dna div:nth-child(7)::before,
#dna div:nth-child(7)::after {
    animation-delay: 0.9s;
}

#dna div:nth-child(8),
#dna div:nth-child(8)::before,
#dna div:nth-child(8)::after {
    animation-delay: 1.05s;
}

#dna div:nth-child(9),
#dna div:nth-child(9)::before,
#dna div:nth-child(9)::after {
    animation-delay: 1.2s;
}

#dna div:nth-child(10),
#dna div:nth-child(10)::before,
#dna div:nth-child(10)::after {
    animation-delay: 1.35s;
}

#dna div:nth-child(11),
#dna div:nth-child(11)::before,
#dna div:nth-child(11)::after {
    animation-delay: 1.5s;
}

#dna div:nth-child(12),
#dna div:nth-child(12)::before,
#dna div:nth-child(12)::after {
    animation-delay: 1.65s;
}

#dna div:nth-child(13),
#dna div:nth-child(13)::before,
#dna div:nth-child(13)::after {
    animation-delay: 1.8s;
}

#dna div:nth-child(14),
#dna div:nth-child(14)::before,
#dna div:nth-child(14)::after {
    animation-delay: 1.95s;
}

#dna div:nth-child(15),
#dna div:nth-child(15)::before,
#dna div:nth-child(15)::after {
    animation-delay: 2.1s;
}

#dna div:nth-child(16),
#dna div:nth-child(16)::before,
#dna div:nth-child(16)::after {
    animation-delay: 2.25s;
}

#dna div:nth-child(17),
#dna div:nth-child(17)::before,
#dna div:nth-child(17)::after {
    animation-delay: 2.4s;
}

#dna div:nth-child(18),
#dna div:nth-child(18)::before,
#dna div:nth-child(18)::after {
    animation-delay: 2.55s;
}

#dna div:nth-child(19),
#dna div:nth-child(19)::before,
#dna div:nth-child(19)::after {
    animation-delay: 2.7s;
}

#dna div:nth-child(20),
#dna div:nth-child(20)::before,
#dna div:nth-child(20)::after {
    animation-delay: 2.85s;
}

#dna div:nth-child(21),
#dna div:nth-child(21)::before,
#dna div:nth-child(21)::after {
    animation-delay: 3s;
}

#dna div:nth-child(22),
#dna div:nth-child(22)::before,
#dna div:nth-child(22)::after {
    animation-delay: 3.15s;
}

#dna div:nth-child(23),
#dna div:nth-child(23)::before,
#dna div:nth-child(23)::after {
    animation-delay: 3.3s;
}

#dna div:nth-child(24),
#dna div:nth-child(24)::before,
#dna div:nth-child(24)::after {
    animation-delay: 3.45s;
}

#dna div:nth-child(25),
#dna div:nth-child(25)::before,
#dna div:nth-child(25)::after {
    animation-delay: 3.6s;
}

#dna div:nth-child(26),
#dna div:nth-child(26)::before,
#dna div:nth-child(26)::after {
    animation-delay: 3.75s;
}

#dna div:nth-child(27),
#dna div:nth-child(27)::before,
#dna div:nth-child(27)::after {
    animation-delay: 3.9s;
}

#dna div:nth-child(28),
#dna div:nth-child(28)::before,
#dna div:nth-child(28)::after {
    animation-delay: 4.05s;
}

#dna div:nth-child(29),
#dna div:nth-child(29)::before,
#dna div:nth-child(29)::after {
    animation-delay: 4.2s;
}

#dna div:nth-child(30),
#dna div:nth-child(30)::before,
#dna div:nth-child(30)::after {
    animation-delay: 4.35s;
}

@keyframes rotation {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(359deg);
    }
}
#dna div,
#dna div::before,
#dna div::after {
    animation-name: rotation;
    animation-duration: 4s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}


#dna div:nth-child(1),
#dna div:nth-child(1)::before,
#dna div:nth-child(1)::after { animation-delay: -0s; }

#dna div:nth-child(2),
#dna div:nth-child(2)::before,
#dna div:nth-child(2)::after { animation-delay: -0.15s; }

#dna div:nth-child(3),
#dna div:nth-child(3)::before,
#dna div:nth-child(3)::after { animation-delay: -0.3s; }

#dna div:nth-child(4),
#dna div:nth-child(4)::before,
#dna div:nth-child(4)::after { animation-delay: -0.45s; }

#dna div:nth-child(5),
#dna div:nth-child(5)::before,
#dna div:nth-child(5)::after { animation-delay: -0.6s; }

#dna div:nth-child(6),
#dna div:nth-child(6)::before,
#dna div:nth-child(6)::after { animation-delay: -0.75s; }

#dna div:nth-child(7),
#dna div:nth-child(7)::before,
#dna div:nth-child(7)::after { animation-delay: -0.9s; }

#dna div:nth-child(8),
#dna div:nth-child(8)::before,
#dna div:nth-child(8)::after { animation-delay: -1.05s; }

#dna div:nth-child(9),
#dna div:nth-child(9)::before,
#dna div:nth-child(9)::after { animation-delay: -1.2s; }

#dna div:nth-child(10),
#dna div:nth-child(10)::before,
#dna div:nth-child(10)::after { animation-delay: -1.35s; }

#dna div:nth-child(11),
#dna div:nth-child(11)::before,
#dna div:nth-child(11)::after { animation-delay: -1.5s; }

#dna div:nth-child(12),
#dna div:nth-child(12)::before,
#dna div:nth-child(12)::after { animation-delay: -1.65s; }

#dna div:nth-child(13),
#dna div:nth-child(13)::before,
#dna div:nth-child(13)::after { animation-delay: -1.8s; }

#dna div:nth-child(14),
#dna div:nth-child(14)::before,
#dna div:nth-child(14)::after { animation-delay: -1.95s; }

#dna div:nth-child(15),
#dna div:nth-child(15)::before,
#dna div:nth-child(15)::after { animation-delay: -2.1s; }

#dna div:nth-child(16),
#dna div:nth-child(16)::before,
#dna div:nth-child(16)::after { animation-delay: -2.25s; }

#dna div:nth-child(17),
#dna div:nth-child(17)::before,
#dna div:nth-child(17)::after { animation-delay: -2.4s; }

#dna div:nth-child(18),
#dna div:nth-child(18)::before,
#dna div:nth-child(18)::after { animation-delay: -2.55s; }

#dna div:nth-child(19),
#dna div:nth-child(19)::before,
#dna div:nth-child(19)::after { animation-delay: -2.7s; }

#dna div:nth-child(20),
#dna div:nth-child(20)::before,
#dna div:nth-child(20)::after { animation-delay: -2.85s; }

#dna div:nth-child(21),
#dna div:nth-child(21)::before,
#dna div:nth-child(21)::after { animation-delay: -3s; }

#dna div:nth-child(22),
#dna div:nth-child(22)::before,
#dna div:nth-child(22)::after { animation-delay: -3.15s; }

#dna div:nth-child(23),
#dna div:nth-child(23)::before,
#dna div:nth-child(23)::after { animation-delay: -3.3s; }

#dna div:nth-child(24),
#dna div:nth-child(24)::before,
#dna div:nth-child(24)::after { animation-delay: -3.45s; }

#dna div:nth-child(25),
#dna div:nth-child(25)::before,
#dna div:nth-child(25)::after { animation-delay: -3.6s; }

#dna div:nth-child(26),
#dna div:nth-child(26)::before,
#dna div:nth-child(26)::after { animation-delay: -3.75s; }

#dna div:nth-child(27),
#dna div:nth-child(27)::before,
#dna div:nth-child(27)::after { animation-delay: -3.9s; }

#dna div:nth-child(28),
#dna div:nth-child(28)::before,
#dna div:nth-child(28)::after { animation-delay: -4.05s; }

#dna div:nth-child(29),
#dna div:nth-child(29)::before,
#dna div:nth-child(29)::after { animation-delay: -4.2s; }

#dna div:nth-child(30),
#dna div:nth-child(30)::before,
#dna div:nth-child(30)::after { animation-delay: -4.35s; }

.footer-ruler {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 50px;
}

.footer-ruler-line {
    width: 100%;
    height: 2px;
    background-color: #00ffff;
    position: absolute;
    bottom: 0;
    left: 0;
}

.ruler-lines {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ruler-lines div {
    width: 5px;
    height: 15px;
    background-color: #00ffff;
}

.ruler-lines div:nth-child(5n) {
    height: 30px;
}

.animated-bars {
    position: absolute;
    bottom: 40px;
    left: calc(50% + 580px);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 40px;
}

.animated-bars .bar {
    width: 8px;
    background-color: #00ffff;
    animation: barAnimation 1s ease-in-out infinite alternate;
}

.animated-bars .bar:nth-child(1){ animation-delay: -0.2s; }
.animated-bars .bar:nth-child(2){ animation-delay: -0.4s; }
.animated-bars .bar:nth-child(3){ animation-delay: -0.6s; }
.animated-bars .bar:nth-child(4){ animation-delay: -0.8s; }
.animated-bars .bar:nth-child(5){ animation-delay: -1s; }
.animated-bars .bar:nth-child(6){ animation-delay: -1.2s; }
.animated-bars .bar:nth-child(7){ animation-delay: -1.4s; }
.animated-bars .bar:nth-child(8){ animation-delay: -1.6s; }

@keyframes barAnimation {
    0% { height: 10px; }
    100% { height: 40px; }
}

.face-scan-container {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 400px;
}

.large-circle {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    border: 15px dashed #00ffff;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /*animation: rotateCircle 5s linear infinite;*/
}

.scanning-circle {
    position: absolute;
    width: 520px; /* 🔹 Katta radius */
    height: 520px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid cyan;
    border-left: 3px solid cyan;
    animation: spin 2s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.scanning-circle-reverse {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom: 2px solid cyan;
    border-right: 2px solid cyan;
    animation: spin-reverse 3s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hud-shape {
    position: absolute;
    width: 25px;
    height: 600px;
    border: 4px solid #00ffff;
    background-color: #00ffff;
}

.left-hud {
    left: -120px;
}

.right-hud {
    right: -120px;
    transform: scaleX(-1);
}

/*@keyframes rotateCircle {*/
/*    from { transform: rotate(0deg); }*/
/*    to { transform: rotate(360deg); }*/
/*}*/

.hud-container {
    position: absolute;
    top: 50%;
    right: 200px;
    transform: translateY(-50%) translateX(100px);
    width: 380px;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 0 20px cyan, inset 0 0 15px cyan;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.hud-container.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.hud-frame {
    width: 85%;
    height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid cyan;
    border-radius: 8px;
    box-shadow: inset 0 0 10px cyan;
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.05));
    text-align: center;
    position: relative;
}

.hud-frame p {
    font-size: 22px;
    color: cyan;
    font-family: "Arial", sans-serif;
    font-weight: bold;
    text-shadow: 0 0 10px cyan, 0 0 20px cyan;
    animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 0.8; text-shadow: 0 0 10px cyan; }
    100% { opacity: 1; text-shadow: 0 0 20px cyan, 0 0 30px cyan; }
}

.hidden {
    display: none;
}
.register-button, .scan-button {
    position: absolute;
    bottom: 150px;
    background: cyan;
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 15px 30px;
    font-size: 18px;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 0 15px cyan, 0 0 40px rgba(0, 255, 255, 0.5);
    text-shadow: 0 0 10px cyan;
    outline: none;
}

.register-button {
    left: 39%;
}

.scan-button {
    left: 53%;
}

.register-button:hover, .scan-button:hover {
    background: white;
    color: black;
    box-shadow: 0 0 25px cyan, 0 0 50px rgba(0, 255, 255, 0.8);
    text-shadow: 0 0 20px cyan;
    transform: scale(1.05);
}

@keyframes neon-glow {
    0% { box-shadow: 0 0 15px cyan, 0 0 30px rgba(0, 255, 255, 0.5); }
    50% { box-shadow: 0 0 20px cyan, 0 0 40px rgba(0, 255, 255, 0.8); }
    100% { box-shadow: 0 0 15px cyan, 0 0 30px rgba(0, 255, 255, 0.5); }
}

.register-button, .scan-button {
    animation: neon-glow 1.5s infinite alternate;
}

.neon-stripes {
    position: absolute;
    right: 40px;
    width: 30px;
    height: 65vh;
    background: repeating-linear-gradient(
        -45deg,
        cyan,
        cyan 2px,
        transparent 2px,
        transparent 8px
    );
    box-shadow: 0 0 20px cyan, 0 0 40px rgba(0, 255, 255, 0.5);
    animation: flicker-neon 1.5s infinite alternate;
}

@keyframes flicker-neon {
    0% {
        opacity: 0.7;
        box-shadow: 0 0 10px cyan, 0 0 30px rgba(0, 255, 255, 0.5);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 20px cyan, 0 0 50px rgba(0, 255, 255, 0.8);
    }
}

.loading-screen {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, #001f3f, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
}

.loading-screen.visible {
    opacity: 1;
    visibility: visible;
}

.stars, .twinkling {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.stars {
    background: url('https://www.script-tutorials.com/demos/360/images/stars.png') repeat top center;
    z-index: 1;
}

.twinkling {
    background: url('https://www.script-tutorials.com/demos/360/images/twinkling.png') repeat top center;
    animation: move-twink-back 10s linear infinite;
    z-index: 2;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -1000px 1000px; }
}

.galaxy-text {
    color: cyan;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px cyan;
    animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.hidden {
    display: none;
}


.registration-container {
    position: absolute;
    right: 200px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 550px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 0 20px cyan, inset 0 0 15px cyan;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: auto;
    padding: 20px;
    text-align: center;
}

.registration-container.visible {
    opacity: 1;
    visibility: visible;
}
