/* =========================================================================
   WARGA INDO STUDIO HUB CORE STYLESHEET (FIXED CAROUSEL)
   ========================================================================= */

:root {
    --bg-main: #0b0c10;
    --bg-card: #12131a;
    --bg-card-hover: #191b24;
    --primary: #ff2a54;
    --primary-glow: rgba(255, 42, 84, 0.2);
    --accent: #00f0ff;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* NAVBAR / TOP BAR */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
}
.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover { color: #fff; }

.btn-back {
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s ease !important;
}
.btn-back:hover {
    background: var(--text-main);
    color: var(--bg-main) !important;
    border-color: var(--text-main);
}

/* HUB HERO SECTION */
.hub-hero {
    text-align: center;
    padding: 60px 20px 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hub-subtitle {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hub-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* INTERACTIVE SLIDER CAROUSEL STYLES */
.project-carousel-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.project-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.project-section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-nav {
    display: flex;
    gap: 8px;
}

.nav-arrow {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    transform: scale(1.05);
}

.carousel-wrapper {
    overflow-x: auto; /* Mengaktifkan horizontal scroll native */
    width: 100%;
    scroll-behavior: smooth;
}

/* Menyembunyikan scrollbar di browser */
.carousel-wrapper::-webkit-scrollbar {
    display: none;
}
.carousel-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.project-carousel-container .portfolio-grid {
    display: flex;
    gap: 20px;
}

.project-carousel-container .portfolio-item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.img-wrapper-16-9 {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1f2937;
    overflow: hidden;
}

.img-wrapper-16-9 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .img-wrapper-16-9 img {
    transform: scale(1.04);
}

.card-16-9-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-16-9-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-16-9-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* TECH TAG LABELS */
.tech-tag {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.tag-blue { background: rgba(0, 240, 255, 0.1); color: var(--accent); }
.tag-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.tag-purple { background: rgba(167, 139, 250, 0.1); color: #a78bfa; }
.tag-orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

/* REVIEWER & YOUTUBE SHOWCASE SECTION */
.reviewer-section {
    max-width: 1200px;
    margin: 50px auto 80px auto;
    padding: 0 20px;
}

.section-title-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.section-title-wrapper p.subtitle {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.section-title-wrapper h2 {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

/* Badge 1M+ Visits */
.stat-badge-1m {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff2a54, #99001a);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    margin: 12px 0;
    border: 1px solid rgba(255, 42, 84, 0.4);
    box-shadow: 0 4px 15px rgba(255, 42, 84, 0.3);
}

.review-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 4-Column Video Grid Layout */
.youtube-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: #374151;
}

/* Sorotan Khusus Windah Basudara */
.spotlight-card {
    border-color: rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.03);
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 16px;
}

.video-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.creator-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: #1f2937;
    color: var(--text-muted);
    margin: 4px 0 10px 0;
}

.top-creator {
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.video-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* FOOTER STYLES */
footer {
    border-top: 1px solid var(--border);
    padding: 30px 20px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* RESPONSIF BREAKPOINTS TABLET & SMARTPHONE */
@media (max-width: 968px) {
    .project-carousel-container .portfolio-item {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    .hub-hero h1 { font-size: 2.2rem; }
    .youtube-preview-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

@media (max-width: 640px) {
    .project-carousel-container .portfolio-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .hub-hero h1 { font-size: 1.8rem; }
    .youtube-preview-grid { grid-template-columns: 1fr; }
    .project-section-header h2 { font-size: 1.1rem; }
}