/* --- RESET & GLOBAL --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f0f2f5; 
    color: #1a1a1a;
    overflow-x: hidden;
    height: 100vh;
    position: relative;
}

/* TEKSTUR KERTAS HALUS */
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; mix-blend-mode: multiply;
}

/* --- SPLASH SCREEN --- */
.splash-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #1a1a1a; z-index: 10000; display: flex; justify-content: center; align-items: center; color: white;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}
.splash-screen.hide { transform: translateY(-100%); }
.splash-content h1 { 
    font-size: 50px; font-weight: 800; letter-spacing: -2px; 
    animation: zoomOut 1.5s ease forwards;
}

@keyframes zoomOut {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.1); opacity: 0; }
}

/* --- NAVIGASI (FLOATING PILL STYLE) --- */
nav {
    position: fixed; top: 0; width: 100%; 
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 6%; z-index: 100; 
    pointer-events: none; /* Biar area kosong tembus klik */
}

.logo { 
    font-weight: 900; font-size: 24px; letter-spacing: -1px; cursor: pointer; 
    transition: 0.3s; pointer-events: auto;
    background: rgba(240, 242, 245, 0.8); padding: 5px 15px; border-radius: 8px; backdrop-filter: blur(5px);
}
.logo:hover { letter-spacing: 1px; }

/* Wadah Kapsul Menu */
.nav-links {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-links a {
    text-decoration: none; color: #666; font-weight: 600; font-size: 13px; 
    padding: 10px 24px; border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative; text-transform: uppercase; letter-spacing: 0.5px;
}

.nav-links a.active-link {
    background-color: #1a1a1a; color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-links a:hover:not(.active-link) {
    background-color: rgba(0,0,0,0.05); color: #000;
}

/* --- MAIN CONTAINER --- */
.main-container {
    padding-top: 40px; 
    min-height: 100vh;
    position: relative;
}

/* --- TRANSITIONS & ANIMATIONS (FIXED) --- */
.tab-content { 
    display: none; 
    padding: 0 6% 80px; 
    opacity: 0; /* Default invisible */
    transition: opacity 0.5s ease;
}

.tab-content.active-tab { 
    display: block; 
    opacity: 1; /* PENTING: Agar halaman aktif terlihat */
}

@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(10px); } 
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } 
}

.animate-up { opacity: 0; }
.play-animation { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* --- HOME SECTION --- */
.hero-container {
    position: relative; height: 90vh; 
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    margin-top: -30px; 
}

.bg-giant-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 25vw; font-weight: 900; color: rgba(0,0,0,0.03);
    z-index: 0; pointer-events: none; white-space: nowrap;
}

.hero-content {
    position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between;
    width: 85%; max-width: 1200px;
}

