Files
GNX-WEB/frontEnd/public/styles/components/_hero-banner.scss
Iliyan Angelov 366f28677a update
2025-11-24 03:52:08 +02:00

968 lines
19 KiB
SCSS

/* ====
--------- Hero Banner - Complete Rewrite ---------
==== */
.hero-banner {
position: relative;
min-height: 70vh;
background: linear-gradient(135deg,
#0f172a 0%,
#1e293b 25%,
#334155 50%,
#1e293b 75%,
#0f172a 100%);
overflow: hidden;
display: flex;
align-items: center;
color: var(--white) !important;
font-family: var(--font-family-sans);
padding: 4rem 0;
// Force all text to be white
* {
color: var(--white) !important;
}
// Video-like Background Elements
.hero-background {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
overflow: hidden;
// Animated Code Lines
.code-animation {
position: absolute;
top: 20%;
left: 5%;
font-family: 'IBM Plex Mono', monospace;
font-size: 0.875rem;
opacity: 0.3;
animation: codeTyping 8s ease-in-out infinite;
.code-line {
margin-bottom: 0.5rem;
white-space: nowrap;
.code-keyword {
color: #3b82f6;
font-weight: 600;
}
.code-string {
color: #10b981;
}
.code-function {
color: #f59e0b;
}
&.line-1 { animation-delay: 0s; }
&.line-2 { animation-delay: 1s; }
&.line-3 { animation-delay: 2s; }
&.line-4 { animation-delay: 3s; }
}
}
// Floating Tech Icons
.floating-tech {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
.tech-icon {
position: absolute;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: var(--white);
font-size: 1.125rem;
backdrop-filter: blur(10px);
animation: techFloat 6s ease-in-out infinite;
&.icon-1 {
top: 15%;
left: 15%;
animation-delay: 0s;
}
&.icon-2 {
top: 25%;
right: 20%;
animation-delay: 1s;
}
&.icon-3 {
top: 60%;
left: 10%;
animation-delay: 2s;
}
&.icon-4 {
top: 70%;
right: 15%;
animation-delay: 3s;
}
&.icon-5 {
top: 40%;
left: 80%;
animation-delay: 4s;
}
&.icon-6 {
top: 80%;
right: 30%;
animation-delay: 5s;
}
}
}
// Dashboard Elements
.dashboard-elements {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
.dashboard-card {
position: absolute;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 1rem;
backdrop-filter: blur(15px);
min-width: 160px;
animation: dashboardFloat 8s ease-in-out infinite;
.card-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
font-size: 0.75rem;
color: var(--white);
text-transform: none;
letter-spacing: 0.05em;
i {
color: #3b82f6;
}
}
.card-content {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
color: var(--white);
.status-indicator {
width: 8px;
height: 8px;
border-radius: 50%;
&.resolved {
background: #10b981;
box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
}
.metric-value {
font-weight: 700;
font-size: 1.125rem;
color: var(--white);
}
}
&.card-1 {
top: 10%;
right: 5%;
animation-delay: 0s;
}
&.card-2 {
top: 50%;
left: 5%;
animation-delay: 2s;
}
&.card-3 {
bottom: 20%;
right: 10%;
animation-delay: 4s;
}
}
}
// Network Connection Lines
.network-lines {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
.connection-line {
position: absolute;
height: 1px;
background: linear-gradient(90deg,
transparent 0%,
rgba(59, 130, 246, 0.3) 50%,
transparent 100%);
animation: dataFlow 4s ease-in-out infinite;
&.line-1 {
top: 30%;
left: 10%;
width: 200px;
animation-delay: 0s;
}
&.line-2 {
top: 60%;
right: 15%;
width: 150px;
animation-delay: 1s;
}
&.line-3 {
top: 45%;
left: 20%;
width: 180px;
animation-delay: 2s;
}
&.line-4 {
bottom: 30%;
right: 20%;
width: 120px;
animation-delay: 3s;
}
}
}
// Data Flow Particles
.data-particles {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
.particle {
position: absolute;
width: 4px;
height: 4px;
background: #3b82f6;
border-radius: 50%;
box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
animation: particleMove 6s ease-in-out infinite;
&.particle-1 {
top: 20%;
left: 20%;
animation-delay: 0s;
}
&.particle-2 {
top: 40%;
right: 25%;
animation-delay: 1s;
}
&.particle-3 {
top: 60%;
left: 30%;
animation-delay: 2s;
}
&.particle-4 {
top: 80%;
right: 20%;
animation-delay: 3s;
}
&.particle-5 {
top: 35%;
left: 70%;
animation-delay: 4s;
}
&.particle-6 {
top: 70%;
right: 40%;
animation-delay: 5s;
}
}
}
// Video Overlay
.video-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg,
rgba(15, 23, 42, 0.8) 0%,
rgba(30, 41, 59, 0.7) 25%,
rgba(51, 65, 85, 0.6) 50%,
rgba(30, 41, 59, 0.7) 75%,
rgba(15, 23, 42, 0.8) 100%);
z-index: 1;
}
}
// Main Container
.container {
position: relative;
z-index: 2;
}
// Hero Content
.hero-content {
padding: 1.5rem 0;
.hero-badge {
display: inline-flex;
align-items: center;
gap: 0.375rem;
background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
border: 1px solid rgba(16, 185, 129, 0.4);
color: var(--white) !important;
padding: 0.5rem 1rem;
border-radius: 50px;
font-size: 0.75rem;
font-weight: 600;
margin-bottom: 1rem;
backdrop-filter: blur(10px);
transition: all 0.3s ease;
text-transform: none;
letter-spacing: 0.05em;
&:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
}
.badge-icon {
width: 18px;
height: 18px;
background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
i {
font-size: 0.5rem;
color: var(--white);
}
}
}
.hero-title {
font-size: clamp(1.75rem, 4vw, 2.5rem);
font-weight: 800;
line-height: 1.2;
margin-bottom: 1rem;
color: var(--white) !important;
font-family: var(--font-family-display);
letter-spacing: -0.02em;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-description {
font-size: 1rem;
line-height: 1.6;
color: var(--white) !important;
margin-bottom: 2rem;
max-width: 650px;
margin-left: auto;
margin-right: auto;
font-weight: 400;
opacity: 0.95;
}
// Hero Metrics
.hero-metrics {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
flex-wrap: wrap;
justify-content: center;
.metric-item {
display: flex;
align-items: center;
gap: 0.75rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 1rem;
cursor: pointer;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
min-width: 160px;
&:hover,
&.active {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(59, 130, 246, 0.3);
transform: translateY(-4px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.metric-icon {
width: 40px;
height: 40px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
i {
font-size: 1.125rem;
color: var(--white);
}
}
.metric-content {
.metric-value {
font-size: 1.25rem;
font-weight: 700;
color: var(--white) !important;
margin-bottom: 0.25rem;
font-family: var(--font-family-display);
line-height: 1;
}
.metric-label {
font-size: 0.75rem;
color: var(--white) !important;
text-transform: none;
letter-spacing: 0.05em;
}
}
}
}
// Hero Actions
.hero-actions {
display: flex;
gap: 0.75rem;
margin-bottom: 2rem;
flex-wrap: wrap;
justify-content: center;
.btn-primary,
.btn-secondary {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.875rem 1.5rem;
border-radius: 12px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
font-size: 0.875rem;
position: relative;
overflow: hidden;
&::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
transparent 0%,
rgba(255, 255, 255, 0.2) 50%,
transparent 100%);
transition: left 0.6s ease;
}
&:hover::before {
left: 100%;
}
i {
transition: transform 0.3s ease;
}
&:hover i {
transform: translateX(4px);
}
}
.btn-primary {
background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
color: var(--white) !important;
border: none;
&:hover {
background: linear-gradient(135deg, #2563eb 0%, #5b21b6 100%);
transform: translateY(-3px);
box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
color: var(--white) !important;
}
}
.btn-secondary {
background: transparent;
color: var(--white) !important;
border: 2px solid rgba(255, 255, 255, 0.3);
&:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.5);
transform: translateY(-3px);
color: var(--white) !important;
}
}
}
// Trust Badges
.trust-badges {
display: flex;
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
.trust-badge {
display: flex;
align-items: center;
gap: 0.375rem;
color: var(--white) !important;
font-size: 0.7rem;
padding: 0.375rem 0.75rem;
background: rgba(255, 255, 255, 0.08);
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
transition: all 0.3s ease;
font-weight: 500;
text-transform: none;
letter-spacing: 0.03em;
&:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateY(-2px);
}
i {
color: var(--white);
font-size: 0.75rem;
}
}
}
}
// Social Links
.social-links {
position: absolute;
right: 1rem;
top: 50%;
transform: translateY(-50%);
display: flex;
flex-direction: column;
gap: 0.5rem;
z-index: 3;
.social-link {
width: 36px;
height: 36px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: var(--white);
text-decoration: none;
transition: all 0.3s ease;
&:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
color: var(--white);
}
i {
font-size: 0.875rem;
}
}
}
}
// Video-like Background Animations
@keyframes codeTyping {
0%, 100% {
opacity: 0.3;
transform: translateX(0);
}
50% {
opacity: 0.6;
transform: translateX(10px);
}
}
@keyframes techFloat {
0%, 100% {
transform: translateY(0px) rotate(0deg);
}
50% {
transform: translateY(-20px) rotate(5deg);
}
}
@keyframes dashboardFloat {
0%, 100% {
transform: translateY(0px) scale(1);
}
50% {
transform: translateY(-10px) scale(1.02);
}
}
@keyframes dataFlow {
0% {
opacity: 0;
transform: scaleX(0);
}
50% {
opacity: 1;
transform: scaleX(1);
}
100% {
opacity: 0;
transform: scaleX(0);
}
}
@keyframes particleMove {
0%, 100% {
transform: translate(0, 0);
opacity: 0.6;
}
25% {
transform: translate(20px, -10px);
opacity: 1;
}
50% {
transform: translate(-10px, 15px);
opacity: 0.8;
}
75% {
transform: translate(15px, 5px);
opacity: 1;
}
}
// Responsive Design
@media (max-width: 768px) {
.hero-banner {
min-height: 65vh;
padding: 2.5rem 0;
display: flex;
align-items: center;
.container {
width: 100%;
padding: 0 1.5rem;
}
.hero-background {
.code-animation {
font-size: 0.7rem;
opacity: 0.2;
top: 15%;
left: 3%;
}
.tech-icon {
width: 32px;
height: 32px;
font-size: 0.9rem;
}
.dashboard-card {
padding: 0.75rem;
min-width: 140px;
font-size: 0.8rem;
}
.connection-line {
height: 0.5px;
}
.particle {
width: 3px;
height: 3px;
}
}
.hero-content {
text-align: center;
padding: 1rem 0;
width: 100%;
.hero-title {
font-size: 1.75rem;
margin-bottom: 0.75rem;
}
.hero-description {
font-size: 0.9rem;
margin-bottom: 1.5rem;
}
.hero-metrics {
justify-content: center;
gap: 0.75rem;
margin-bottom: 1.5rem;
width: 100%;
.metric-item {
min-width: 140px;
padding: 0.75rem;
display: flex;
justify-content: center;
align-items: center;
.metric-icon {
width: 36px;
height: 36px;
i {
font-size: 1rem;
}
}
.metric-content {
text-align: left;
.metric-value {
font-size: 1.125rem;
}
}
}
}
.hero-actions {
justify-content: center;
margin-bottom: 1.5rem;
width: 100%;
.btn-primary,
.btn-secondary {
padding: 0.75rem 1.25rem;
font-size: 0.8rem;
text-align: center;
}
}
.trust-badges {
justify-content: center;
gap: 0.75rem;
width: 100%;
}
}
.social-links {
position: static;
transform: none;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 1rem;
gap: 0.5rem;
.social-link {
width: 32px;
height: 32px;
i {
font-size: 0.8rem;
}
}
}
}
}
@media (max-width: 480px) {
.hero-banner {
min-height: 60vh;
padding: 1.5rem 0;
display: flex;
align-items: center;
.container {
width: 100%;
padding: 0 1rem;
}
.hero-background {
.code-animation {
font-size: 0.6rem;
opacity: 0.1;
top: 5%;
left: 2%;
}
.tech-icon {
width: 24px;
height: 24px;
font-size: 0.7rem;
}
.dashboard-card {
padding: 0.4rem;
min-width: 100px;
font-size: 0.65rem;
}
.connection-line {
display: none;
}
.particle {
width: 2px;
height: 2px;
}
}
.hero-content {
text-align: center;
padding: 0.5rem 0;
width: 100%;
.hero-badge {
margin: 0 auto 0.75rem;
font-size: 0.7rem;
padding: 0.4rem 0.8rem;
}
.hero-title {
font-size: 1.4rem;
margin-bottom: 0.75rem;
line-height: 1.3;
text-align: center;
}
.hero-description {
font-size: 0.8rem;
margin-bottom: 1.5rem;
text-align: center;
max-width: 100%;
padding: 0 0.5rem;
}
.hero-metrics {
flex-direction: column;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.5rem;
width: 100%;
.metric-item {
width: 100%;
max-width: 280px;
padding: 0.75rem;
display: flex;
justify-content: center;
align-items: center;
.metric-icon {
width: 36px;
height: 36px;
i {
font-size: 1rem;
}
}
.metric-content {
text-align: left;
.metric-value {
font-size: 1.1rem;
}
.metric-label {
font-size: 0.7rem;
}
}
}
}
.hero-actions {
flex-direction: column;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.5rem;
width: 100%;
.btn-primary,
.btn-secondary {
width: 100%;
max-width: 280px;
justify-content: center;
padding: 0.75rem 1.25rem;
font-size: 0.8rem;
text-align: center;
}
}
.trust-badges {
flex-direction: column;
align-items: center;
gap: 0.5rem;
width: 100%;
.trust-badge {
width: 100%;
max-width: 200px;
justify-content: center;
text-align: center;
}
}
}
.social-links {
position: static;
transform: none;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 1.5rem;
gap: 0.5rem;
.social-link {
width: 36px;
height: 36px;
i {
font-size: 0.9rem;
}
}
}
}
}