/* --- THEME VARIABLES (DARK MODE SEBAGAI DEFAULT) --- */
:root {
    --bg-main: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #7a7a7a;
    --card-bg: #121212;
    --border-color: #2a2a2a;
    --nav-bg: rgba(18, 18, 18, 0.75);
    
    /* Warna Tetap */
    --accent-orange: #f46722;
    --accent-gradient: linear-gradient(90deg, #f46722, #fb8c4d);
    
    /* Glow Variabel */
    --glow-white: rgba(255, 255, 255, 0.04);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.5);
    
    --font-main: 'Inter', system-ui, sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- LIGHT MODE VARIABLES --- */
[data-theme="light"] {
    --bg-main: #f9f9fb;
    --text-main: #111111;
    --text-muted: #666666;
    --card-bg: #ffffff;
    --border-color: #e2e2e2;
    --nav-bg: rgba(255, 255, 255, 0.85);
    
    --glow-white: rgba(244, 103, 34, 0.05); /* Glow jadi sedikit oranye di light mode biar estetik */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* --- BACKGROUND GLOW PUTIH ELEGAN --- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-white) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    transition: background 0.5s ease;
}
.glow-1 { top: -20%; left: -10%; width: 50vw; height: 50vw; }
.glow-2 { bottom: -10%; right: -20%; width: 60vw; height: 60vw; }

/* --- ANIMATION & HOVER UTILITIES --- */
.hover-scale { transition: var(--transition); }
.hover-scale:hover { transform: scale(1.05); }

.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }

.hover-glow { transition: var(--transition); }
.hover-glow:hover { box-shadow: 0 0 40px var(--glow-white); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 103, 34, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(244, 103, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 103, 34, 0); }
}
.pulse-anim { animation: pulse 2s infinite; }

/* --- NAVBAR (NORMAL TO FLOATING) --- */
.floating-nav {
    position: fixed;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 1200px;
    background: transparent;
    padding: 30px 24px;
    border: 1px solid transparent;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    transition: var(--transition);
}
.floating-nav.scrolled {
    top: 20px; width: 90%; max-width: 750px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
}

.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.nav-logo .logo-icon { color: var(--text-muted); transition: color 0.3s ease; }
.nav-logo .logo-text { color: var(--text-main); transition: all 0.3s ease; }
.nav-logo:hover .logo-icon { color: var(--accent-orange); }
.nav-logo:hover .logo-text { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; list-style: none; gap: 24px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.3s ease; }
.nav-links a:hover { color: var(--text-main); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.theme-btn {
    background: none; border: none; font-size: 1.2rem; cursor: pointer;
    transition: var(--transition);
}
.theme-btn:hover { transform: rotate(20deg) scale(1.1); }
.btn-nav {
    font-size: 0.85rem; font-weight: 600;
    background: var(--text-main); color: var(--bg-main);
    padding: 10px 20px; border-radius: 30px; transition: var(--transition);
}
.btn-nav:hover { background: var(--accent-orange); color: white; transform: translateY(-2px); }

/* --- BUTTONS & BADGE --- */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
    border: none; cursor: pointer;
}
.btn-primary { background: var(--accent-gradient); color: white; box-shadow: 0 10px 20px rgba(244, 103, 34, 0.2); }
.btn-primary:hover { box-shadow: 0 15px 30px rgba(244, 103, 34, 0.4); }
.btn-primary .icon { background: white; color: var(--accent-orange); border-radius: 50%; width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; font-size: 12px; }

.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--card-bg); border-color: var(--text-muted); }
.btn-secondary .icon { background: var(--card-bg); border-radius: 50%; width: 28px; height: 28px; display: flex; justify-content: center; align-items: center; font-size: 14px; }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--card-bg); border: 1px solid var(--border-color);
    padding: 8px 18px; border-radius: 30px; font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 24px;
}
.badge .dot { width: 8px; height: 8px; background-color: var(--accent-orange); border-radius: 50%; }

/* --- HERO SECTION --- */
.hero { padding: 160px 0 100px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: 4.8rem; line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; }
.hero-text h1 .muted { color: var(--text-muted); }
.hero-profile { display: flex; flex-direction: column; gap: 28px; max-width: 420px; margin-left: auto; }
.image-wrapper { border-radius: 200px 200px 20px 20px; border: 1px solid var(--border-color); overflow: hidden; }
.hero-image { width: 100%; height: 500px; object-fit: cover; display: block; transition: var(--transition); }
.image-wrapper:hover .hero-image { transform: scale(1.05); }
.hero-profile p { color: var(--text-muted); font-size: 1rem; }

