File size: 6,840 Bytes
55245b2
 
 
 
 
 
 
 
 
 
 
 
cee76cd
55245b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cee76cd
 
55245b2
 
cee76cd
 
55245b2
 
 
 
 
cee76cd
 
55245b2
 
 
cee76cd
 
55245b2
 
 
 
 
 
 
 
cee76cd
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden; /* Menonaktifkan overflow di body */
    scroll-behavior: smooth; /* Untuk scroll yang lebih halus */
}

body {
    font-family: Arial, sans-serif;
    background: black;
    color: white;
    line-height: 1.6;
}

.scroll-container {
    height: 100%;
    overflow-y: scroll; /* Mengaktifkan scroll vertikal */
    scroll-snap-type: y mandatory; /* Snap scroll secara vertikal */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: black;
    border-bottom: 1px solid white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.navigation ul {
    display: flex;
    list-style: none;
}

.navigation ul li {
    margin: 0 15px;
}

.navigation ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navigation ul li a:hover {
    color: grey;
    transform: scale(1.05); /* Efek zoom pada link saat hover */
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh; /* Setiap section mengambil penuh layar */
    scroll-snap-align: start; /* Memastikan halaman berhenti di awal */
    flex-direction: column;
}

.section-content {
    max-width: 1200px;
    width: 100%;
}

.section h1, .section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.item {
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.liquid-digital-assets {
    background-color: #e0f7fa;
}

.partners {
    background-color: #f1f8e9;
}

/* Bagian Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Responsif grid */
    gap: 20px;
    justify-items: center;
    align-items: center;
}

/* Item dalam Portfolio */
.portfolio-item {
    text-align: center;
}

.portfolio-item img {
    max-width: 80px; /* Ukuran logo */
    height: auto;
    margin-bottom: 10px; /* Jarak antara logo dan teks */
}

.portfolio-item p {
    font-size: 14px;
    color: white;
}

/* Responsif untuk grid */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Ukuran lebih kecil untuk perangkat kecil */
    }

    .portfolio-item img {
        max-width: 60px;
    }

    .portfolio-item p {
        font-size: 12px;
    }

    /* Mengubah menu menjadi hamburger pada layar kecil */
    .navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Menyesuaikan dengan tinggi navbar */
        right: 0;
        background: black;
        width: 100%; /* Menu sekarang membentang penuh dari kanan ke kiri */
        height: auto;
        transform: translateY(-100%); /* Menyembunyikan menu di atas layar */
        transition: transform 0.5s ease-in-out; /* Efek animasi turun */
        z-index: 1000;
    }

    .navigation.active ul {
        display: flex;
        transform: translateY(0); /* Menu turun ke bawah */
    }

    .menu-toggle.active {
        color: white;
    }

    .menu-toggle {
        display: block;
    }

    /* Tombol X untuk menutup menu */
    .close-btn {
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 30px;
        color: white;
        cursor: pointer;
    }
}

/* Kartu proyek */
.project-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding: 0 20px;
}

.project-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    width: 300px; /* Ukuran tetap untuk kartu */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.project-card p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 15px;
}

.project-card a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.project-card a:hover {
    background-color: #0056b3;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Responsif untuk kartu proyek */
@media (max-width: 768px) {
    .portfolio {
        grid-template-columns: 1fr;
    }

    .project-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%; /* Lebar kartu menyesuaikan layar kecil */
    }

    .section {
        padding: 30px 20px;
    }

    .section h1, .section h2 {
        font-size: 28px;
    }

    .section p {
        font-size: 16px;
    }
}

/* Animasi Fade In */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Animasi Slide In dari bawah */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi Zoom In */
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Applying different animations to each section */
#Home {
    animation: fadeIn 1s ease-in-out forwards;
}

#What-I-Do {
    animation: slideInUp 1s ease-in-out forwards;
}

#Portfolio {
    animation: zoomIn 1s ease-in-out forwards;
}

/* Apply fade-in when the section is in view */
.section {
    opacity: 0; /* Mulai dengan transparan */
    transform: translateY(50px); /* Posisi awal */
    transition: opacity 1s, transform 1s;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mengatur agar footer tidak ikut bergulir dengan konten */
.footer {
    text-align: center;
    padding: 20px;
    background: black;
    border-top: 1px solid white;
    position: relative; /* Agar footer tetap di bawah dan tidak ikut slide */
    margin-top: 20px; /* Menambahkan margin agar tidak terlalu rapat dengan konten */
}