@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Orbitron:wght@500;700&display=swap');

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

body{

font-family:'Poppins',sans-serif;

background:#0f172a;

color:white;

overflow-x:hidden;

min-height:100vh;

}

/* LOADER */

#loader{

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

background:#000;

display:flex;

justify-content:center;

align-items:center;

font-size:50px;

font-family:'Orbitron';

z-index:9999;

animation:loaderGlow 2s infinite;

}

@keyframes loaderGlow{

50%{

text-shadow:
0 0 20px cyan,
0 0 40px cyan;

}

}

/* BACKGROUND */

.background-animation{

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

background:

linear-gradient(
-45deg,
#0f172a,
#1e293b,
#0ea5e9,
#7c3aed
);

background-size:400% 400%;

animation:bgMove 15s ease infinite;

z-index:-5;

}

@keyframes bgMove{

0%{
background-position:0% 50%;
}

50%{
background-position:100% 50%;
}

100%{
background-position:0% 50%;
}

}

/* FLOATING CIRCLES */

.circle{

position:fixed;

border-radius:50%;

filter:blur(30px);

opacity:.3;

z-index:-2;

animation:floatBall 10s infinite;

}

.c1{

width:250px;
height:250px;

background:cyan;

top:10%;
left:5%;

}

.c2{

width:300px;
height:300px;

background:violet;

right:5%;
top:50%;

}

.c3{

width:200px;
height:200px;

background:pink;

left:40%;
bottom:10%;

}

@keyframes floatBall{

50%{

transform:
translateY(-50px)
translateX(50px);

}

}

/* NAVBAR */

nav{

display:flex;

justify-content:space-between;

align-items:center;

padding:20px 60px;

background:
rgba(255,255,255,.05);

backdrop-filter:blur(20px);

}

.logo{

font-size:28px;

font-family:'Orbitron';

color:#38bdf8;

}

nav ul{

display:flex;

list-style:none;

gap:30px;

}

nav ul li a{

text-decoration:none;

color:white;

transition:.4s;

}

nav ul li a:hover{

color:#38bdf8;

text-shadow:
0 0 15px cyan;

}

/* HERO */

.hero{

height:80vh;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

text-align:center;

}

.typing{

font-family:'Orbitron';

font-size:65px;

overflow:hidden;

white-space:nowrap;

border-right:4px solid cyan;

width:0;

animation:

typing 4s steps(30,end) forwards,

blink .8s infinite;

}

@keyframes typing{

from{
width:0;
}

to{
width:100%;
}

}

@keyframes blink{

50%{
border-color:transparent;
}

}

.hero p{

font-size:24px;

margin-top:20px;

margin-bottom:30px;

}

/* BUTTON */

button{

padding:15px 30px;

border:none;

border-radius:15px;

background:#38bdf8;

color:white;

font-size:18px;

cursor:pointer;

transition:.4s;

}

button:hover{

transform:
scale(1.1);

box-shadow:
0 0 25px cyan;

}

/* CARDS */

.cards{

display:flex;

justify-content:center;

flex-wrap:wrap;

gap:40px;

padding:50px;

}

.card{

width:280px;

height:280px;

background:
rgba(255,255,255,.08);

backdrop-filter:blur(15px);

border-radius:25px;

text-decoration:none;

color:white;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

transition:.5s;

}

.card:hover{

transform:
translateY(-15px)
scale(1.05);

box-shadow:
0 0 30px cyan;

}

.icon{

font-size:60px;

margin-bottom:15px;

animation:floatIcon 2s infinite;

}

@keyframes floatIcon{

50%{

transform:
translateY(-10px);

}

}

.card h2{

margin-bottom:10px;

}

.card p{

text-align:center;

padding:0 20px;

}

/* COMMON SECTION */

.section{

width:90%;

margin:40px auto;

padding:30px;

background:
rgba(255,255,255,.08);

backdrop-filter:blur(15px);

border-radius:25px;

}

.section h1{

font-family:'Orbitron';

color:#38bdf8;

margin-bottom:20px;

}

.section p{

line-height:1.8;

}

/* INPUTS */

input{

padding:15px;

width:220px;

border:none;

border-radius:15px;

outline:none;

margin:5px;

font-size:16px;

}

/* VISUAL BOXES */

.visual{

display:flex;

justify-content:center;

flex-wrap:wrap;

margin-top:30px;

}

.box{

width:80px;

height:80px;

background:#3b82f6;

border-radius:15px;

display:flex;

justify-content:center;

align-items:center;

font-size:24px;

font-weight:bold;

margin:10px;

animation:pop .4s;

transition:.4s;

}

.box:hover{

transform:scale(1.15);

}

@keyframes pop{

from{

transform:scale(0);

}

to{

transform:scale(1);

}

}

/* SEARCH HIGHLIGHT */

.highlight{

background:#22c55e;

animation:pulse 1s infinite;

}

@keyframes pulse{

50%{

transform:scale(1.2);

box-shadow:
0 0 30px lime;

}

}

#message{

margin-top:20px;

font-size:22px;

font-weight:600;

color:#facc15;

}

/* FOOTER */

footer{

text-align:center;

padding:30px;

font-size:18px;

}.section{

animation:slideUp 1s ease;

}

@keyframes slideUp{

from{

opacity:0;

transform:
translateY(50px);

}

to{

opacity:1;

transform:
translateY(0);

}

}.card::before{

content:"";

position:absolute;

width:0;

height:0;

background:
rgba(255,255,255,.1);

border-radius:50%;

transition:.6s;

}

.card{

position:relative;

overflow:hidden;

}

.card:hover::before{

width:500px;

height:500px;

}/* SUCCESS FLASH */

.success{

animation:
successFlash 1s;

}

