/* =========================================================
   IMPORT FONT COOLVETICA (WAJIB ADA FILE FONT-NYA)
   ========================================================= */
@font-face {
    font-family: 'Coolvetica';
    src:url('../fonts/Coolvetica-Rg.otf') format('opentype');      
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS VARIABLES & RESET */
:root { 
    --bg: #050505; 
    --bg-secondary: #0a0a0a; 
    --text: #F4F4F5; 
    --muted: #888888; 
    --border: #222222; 
    --accent: #D4FF3F; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

html, body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    overflow-x: hidden; 
    width: 100%; 
    -webkit-font-smoothing: antialiased; 
}

::-webkit-scrollbar { 
    width: 8px; /* Typo 'idth' di kodemu sudah aku benerin jadi 'width' */
} 

::-webkit-scrollbar-track { 
    background: var(--bg); 
} 

::-webkit-scrollbar-thumb { 
    background: #333; 
    border-radius: 4px; 
}

/* KURSOR */
@media (pointer: fine) { body { cursor: none; } a, button, .service-row, .work-card { cursor: none; } }
.cursor { 
    position: fixed; 
    top: 0; left: 0; 
    width: 12px; 
    height: 12px; 
    background: var(--accent); 
    border-radius: 50%; 
    pointer-events: none; 
    z-index: 999999; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border 0.3s ease; 
}

.cursor.hover-link { 
    width: 50px; 
    height: 50px; 
    background: transparent; 
    border: 1px solid var(--accent); 
}

.cursor.hover-project { 
    width: 90px; 
    height: 90px; 
    background: var(--accent); 
    color: var(--bg); 
}

.cursor-text { 
    font-family: 'Coolvetica', sans-serif; 
    font-size: 16px; 
    font-weight: normal; 
    opacity: 0; 
}

.cursor.hover-project .cursor-text { 
    opacity: 1; 
}

/* =========================================================
   HEADER & NAVIGATION (DESKTOP)
   ========================================================= */
.header-bar {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 20px 5%; display: flex; justify-content: space-between; align-items: center;
    background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9990; 
}

.logo { 
    font-family: 'Coolvetica', sans-serif; 
    font-weight: normal; 
    font-size: 24px; /* Sedikit dibesarkan karena karakter Coolvetica kadang terlihat lebih kecil */
    color: var(--text); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    letter-spacing: 1px;
}

.logo-img { 
    height: 35px !important; 
    width: auto !important; 
    object-fit: contain !important; 
}

.nav-links { 
    display: flex; 
    gap: 40px; 
    align-items: center; 
}

.nav-links a { 
    color: var(--text); 
    text-decoration: none; 
    font-size: 15px; 
    font-weight: 500; 
    transition: color 0.3s; 
}

@media (hover: hover) { .nav-links a:hover { color: var(--accent); } }
.btn { 
    padding: 12px 28px; 
    background: var(--text); 
    color: var(--bg) !important; 
    border-radius: 50px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: transform 0.3s; 
}

/* REVEAL ANIMATIONS & HERO */
.reveal-up { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: all 0.8s ease; 
} 

.reveal-up.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.hero { 
    min-height: 100vh; 
    min-height: 100svh; 
    display: flex; 
    align-items: center; 
    padding: 120px 5% 0; 
    position: relative; 
    z-index: 1; 
}

.hero-title { 
    font-family: 'Coolvetica', sans-serif; 
    font-size: clamp(45px, 8vw, 130px); 
    font-weight: normal; 
    line-height: 1.05; 
    text-transform: uppercase; 
    margin-bottom: 25px; 
    letter-spacing: 2px;
}

.outline-text { 
    color: transparent; 
    -webkit-text-stroke: 1.5px var(--text); 
}

.hero-sub { 
    font-size: clamp(16px, 2vw, 20px); 
    color: var(--muted); 
    max-width: 600px; 
    line-height: 1.6; 
}

.hero-badge { 
    position: absolute; 
    bottom: 50px; 
    right: 10%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    animation: rotateText 15s linear infinite; 
}

.badge-arrow { 
    position: absolute; 
    font-size: 30px; 
    color: var(--accent); 
    animation: counterRotateText 15s linear infinite; 
}

@keyframes rotateText { 100% { transform: rotate(360deg); } } 
@keyframes counterRotateText { 100% { transform: rotate(-360deg); } }

/* MARQUEE */
.marquee-container { 
    width: 100%; 
    overflow: hidden; 
    background: var(--accent); 
    color: var(--bg); 
    padding: 30px 0; 
    margin: 80px 0; 
    transform: rotate(-2deg) scale(1.05); 
}

.marquee-track { 
    display: flex; 
    white-space: nowrap; 
    width: max-content; 
    animation: marquee 20s linear infinite; 
}

.marquee-text { 
    font-family: 'Coolvetica', sans-serif; 
    font-size: clamp(30px, 4vw, 60px); 
    font-weight: normal; 
    padding-right: 50px; 
    letter-spacing: 1px;
} 

.marquee-text .star { 
    margin: 0 30px; 
    font-size: clamp(20px, 3vw, 40px); 
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* SECTION & SERVICES */
section { 
    padding: 80px 5%; 
    position: relative; 
    z-index: 1; 
}

.section-header { 
    margin-bottom: 50px; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 20px; 
} 

.section-header .tag { 
    color: var(--accent); 
    font-weight: 600; 
    letter-spacing: 2px; 
    font-size: 14px; 
    margin-bottom: 10px; 
} 

.section-header h2 { 
    font-family: 'Coolvetica', sans-serif; 
    font-size: clamp(32px, 4vw, 60px); 
    font-weight: normal; 
    letter-spacing: 1px;
}

.service-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 40px 0; 
    border-bottom: 1px solid var(--border); 
    transition: all 0.4s ease; 
} 

.service-row:first-child { 
    border-top: 1px solid var(--border); 
} 

.service-row .s-num { 
    font-size: 18px; 
    color: var(--muted); 
    width: 60px; 
} 

.service-row .s-title { 
    font-family: 'Coolvetica', sans-serif; 
    font-size: clamp(22px, 3.5vw, 50px); 
    font-weight: normal; flex-grow: 1; 
    transition: color 0.4s ease; 
    letter-spacing: 1px;
} 

.service-row .s-icon { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    border: 1px solid var(--border); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 20px; 
    transition: all 0.4s ease; 
    margin-left: 15px; 
}

@media (hover: hover) and (pointer: fine) { 
    .service-row:hover { padding: 40px 30px; border-color: var(--accent); } 
    .service-row:hover .s-title { color: var(--accent); } 
    .service-row:hover .s-icon { background: var(--accent); color: var(--bg); transform: rotate(45deg); } 
}

/* HOVER IMAGE */
.hover-img-wrapper { 
    position: fixed; top: 0; left: 0; width: 350px; height: 450px; pointer-events: none; opacity: 0; z-index: 9000; border-radius: 16px; overflow: hidden; transition: opacity 0.4s ease; 
} 
.hover-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 0.8s ease; } 
.hover-img-wrapper.active img { transform: scale(1); }