.corner-detail { position: absolute; font-size: 12px; font-weight: 700; color: #aaa; letter-spacing: 2px; z-index: 5; }
.tl { top: 80px; left: 6%; }
.br { bottom: 60px; right: 6%; }
.bl { bottom: 60px; left: 6%; writing-mode: vertical-rl; transform: rotate(180deg); }

/* --- FOTO FRAME --- */
.photo-frame-container {
    position: relative; width: 380px; height: 480px; perspective: 1000px;
}
.photo-frame {
    position: relative; width: 100%; height: 100%;
    background: #e0e0e0; border-radius: 20px; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center;
    border: 3px solid #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.1); z-index: 2;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.photo-frame-container:hover .photo-frame { transform: rotateY(-5deg) rotateX(5deg); }
.photo-frame-container::after {
    content: ''; position: absolute; top: 15px; left: 15px;
    width: 100%; height: 100%; border: 3px solid #1a1a1a; border-radius: 20px; z-index: 1;
    transition: 0.5s;
}
.photo-frame-container:hover::after { top: 25px; left: 25px; }
.photo-frame img { width: 90%; mask-image: linear-gradient(to bottom, black 85%, transparent 100%); transition: 0.5s; }

/* --- WEB BANNER (NEW) --- */
/* --- FIX BANNER POSITION --- */
.web-banner {
    width: 100%;
    max-width: 600px; /* Atur lebar maksimal banner */
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 2px solid #fff;
    display: block; /* Mastiin dia gak ngumpet */
}

.web-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Biar di HP gak kegedean */
@media (max-width: 900px) {
    .web-banner {
        margin: 0 auto 20px;
        max-width: 100%;
    }
}

/* --- TEKS HERO --- */
.hero-text { flex: 1; padding-right: 60px; }
.hero-text h1 {
    font-size: 56px; line-height: 1.1; font-weight: 900; margin-bottom: 20px; letter-spacing: -1px;
    text-transform: uppercase; color: #1a1a1a;
}
.hero-text .role { font-size: 16px; color: #555; margin-bottom: 35px; font-weight: 400; line-height: 1.8; max-width: 90%; }

.btn-primary {
    padding: 14px 35px; background: #1a1a1a; color: white; font-weight: 700; text-transform: uppercase;
    text-decoration: none; display: inline-block; transition: 0.3s; border: 3px solid #1a1a1a; cursor: pointer; border-radius: 50px;
}
.btn-primary:hover { background: transparent; color: #1a1a1a; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* --- ABOUT STYLES --- */
.about-container { padding-top: 20px; }
.about-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; margin-top: 10px; }
.about-text p { font-size: 16px; color: #555; line-height: 1.8; margin-bottom: 20px; }
.experience-list { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid #ddd; padding-top: 30px; }
.exp-item h4 { font-size: 12px; text-transform: uppercase; color: #aaa; margin-bottom: 5px; letter-spacing: 1px; font-weight: 700; }
.exp-item p { font-weight: 700; color: #1a1a1a; font-size: 16px; margin: 0; }
.tech-box { background: #1a1a1a; color: white; padding: 40px; border-radius: 20px; box-shadow: 15px 15px 0px #ddd; position: relative; }
.tech-box h4 { margin-bottom: 25px; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; color: #aaa; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-tags span { background: rgba(255,255,255,0.1); padding: 10px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; border: 1px solid rgba(255,255,255,0.1); }

/* --- PROJECTS --- */
.section-title { font-size: 40px; font-weight: 900; margin-bottom: 50px; text-transform: uppercase; margin-top: 60px;}
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.card-project { background: white; border: 2px solid #eee; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; border-radius: 12px; overflow: hidden; }
.card-project:hover { transform: translateY(-10px); border-color: #1a1a1a; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.cp-image { height: 220px; background: #f4f4f4; overflow: hidden; display: flex; align-items: center; justify-content: center; border-bottom: 2px solid #eee; }
.cp-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card-project:hover .cp-image img { transform: scale(1.05); }
.cp-image.portrait-bg { background: #1a1a1a; }
.cp-image .img-portrait { width: auto; height: 90%; object-fit: contain; }

.cp-info { padding: 25px; }
.cp-info h3 { font-size: 20px; margin-bottom: 5px; font-weight: 800; text-transform: uppercase; }
.cp-info p { font-size: 14px; color: #777; margin-bottom: 15px; line-height: 1.6; }

/* Tech Stack Badges */
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.tech-stack span {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    background: #f4f4f4; padding: 5px 10px; border-radius: 4px; color: #555; letter-spacing: 0.5px;
}

.btn-link {
    text-decoration: none; color: #1a1a1a; font-weight: 700; font-size: 12px; letter-spacing: 1px;
    display: inline-flex; align-items: center; gap: 10px; transition: 0.3s;
}
.btn-link:hover { gap: 15px; } 

/* --- CONTACT --- */
.contact-full { height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; }
.contact-header h1 { font-size: 100px; font-weight: 900; line-height: 0.9; text-transform: uppercase; letter-spacing: -4px; margin-bottom: 40px; color: #1a1a1a; }
.contact-header .corner-detail { position: relative; top: auto; right: auto; margin-bottom: 10px; display: block; color: #aaa; font-size: 12px; letter-spacing: 3px; }

.email-container { cursor: pointer; position: relative; margin-bottom: 60px; display: inline-block; }
.email-text { font-size: 24px; font-weight: 700; border-bottom: 3px solid #1a1a1a; padding-bottom: 10px; transition: 0.3s; color: #1a1a1a; }
.email-container:hover .email-text { background: #1a1a1a; color: white; padding: 10px 20px; border-radius: 4px; border-color: transparent; }
#copy-status { 
    position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    font-size: 11px; font-weight: 800; text-transform: uppercase; color: #1a1a1a; 
    background: #fff; padding: 5px 10px; border-radius: 20px; border: 1px solid #ddd;
    opacity: 0; transition: 0.3s; white-space: nowrap; pointer-events: none;
}
.email-container:hover #copy-status { opacity: 1; top: -40px; }

.social-footer { display: flex; gap: 25px; margin-top: 20px; justify-content: center; }
.social-icon {
    text-decoration: none; color: #1a1a1a; font-size: 28px; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border: 2px solid #e0e0e0; border-radius: 50%; background: white;
}
.social-icon:hover { background: #1a1a1a; color: white; border-color: #1a1a1a; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* --- FLOATING WA BUTTON (FIXED POS) --- */
.whatsapp-float {
    position: fixed; /* Kunci agar mengambang */
    bottom: 30px;    /* Jarak dari bawah */
    right: 30px;     /* Jarak dari kanan */
    background-color: #25d366;
    color: white !important;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 14px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999; /* Paling depan */
    transition: 0.3s;
}
.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
    background-color: #1ebe57;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-links { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); width: 90%; justify-content: center; box-shadow: 0 10px 40px rgba(0,0,0,0.15); top: auto; background: rgba(255,255,255,0.95); }
    .nav-links a { font-size: 11px; padding: 12px 20px; }
    .hero-container { margin-top: 50px; height: auto; padding-bottom: 100px; }
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .photo-frame-container { width: 300px; height: 400px; margin-bottom: 40px; }
    .hero-text { padding-right: 0; }
    .hero-text h1 { font-size: 42px; }
    .bg-giant-text { font-size: 40vw; }
    .corner-detail { display: none; }
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .contact-header h1 { font-size: 50px; }
    .whatsapp-float { bottom: 120px; right: 20px; padding: 15px; } /* Naik dikit biar gak ketutup menu di HP */
    .whatsapp-float span { display: none; } /* Icon only di HP */
}