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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
}
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
margin-top: 0;
|
9 |
}
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
}
|
17 |
|
18 |
-
.
|
19 |
-
|
20 |
-
|
21 |
-
padding: 16px;
|
22 |
-
border: 1px solid lightgray;
|
23 |
-
border-radius: 16px;
|
24 |
}
|
25 |
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
|
|
1 |
+
* {
|
2 |
+
margin: 0;
|
3 |
+
padding: 0;
|
4 |
+
box-sizing: border-box;
|
5 |
+
}
|
6 |
+
|
7 |
+
html, body {
|
8 |
+
height: 100%;
|
9 |
+
overflow: hidden; /* Menonaktifkan overflow di body */
|
10 |
+
scroll-behavior: smooth; /* Untuk scroll yang lebih halus */
|
11 |
+
}
|
12 |
+
|
13 |
body {
|
14 |
+
font-family: Arial, sans-serif;
|
15 |
+
background: black;
|
16 |
+
color: white;
|
17 |
+
line-height: 1.6;
|
18 |
+
}
|
19 |
+
|
20 |
+
.scroll-container {
|
21 |
+
height: 100%;
|
22 |
+
overflow-y: scroll; /* Mengaktifkan scroll vertikal */
|
23 |
+
scroll-snap-type: y mandatory; /* Snap scroll secara vertikal */
|
24 |
+
}
|
25 |
+
|
26 |
+
header {
|
27 |
+
display: flex;
|
28 |
+
justify-content: space-between;
|
29 |
+
align-items: center;
|
30 |
+
padding: 20px;
|
31 |
+
background: black;
|
32 |
+
border-bottom: 1px solid white;
|
33 |
+
position: sticky;
|
34 |
+
top: 0;
|
35 |
+
z-index: 1000;
|
36 |
+
}
|
37 |
+
|
38 |
+
.logo {
|
39 |
+
font-size: 24px;
|
40 |
+
font-weight: bold;
|
41 |
+
}
|
42 |
+
|
43 |
+
.navigation ul {
|
44 |
+
display: flex;
|
45 |
+
list-style: none;
|
46 |
+
}
|
47 |
+
|
48 |
+
.navigation ul li {
|
49 |
+
margin: 0 15px;
|
50 |
+
}
|
51 |
+
|
52 |
+
.navigation ul li a {
|
53 |
+
text-decoration: none;
|
54 |
+
color: white;
|
55 |
+
font-size: 16px;
|
56 |
+
transition: color 0.3s ease, transform 0.3s ease;
|
57 |
+
}
|
58 |
+
|
59 |
+
.navigation ul li a:hover {
|
60 |
+
color: grey;
|
61 |
+
transform: scale(1.05); /* Efek zoom pada link saat hover */
|
62 |
+
}
|
63 |
+
|
64 |
+
.menu-toggle {
|
65 |
+
display: none;
|
66 |
+
font-size: 24px;
|
67 |
+
cursor: pointer;
|
68 |
+
}
|
69 |
+
|
70 |
+
section {
|
71 |
+
display: flex;
|
72 |
+
justify-content: center;
|
73 |
+
align-items: center;
|
74 |
+
text-align: center;
|
75 |
+
height: 100vh; /* Setiap section mengambil penuh layar */
|
76 |
+
scroll-snap-align: start; /* Memastikan halaman berhenti di awal */
|
77 |
+
flex-direction: column;
|
78 |
+
}
|
79 |
+
|
80 |
+
.section-content {
|
81 |
+
max-width: 1200px;
|
82 |
+
width: 100%;
|
83 |
+
}
|
84 |
+
|
85 |
+
.section h1, .section h2 {
|
86 |
+
font-size: 36px;
|
87 |
+
margin-bottom: 15px;
|
88 |
+
}
|
89 |
+
|
90 |
+
.section p {
|
91 |
+
font-size: 18px;
|
92 |
+
max-width: 800px;
|
93 |
+
margin: 0 auto;
|
94 |
+
}
|
95 |
+
|
96 |
+
.portfolio {
|
97 |
+
display: grid;
|
98 |
+
grid-template-columns: 1fr 1fr;
|
99 |
+
gap: 20px;
|
100 |
+
margin-top: 20px;
|
101 |
+
}
|
102 |
+
|
103 |
+
.item {
|
104 |
+
padding: 20px;
|
105 |
+
background-color: #f4f4f4;
|
106 |
+
border-radius: 8px;
|
107 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
108 |
+
text-align: center;
|
109 |
+
}
|
110 |
+
|
111 |
+
.liquid-digital-assets {
|
112 |
+
background-color: #e0f7fa;
|
113 |
+
}
|
114 |
+
|
115 |
+
.partners {
|
116 |
+
background-color: #f1f8e9;
|
117 |
+
}
|
118 |
+
|
119 |
+
/* Bagian Portfolio Grid */
|
120 |
+
.portfolio-grid {
|
121 |
+
display: grid;
|
122 |
+
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Responsif grid */
|
123 |
+
gap: 20px;
|
124 |
+
justify-items: center;
|
125 |
+
align-items: center;
|
126 |
+
}
|
127 |
+
|
128 |
+
/* Item dalam Portfolio */
|
129 |
+
.portfolio-item {
|
130 |
+
text-align: center;
|
131 |
+
}
|
132 |
+
|
133 |
+
.portfolio-item img {
|
134 |
+
max-width: 80px; /* Ukuran logo */
|
135 |
+
height: auto;
|
136 |
+
margin-bottom: 10px; /* Jarak antara logo dan teks */
|
137 |
+
}
|
138 |
+
|
139 |
+
.portfolio-item p {
|
140 |
+
font-size: 14px;
|
141 |
+
color: white;
|
142 |
+
}
|
143 |
+
|
144 |
+
/* Responsif untuk grid */
|
145 |
+
@media (max-width: 768px) {
|
146 |
+
.portfolio-grid {
|
147 |
+
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Ukuran lebih kecil untuk perangkat kecil */
|
148 |
+
}
|
149 |
+
|
150 |
+
.portfolio-item img {
|
151 |
+
max-width: 60px;
|
152 |
+
}
|
153 |
+
|
154 |
+
.portfolio-item p {
|
155 |
+
font-size: 12px;
|
156 |
+
}
|
157 |
+
|
158 |
+
/* Mengubah menu menjadi hamburger pada layar kecil */
|
159 |
+
.navigation ul {
|
160 |
+
display: none;
|
161 |
+
flex-direction: column;
|
162 |
+
position: absolute;
|
163 |
+
top: 60px; /* Menyesuaikan dengan tinggi navbar */
|
164 |
+
right: 0;
|
165 |
+
background: black;
|
166 |
+
width: 100%; /* Menu sekarang membentang penuh dari kanan ke kiri */
|
167 |
+
height: auto;
|
168 |
+
transform: translateY(-100%); /* Menyembunyikan menu di atas layar */
|
169 |
+
transition: transform 0.5s ease-in-out; /* Efek animasi turun */
|
170 |
+
z-index: 1000;
|
171 |
+
}
|
172 |
+
|
173 |
+
.navigation.active ul {
|
174 |
+
display: flex;
|
175 |
+
transform: translateY(0); /* Menu turun ke bawah */
|
176 |
+
}
|
177 |
+
|
178 |
+
.menu-toggle.active {
|
179 |
+
color: white;
|
180 |
+
}
|
181 |
+
|
182 |
+
.menu-toggle {
|
183 |
+
display: block;
|
184 |
+
}
|
185 |
+
|
186 |
+
/* Tombol X untuk menutup menu */
|
187 |
+
.close-btn {
|
188 |
+
position: absolute;
|
189 |
+
top: 20px;
|
190 |
+
left: 20px;
|
191 |
+
font-size: 30px;
|
192 |
+
color: white;
|
193 |
+
cursor: pointer;
|
194 |
+
}
|
195 |
+
}
|
196 |
+
|
197 |
+
/* Kartu proyek */
|
198 |
+
.project-container {
|
199 |
+
display: flex;
|
200 |
+
justify-content: center;
|
201 |
+
align-items: flex-start;
|
202 |
+
gap: 20px;
|
203 |
+
flex-wrap: wrap;
|
204 |
+
margin-top: 30px;
|
205 |
+
padding: 0 20px;
|
206 |
+
}
|
207 |
+
|
208 |
+
.project-card {
|
209 |
+
background-color: #1a1a1a;
|
210 |
+
border-radius: 8px;
|
211 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
212 |
+
text-align: center;
|
213 |
+
padding: 20px;
|
214 |
+
width: 300px; /* Ukuran tetap untuk kartu */
|
215 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
216 |
+
}
|
217 |
+
|
218 |
+
.project-card img {
|
219 |
+
width: 100%;
|
220 |
+
height: 150px;
|
221 |
+
object-fit: cover;
|
222 |
+
border-radius: 4px;
|
223 |
+
margin-bottom: 15px;
|
224 |
+
}
|
225 |
+
|
226 |
+
.project-card h3 {
|
227 |
+
font-size: 20px;
|
228 |
+
margin-bottom: 10px;
|
229 |
+
color: #fff;
|
230 |
+
}
|
231 |
+
|
232 |
+
.project-card p {
|
233 |
+
font-size: 16px;
|
234 |
+
color: #ccc;
|
235 |
+
margin-bottom: 15px;
|
236 |
+
}
|
237 |
+
|
238 |
+
.project-card a {
|
239 |
+
display: inline-block;
|
240 |
+
padding: 10px 20px;
|
241 |
+
background-color: #007bff;
|
242 |
+
color: #fff;
|
243 |
+
text-decoration: none;
|
244 |
+
border-radius: 4px;
|
245 |
+
font-size: 14px;
|
246 |
+
transition: background-color 0.3s ease;
|
247 |
+
}
|
248 |
+
|
249 |
+
.project-card a:hover {
|
250 |
+
background-color: #0056b3;
|
251 |
+
}
|
252 |
+
|
253 |
+
.project-card:hover {
|
254 |
+
transform: translateY(-5px);
|
255 |
+
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
|
256 |
+
}
|
257 |
+
|
258 |
+
/* Responsif untuk kartu proyek */
|
259 |
+
@media (max-width: 768px) {
|
260 |
+
.portfolio {
|
261 |
+
grid-template-columns: 1fr;
|
262 |
+
}
|
263 |
+
|
264 |
+
.project-container {
|
265 |
+
flex-direction: column;
|
266 |
+
align-items: center;
|
267 |
+
}
|
268 |
+
|
269 |
+
.project-card {
|
270 |
+
width: 90%; /* Lebar kartu menyesuaikan layar kecil */
|
271 |
+
}
|
272 |
+
|
273 |
+
.section {
|
274 |
+
padding: 30px 20px;
|
275 |
+
}
|
276 |
+
|
277 |
+
.section h1, .section h2 {
|
278 |
+
font-size: 28px;
|
279 |
+
}
|
280 |
+
|
281 |
+
.section p {
|
282 |
+
font-size: 16px;
|
283 |
+
}
|
284 |
+
}
|
285 |
+
|
286 |
+
/* Animasi Fade In */
|
287 |
+
@keyframes fadeIn {
|
288 |
+
0% {
|
289 |
+
opacity: 0;
|
290 |
+
}
|
291 |
+
100% {
|
292 |
+
opacity: 1;
|
293 |
+
}
|
294 |
+
}
|
295 |
+
|
296 |
+
/* Animasi Slide In dari bawah */
|
297 |
+
@keyframes slideInUp {
|
298 |
+
0% {
|
299 |
+
opacity: 0;
|
300 |
+
transform: translateY(50px);
|
301 |
+
}
|
302 |
+
100% {
|
303 |
+
opacity: 1;
|
304 |
+
transform: translateY(0);
|
305 |
+
}
|
306 |
+
}
|
307 |
+
|
308 |
+
/* Animasi Zoom In */
|
309 |
+
@keyframes zoomIn {
|
310 |
+
0% {
|
311 |
+
opacity: 0;
|
312 |
+
transform: scale(0.8);
|
313 |
+
}
|
314 |
+
100% {
|
315 |
+
opacity: 1;
|
316 |
+
transform: scale(1);
|
317 |
+
}
|
318 |
+
}
|
319 |
+
|
320 |
+
/* Applying different animations to each section */
|
321 |
+
#Home {
|
322 |
+
animation: fadeIn 1s ease-in-out forwards;
|
323 |
+
}
|
324 |
+
|
325 |
+
#What-I-Do {
|
326 |
+
animation: slideInUp 1s ease-in-out forwards;
|
327 |
}
|
328 |
|
329 |
+
#Portfolio {
|
330 |
+
animation: zoomIn 1s ease-in-out forwards;
|
|
|
331 |
}
|
332 |
|
333 |
+
/* Apply fade-in when the section is in view */
|
334 |
+
.section {
|
335 |
+
opacity: 0; /* Mulai dengan transparan */
|
336 |
+
transform: translateY(50px); /* Posisi awal */
|
337 |
+
transition: opacity 1s, transform 1s;
|
338 |
}
|
339 |
|
340 |
+
.section.visible {
|
341 |
+
opacity: 1;
|
342 |
+
transform: translateY(0);
|
|
|
|
|
|
|
343 |
}
|
344 |
|
345 |
+
/* Mengatur agar footer tidak ikut bergulir dengan konten */
|
346 |
+
.footer {
|
347 |
+
text-align: center;
|
348 |
+
padding: 20px;
|
349 |
+
background: black;
|
350 |
+
border-top: 1px solid white;
|
351 |
+
position: relative; /* Agar footer tetap di bawah dan tidak ikut slide */
|
352 |
+
margin-top: 20px; /* Menambahkan margin agar tidak terlalu rapat dengan konten */
|
353 |
}
|