/* PORTFOLIO GRID */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; margin-top: 50px; } 
.work-card { position: relative; border-radius: 16px; } 
.work-card:nth-child(even) { margin-top: 100px; } 
.work-img { width: 100%; height: 600px; border-radius: 16px; overflow: hidden; } 
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; } 

@media (hover: hover) { .work-card:hover .work-img img { transform: scale(1.05); } }

.work-info { padding-top: 25px; } 
.work-info h3 { 
    font-family: 'Coolvetica', sans-serif; 
    font-size: 28px; 
    font-weight: normal;
    margin-bottom: 8px; 
    letter-spacing: 1px;
} 
.work-info p { color: var(--muted); font-size: 15px; letter-spacing: 1px; }

/* STATS */
.stats { display: flex; justify-content: space-around; padding: 80px 5%; background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); } 
.stat-box { text-align: center; } 
.stat-box h3 { 
    font-family: 'Coolvetica', sans-serif; 
    font-size: clamp(40px, 5vw, 80px); 
    font-weight: normal; 
    color: var(--accent); 
    margin-bottom: 5px; 
} 
.stat-box p { color: var(--text); text-transform: uppercase; letter-spacing: 2px; font-size: 14px; }

/* FOOTER */
footer { padding: 100px 5% 60px; text-align: center; display: flex; flex-direction: column; align-items: center; } 
.footer-title { 
    font-family: 'Coolvetica', sans-serif; 
    font-size: clamp(40px, 8vw, 120px); 
    font-weight: normal;
    margin-bottom: 40px; 
    text-transform: uppercase; 
    letter-spacing: 2px;
} 
.footer-btn { font-size: 20px; padding: 20px 50px; }

