:root {
    --bg-color: #05070a;
    --text-color: #ffffff;
    --neon-blue: #00f2ff;
    --neon-purple: #bc13fe;
    --accent: var(--neon-blue);
    --card-bg: #10121a;
    --input-bg: #1c2128;
    --nav-bg: rgba(5, 7, 10, 0.85);
    --tab-bg: #161b22;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; cursor: none !important; }
body { background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; }
html { scroll-behavior: smooth; }
a { text-decoration: none; }
button { font-family: 'Poppins', sans-serif; }
.dark-invert img { filter: invert(1); }

/* FONT MINECRAFT */
.minecraft-font { font-family: 'Press Start 2P', cursive !important; }

/* KURSOR */
#custom-cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999999; }
.cursor-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; position: fixed; box-shadow: 0 0 10px var(--accent); }
.cursor-outline { width: 40px; height: 40px; border: 2px solid var(--accent); border-radius: 50%; position: fixed; transition: width 0.1s, height 0.1s; }

/* BACKGROUND */
.bg-wrapper { position: fixed; inset: 0; z-index: -1; filter: blur(120px); pointer-events: none; }
.neon-blob { position: absolute; width: 45vw; height: 45vw; border-radius: 50%; opacity: 0.25; }
.blob-1 { background: var(--neon-blue); top: -10%; left: -10%; }
.blob-2 { background: var(--neon-purple); bottom: -10%; right: -10%; }

