125 lines
2.3 KiB
CSS
125 lines
2.3 KiB
CSS
.hero {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
position: relative;
|
|
height: 70vh;
|
|
min-height: 550px;
|
|
max-height: 800px;
|
|
overflow: hidden;
|
|
background-color: var(--primary);
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.hero::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(to top, var(--primary) 5%, rgba(10, 10, 15, 0.7) 40%, rgba(10, 10, 15, 0.2) 70%, transparent 100%),
|
|
linear-gradient(to right, var(--primary) 10%, transparent 70%);
|
|
z-index: 1;
|
|
}
|
|
|
|
.hero-background-container {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hero-background {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-size: cover;
|
|
background-position: center center;
|
|
opacity: 0;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.hero-content {
|
|
position: relative;
|
|
z-index: 2;
|
|
max-width: 700px;
|
|
padding: 0 2rem 4rem;
|
|
opacity: 0;
|
|
}
|
|
|
|
.hero-title {
|
|
font-family: 'Orbitron', sans-serif;
|
|
font-size: clamp(2.5rem, 5vw, 3.8rem);
|
|
font-weight: 700;
|
|
line-height: 1.15;
|
|
margin-bottom: 1rem;
|
|
text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: clamp(1rem, 2vw, 1.2rem);
|
|
font-weight: 400;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 1.5rem;
|
|
max-width: 550px;
|
|
}
|
|
|
|
.hero-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.8rem 1.5rem;
|
|
margin-bottom: 2rem;
|
|
font-size: 0.95rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.hero-meta-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.hero-meta-item i {
|
|
color: var(--accent);
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.hero-buttons {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.hero {
|
|
min-height: 450px;
|
|
height: 60vh;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.hero {
|
|
height: auto;
|
|
min-height: unset;
|
|
padding-bottom: 3rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.hero-content {
|
|
padding: 0 1rem 2rem;
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: clamp(2rem, 7vw, 2.8rem);
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: clamp(0.9rem, 3vw, 1rem);
|
|
} |