/* === VARIABLES === */
:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #ff2a2a;
    --font-mono: 'Space Mono', monospace;
    --font-main: 'Noto Sans JP', sans-serif;
}

/* === BASE STYLES === */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
}

/* === NAVBAR === */
.navbar {
    background: transparent; /* Awalnya transparan */
    transition: background-color 0.5s ease;
    border-bottom: 1px solid transparent;
}

/* Class tambahan via JS saat scroll */
.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
}

.navbar-brand {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 2px;
    color: white !important;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #aaa !important;
    position: relative;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
    text-decoration: line-through;
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 70%);
}

.scroll-indicator {
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* === GLITCH EFFECT === */
.glitch-text {
    font-family: var(--font-main);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    position: relative;
    color: white;
    letter-spacing: -2px;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color); 
}

.glitch-text::before {
    left: 2px; text-shadow: -2px 0 red; clip-path: inset(44% 0 61% 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px; text-shadow: -2px 0 blue; clip-path: inset(12% 0 55% 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip-path: inset(80% 0 10% 0); }
    20% { clip-path: inset(10% 0 80% 0); }
    40% { clip-path: inset(40% 0 40% 0); }
    60% { clip-path: inset(70% 0 20% 0); }
    80% { clip-path: inset(20% 0 60% 0); }
    100% { clip-path: inset(50% 0 30% 0); }
}

/* === BUTTONS === */
.btn-song {
    border: 1px solid white;
    color: white;
    font-family: var(--font-mono);
    border-radius: 0;
    padding: 10px 30px;
    transition: all 0.3s;
}

.btn-song:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: skewX(-10deg);
}

/* === NEWS SECTION === */
.section-title {
    letter-spacing: 5px;
}

.news-item {
    border-bottom: 1px solid #333;
    transition: 0.3s;
    cursor: pointer;
}

.news-item:hover {
    background-color: #111;
    padding-left: 15px;
    border-left: 3px solid var(--accent-color);
}

.news-item:hover .arrow-icon {
    transform: translateX(5px);
    color: var(--accent-color);
}

.arrow-icon {
    transition: 0.3s;
}

.date-badge {
    font-family: var(--font-mono);
    color: #888;
    font-size: 0.85rem;
}

/* === VIDEO === */
.video-frame {
    filter: grayscale(100%) contrast(1.2);
    transition: 0.5s;
}

.video-frame:hover {
    filter: grayscale(0%) contrast(1);
    border-color: var(--accent-color) !important;
}

/* Background yang sedikit lebih terang untuk selang-seling section */
.bg-darker {
    background-color: #0a0a0a;
}

/* --- PROFILE STYLES --- */
.profile-frame {
    border: 1px solid #333;
    padding: 10px;
    position: relative;
}

.profile-frame::after {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 100%; height: 100%;
    border: 1px solid var(--accent-color);
    z-index: -1; 
    transition: 0.3s;
}

.profile-frame:hover::after {
    top: 5px; left: 5px; 
}

.grayscale-img {
    filter: grayscale(100%) contrast(1.1);
    transition: 0.5s;
}

.profile-frame:hover .grayscale-img {
    filter: grayscale(0%); 
}

/* --- WORK/CARD STYLES --- */
.work-card {
    cursor: pointer;
}

.work-img-container {
    position: relative;
    overflow: hidden;
    border: 1px solid #222;
}

.work-img-container img {
    transition: transform 0.5s ease;
    width: 100%;
}

/* === VIDEO THUMBNAIL STYLES === */

.video-link-card {
    display: block;
    text-decoration: none;
    position: relative;
}

/* Gambar Thumbnail */
.video-thumb {
    filter: grayscale(100%) contrast(1.1); 
    transition: transform 0.5s, filter 0.5s;
}

/* Saat mouse diarahkan ke video */
.video-link-card:hover .video-thumb {
    filter: grayscale(0%); 
    transform: scale(1.05); 
}

/* Overlay Gelap + Tombol Play */
.play-button-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3); 
    transition: background 0.3s;
}

.video-link-card:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.1); 
}

/* Segitiga Play */
.play-icon {
    font-size: 3rem;
    color: white;
    width: 80px;
    height: 80px;
    border: 2px solid white;
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px; 
    transition: 0.3s;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.video-link-card:hover .play-icon {
    background: var(--accent-color); 
    border-color: var(--accent-color);
    transform: scale(1.1);
}

/* Overlay hitam transparan + tombol */
.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.work-card:hover .overlay {
    opacity: 1;
}

.work-card:hover img {
    transform: scale(1.1);
}

/* --- CONNECTED / SOCIAL LINKS --- */
.social-link {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid #333;
    color: white;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    transition: 0.3s;
    background: transparent;
}

.social-link:hover {
    background: white;
    color: black;
    border-color: white;
    padding-left: 30px; 
}

/* === FOOTER === */
footer {
    font-family: var(--font-mono);
    border-top: 1px solid #222;
}

/* =========================================
   MOBILE RESPONSIVE TWEAKS 
   ========================================= */

@media (max-width: 768px) {
    

    .glitch-text {
        font-size: 3.5rem !important; 
        letter-spacing: -1px;
    }

    .display-4, .display-5 {
        font-size: 2rem !important;
    }

    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        padding: 20px;
        margin-top: 10px;
        border: 1px solid #333;
        border-radius: 5px;
    }
    
    .nav-item {
        border-bottom: 1px solid #222;
        padding: 10px 0;
    }

    section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .hero-section {
        min-height: 80vh; /
    }

    .social-link {
        padding: 15px;
        font-size: 0.9rem;
    }

    .overlay {
        background: rgba(0,0,0,0.4); 
        opacity: 1; 
    }
    
    .work-card .btn-natori {
        border-color: var(--accent-color);
        background: rgba(0,0,0,0.6);
    }
}