/* =======================================================
   MOBILE FIX - MENU PINDAH KE BAWAH LOGO SECARA PERMANEN
   ======================================================= */
@media (max-width: 991px) {
    .header-bar { flex-direction: column; justify-content: center; gap: 15px; padding: 15px 5%; }
    .nav-links { width: 100%; display: flex; flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; }
    .nav-links a { font-size: 14px; font-weight: 600; }
    .btn { padding: 8px 20px; font-size: 14px; }
    .hero { padding-top: 160px; } 
    .hero-badge { display: none; } 
    .footer-btn { font-size: 16px; padding: 15px 30px; width: auto; }
    .work-grid { grid-template-columns: 1fr; gap: 40px; } .work-card:nth-child(even) { margin-top: 0; }
    .work-img { height: auto; aspect-ratio: 4/5; } .stats { flex-direction: column; gap: 40px; }
    /*.cursor, .hover-img-wrapper { display: none !important; }*/
}

@media (max-width: 400px) { 
    .logo { font-size: 18px; } .logo-img { height: 28px !important; } 
    .nav-links { gap: 12px; }
}

/* =========================================================
   PAGE HEADER (KHUSUS HALAMAN DALAM)
   ========================================================= */
.page-header {
    padding: 160px 5% 40px; /* Jarak atas disesuaikan karena ada fixed navbar */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header .tag {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 15px;
}

.page-title {
    font-family: 'Coolvetica', sans-serif;
    font-size: clamp(45px, 8vw, 110px);
    font-weight: normal;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.page-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
    max-width: 600px;
    line-height: 1.6;
}

/* =========================================================
   PORTFOLIO GRID SLIDER
   ========================================================= */
.work {
    padding-top: 0; 
    overflow: hidden; /* Mencegah scrollbar horizontal di body */
}

.work-grid { 
    display: flex; 
    gap: 40px; 
    padding: 20px 5% 80px; /* Padding kiri-kanan agar sejajar dengan container */
    overflow-x: auto; 
    
    /* Sembunyikan scrollbar */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
    
    scroll-snap-type: x mandatory;
    cursor: grab;
} 

.work-grid:active {
    cursor: grabbing;
}

.work-grid::-webkit-scrollbar { display: none; }

.work-card { 
    position: relative; 
    border-radius: 16px; 
    flex: 0 0 45vw; /* Lebar gambar di Desktop */
    scroll-snap-align: center;
    user-select: none;
} 

/* Hilangkan margin-top selang-seling karena ini bentuknya slider horizontal */
.work-card:nth-child(even) { margin-top: 0; }

.work-img { 
    width: 100%; 
    height: 65vh; /* Tinggi gambar */
    border-radius: 16px; 
    overflow: hidden; 
    pointer-events: none; 
} 

.work-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s ease; 
} 

@media (hover: hover) { .work-card:hover .work-img img { transform: scale(1.05); } }

/* =========================================================
   LIGHTBOX POP-UP
   ========================================================= */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-family: 'Coolvetica', sans-serif;
    font-size: 24px;
    color: var(--text);
    background: transparent;
    border: none;
    cursor: pointer;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.lightbox-close:hover { color: var(--accent); }

/* MOBILE FIX */
@media (max-width: 991px) {
    .page-header { padding-top: 130px; }
    .work-card { flex: 0 0 85vw; /* Lebar gambar membesar di HP */ }
    .work-img { height: auto; aspect-ratio: 4/5; }
    .lightbox-close { top: 20px; right: 20px; font-size: 18px; }
}