styles.module.css•3.25 kB
.hero {
padding: 4rem 0 6rem;
text-align: center;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
display: flex;
flex-direction: column;
align-items: center;
}
.heroBanner {
display: flex;
flex-direction: row;
align-items: center;
gap: 2rem;
}
.heroContent {
flex: 1;
margin-bottom: 2.5rem;
max-width: 800px;
}
.heroTitle {
font-size: 4rem;
margin-bottom: 1.5rem;
font-weight: 800;
letter-spacing: -0.05em;
line-height: 1.1;
}
.heroSubtitle {
font-size: 1.25rem;
margin-bottom: 2rem;
opacity: 0.8;
font-weight: 400;
line-height: 1.6;
letter-spacing: -0.015em;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
.videoContainer {
flex: 1;
width: 80%;
max-width: 900px;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
position: relative;
margin: 0 auto 3rem;
transition: transform 0.3s ease;
}
.thumbnailContainer {
position: relative;
cursor: pointer;
width: 100%;
transform-style: preserve-3d;
transform: perspective(1000px);
will-change: transform;
transition: transform 0.3s ease;
}
.thumbnailContainer:hover {
transform: none;
}
.thumbnail {
width: 100%;
height: auto;
display: block;
border-radius: 16px;
}
.videoFrame {
width: 100%;
height: 500px;
display: block;
border-radius: 16px;
}
.playButtonContainer {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.playButtonOuter {
height: 90px;
width: 90px;
background: rgba(255, 255, 255, 0.8);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s ease;
}
.playButtonInner {
height: 70px;
width: 70px;
background: black;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.playIcon {
width: 0;
height: 0;
border-style: solid;
border-width: 12px 0 12px 24px;
border-color: transparent transparent transparent white;
margin-left: 5px;
}
.thumbnailContainer:hover .playButtonOuter {
transform: scale(1.1);
}
.buttonContainer {
margin-top: 1rem;
display: flex;
justify-content: center;
}
.tryButton {
display: inline-block;
background-color: #000;
color: #fff;
font-size: 1.1rem;
font-weight: 600;
padding: 14px 32px;
border-radius: 50px;
text-decoration: none;
transition: all 0.2s ease;
border: 2px solid #000;
}
.tryButton:hover {
background-color: #fff;
color: #000;
text-decoration: none;
}
/* Dark theme styles */
html[data-theme='dark'] .tryButton {
background-color: #fff;
color: #000;
border: 2px solid #fff;
}
html[data-theme='dark'] .tryButton:hover {
background-color: transparent;
color: #fff;
border: 2px solid #fff;
}
@media screen and (max-width: 996px) {
.heroBanner {
flex-direction: column;
text-align: center;
}
.heroTitle {
font-size: 3rem;
}
.heroSubtitle {
font-size: 1.1rem;
}
.videoFrame {
height: 300px;
}
.videoContainer {
width: 95%;
}
.playButtonOuter {
height: 70px;
width: 70px;
}
.playButtonInner {
height: 50px;
width: 50px;
}
.playIcon {
border-width: 10px 0 10px 18px;
}
}