kelompok06-2048/Homepage.css
Evelyn Sucitro c373403b77 Update
2025-12-16 09:47:13 +07:00

106 lines
2.5 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@400;700;900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Exo 2', sans-serif;
background: radial-gradient(circle at 20% 20%, #3b0066, #0c001a 70%);
color: #fff;
overflow-x: hidden;
min-height: 100vh;
position: relative;
display: flex;
flex-direction: column;
margin: 0;
padding: 0;
max-width: 100vw;
}
/* Animated Background Grid */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
linear-gradient(rgba(0, 234, 255, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 0, 255, 0.03) 1px, transparent 1px);
background-size: 50px 50px;
animation: gridMove 20s linear infinite;
z-index: 1;
pointer-events: none;
}
@keyframes gridMove {
0% { transform: translate(0, 0); }
100% { transform: translate(50px, 50px); }
}
/* Neon Particles */
#particles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
pointer-events: none;
}
.particle {
position: absolute;
width: 6px;
height: 6px;
border-radius: 50%;
background: radial-gradient(circle, #00ffff, #0099ff);
box-shadow: 0 0 15px #00eaff, 0 0 30px #0088ff;
pointer-events: none;
animation: particleFloat 8s ease-in-out infinite;
}
@keyframes particleFloat {
0%, 100% {
transform: translateY(0) translateX(0) scale(1);
opacity: 0.8;
}
50% {
transform: translateY(-30px) translateX(15px) scale(1.2);
opacity: 1;
}
}
/* Atur lebar scrollbar */
::-webkit-scrollbar {
width: 12px;
}
/* Background jalanan scrollbar (Track) - Gelap agar neon menyala */
::-webkit-scrollbar-track {
background: #0b0b15; /* Hitam keunguan sangat gelap */
border-left: 1px solid #222;
}
/* Batang Scroll (Thumb) - Efek Neon */
::-webkit-scrollbar-thumb {
/* Gradasi dari Cyan ke Ungu */
background: linear-gradient(180deg, #00f2ff, #bc13fe);
border-radius: 10px;
/* Memberikan jarak sedikit agar terlihat melayang */
border: 3px solid transparent;
background-clip: content-box;
}
/* Efek saat di-hover (disorot mouse) - Lebih terang */
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #5dfaff, #d65eff);
border: 3px solid transparent;
background-clip: content-box;
/* Sedikit shadow untuk efek glow */
box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
}