:root { --primary: #ff5252; --bg-dark: #121212; --bg-card: #1e1e1e; --text-light: #ffffff; --text-gray: #b3b3b3; --radius: 8px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "Poppins", sans-serif; background: var(--bg-dark); color: var(--text-light); line-height: 1.6; } a { text-decoration: none; color: inherit; } img { width: 100%; display: block; } ul { list-style: none; } /* ===== NAVBAR ===== */ .navbar { position: fixed; /* tetap di atas layar */ top: 0; left: 0; width: 100%; background: rgba(18, 18, 18, 0.8); backdrop-filter: blur(12px); padding: 0.8rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); z-index: 1000; transition: background 0.3s ease, padding 0.3s ease; } /* Logo */ .logo { font-weight: 700; font-size: 1.5rem; letter-spacing: 1px; font-style: italic; /* bikin miring */ } .logo-icon { color: var(--primary); } /* Menu Links */ .nav-links { display: flex; align-items: center; gap: 1.2rem; transition: opacity 0.3s ease, transform 0.3s ease; } .nav-links a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0.3rem 0; color: var(--text-light); font-weight: 700; /* lebih tebal */ text-decoration: none; transition: color 0.3s ease; } /* Underline animasi */ .nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0%; height: 2px; background: var(--primary); transition: width 0.3s ease; } .nav-links a:hover, .nav-links a.active { color: var(--primary); } .nav-links a:hover::after, .nav-links a.active::after { width: 100%; } .nav-links a i { font-size: 1.05rem; transition: transform 0.3s ease; } .nav-links a:hover i { transform: translateY(-2px); } /* Tombol CTA */ .cta { padding: 0.8rem 1.5rem; background: var(--primary); color: white; font-size: 1rem; border-radius: var(--radius); border: none; cursor: pointer; font-weight: 600; transition: background 0.3s ease, transform 0.2s ease; } .cta:hover { background: #ff3b3b; transform: translateY(-2px); } /* ===== Burger icon ===== */ .burger { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; cursor: pointer; } .burger span { display: block; height: 3px; background: var(--text-light); border-radius: 3px; transition: all 0.3s ease; } .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); } .burger.active span:nth-child(2) { opacity: 0; } .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); } /* ===== Responsive ===== */ @media (max-width: 768px) { .nav-links { display: none; flex-direction: column; position: absolute; top: 75px; right: 0; background: rgba(18, 18, 18, 0.95); backdrop-filter: blur(8px); padding: 1rem; width: 240px; border-radius: var(--radius); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); animation: slideDown 0.3s ease forwards; } .nav-links.show { display: flex; } .nav-links a { width: 100%; padding: 0.8rem 0; margin: 0.3rem 0; font-size: 1.1rem; } .burger { display: flex; } } /* ===== Animasi ===== */ @keyframes slideDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } } /* HOME SECTION */ .section-slide { display: flex; align-items: center; justify-content: center; padding: 4rem 2rem; min-height: 100vh; background: var(--bg-dark); text-align: center; width: 100%; max-width: 100vw; /* cegah lebar berlebih */ overflow-x: hidden; /* cegah scroll horizontal */ } .section-text { max-width: 800px; animation: fadeInUp 0.8s ease forwards; padding: 0 1rem; /* jaga padding di layar kecil */ box-sizing: border-box; } .greeting { font-size: 1.2rem; font-weight: 500; color: var(--primary); letter-spacing: 1px; margin-bottom: 0.5rem; } .section-text h1 { font-size: 2rem; font-weight: 700; color: var(--text-light); margin-bottom: 1rem; line-height: 1.3; } .section-text .highlight { color: var(--primary); } .subtitle { font-size: 1rem; color: var(--text-gray); margin-bottom: 2rem; line-height: 1.6; } /* Tombol CTA */ .cta { padding: 0.8rem 1.5rem; background: var(--primary); color: white; font-size: 1rem; border-radius: var(--radius); border: none; cursor: pointer; font-weight: 600; transition: background 0.3s ease, transform 0.2s ease; } .cta:hover { background: #ff3b3b; transform: translateY(-2px); } /* Animasi Fade In */ to { opacity: 1; transform: translateY(0); } /* RESPONSIVE */ @media (max-width: 768px) { .section-slide { flex-wrap: wrap; /* biar elemen turun kalau layar sempit */ } .section-text h1 { font-size: 1.8rem; } .subtitle { font-size: 0.95rem; } } /* CONTAINERS */ .main-container { padding: 4rem 2rem; max-width: 1200px; margin: auto; } .section-title { font-size: 2rem; margin-bottom: 2rem; text-align: center; } .pre-title { text-align: center; color: var(--text-gray); margin-bottom: 0.5rem; } /* ABOUT ME - Modern Style */ .about-wrapper { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding: 2rem 0; } /* Image */ .about-image { flex: 1 0 200px; border-radius: var(--radius); overflow: hidden; transform: translateX(-30px); opacity: 0; box-shadow: none; background: none; } .about-image img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; } /* Text */ .about-text { flex: 2 1 300px; transform: translateX(30px); opacity: 0; transition: transform 0.8s ease, opacity 0.8s ease; } .about-text.show { transform: translateX(0); opacity: 1; } .about-text h2 { font-size: 2rem; margin-bottom: 1rem; font-weight: 700; } .about-text p { margin-bottom: 1.2rem; color: var(--text-gray); line-height: 1.6; font-size: 1.05rem; } /* Button group */ .about-text .button-group { display: flex; flex-wrap: wrap; gap: 12px; } .cta { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: white; padding: 0.9rem 1.6rem; border-radius: 50px; border: none; cursor: pointer; text-decoration: none; font-size: 1rem; font-weight: 600; box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4); transition: background 0.3s ease, transform 0.2s ease; } .cta:hover { background: #ff6b6b; transform: translateY(-2px); } .cta i { font-size: 1.1em; } /* Mobile responsive */ @media (max-width: 768px) { .about-wrapper { flex-direction: column; text-align: center; } .about-text { transform: translateY(20px); } .about-text.show { transform: translateY(0); } .about-text .button-group { justify-content: center; } .about-image { transform: translateY(-20px); } .about-image.show { transform: translateY(0); } } /* Posisi awal: sembunyi + geser */ .scroll-animate { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; } /* Saat terlihat di layar */ .scroll-animate.show { opacity: 1; transform: translateY(0); } /* Variasi animasi */ .from-left { transform: translateX(-50px); } .from-right { transform: translateX(50px); } .from-left.show, .from-right.show { transform: translateX(0); } /* GRID */ .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; } /* SKILLS */ .skills-container { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; } .skill-card { flex: 1 1 250px; background: var(--bg-card); padding: 1.5rem; border-radius: var(--radius); text-align: center; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25); transform: translateY(20px) scale(0.95); opacity: 0; transition: transform 0.4s ease, box-shadow 0.3s ease, opacity 0.5s ease; } /* Saat kartu terlihat di layar */ .skill-card.show { transform: translateY(0) scale(1); opacity: 1; } /* Efek hover */ .skill-card:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4); } .skill-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.5rem; transition: transform 0.3s ease, color 0.3s ease; } .skill-card:hover .skill-icon { transform: rotate(10deg) scale(1.2); color: #ff7b7b; /* warna sedikit lebih terang */ } /* EDUCATION + CONTACT LAYOUT */ .education-contact-wrapper { display: flex; gap: 3rem; align-items: flex-start; margin-top: 3rem; } .education-timeline { flex: 1; border-left: 2px solid var(--text-gray); padding-left: 2rem; position: relative; } .education-item { position: relative; padding-bottom: 3rem; /* jarak antar item */ } .education-item::before { content: ""; position: absolute; left: -2.4rem; /* posisi horizontal titik */ top: 0.4rem; /* posisi vertikal titik */ width: 12px; height: 12px; background-color: #ffffff; /* warna titik */ border-radius: 50%; border: 2px solid var(--dark); /* outline titik, cocok buat dark mode */ } .education-item h4 { font-size: 1.2rem; font-weight: 600; } .education-item p { color: var(--text-gray); margin-top: 0.2rem; } .education-item span { display: block; color: var(--text-gray); font-size: 0.9rem; } /* CONTACT INFO */ .contact-info-wrapper { flex: 1; } .contact-block { margin-bottom: 1.5rem; } .contact-block h4 { font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 0.4rem; } .contact-block p { color: var(--text-gray); margin-left: 1.5rem; } /* ICON STYLE */ .contact-block h4::before { font-size: 1.2rem; } /* RESPONSIVE */ @media (max-width: 768px) { .education-contact-wrapper { flex-direction: column; gap: 2rem; } .education-item { position: relative; padding-bottom: 3rem; /* jarak antar item */ } .education-item::before { left: -2.4rem; /* titik tetap di kiri teks */ top: 0.4rem; background-color: #ffffff; /* bisa pakai warna tema */ border: none; } /* Perkecil ukuran teks */ .education-item h4 { font-size: 1rem; } .education-item span { font-size: 0.85rem; } /* Contact block biar jaraknya rapi */ .contact-info-wrapper { margin-top: 1rem; } } /* FOOTER */ footer { text-align: center; padding: 1rem; background: var(--bg-card); font-size: 0.9rem; color: var(--text-gray); } /* ANIMATIONS */ .fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; } .fade-in.show { opacity: 1; transform: translateY(0); } /* RESPONSIVE */ @media (max-width: 768px) { .nav-links { display: none; } } h1 { color: #ffffff; text-align: center; } .typewriter { white-space: pre-wrap; overflow: hidden; position: relative; } .typewriter::after { content: ""; position: absolute; width: 2px; height: 1em; background: currentColor; animation: blink 1s steps(1) infinite; margin-left: 2px; } @keyframes blink { 50% { opacity: 0; } } /* Splash Screen */ #welcome-screen { position: fixed; inset: 0; background: linear-gradient(135deg, var(--primary), #ff7b7b); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; animation: splashFade 2s ease-in-out forwards; } /* Logo animasi */ .welcome-logo { width: 110px; height: 110px; background: white; color: var(--primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 3rem; font-weight: 800; animation: logoPop 1s ease-in-out forwards; } .logo-icon { transform: scale(0.8); } /* Text muncul */ .welcome-text { margin-top: 15px; color: white; font-size: 1.2rem; font-weight: 500; letter-spacing: 1px; opacity: 0; animation: textFade 0.8s ease-in-out forwards; animation-delay: 0.5s; } /* Keyframes */ @keyframes logoPop { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.1) rotate(0); opacity: 1; } 100% { transform: scale(1) rotate(0); } } @keyframes textFade { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } } @keyframes splashFade { 0% { opacity: 1; transform: scale(1); } 80% { opacity: 1; transform: scale(1.02); } 100% { opacity: 0; transform: scale(1); visibility: hidden; } } /* CONTACT FORM MODERN TANPA BACKGROUND */ .contact-section { text-align: center; padding: 50px 20px; } .contact-form { max-width: 1200px; /* Lebar lebih besar */ margin: 0 auto; display: flex; flex-direction: column; gap: 15px; } .contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: transparent; color: var(--text-light); font-size: 1rem; transition: all 0.3s ease; } .contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.5); } .contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 8px rgba(255, 82, 82, 0.5); outline: none; } .contact-form textarea { resize: none; min-height: 150px; } /* Tombol di bawah form */ .contact-form button { margin-top: 10px; padding: 14px; border: none; border-radius: 8px; background: linear-gradient(90deg, var(--primary), #ff6b6b); color: white; font-size: 1rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.2s, box-shadow 0.3s; } .contact-form button:hover { transform: translateY(-2px); box-shadow: 0 0 12px rgba(255, 82, 82, 0.6); } .fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; } .fade-up.show { opacity: 1; transform: translateY(0); } /* Social Buttons Container */ .social-buttons { margin-top: 1.5rem; display: flex; gap: 1rem; justify-content: center; } /* Default Button Style - Transparent */ .social-btn { width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-light); font-size: 1.3rem; text-decoration: none; transition: all 0.3s ease; background: transparent; /* transparan */ border: 2px solid var(--text-light); /* border tipis */ } /* Hover efek */ .social-btn:hover { transform: translateY(-3px) scale(1.1); border-color: var(--primary); color: var(--primary); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } /* Icon Styling */ .social-btn i { font-size: 1.25rem; transition: transform 0.3s ease; } .social-btn:hover i { transform: translateY(-2px); } /* Warna hover khusus platform (opsional) */ .lynk:hover { color: #48ff00; border-color: #48ff00; } .instagram:hover { color: #e1306c; border-color: #e1306c; } .tiktok:hover { color: #69c9d0; border-color: #69c9d0; } .x-twitter:hover { color: #1da1f2; border-color: #1da1f2; } .threads:hover { color: #ff2e2e; border-color: #ff2e2e; } /* Hapus scroll horizontal di seluruh halaman */ html, body { overflow-x: hidden; width: 100%; } /* Pastikan semua elemen tidak lebih dari lebar layar */ img, video { max-width: 100%; height: auto; } * { box-sizing: border-box; } /* Gambar responsif */ img { max-width: 100%; height: auto; display: block; } /* Floating WhatsApp Button */ .floating-btn { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background: #25d366; /* Hijau WhatsApp */ color: #fff; font-size: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transition: 0.3s ease; z-index: 999; } .floating-btn:hover { background: #1ebc57; transform: scale(1.15); } /* Tooltip saat hover */ .floating-btn::after { content: "Chat via WhatsApp"; position: absolute; right: 65px; bottom: 50%; transform: translateY(50%); background: #333; color: #fff; padding: 6px 12px; border-radius: 5px; font-size: 14px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; } .floating-btn:hover::after { opacity: 1; } /* Animasi Pulse */ @keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } } .floating-btn { animation: pulse 2s infinite; } /* ===== PORTFOLIO ===== */ .section-subtitle { text-align: center; color: var(--text-gray); margin-bottom: 2rem; font-size: 1rem; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.6; } .portfolio-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; } .tab-btn { padding: 0.6rem 1.2rem; border-radius: var(--radius); background: var(--bg-card); color: var(--text-light); border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; font-weight: 500; transition: all 0.3s ease; } .tab-btn.active, .tab-btn:hover { background: var(--primary); color: #fff; } .portfolio-content { width: 100%; } .tab-content { display: none; animation: fadeIn 0.6s ease; } .tab-content.active { display: block; } .portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; } /* Portfolio Card */ .portfolio-card { background: var(--bg-card); border-radius: var(--radius); padding: 1rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; display: flex; flex-direction: column; justify-content: flex-start; } .portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); } .portfolio-card img { border-radius: var(--radius); margin-bottom: 1rem; width: 100%; height: auto; /* tinggi menyesuaikan */ object-fit: contain; /* tampil penuh, tidak terpotong */ background: #111; /* kasih background gelap biar rapi */ padding: 8px; /* jarak aman dari tepi */ box-sizing: border-box; } .portfolio-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; font-weight: 600; color: var(--text-light); } .portfolio-card p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.8rem; flex-grow: 1; /* agar deskripsi isi ruang */ } .card-links { margin-top: auto; display: flex; justify-content: center; gap: 1rem; } .card-links a { font-size: 0.9rem; color: var(--primary); font-weight: 600; text-decoration: none; transition: color 0.3s ease; } .card-links a:hover { color: #ff7b7b; } /* Tech Stack Card (tanpa gambar, hanya icon) */ .tech-icon { font-size: 3rem; color: var(--primary); margin-bottom: 0.5rem; } /* Responsive */ @media (max-width: 768px) { .portfolio-grid { grid-template-columns: 1fr; } } /* Responsive Tabs */ @media (max-width: 768px) { .portfolio-tabs { flex-wrap: wrap; gap: 0.5rem; } .tab-btn { flex: 1 1 100px; /* biar tombol melebar */ padding: 0.8rem 1rem; /* area tap lebih besar */ font-size: 0.9rem; justify-content: center; } } /* Typing Animation */ #typing { border-right: 2px solid var(--primary); padding-right: 4px; white-space: nowrap; overflow: hidden; display: inline-block; } @keyframes blink { 0%, 50% { border-color: var(--primary); } 50.1%, 100% { border-color: transparent; } } /* ===== EXPERIENCE ===== */ .experience-timeline { display: flex; flex-direction: column; gap: 30px; margin-top: 30px; position: relative; padding-left: 20px; } .experience-timeline::before { content: ""; position: absolute; left: 41px; top: 0; bottom: 0; width: 10px; background: linear-gradient(180deg, #ff5252, #ffb1b1); border-radius: 5px; /* Animasi awal */ transform: scaleY(0); transform-origin: top; opacity: 0; transition: transform 1s ease-out, opacity 1s ease-out; } .experience-timeline.show-line::before { transform: scaleY(1); opacity: 1; } .experience-card { display: flex; align-items: flex-start; gap: 20px; position: relative; } .exp-icon { width: 50px; height: 50px; background: #ff4848; color: #fff; display: flex; justify-content: center; align-items: center; border-radius: 50%; font-size: 20px; flex-shrink: 0; /* Hilangkan shadow */ box-shadow: none; } .exp-content { background: #1e1e1e; padding: 15px 20px; border-radius: 12px; width: 100%; transition: transform 0.3s ease; /* Hilangkan shadow */ box-shadow: none; } .exp-content:hover { transform: translateY(-5px); /* Hilangkan shadow */ box-shadow: none; } .exp-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; color: #ff5252; } .exp-date { font-size: 14px; color: #adadad; margin-bottom: 10px; display: block; } .exp-content p { font-size: 15px; line-height: 1.6; color: #ffffff; } .exp-location { display: flex; align-items: center; gap: 8px; color: #ffb1b1; /* warna berbeda untuk lokasi */ font-size: 14px; margin-bottom: 10px; /* jarak ke paragraf berikutnya */ }