/* LOADING SCREEN */
#loading-screen { position: fixed; inset: 0; background: #05070a; z-index: 999999; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.loader-socials { display: flex; gap: 20px; margin-bottom: 25px; }
.loader-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(30, 10, 50, 0.4); border: 1px solid rgba(188, 19, 254, 0.3); display: flex; justify-content: center; align-items: center; color: #fff; font-size: 1.5rem; box-shadow: 0 0 20px rgba(188, 19, 254, 0.5); }
.loader-text { text-align: center; margin-bottom: 30px; }
.welcome-text { font-size: 1.1rem; color: #fff; margin-bottom: 15px; letter-spacing: 2px; }
.mysites-text { font-size: 1.8rem; color: var(--neon-blue); text-shadow: 0 0 20px var(--neon-blue); margin: 0; }
.loader-domain { color: #888; font-size: 0.8rem; margin-bottom: 25px; letter-spacing: 4px; }
.progress-container { width: 280px; height: 4px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue); }

/* NAVBAR & SCROLL PROGRESS */
nav { position: fixed; top: 0; width: 100%; height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 8%; z-index: 1000; background: var(--nav-bg); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.logo { font-weight: 800; font-size: 1.6rem; color: var(--accent); }
.nav-links { position: relative; display: flex; list-style: none; gap: 35px; }
.nav-links a { color: #fff; opacity: 0.6; transition: 0.2s; padding-bottom: 8px; display: block; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 700; color: var(--neon-blue); }
.nav-indicator { position: absolute; bottom: -2px; left: 0; height: 3px; background: linear-gradient(to right, #6a11cb, #2575fc); border-radius: 2px; }
.scroll-progress-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: transparent; }
.scroll-progress-bar { height: 100%; width: 0%; background: linear-gradient(to right, var(--neon-blue), var(--neon-purple)); box-shadow: 0 0 10px var(--neon-blue); border-radius: 0 2px 2px 0; }

.section { min-height: 100vh; padding: 120px 8% 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 10px; color: #fff; }
.section-header p { color: #8b949e; max-width: 600px; margin: 0 auto; }

/* HOME PAGE */
.home-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; max-width: 1200px; width: 100%; }
.home-text { flex: 1; }
.badge-innovate { background: rgba(0,242,255,0.1); padding: 6px 15px; border-radius: 20px; color: var(--accent); font-size: 0.8rem; display: inline-block; margin-bottom: 15px; border: 1px solid rgba(0,242,255,0.2); }
.hero-title { font-size: 4.5rem; font-weight: 800; line-height: 1.1; color: #fff; }
.typing-wrapper { font-size: 1.5rem; font-weight: 500; margin: 10px 0 15px; color: #fff; display: flex; align-items: center; gap: 8px; }
.typing-wrapper::before { content: "Tech Enthusiast |"; font-weight: 400; }
#typing-text { color: var(--neon-blue); font-weight: 600; }
.typing-cursor { border-right: 2px solid var(--neon-blue); animation: blink 0.7s infinite; height: 25px; }
@keyframes blink { 50% { border-color: transparent; } }
.hero-desc { color: #8b949e; max-width: 500px; margin-bottom: 30px; line-height: 1.6; }
.tech-badges { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.tech-badges span { border: 1px solid rgba(255,255,255,0.1); padding: 6px 15px; border-radius: 20px; font-size: 0.8rem; background: rgba(255,255,255,0.03); color: #8b949e; }

/* BUTTONS (SPACING FIXED) */
.hero-buttons { display: flex; gap: 20px; align-items: center; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(to right, #6a11cb, #2575fc); color: #fff; padding: 12px 30px; border-radius: 12px; font-weight: 600; transition: 0.2s; box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3); cursor: pointer !important; }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(106, 17, 203, 0.6); }
.btn-purple { display: inline-flex; align-items: center; gap: 8px; background: var(--neon-purple); color: #fff; padding: 12px 25px; border-radius: 12px; font-weight: 600; transition: 0.2s; box-shadow: 0 5px 15px rgba(188, 19, 254, 0.3); cursor: pointer !important; }
.btn-purple:hover { transform: scale(1.05); background: #9b0fd1; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid #30363d; color: #fff; padding: 12px 25px; border-radius: 12px; font-weight: 600; transition: 0.2s; cursor: pointer !important; }
.btn-outline:hover { background: #1c2128; border-color: var(--accent); color: var(--accent); }
.btn-contact-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 1px solid #30363d; color: #fff; padding: 12px 30px; border-radius: 12px; font-weight: 600; transition: 0.2s; cursor: pointer !important; }
.btn-contact-outline:hover { background: rgba(255,255,255,0.05); border-color: var(--neon-blue); color: var(--neon-blue); }

/* GAMBAR HERO: NEON BERPUTAR & ZOOM */
.home-img-wrapper { position: relative; width: 450px; aspect-ratio: 4/3; border-radius: 20px; padding: 4px; overflow: hidden; display: flex; justify-content: center; align-items: center; animation: floatImage 6s ease-in-out infinite; }
.home-img-wrapper::before { content: ''; position: absolute; width: 150%; height: 150%; background: conic-gradient(transparent, transparent, var(--neon-blue), var(--neon-purple), transparent); animation: rotateNeon 4s linear infinite; }
.home-img-wrapper::after { content: ''; position: absolute; inset: 4px; background: var(--bg-color); border-radius: 16px; z-index: 1; }
.home-img { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; }
.home-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.home-img-wrapper:hover img { transform: scale(1.1); }

@keyframes rotateNeon { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes floatImage { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

/* ABOUT ME */
.about-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; max-width: 1100px; width: 100%; margin: 0 auto; }
.about-text { flex: 1; }
.about-text h3 { font-size: 2.8rem; margin-bottom: 10px; color: #fff; }
.about-text p { color: #8b949e; line-height: 1.7; margin-bottom: 20px; }
.quote-box { border-left: 3px solid var(--neon-purple); padding: 15px 20px; font-style: italic; margin-bottom: 30px; background: rgba(188, 19, 254, 0.05); border-radius: 0 10px 10px 0; color: #8b949e; }
.about-buttons { display: flex; gap: 15px; }
.about-img-wrapper { width: 350px; height: 350px; border-radius: 50%; background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple)); padding: 6px; flex-shrink: 0; box-shadow: 0 0 30px rgba(188, 19, 254, 0.3); display: flex; justify-content: center; align-items: center; }
.about-img-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid var(--bg-color); }

/* PORTFOLIO TABS */
.tab-control { display: flex; background: var(--tab-bg); padding: 6px; border-radius: 15px; gap: 5px; margin-bottom: 50px; justify-content: center; }
.tab-btn { padding: 14px 40px; border: none; border-radius: 12px; background: transparent; color: #888; font-weight: 600; transition: 0.2s; display: flex; align-items: center; gap: 10px; cursor: pointer !important; }
.tab-btn.active { background: #1c2128; color: var(--accent); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.tab-wrapper { width: 100%; max-width: 1200px; position: relative; }
.tab-content { display: none; width: 100%; opacity: 0; }
.tab-content.active { display: block; opacity: 1; }

/* PROJECTS CARD FIXED */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; width: 100%; }
.project-card { background: #161b22; border-radius: 20px; padding: 20px; border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; transition: 0.3s; }
.project-card:hover { transform: translateY(-8px); border-color: #6a11cb; box-shadow: 0 15px 30px rgba(106,17,203,0.15); }
.card-img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.card-content { display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.card-content p { color: #8b949e; font-size: 0.9rem; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.live-demo { color: var(--neon-blue); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.live-demo:hover { color: #fff; }
.btn-details { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid #30363d; color: #fff; padding: 8px 18px; border-radius: 8px; transition: 0.2s; cursor: pointer !important; font-size: 0.85rem; }
.btn-details:hover { background: #1c2128; color: #fff; border-color: #fff; }

/* CERTIFICATES */
.cert-card { position: relative; border-radius: 15px; overflow: hidden; border: 3px solid #1a1e2a; cursor: pointer !important; transition: 0.3s; background: #fff; }
.cert-card img { width: 100%; height: 250px; object-fit: cover; display: block; transition: 0.4s; }
.cert-card:hover { border-color: var(--neon-blue); transform: scale(1.02); }
.cert-card:hover img { transform: scale(1.05); }
.cert-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; backdrop-filter: blur(2px); }
.cert-card:hover .cert-overlay { opacity: 1; }
.zoom-icon { width: 60px; height: 60px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: #fff; margin-bottom: 10px; }

/* TECH STACK */
.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; width: 100%; }
.tech-box { background: var(--card-bg); padding: 25px 10px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); text-align: center; transition: 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tech-box:hover { transform: translateY(-5px); border-color: var(--neon-blue); box-shadow: 0 5px 20px rgba(0, 242, 255, 0.1); }
.tech-box img { max-width: 50px; height: 50px; object-fit: contain; margin-bottom: 15px; transition: 0.3s; }
.tech-box:hover img { transform: scale(1.1); }
.tech-box span { font-size: 0.85rem; font-weight: 600; color: #8b949e; }

/* CONTACT */
.contact-container { max-width: 600px; width: 100%; background: var(--card-bg); padding: 40px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); margin: 0 auto; }
.contact-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.contact-header h2 { font-size: 2.2rem; color: var(--neon-purple); margin: 0; }
.contact-desc { color: #8b949e; margin-bottom: 30px; font-size: 0.95rem; }
.form-group { position: relative; margin-bottom: 15px; }
.form-icon { position: absolute; left: 15px; top: 16px; color: #8b949e; font-size: 1.1rem; }
.form-input { width: 100%; background: var(--input-bg); border: 1px solid #30363d; padding: 15px 15px 15px 45px; border-radius: 12px; color: #fff; font-size: 0.9rem; outline: none; transition: 0.3s; }
.form-input:focus { border-color: var(--neon-purple); }
.form-input:invalid:focus { border-color: #ff4d4d; } /* Tanda merah jika format salah */
.btn-send { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px; background: var(--neon-purple); border: none; border-radius: 12px; color: #fff; font-weight: 700; cursor: pointer !important; transition: 0.2s; font-size: 1rem; }
.btn-send:hover { background: #9b0fd1; }

/* CUSTOM SWEETALERT2 STYLING (Tema Gelap) */
.swal2-popup { background: #161b22 !important; color: #fff !important; border-radius: 20px !important; border: 1px solid rgba(255,255,255,0.1) !important; }
.swal2-title { color: #fff !important; }
.swal2-html-container { color: #8b949e !important; }

.social-section { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.social-title { font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: #fff; }
.social-title .line { width: 25px; height: 3px; background: var(--neon-purple); border-radius: 2px; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.social-card { background: #161b22; border: 1px solid #30363d; padding: 12px; border-radius: 15px; display: flex; align-items: center; gap: 15px; text-decoration: none; transition: 0.2s; }
.social-card:hover { background: #1c2128; border-color: #6a11cb; transform: translateY(-3px); }
.s-icon { background: rgba(255,255,255,0.05); width: 40px; height: 40px; border-radius: 10px; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; color: #fff;}
.s-text strong { display: block; color: #fff; font-size: 0.9rem; }
.s-text span { font-size: 0.75rem; color: #8b949e; }

/* FOOTER */
footer { text-align: center; padding: 40px 0; color: #8b949e; font-size: 0.9rem; margin-top: 50px; }
.footer-line { width: 60px; height: 3px; background: var(--neon-purple); margin: 0 auto 15px; border-radius: 2px; }

/* DETAIL PROJECT PAGE */
#project-detail-page { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #080b12; z-index: 2000; overflow-y: auto; transform: translateX(100%); transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1); }
#project-detail-page.active { transform: translateX(0); }
.detail-container { max-width: 1100px; margin: 0 auto; padding: 80px 5% 60px; }
.breadcrumb { margin-bottom: 30px; display: flex; align-items: center; gap: 15px; }
.bread-text { color: #8b949e; font-size: 0.9rem; }
.btn-back { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid #30363d; color: #fff; padding: 8px 20px; border-radius: 8px; cursor: pointer !important; transition: 0.2s; font-size: 0.9rem; }
.btn-back:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.detail-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.detail-title { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 15px; line-height: 1.2; }
.title-line { width: 50px; height: 4px; background: linear-gradient(to right, #6a11cb, #2575fc); margin-bottom: 25px; }
.detail-desc { color: #8b949e; line-height: 1.7; margin-bottom: 30px; }

.detail-stats { display: flex; gap: 15px; margin-bottom: 30px; }
.stat-box { flex: 1; background: #10121a; border: 1px solid rgba(255,255,255,0.05); padding: 15px; border-radius: 12px; display: flex; align-items: center; gap: 15px; }
.stat-icon { background: rgba(106, 17, 203, 0.15); width: 45px; height: 45px; border-radius: 10px; display: flex; justify-content: center; align-items: center; color: #8a2be2; font-size: 1.2rem; }
.stat-info h3 { color: #fff; margin: 0 0 5px; font-size: 1.2rem; line-height: 1; }
.stat-info p { color: #8b949e; font-size: 0.75rem; margin: 0; }

.detail-actions { display: flex; gap: 15px; margin-bottom: 30px; }
.live-btn { border-color: rgba(255,255,255,0.2); } .live-btn:hover { background: rgba(255,255,255,0.05); border-color: #fff; }
.git-btn { color: #bc13fe; border-color: rgba(188, 19, 254, 0.3); } .git-btn:hover { background: rgba(188, 19, 254, 0.1); border-color: #bc13fe; }

.tech-used h4 { color: #fff; margin-bottom: 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills span { background: #10121a; border: 1px solid rgba(255,255,255,0.05); padding: 8px 15px; border-radius: 8px; font-size: 0.85rem; color: #8b949e; display: flex; align-items: center; gap: 8px; }

.detail-hero-img { width: 100%; border-radius: 15px; margin-bottom: 25px; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.features-box { background: #10121a; border: 1px solid rgba(255,255,255,0.05); padding: 25px; border-radius: 15px; }
.features-box h4 { color: #ffd700; margin-bottom: 15px; }
.features-box ul { list-style: none; padding: 0; margin: 0; }
.features-box li { position: relative; padding-left: 20px; color: #8b949e; margin-bottom: 12px; font-size: 0.9rem; line-height: 1.6; }
.features-box li::before { content: '\2022'; position: absolute; left: 0; color: #6a11cb; font-size: 1.2rem; top: -2px; }

/* LIGHTBOX */
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 3000; display: none; justify-content: center; align-items: center; padding: 20px; }
#lightbox img { max-width: 90%; max-height: 90%; border-radius: 10px; border: 2px solid var(--neon-blue); box-shadow: 0 0 30px rgba(0,242,255,0.3); }
.close-lightbox { position: absolute; top: 30px; right: 40px; font-size: 3rem; color: #fff; cursor: pointer !important; z-index: 3001; transition: 0.3s; }
.close-lightbox:hover { color: var(--accent); transform: scale(1.1); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .tech-grid { grid-template-columns: repeat(4, 1fr); }
    .about-container, .detail-grid { gap: 30px; }
}
@media (max-width: 768px) {
    .home-container, .about-container, .detail-grid { flex-direction: column; text-align: center; }
    .about-text { text-align: center; }
    .quote-box { border-left: none; border-top: 3px solid var(--neon-purple); border-radius: 0 0 10px 10px; }
    .hero-buttons, .about-buttons { justify-content: center; }
    .home-img-wrapper { width: 100%; max-width: 350px; margin-top: 30px; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-links { display: none; }
}
@media (max-width: 480px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .social-grid { grid-template-columns: 1fr; }
    .detail-stats { flex-direction: column; }
    .home-img-wrapper { max-width: 280px; }
    .about-img-wrapper { width: 280px; height: 280px; }
}