Ibnu Daffa | Futuristic Student Portfolio /* ========================================== 1. RESET & VARIABLE DEFINITIONS ========================================== */ :root { --bg-dark: #080913; --bg-card: rgba(15, 23, 42, 0.65); --neon-cyan: #00f3ff; --neon-purple: #a855f7; --neon-magenta: #b5179e; --cyber-gray: #1e293b; --text-color: #cbd5e1; --text-muted: #94a3b8; --font-poppins: 'Poppins', sans-serif; --font-inter: 'Inter', sans-serif; } * { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { background-color: var(--bg-dark); color: var(--text-color); font-family: var(--font-inter); line-height: 1.6; min-height: 100vh; position: relative; overflow-x: hidden; -webkit-font-smoothing: antialiased; } ::selection { background-color: var(--neon-cyan); color: #000; } /* Custom Scrollbar */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--bg-dark); } ::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; border: 1px solid rgba(0, 243, 255, 0.2); } ::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); } /* ========================================== 2. LAYOUT & GLASSMORPHISM UTILITIES ========================================== */ .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; } .glass-card { background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); border-radius: 1.5rem; transition: all 0.3s ease; } .glass-card:hover { border-color: rgba(0, 243, 255, 0.3); box-shadow: 0 10px 30px -10px rgba(0, 243, 255, 0.2); } .glass-nav { background: rgba(8, 9, 19, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); } .gradient-text { background: linear-gradient(135deg, #00f3ff 0%, #a855f7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 20px rgba(0,243,255,0.3)); } /* Typewriter Cursor */ .typewriter-cursor::after { content: '|'; animation: blink 0.8s infinite; color: var(--neon-cyan); font-weight: 700; } @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } /* ========================================== 3. HEADER & NAVIGATION ========================================== */ header { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; } .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; } .logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; } .logo-box { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: linear-gradient(to top right, var(--neon-cyan), var(--neon-purple)); padding: 1px; box-shadow: 0 0 20px rgba(0, 243, 255, 0.35); transition: transform 0.3s ease; } .logo:hover .logo-box { transform: scale(1.05); } .logo-inner { width: 100%; height: 100%; background-color: var(--bg-dark); border-radius: 11px; display: flex; align-items: center; justify-content: center; font-family: var(--font-poppins); font-weight: 800; color: var(--neon-cyan); } .logo-text { font-family: var(--font-poppins); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.05em; color: #fff; } .logo-sub { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; font-weight: 400; margin-left: 0.25rem; } .desktop-nav { display: flex; align-items: center; gap: 2rem; font-family: var(--font-poppins); font-size: 0.875rem; font-weight: 500; } .desktop-nav a { color: #cbd5e1; text-decoration: none; transition: color 0.3s ease; } .desktop-nav a:hover { color: var(--neon-cyan); } .btn-contact-nav { padding: 0.625rem 1.25rem; border-radius: 9999px; border: 1px solid rgba(0, 243, 255, 0.5); color: var(--neon-cyan) !important; box-shadow: 0 0 15px rgba(0, 243, 255, 0.15); transition: all 0.3s ease; } .btn-contact-nav:hover { background-color: rgba(0, 243, 255, 0.1); border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 243, 255, 0.35); } .mobile-menu-btn { display: none; background: rgba(15, 23, 42, 0.5); border: 1px solid #1e293b; color: #cbd5e1; padding: 0.5rem; border-radius: 0.5rem; cursor: pointer; } .mobile-menu { display: none; flex-direction: column; gap: 1rem; padding: 1rem 1.5rem 1.5rem 1.5rem; text-align: center; font-family: var(--font-poppins); } .mobile-menu.active { display: flex; } .mobile-menu a { color: #cbd5e1; text-decoration: none; padding: 0.5rem 0; } .mobile-menu a:hover { color: var(--neon-cyan); } /* ========================================== 4. HERO SECTION ========================================== */ .hero-section { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 5rem 1rem 3rem 1rem; text-align: center; } .hero-content { display: flex; flex-direction: column; align-items: center; max-width: 64rem; } .avatar-wrapper { position: relative; margin-bottom: 2rem; cursor: pointer; } .avatar-spin-ring { position: absolute; inset: -6px; background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple), var(--neon-cyan)); border-radius: 50%; filter: blur(4px); opacity: 0.75; animation: spin 12s linear infinite; transition: opacity 1s ease; } .avatar-wrapper:hover .avatar-spin-ring { opacity: 1; } .avatar-box { position: relative; width: 11rem; height: 11rem; border-radius: 50%; padding: 4px; background-color: var(--bg-dark); border: 2px solid rgba(0, 243, 255, 0.8); box-shadow: 0 0 25px rgba(0, 243, 255, 0.25), 0 0 50px rgba(168, 85, 247, 0.15); overflow: hidden; } .avatar-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: transform 0.5s ease; } .avatar-wrapper:hover .avatar-box img { transform: scale(1.1); } .status-badge { position: absolute; bottom: 0.5rem; right: 0.5rem; padding: 0.25rem 0.75rem; background: rgba(8, 9, 19, 0.9); border: 1px solid rgba(0, 243, 255, 0.6); border-radius: 9999px; font-size: 0.75rem; font-family: var(--font-poppins); color: var(--neon-cyan); display: flex; align-items: center; gap: 0.375rem; box-shadow: 0 0 20px rgba(0, 243, 255, 0.35); } .ping-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background-color: var(--neon-cyan); animation: pulse 2s infinite; } .student-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem; border-radius: 9999px; background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(168, 85, 247, 0.4); color: var(--neon-purple); font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem; backdrop-filter: blur(12px); } .hero-title { font-family: var(--font-poppins); font-weight: 800; font-size: 2.5rem; letter-spacing: -0.025em; margin-bottom: 1rem; text-transform: lowercase; } .typewriter-box { height: 3rem; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; font-family: var(--font-poppins); font-size: 1.25rem; color: #cbd5e1; } .typewriter-text { color: var(--neon-cyan); font-weight: 700; } .hero-desc { max-width: 42rem; color: #94a3b8; font-size: 0.95rem; line-height: 1.6; margin-bottom: 2.5rem; } .cta-group { display: flex; gap: 1rem; width: 100%; justify-content: center; flex-wrap: wrap; } .btn-primary { padding: 0.875rem 2rem; border-radius: 0.75rem; background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple)); color: #030712; font-family: var(--font-poppins); font-weight: 700; font-size: 0.875rem; text-decoration: none; transition: all 0.3s ease; border: none; cursor: pointer; } .btn-primary:hover { box-shadow: 0 0 25px rgba(0, 243, 255, 0.6); transform: scale(1.05); } .btn-secondary { padding: 0.875rem 2rem; border-radius: 0.75rem; background: rgba(15, 23, 42, 0.8); border: 1px solid #334155; color: #e2e8f0; font-family: var(--font-poppins); font-weight: 600; font-size: 0.875rem; text-decoration: none; transition: all 0.3s ease; } .btn-secondary:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 243, 255, 0.35); transform: scale(1.05); } /* ========================================== 5. SECTION GENERAL STYLES & GRIDS ========================================== */ .section-padding { padding: 5rem 0; position: relative; } .section-header { text-align: center; margin-bottom: 3rem; } .section-subtitle { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; font-family: var(--font-poppins); font-weight: 600; margin-bottom: 0.5rem; } .section-title { font-size: 2rem; font-family: var(--font-poppins); font-weight: 700; color: #fff; } .section-divider { width: 4rem; height: 4px; background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple)); margin: 1rem auto 0 auto; border-radius: 9999px; } /* Grid Bio */ .grid-bio { display: grid; grid-template-columns: 1fr; gap: 2rem; } .bio-card { padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; } .bio-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; padding-top: 1rem; border-top: 1px solid #1e293b; font-size: 0.75rem; font-family: var(--font-poppins); margin-top: 1.5rem; } .chip-item { background: rgba(15, 23, 42, 0.7); padding: 0.75rem; border-radius: 0.75rem; border: 1px solid rgba(30, 41, 59, 0.8); } .chip-label { color: #64748b; display: block; } .stats-stack { display: flex; flex-direction: column; gap: 1rem; } .stat-card { padding: 1.5rem; display: flex; align-items: center; gap: 1.25rem; border-left: 4px solid var(--neon-cyan); transition: transform 0.3s ease; } .stat-card.purple { border-left-color: var(--neon-purple); } .stat-card.emerald { border-left-color: #34d399; } .stat-card:hover { transform: translateX(6px); } .stat-icon { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; background: rgba(0, 243, 255, 0.1); border: 1px solid rgba(0, 243, 255, 0.3); display: flex; align-items: center; justify-content: center; color: var(--neon-cyan); } .stat-icon.purple { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.3); color: var(--neon-purple); } .stat-icon.emerald { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.3); color: #34d399; } .stat-value { font-size: 1.875rem; font-family: var(--font-poppins); font-weight: 800; color: #fff; } /* Skills Filter & Grid */ .skills-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 3rem; font-family: var(--font-poppins); font-size: 0.875rem; } .skill-tab-btn { padding: 0.625rem 1.25rem; border-radius: 9999px; border: 1px solid #1e293b; background: rgba(15, 23, 42, 0.6); color: #94a3b8; cursor: pointer; transition: all 0.3s ease; } .skill-tab-btn.active { border-color: var(--neon-cyan); background: rgba(0, 243, 255, 0.1); color: var(--neon-cyan); font-weight: 600; } .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; } .skill-card { padding: 1.5rem; } .skill-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; } .skill-info { display: flex; align-items: center; gap: 0.75rem; } .skill-badge { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; } .progress-bar-bg { width: 100%; height: 0.75rem; background-color: #0f172a; border-radius: 9999px; overflow: hidden; padding: 2px; border: 1px solid #1e293b; } .skill-progress-bar { height: 100%; border-radius: 9999px; transition: width 1s ease-out; } /* Timeline */ .timeline-container { position: relative; padding-left: 2rem; display: flex; flex-direction: column; gap: 2.5rem; max-width: 800px; margin: 0 auto; } .timeline-line { position: absolute; top: 0.5rem; bottom: 0.5rem; left: 0.625rem; width: 4px; background: linear-gradient(180deg, #00f3ff 0%, #a855f7 50%, rgba(168, 85, 247, 0.1) 100%); border-radius: 9999px; } .timeline-item { position: relative; } .timeline-node { position: absolute; left: -2rem; top: 0.375rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background-color: var(--bg-dark); border: 2px solid var(--neon-cyan); box-shadow: 0 0 15px rgba(0, 243, 255, 0.35); display: flex; align-items: center; justify-content: center; transform: translateX(-50%); } .timeline-node-inner { width: 0.5rem; height: 0.5rem; border-radius: 50%; background-color: var(--neon-cyan); } .timeline-card { padding: 1.5rem; } .tag-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 0.375rem; font-size: 0.75rem; font-family: var(--font-poppins); font-weight: 600; } /* Hobbies Grid */ .hobbies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; } .hobby-card { padding: 2rem; transition: transform 0.3s ease; } .hobby-card:hover { transform: translateY(-8px); } .hobby-icon { width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: all 0.3s ease; } /* Contact Section */ .contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; } .social-link-item { display: flex; align-items: center; gap: 1rem; padding: 0.875rem 1rem; border-radius: 1rem; background: rgba(15, 23, 42, 0.8); border: 1px solid #1e293b; text-decoration: none; transition: all 0.3s ease; } .social-link-item:hover { background-color: #0f172a; border-color: rgba(0, 243, 255, 0.5); } .social-icon-box { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; padding: 0.5rem; color: #fff; } .form-group { margin-bottom: 1.25rem; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .form-label { display: block; font-size: 0.75rem; font-family: var(--font-poppins); font-weight: 600; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; } .form-input { width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem; background: rgba(15, 23, 42, 0.9); border: 1px solid #1e293b; color: #fff; font-size: 0.875rem; outline: none; transition: border-color 0.3s ease; } .form-input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0, 243, 255, 0.2); } footer { border-top: 1px solid rgba(30, 41, 59, 0.8); background: rgba(2, 6, 23, 0.8); padding: 2rem 0; font-family: var(--font-poppins); font-size: 0.75rem; color: var(--text-muted); } .footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; } /* Toast Popup */ #toastNotification { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; transform: translateY(8rem); opacity: 0; pointer-events: none; transition: all 0.3s ease; } #toastNotification.show { transform: translateY(0); opacity: 1; pointer-events: auto; } /* ========================================== 6. ANIMATION KEYFRAMES & RESPONSIVE ========================================== */ @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } @media (min-width: 768px) { .hero-title { font-size: 4.5rem; } .desktop-nav { display: flex; } .mobile-menu-btn { display: none; } .grid-bio { grid-template-columns: 7fr 5fr; } .contact-grid { grid-template-columns: 5fr 7fr; } .footer-inner { flex-direction: row; } } @media (max-width: 767px) { .desktop-nav { display: none; } .mobile-menu-btn { display: block; } .form-row { grid-template-columns: 1fr; } }
Foto Profil Ibnu Daffa
Open to Learn
Siswa SMA PKBM Islam ALanshar

hi, im Ibnu daffa

Saya seorang

Pelajar tingkat SMA yang terobsesi dengan dunia coding, kecerdasan buatan (AI), dan desain antarmuka modern. Bercita-cita menjadi Full-Stack Software Engineer.

// TENTANG SAYA

Eksplorasi & Passion Di Sekolah

Profil Pelajar Tech

Saat ini saya duduk di kelas XI MIPA (Pengembangan Perangkat Lunak). Perjalanan saya di dunia pemrograman dimulai sejak kelas 8 SMP ketika pertama kali tertarik membedah cara kerja halaman web sederhana.

Selain fokus pada kurikulum akademis sekolah, saya aktif menyisihkan waktu untuk belajar secara mandiri (autodidact), mengikuti pelatihan online, serta bereksperimen membangun proyek web interaktif dan modul logika robotika dasar.

Lokasi Bekasi, Indonesia
Jurusan XI MIPA
Minat Utama Web & AI Tech
3+ Tahun

Belajar Coding & Web Dev

10+ Mini

Proyek Selesai & Eksperimen

Grade 11

Siswa Aktif Extracurricular IT

// KEMAMPUAN TEKNIS

Skills & Tingkat Penguasaan

HTML

HTML5 & CSS3 / Tailwind

Web Markup & Styling
85%
JS

JavaScript (ES6+)

Interactive Logic & DOM
65%
FIG

Figma & UI/UX Design

Wireframing & Prototyping
75%
GIT

Git & GitHub

Version Control & Repository
80%

// REKAM JEJAK

Timeline Pendidikan & Kegiatan

2026 - SEKARANG (SAAT INI) Kelas XI MIPA

SMA PKBM Islam Alanshar

Aktif mendalami mata pelajaran peminatan sains dan informatika. Terlibat langsung dalam kepengurusan ekstrakurikuler IT Club dan divisi publikasi media sekolah.

📱 Pengurus Klub Komputer 🥇 Juara 2 Web Design Tingkat Kota (2024) 🤖 Anggota Tim Robotik
2022 - 2024 Lulusan Terbaik Sektor IT

SMP Adzkia Kharisma

Mulai tertarik mendalami logika dasar komputer, algoritma Scratch, dan struktur pembuatan dasar website menggunakan HTML/CSS.

👔 Pengurus OSIS Divisi IPTEK 📜 Sertifikat Dasar HTML Dicoding
2016 - 2022 Pendidikan Dasar

SD Negeri Pekayon Jaya

Mengenal dasar teknologi komputer melalui perangkat lunak perkantoran sederhana dan berpartisipasi aktif dalam kegiatan kepramukaan sekolah.

// WAKTU LUANG & PASSION

Hobi & Eksplorasi Diri

Coding Web App

Suka bereksperimen membuat tampilan antarmuka web yang unik, interaktif, dan fungsional di akhir pekan.

Gaming Strategi

Bermain game PC bertema taktik & RPG untuk mengasah analisis pemecahan masalah cepat dan kerjasama tim.

UI/UX Designing

Mendesain ulang tampilan aplikasi populer di Figma dengan pendekatan gaya cyberpunk dan futuristik modern.

Mendengar Musik

Mendengarkan musik pop, jazz, dan Hip Hop sebagai teman setia saat fokus mengetik baris kode.

Robotik & IoT

Mencoba merangkai mikrokontroler Arduino & sensor sederhana untuk eksperimen teknologi pintar di laboratorium sekolah.

Eksplorasi Buku Tech

Membaca artikel teknologi terkini, tren AI, dan jurnal perkembangan perangkat lunak global.

// HUBUNGI SAYA

Mari Terhubung & Berkolaborasi

Kirim Pesan Atau Temui Saya

Terbuka untuk diskusi proyek sekolah, kolaborasi belajar coding, atau sekadar bertukar ide seputar dunia teknologi.

Formulir Pesan Cepat

✓
Pesan Terkirim!

Terima kasih, saya akan segera membalasnya.

document.addEventListener('DOMContentLoaded', () => { /* 1. Interactive Canvas Particle System */ const canvas = document.getElementById('particleCanvas'); const ctx = canvas.getContext('2d'); let width = canvas.width = window.innerWidth; let height = canvas.height = window.innerHeight; window.addEventListener('resize', () => { width = canvas.width = window.innerWidth; height = canvas.height = window.innerHeight; }); const particles = []; const particleCount = Math.min(Math.floor(window.innerWidth / 15), 85); const colors = ['#00f3ff', '#a855f7', '#3b82f6']; let mouse = { x: null, y: null, radius: 140 }; window.addEventListener('mousemove', (e) => { mouse.x = e.clientX; mouse.y = e.clientY; }); window.addEventListener('mouseleave', () => { mouse.x = null; mouse.y = null; }); class Particle { constructor() { this.x = Math.random() * width; this.y = Math.random() * height; this.radius = Math.random() * 2 + 1; this.color = colors[Math.floor(Math.random() * colors.length)]; this.vx = (Math.random() - 0.5) * 0.8; this.vy = (Math.random() - 0.5) * 0.8; } draw() { ctx.beginPath(); ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2); ctx.fillStyle = this.color; ctx.shadowColor = this.color; ctx.shadowBlur = 8; ctx.fill(); ctx.shadowBlur = 0; } update() { this.x += this.vx; this.y += this.vy; if (this.x width) this.vx *= -1; if (this.y height) this.vy *= -1; if (mouse.x !== null && mouse.y !== null) { let dx = mouse.x - this.x; let dy = mouse.y - this.y; let dist = Math.sqrt(dx * dx + dy * dy); if (dist < mouse.radius) { let force = (mouse.radius - dist) / mouse.radius; this.x -= (dx / dist) * force * 2; this.y -= (dy / dist) * force * 2; } } } } for (let i = 0; i < particleCount; i++) { particles.push(new Particle()); } function animateParticles() { ctx.clearRect(0, 0, width, height); for (let i = 0; i < particles.length; i++) { particles[i].update(); particles[i].draw(); for (let j = i + 1; j < particles.length; j++) { let dx = particles[i].x - particles[j].x; let dy = particles[i].y - particles[j].y; let dist = Math.sqrt(dx * dx + dy * dy); if (dist { btn.addEventListener('click', () => { filterBtns.forEach(b => b.classList.remove('active')); btn.classList.add('active'); const category = btn.getAttribute('data-filter'); skillCards.forEach(card => { if (category === 'all' || card.getAttribute('data-category') === category) { card.style.display = 'block'; } else { card.style.display = 'none'; } }); }); }); const skillsSection = document.getElementById('skills'); const skillsObserver = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { progressBars.forEach(bar => { const targetPercentage = bar.getAttribute('data-percentage'); bar.style.width = targetPercentage; }); skillsObserver.unobserve(entry.target); } }); }, { threshold: 0.2 }); skillsObserver.observe(skillsSection); /* 4. Mobile Navigation Menu Toggle */ const mobileMenuBtn = document.getElementById('mobileMenuBtn'); const mobileMenu = document.getElementById('mobileMenu'); const hamburgerIcon = document.getElementById('hamburgerIcon'); const closeIcon = document.getElementById('closeIcon'); const mobileLinks = document.querySelectorAll('.mobile-link'); mobileMenuBtn.addEventListener('click', () => { const isOpen = mobileMenu.classList.contains('active'); if (!isOpen) { mobileMenu.classList.add('active'); hamburgerIcon.style.display = 'none'; closeIcon.style.display = 'block'; } else { mobileMenu.classList.remove('active'); hamburgerIcon.style.display = 'block'; closeIcon.style.display = 'none'; } }); mobileLinks.forEach(link => { link.addEventListener('click', () => { mobileMenu.classList.remove('active'); hamburgerIcon.style.display = 'block'; closeIcon.style.display = 'none'; }); }); /* 5. Contact Form Toast Notification */ const contactForm = document.getElementById('contactForm'); const toast = document.getElementById('toastNotification'); contactForm.addEventListener('submit', (e) => { e.preventDefault(); toast.classList.add('show'); contactForm.reset(); setTimeout(() => { toast.classList.remove('show'); }, 4000); }); });