/* --- TOOLS SECTION --- */
.tools {
    padding: 50px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px;
}
.tool-item { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: var(--transition); }
.tool-item:hover { color: var(--text-main); transform: translateY(-4px); }
.tool-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.tool-icon svg { width: 100%; height: 100%; transition: stroke 0.3s ease; }
.tool-item:hover .icon-blender svg { stroke: #EA7600; }
.tool-item:hover .icon-capcut svg { stroke: var(--text-main); }
.icon-maya, .icon-adobe { border: 2px solid var(--text-muted); border-radius: 4px; background: transparent; }
.icon-maya { flex-direction: column; color: var(--text-muted); }
.icon-maya .m { font-size: 0.9rem; font-weight: 900; line-height: 1; }
.icon-maya .aya { font-size: 0.25rem; font-weight: 700; letter-spacing: 1px; line-height: 1; }
.tool-item:hover .icon-maya { border-color: #00C6B5; color: #00C6B5; background: rgba(0, 198, 181, 0.1); }
.icon-adobe { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.tool-item:hover .adobe-ae { border-color: #9999FF; color: #9999FF; background: rgba(153, 153, 255, 0.1); }
.tool-item:hover .adobe-ps { border-color: #31A8FF; color: #31A8FF; background: rgba(49, 168, 255, 0.1); }
.tool-item:hover .adobe-ai { border-color: #FF9A00; color: #FF9A00; background: rgba(255, 154, 0, 0.1); }

/* --- VIDEO SECTION --- */
.video-section { padding: 100px 0; }
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 20px; }
.video-box {
    width: 100%; 
    height: 600px; 
    border-radius: 24px;
    
    /* Ganti URL di bawah ini dengan link gambar thumbnail kamu */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('pub/INTRO.jpeg') center/cover no-repeat;
                
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border: 1px solid var(--border-color); 
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

/* Biar tombol play-nya lebih stand out di atas thumbnail */
.play-btn {
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px 40px; 
    border-radius: 50px; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-box:hover .play-btn {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: scale(1.1);
}

/* --- ABOUT SECTION --- */
.about { padding: 120px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about h2 { font-size: 3.8rem; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.about h2 .highlight { color: var(--accent-orange); }
.about-content { display: flex; flex-direction: column; gap: 40px; }
.about-content > p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-top: 1px solid var(--border-color); padding-top: 40px; }
.skill-column { padding: 20px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; }
.skill-column h4 { font-size: 1.1rem; margin-bottom: 16px; font-weight: 600; }
.skill-column p { color: var(--text-muted); margin-bottom: 8px; font-size: 0.95rem; }

/* --- CTA SECTION --- */
.cta-section { padding: 100px 0; text-align: center; }
.cta-section h2 { font-size: 3.8rem; font-weight: 500; margin-bottom: 20px; }
.cta-section h2 .muted { color: var(--text-muted); }
.cta-section p { color: var(--text-muted); max-width: 500px; margin: 0 auto 40px auto; font-size: 1.1rem; }

/* --- EXACT LAYOUT SEPERTI GAMBAR --- */
.overlapping-cards { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 400px; 
    margin-top: 60px;
}

.overlap-card { 
    width: 210px; 
    height: 290px; 
    border-radius: 12px; 
    margin: 0 -22px; /* Jarak tumpukan saling tindih */
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #111;
    border: 2px solid #000; /* Border gelap pinggiran kartu */
    box-shadow: 0 15px 35px rgba(0,0,0,0.7); 
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

.overlap-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: var(--transition);
}

/* Teks Base */
.overlap-card h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: center;
    font-weight: 800; /* Super tebal */
}

/* Teks Hitam (Videography, Photography, Animation) */
.text-black {
    color: #000000;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Teks Putih Raksasa (3D & 2D) */
.text-white {
    color: #ffffff;
    font-size: 5rem; /* Ukuran dibikin raksasa persis di gambar */
    letter-spacing: -2px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- ROTASI & Z-INDEX (TUMPUKAN) PERSIS GAMBAR --- */
.card-1 { transform: rotate(-14deg) translateY(25px); z-index: 1; }
.card-2 { transform: rotate(-7deg) translateY(10px); z-index: 2; }
/* Kartu 3D posisinya paling depan (z-index 5) dan sedikit lebih besar */
.card-3 { transform: rotate(0deg) scale(1.15); z-index: 5; box-shadow: 0 20px 50px rgba(0,0,0,0.9); }
.card-4 { transform: rotate(7deg) translateY(10px); z-index: 2; }
.card-5 { transform: rotate(14deg) translateY(25px); z-index: 1; }

/* Efek Hover (Biar tetap interaktif pas kursor kena) */
.overlap-card:hover { 
    transform: scale(1.2) translateY(-20px) rotate(0deg) !important; 
    z-index: 10 !important; 
    border-color: var(--accent-orange); 
}
.overlap-card:hover img {
    transform: scale(1.1);
}
/* --- TESTIMONIALS --- */
.testimonials { padding: 100px 0; }
.testimonials h2 { font-size: 3.5rem; margin-bottom: 60px; font-weight: 500; line-height: 1.1; }
.testimonials h2 .muted { color: var(--text-muted); display: block; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testi-card { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.stars { color: var(--accent-orange); font-size: 1.2rem; letter-spacing: 2px; }
.testi-card p { color: var(--text-main); font-size: 1.05rem; flex-grow: 1; line-height: 1.7; }
.client-info { display: flex; align-items: center; gap: 16px; }
.client-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.client-details h5 { font-size: 1rem; font-weight: 600; }
.client-details span { font-size: 0.85rem; color: var(--text-muted); }

/* --- GALLERY --- */
.bottom-gallery { padding: 40px 0 100px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.gallery-img { width: 100%; height: 320px; object-fit: cover; border-radius: 20px; border: 1px solid var(--border-color); }

/* --- FOOTER --- */
footer { padding: 40px 0; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.95rem; }
.socials { display: flex; gap: 16px; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); display: flex; justify-content: center; align-items: center; font-weight: 600; transition: var(--transition); }
.social-icon:hover { border-color: var(--text-main); color: var(--bg-main); background: var(--text-main); }

/* --- JS ANIMATIONS --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- ULTIMATE RESPONSIVE (MANTAP UNTUK HP/TABLET) --- */
@media (max-width: 1024px) {
    .hero-text h1, .about h2, .cta-section h2 { font-size: 4rem; }
    .hero, .about { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .hero-profile { margin: 0 auto; }
    .about-content { align-items: center; }
    .testi-grid { grid-template-columns: 1fr 1fr; }
    .bottom-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .floating-nav.scrolled { width: 95%; padding: 10px 20px; }
    .nav-links { display: none; } /* Hilangkan link agar rapi di HP */
    .hero-text h1, .about h2, .cta-section h2 { font-size: 3rem; }
    .tools { justify-content: center; padding: 30px 0; }
    .video-box { height: 400px; }
    .overlapping-cards { flex-wrap: wrap; height: auto; gap: 15px; margin-top: 40px; }
    .overlap-card { margin: 0; transform: none !important; width: 45%; height: 220px; }
    .overlap-card:hover { transform: scale(1.05) !important; }
    .testi-grid, .bottom-gallery { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 480px) {
    .hero-image { height: 400px; }
    .skills-grid { grid-template-columns: 1fr; width: 100%; }
    .overlap-card { width: 100%; height: 280px; }
}

/* --- MODAL POP-UP PORTFOLIO --- */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999; /* Pastikan selalu di paling depan */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Class ini akan ditambahkan oleh JS saat kartu diklik */
.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    width: 90%;
    max-width: 800px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 30px;
    z-index: 10;
    display: flex;
    gap: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    /* Animasi pop-up mental dari bawah */
    transform: translateY(50px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 2.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-orange);
    transform: rotate(90deg);
}

.modal-content img {
    width: 50%;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 50%;
}

.modal-info h3 {
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--text-main);
}

.modal-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Pastikan kursor berubah jadi jari saat menyorot kartu */
.overlap-card {
    cursor: pointer;
}

/* Responsif Modal untuk HP & Tablet */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }
    .modal-content img {
        width: 100%;
        height: 250px;
    }
    .modal-info {
        width: 100%;
    }
    .modal-info h3 { font-size: 2rem; }
    .close-modal { top: 10px; right: 20px; }
}


/* --- WELCOME POP-UP KHUSUS --- */
.welcome-content {
    max-width: 500px;
    flex-direction: column;
    text-align: center;
    padding: 50px 40px;
    align-items: center;
    justify-content: center;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: pulse 2s infinite; /* Menggunakan animasi pulse yang sudah ada */
}

.welcome-text h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-main);
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* Responsif untuk Welcome Pop-up */
@media (max-width: 768px) {
    .welcome-content {
        padding: 40px 24px;
        width: 85%;
    }
    .welcome-text h2 {
        font-size: 1.8rem;
    }
}

/* --- CONTACT SECTION (DIRECT LINKS) --- */
.contact-section {
    padding: 100px 0;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 80px 40px;
    transition: var(--transition);
    max-width: 900px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-container h2 .highlight {
    color: var(--accent-orange);
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
}

.contact-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 20px 30px;
    border-radius: 20px;
    min-width: 250px;
    text-align: left;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--accent-orange);
    background: rgba(244, 103, 34, 0.05);
}

.contact-card .icon {
    width: 50px;
    height: 50px;
    background: rgba(244, 103, 34, 0.1);
    color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
}

.contact-card:hover .icon {
    background: var(--accent-orange);
    color: #fff;
    transform: rotate(15deg) scale(1.1);
}

.contact-text h4 {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text span {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .contact-container { padding: 50px 24px; }
    .contact-container h2 { font-size: 2.5rem; }
    .contact-card { width: 100%; justify-content: center; }
}

/* --- VIDEO MODAL KHUSUS --- */
.video-content {
    width: 95%;
    max-width: 900px;
    padding: 0; /* Sengaja 0 biar videonya full memenuhi kotak */
    background: #000;
    border: none;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Trik rasio aspek 16:9 */
    height: 0;
    width: 100%;
}

.video-wrapper iframe, 
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Penyesuaian tombol close untuk modal video */
.close-video-btn {
    top: -40px;
    right: 0;
    color: #fff;
    z-index: 100;
}