File size: 3,381 Bytes
0879a03
0d4d44f
3b85fd7
0d4d44f
 
 
 
 
 
3b85fd7
 
cb20bdc
0d4d44f
 
 
cb20bdc
 
 
0d4d44f
 
 
 
 
 
 
 
 
cb20bdc
 
 
0d4d44f
 
 
 
 
 
 
 
 
 
cb20bdc
 
 
0d4d44f
cb20bdc
 
 
0d4d44f
 
 
 
 
 
 
 
 
 
cb20bdc
 
 
0d4d44f
 
0879a03
 
0d4d44f
 
 
 
 
 
 
 
 
 
cb20bdc
 
 
0d4d44f
 
 
 
 
 
 
 
 
 
cb20bdc
 
 
0d4d44f
 
 
 
 
 
cb20bdc
 
 
0d4d44f
 
 
 
 
 
cb20bdc
 
 
0d4d44f
 
cb20bdc
 
 
 
0d4d44f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cb20bdc
 
 
0d4d44f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cb20bdc
 
 
0d4d44f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cb20bdc
 
 
0d4d44f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cb20bdc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
  
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.hero-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-section {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  position: relative;
  border-radius: 12px;
  padding: 1rem;
  padding-bottom: 2.5rem;
  justify-content: center;
  animation: fadeIn 1s ease-in-out; /* Add fade-in animation */
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out; /* Smooth transition */
  opacity: 0;
}

.hero-image.active {
  opacity: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  gap: 0.5rem;
  text-align: left;
  z-index: 1;
  height: 100%;
  margin: 20px;
  width: 49%;
}

.hero-title {
  color: white;
  font-size: 5rem;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  transition: font-size 0.3s ease-in-out;
}

.hero-section-play-button {
  background-color: #1f202196;
  padding: 10px;
  width: 120px;
  border-radius: 5px;
}

.hero-description {
  color: white;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.4;
  overflow: hidden; /* Hide text overflow */
  display: -webkit-box; /* Use flexbox layout */
  -webkit-line-clamp: 3; /* Limit text to 3 lines */
  -webkit-box-orient: vertical; /* Set box orientation to vertical */
  text-overflow: ellipsis; /* Add ellipsis (...) */
  transition: font-size 0.3s ease-in-out;
}

.hero-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 20px;
  height: 10px;
  border-radius: 5px;
  background-color: gray;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.indicator.active {
  background-color: white;
  transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 0.875rem;
  }
  .hero-button {
    height: 2rem;
    font-size: 0.75rem;
    padding: 0 0.75rem;
  }
  .indicator {
    width: 15px;
    height: 7px;
  }
}

@media (max-width: 992px) {
  .hero-section {
    min-height: 400px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-description {
    font-size: 0.75rem;
  }
  .hero-button {
    height: 1.75rem;
    font-size: 0.675rem;
    padding: 0 0.5rem;
  }
  .indicator {
    width: 12px;
    height: 6px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 300px;
    padding: 0.5rem;
    padding-bottom: 2rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-description {
    font-size: 0.875rem;
  }
  .hero-button {
    height: 1.5rem;
    font-size: 0.75rem;
    padding: 0 0.5rem;
  }
  .indicator {
    width: 15px;
    height: 8px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 200px;
  }
  .hero-title {
    font-size: 1.25rem;
  }
  .hero-description {
    font-size: 0.75rem;
  }
  .hero-button {
    height: 1.25rem;
    font-size: 0.625rem;
    padding: 0 0.5rem;
  }
  .indicator {
    width: 12px;
    height: 6px;
  }
}