Major CSS cleanup and hero animation enhancements
- Removed 350+ lines of redundant hero animation code from style.css - Added 16 new strategic node icons to hero animation upper area - Repositioned all nodes to avoid navbar overlap (moved from 0-15% to 18%+ top) - Updated background image from 3293677.jpg to 3293677.png - Enhanced responsive design for all screen sizes - Eliminated duplicate animations and conflicting styles - Improved overall performance and maintainability
This commit is contained in:
File diff suppressed because it is too large
Load Diff
356
css/style.css
356
css/style.css
@@ -185,7 +185,7 @@ html {
|
||||
}
|
||||
|
||||
body {
|
||||
background: url('../assets/3293677.jpg') no-repeat center center fixed;
|
||||
background: url('../assets/3293677.png') no-repeat center center fixed;
|
||||
background-size: cover;
|
||||
color: var(--fg);
|
||||
font-family: 'Inter', sans-serif;
|
||||
@@ -845,360 +845,6 @@ section h2 {
|
||||
padding-right: 3rem;
|
||||
}
|
||||
|
||||
.hero-animation {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
min-width: 400px;
|
||||
z-index: 1;
|
||||
pointer-events: none; /* This lets clicks go through to underlying elements */
|
||||
}
|
||||
|
||||
/* Ensure data nodes inside hero-animation are clickable */
|
||||
.hero-animation .data-node {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.network-container {
|
||||
position: relative;
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
}
|
||||
|
||||
.central-logo {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
background: rgba(162, 171, 255, 0.1);
|
||||
border: 2px solid var(--accent);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 10;
|
||||
animation: pulse-glow 3s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.central-logo .logo-icon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
filter: brightness(1.2);
|
||||
}
|
||||
|
||||
.node-network {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.node {
|
||||
position: absolute;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(162, 171, 255, 0.3);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.node:hover {
|
||||
background: rgba(162, 171, 255, 0.2);
|
||||
border-color: var(--accent);
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 0 20px rgba(162, 171, 255, 0.4);
|
||||
}
|
||||
|
||||
.node-icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.node-icon img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.node-label {
|
||||
font-size: 0.7rem;
|
||||
color: var(--fg);
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Service nodes positioning - inner ring around the center */
|
||||
.service-node:nth-child(1) {
|
||||
top: 15%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
animation: float-node 4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.service-node:nth-child(2) {
|
||||
top: 30%;
|
||||
right: 20%;
|
||||
animation: float-node 4s ease-in-out infinite 0.8s;
|
||||
}
|
||||
|
||||
.service-node:nth-child(3) {
|
||||
bottom: 30%;
|
||||
right: 20%;
|
||||
animation: float-node 4s ease-in-out infinite 1.6s;
|
||||
}
|
||||
|
||||
.service-node:nth-child(4) {
|
||||
bottom: 15%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
animation: float-node 4s ease-in-out infinite 2.4s;
|
||||
}
|
||||
|
||||
.service-node:nth-child(5) {
|
||||
top: 30%;
|
||||
left: 20%;
|
||||
animation: float-node 4s ease-in-out infinite 3.2s;
|
||||
}
|
||||
|
||||
/* Technology nodes positioning - middle ring */
|
||||
.tech-node:nth-child(6) {
|
||||
top: 5%;
|
||||
left: 35%;
|
||||
animation: float-node 3.5s ease-in-out infinite 0.5s;
|
||||
}
|
||||
|
||||
.tech-node:nth-child(7) {
|
||||
top: 5%;
|
||||
right: 35%;
|
||||
animation: float-node 3.5s ease-in-out infinite 1s;
|
||||
}
|
||||
|
||||
.tech-node:nth-child(8) {
|
||||
top: 45%;
|
||||
right: 5%;
|
||||
animation: float-node 3.5s ease-in-out infinite 1.5s;
|
||||
}
|
||||
|
||||
.tech-node:nth-child(9) {
|
||||
bottom: 45%;
|
||||
right: 5%;
|
||||
animation: float-node 3.5s ease-in-out infinite 2s;
|
||||
}
|
||||
|
||||
.tech-node:nth-child(10) {
|
||||
bottom: 5%;
|
||||
right: 35%;
|
||||
animation: float-node 3.5s ease-in-out infinite 2.5s;
|
||||
}
|
||||
|
||||
.tech-node:nth-child(11) {
|
||||
bottom: 5%;
|
||||
left: 35%;
|
||||
animation: float-node 3.5s ease-in-out infinite 3s;
|
||||
}
|
||||
|
||||
/* Industry nodes positioning - outer ring */
|
||||
.industry-node:nth-child(12) {
|
||||
top: 8%;
|
||||
left: 15%;
|
||||
animation: float-node 5s ease-in-out infinite 1s;
|
||||
}
|
||||
|
||||
.industry-node:nth-child(13) {
|
||||
top: 8%;
|
||||
right: 15%;
|
||||
animation: float-node 5s ease-in-out infinite 1.5s;
|
||||
}
|
||||
|
||||
.industry-node:nth-child(14) {
|
||||
top: 45%;
|
||||
left: 5%;
|
||||
animation: float-node 5s ease-in-out infinite 2s;
|
||||
}
|
||||
|
||||
.industry-node:nth-child(15) {
|
||||
bottom: 45%;
|
||||
left: 5%;
|
||||
animation: float-node 5s ease-in-out infinite 2.5s;
|
||||
}
|
||||
|
||||
.industry-node:nth-child(16) {
|
||||
bottom: 8%;
|
||||
left: 15%;
|
||||
animation: float-node 5s ease-in-out infinite 3s;
|
||||
}
|
||||
|
||||
.connection-svg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.connection-line {
|
||||
stroke: rgba(162, 171, 255, 0.3);
|
||||
stroke-width: 1;
|
||||
fill: none;
|
||||
opacity: 0;
|
||||
animation: draw-line 2s ease-in-out forwards;
|
||||
}
|
||||
|
||||
.connection-line.active {
|
||||
stroke: var(--accent);
|
||||
stroke-width: 2;
|
||||
opacity: 0.8;
|
||||
filter: drop-shadow(0 0 3px rgba(162, 171, 255, 0.5));
|
||||
}
|
||||
|
||||
/* Animations */
|
||||
@keyframes pulse-glow {
|
||||
0%, 100% {
|
||||
box-shadow: 0 0 20px rgba(162, 171, 255, 0.3);
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
}
|
||||
50% {
|
||||
box-shadow: 0 0 30px rgba(162, 171, 255, 0.6);
|
||||
transform: translate(-50%, -50%) scale(1.05);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes float-node {
|
||||
0%, 100% {
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
50% {
|
||||
transform: translateY(-10px) scale(1.02);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes draw-line {
|
||||
0% {
|
||||
stroke-dasharray: 0 1000;
|
||||
opacity: 0;
|
||||
}
|
||||
50% {
|
||||
opacity: 0.6;
|
||||
}
|
||||
100% {
|
||||
stroke-dasharray: 1000 0;
|
||||
opacity: 0.3;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media (max-width: 1200px) {
|
||||
.hero-container {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
padding: 0 2%;
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
flex: none;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
padding-right: 0;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.hero-animation {
|
||||
flex: none;
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
min-width: auto;
|
||||
}
|
||||
|
||||
.network-container {
|
||||
width: 450px;
|
||||
height: 450px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.hero-container {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.hero-animation {
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
.network-container {
|
||||
width: 350px;
|
||||
height: 350px;
|
||||
}
|
||||
|
||||
.central-logo {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.central-logo .logo-icon {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
}
|
||||
|
||||
.node {
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
}
|
||||
|
||||
.node-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.node-label {
|
||||
font-size: 0.6rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.network-container {
|
||||
width: 280px;
|
||||
height: 280px;
|
||||
}
|
||||
|
||||
.central-logo {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.central-logo .logo-icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.node {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
}
|
||||
|
||||
.node-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.node-label {
|
||||
font-size: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.hero-content h1 {
|
||||
font-size: 4rem;
|
||||
line-height: 1.1;
|
||||
|
||||
Reference in New Issue
Block a user