@keyframes successFlash{

0%{

background:
rgba(0,255,0,.3);

}

100%{

background:
transparent;

}

}

/* ARRAY BOX GLOW */

.box{

box-shadow:
0 0 15px rgba(0,255,255,.4);

}

.box:hover{

box-shadow:
0 0 30px cyan;

}

/* MESSAGE ANIMATION */

#message{

animation:
fadeMessage .5s;

}

@keyframes fadeMessage{

from{

opacity:0;

transform:
translateY(20px);

}

to{

opacity:1;

transform:
translateY(0);

}

}/* STACK */

.stackArea{

display:flex;

flex-direction:column;

align-items:center;

margin-top:30px;

}

.stackBox{

width:180px;

height:60px;

background:#2563eb;

margin:5px;

display:flex;

justify-content:center;

align-items:center;

font-size:22px;

font-weight:bold;

border-radius:12px;

animation:stackPush .4s;

box-shadow:
0 0 20px rgba(0,255,255,.3);

}

.topBox{

background:#22c55e;

box-shadow:
0 0 25px lime;

}

@keyframes stackPush{

from{

transform:
translateY(-40px);

opacity:0;

}

to{

transform:
translateY(0);

opacity:1;

}

}/* QUEUE */

.queueArea{

display:flex;

justify-content:center;

align-items:center;

flex-wrap:wrap;

margin-top:30px;

}

.queueBox{

width:90px;

height:90px;

background:#2563eb;

margin:10px;

border-radius:15px;

display:flex;

justify-content:center;

align-items:center;

font-size:22px;

font-weight:bold;

animation:queueMove .5s;

box-shadow:
0 0 20px rgba(0,255,255,.4);

}

.frontBox{

background:#22c55e;

box-shadow:
0 0 25px lime;

}

.rearBox{

background:#f97316;

box-shadow:
0 0 25px orange;

}

@keyframes queueMove{

from{

transform:
translateX(-50px);

opacity:0;

}

to{

transform:
translateX(0);

opacity:1;

}

}/* LINKED LIST */

.linkedContainer{

display:flex;

justify-content:center;

align-items:center;

flex-wrap:wrap;

margin-top:40px;

}

.node{

width:90px;

height:90px;

background:#8b5cf6;

border-radius:50%;

display:flex;

justify-content:center;

align-items:center;

font-size:24px;

font-weight:bold;

animation:nodePop .5s;

box-shadow:
0 0 20px rgba(139,92,246,.5);

}

.arrow{

font-size:40px;

margin:15px;

animation:fadeArrow .5s;

}

.nullBox{

padding:20px;

background:#ec4899;

border-radius:15px;

font-weight:bold;

box-shadow:
0 0 20px pink;

}

.highlightNode{

background:#22c55e;

animation:pulseNode 1s infinite;

}

@keyframes nodePop{

from{

transform:scale(0);

opacity:0;

}

to{

transform:scale(1);

opacity:1;

}

}

@keyframes fadeArrow{

from{

opacity:0;

}

to{

opacity:1;

}

}

@keyframes pulseNode{

50%{

transform:scale(1.15);

box-shadow:
0 0 30px lime;

}

}/* TREE */

.treeContainer{

display:flex;

justify-content:center;

flex-wrap:wrap;

margin-top:40px;

}

.treeNode{

width:90px;

height:90px;

background:#9333ea;

border-radius:50%;

display:flex;

justify-content:center;

align-items:center;

font-size:24px;

font-weight:bold;

margin:15px;

animation:treePop .5s;

box-shadow:
0 0 20px rgba(147,51,234,.5);

}

.treeNode:hover{

transform:scale(1.15);

box-shadow:
0 0 30px violet;

}

@keyframes treePop{

from{

transform:scale(0);

opacity:0;

}

to{

transform:scale(1);

opacity:1;

}

}/* GRAPH */

.graphContainer{

display:flex;

justify-content:center;

flex-wrap:wrap;

gap:20px;

margin-top:30px;

}

.vertex{

width:90px;

height:90px;

background:#f97316;

border-radius:50%;

display:flex;

justify-content:center;

align-items:center;

font-size:24px;

font-weight:bold;

cursor:pointer;

animation:vertexPop .5s;

box-shadow:
0 0 20px rgba(249,115,22,.5);

}

.vertex:hover{

transform:scale(1.15);

box-shadow:
0 0 30px orange;

}

.edge{

margin:10px auto;

width:250px;

padding:12px;

text-align:center;

background:#334155;

border-radius:12px;

animation:fadeEdge .5s;

}

@keyframes vertexPop{

from{

transform:scale(0);

opacity:0;

}

to{

transform:scale(1);

opacity:1;

}

}

@keyframes fadeEdge{

from{

opacity:0;

}

to{

opacity:1;

}

}.searchingBox{

animation:
searchMove 1s ease;

}

@keyframes searchMove{

0%{

transform:
translateY(-40px);

opacity:0;

}

100%{

transform:
translateY(0);

opacity:1;

}

}/* SORTING BARS */

.barContainer{

display:flex;

justify-content:center;

align-items:flex-end;

gap:10px;

height:350px;

margin-top:40px;

}

.bar{

width:60px;

background:
linear-gradient(
to top,
#06b6d4,
#3b82f6
);

display:flex;

justify-content:center;

align-items:flex-start;

padding-top:10px;

font-weight:bold;

border-radius:10px 10px 0 0;

animation:growBar .8s ease;

box-shadow:
0 0 20px rgba(59,130,246,.5);

}

@keyframes growBar{

from{

height:0;

opacity:0;

}

to{

opacity:1;

}

}

.bar:hover{

box-shadow:
0 0 30px cyan;

transform:scale(1.05);

}