/* Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
.main {
height: 100vh;
width: 100%;
}
.wrapper,
.slide {
position: relative;
width: 100%;
height: 100%;
}
.slide {
overflow: hidden;
}
.slide::before {
content: "";
position: absolute;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.4);
z-index: 10;
}
.slide .image {
height: 100%;
width: 100%;
object-fit: cover;
}
.slide .image-data {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
width: 100%;
z-index: 100;
}
.image-data span.text {
font-size: 14px;
font-weight: 400;
color: #fff;
}
.image-data h2 {
font-size: 45px;
font-weight: 600;
color: #fff;
}
a.button {
display: inline-block;
padding: 10px 20px;
border-radius: 25px;
color: #333;
background: #fff;
text-decoration: none;
margin-top: 25px;
transition: all 0.3s ease;
}
a.button:hover {
color: #fff;
background-color: #c87e4f;
}
/* swiper button css */
.nav-btn {
height: 50px;
width: 50px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.3);
}
.nav-btn:hover {
background: rgba(255, 255, 255, 0.4);
}
.swiper-button-next {
right: 50px;
}
.swiper-button-prev {
left: 50px;
}
.nav-btn::before,
.nav-btn::after {
font-size: 25px;
color: #fff;
}
.swiper-pagination-bullet {
opacity: 1;
height: 12px;
width: 12px;
background-color: #fff;
visibility: hidden;
}
.swiper-pagination-bullet-active {
border: 2px solid #fff;
background-color: #c87e4f;
}
@media screen and (max-width: 768px) {
.nav-btn {
visibility: hidden;
}
.swiper-pagination-bullet {
visibility: visible;
}
}
/* Hero Slider - Modern Design with Animations
-------------------------------------------------- */
/* Container */
.hero-slider-container {
position: relative;
width: 100%;
height: 100vh;
/* overflow: hidden; */
margin-bottom: 2rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
border-radius: 8px;
}
@media (max-width: 768px) {
.hero-slider-container {
height: 450px;
border-radius: 0;
}
}
/* Slides */
.hero-slider {
width: 100%;
height: 100%;
}
.hero-slide {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
/* Background Image/Video */
.slide-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
transition: transform 7s ease;
}
.slide-video-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.slide-video {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
transform: translateX(-50%) translateY(-50%);
}
/* Overlay */
.slide-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
/* Content */
.slide-content {
position: relative;
z-index: 2;
max-width: 1000px;
width: 90%;
padding: 2rem;
text-align: center;
}
.slide-subtitle {
display: block;
font-size: 1.2rem;
font-weight: 500;
margin-bottom: 1rem;
opacity: 0;
transform: translateY(20px);
transition: opacity 0.5s ease, transform 0.5s ease;
text-transform: uppercase;
letter-spacing: 3px;
}
.slide-title {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 1.5rem;
opacity: 0;
transform: translateY(30px);
transition: opacity 0.5s ease, transform 0.5s ease;
line-height: 1.2;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.slide-description {
font-size: 1.1rem;
margin-bottom: 2rem;
opacity: 0;
transform: translateY(20px);
transition: opacity 0.5s ease, transform 0.5s ease;
max-width: 80%;
margin-left: auto;
margin-right: auto;
}
.slide-button {
display: inline-flex;
align-items: center;
background-color: var(--primary-color, #3498db);
color: #fff;
padding: 0.8rem 2rem;
border-radius: 50px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
opacity: 0;
transform: translateY(20px) scale(0.95);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
overflow: hidden;
position: relative;
}
.slide-button:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.slide-button:after {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transition: 0.5s;
}
.slide-button:hover:after {
left: 100%;
}
.slide-button i {
margin-left: 10px;
transition: transform 0.3s ease;
}
.slide-button:hover i {
transform: translateX(5px);
}
/* Responsive content */
@media (max-width: 992px) {
.slide-title {
font-size: 2.5rem;
}
.slide-description {
max-width: 90%;
}
}
@media (max-width: 768px) {
.slide-content {
padding: 1.5rem;
}
.slide-subtitle {
font-size: 1rem;
}
.slide-title {
font-size: 2rem;
margin-bottom: 1rem;
}
.slide-description {
font-size: 1rem;
margin-bottom: 1.5rem;
}
.slide-button {
padding: 0.7rem 1.5rem;
}
}
/* Navigation */
.slider-navigation {
position: absolute;
bottom: 30px;
left: 0;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
.nav-button {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(5px);
color: #fff;
cursor: pointer;
transition: all 0.3s ease;
margin: 0 15px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.nav-button:hover {
background-color: rgba(255, 255, 255, 0.3);
transform: scale(1.1);
}
/* Custom Pagination */
.custom-pagination {
display: flex;
align-items: center;
justify-content: center;
margin: 0 15px;
}
.pagination-item {
width: 30px;
height: 5px;
margin: 0 5px;
background-color: rgba(255, 255, 255, 0.3);
cursor: pointer;
position: relative;
border-radius: 2px;
transition: all 0.3s ease;
overflow: hidden;
}
.pagination-item:hover {
background-color: rgba(255, 255, 255, 0.5);
}
.pagination-item.active {
background-color: rgba(255, 255, 255, 0.7);
width: 50px;
}
.pagination-progress {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 0;
background-color: var(--primary-color, #3498db);
z-index: 1;
}
/* Animation Classes */
.animate-in {
opacity: 1 !important;
transform: translateY(0) scale(1) !important;
}
/* Slide Animations */
.animate-fade .slide-image,
.animate-fade .slide-video-container {
animation: fadeIn 1s forwards;
}
.animate-zoom .slide-image {
animation: zoomIn 1s forwards;
transform: scale(1.1);
}
.animate-slide .slide-image {
animation: slideIn 1s forwards;
}
/* Keyframes */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes zoomIn {
from { transform: scale(1.2); }
to { transform: scale(1); }
}
@keyframes slideIn {
from { transform: translateX(5%); }
to { transform: translateX(0); }
}
/* Video Controls */
.video-controls {
position: absolute;
bottom: 85px;
right: 20px;
z-index: 10;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: white;
transition: all 0.3s ease;
}
.video-controls:hover {
background-color: rgba(0, 0, 0, 0.7);
}