/* ==========================================================================
   DAFTAR ISI (TABLE OF CONTENTS) - BARA STUDIOS
   ==========================================================================
   01. VARIABEL & DASAR (GLOBAL BASE)
   02. HEADER, NAVIGASI & SIDEBAR MENU
   03. SECTION: BERANDA (HERO & ANIMASI LOGO)
   04. TRANSISI & BUNGKUS KONTEN (CONTENT WRAPPER)
   05. SECTION: TENTANG AGENCY
   06. SECTION: SUBDIVISI AGENCY (PROYEK)
   07. SECTION: OWNER
   08. SECTION: TEAM BARA
   09. SECTION: KONTAK
   10. FOOTER & SOSIAL MEDIA
   ========================================================================== */

/* ==========================================================================
   01. VARIABEL & DASAR (GLOBAL BASE)
   ========================================================================== */
:root {
    --primary-red: #B31312;
    --accent-yellow: #FFB000;
    --bg-black: #050505;
    --text-light: #ffffff;
    --text-dark: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent; /* ← tambahkan ini */
    outline: none; /* ← tambahkan ini */
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden !important; /* Anti scroll samping (Bocor) */
    width: 100%;
}

body {
    background-color: var(--bg-black);
    color: var(--text-light);
    line-height: 1.6;
}

/* Global Buttons */
.btn {
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    display: inline-block;
    color: #111;
}

.btn-yellow {
    background-color: var(--accent-yellow);
}

.btn-yellow:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 176, 0, 0.4);
}


/* ==========================================================================
   02. HEADER, NAVIGASI & SIDEBAR MENU
   ========================================================================== */
header {
    background-color: var(--primary-red);
    padding: 1rem 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-yellow);
}

/* Tombol Menu Hamburger (Sembunyi di Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* --- RESPONSIF HP: HEADER & NAVIGASI --- */
@media (max-width: 768px) {
    header {
        padding: 15px 5%;
        position: sticky;
        top: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: var(--primary-red);
        z-index: 1000;
    }

    nav ul { display: none; } /* Matikan menu bawaan di HP */

    .menu-toggle {
        display: flex;
        z-index: 2000;
    }

    /* Sidebar Menu HP */
    nav#nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-red);
        padding-top: 100px;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1050;
    }

    nav#nav-menu.active {
        right: 0;
    }

    nav#nav-menu ul {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        list-style: none;
        padding: 0 30px;
    }

    nav#nav-menu ul li {
        width: 100%;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    }

    nav#nav-menu ul li:last-child { border-bottom: none; }

    nav#nav-menu ul li a {
        color: white !important;
        font-size: 1.1rem;
        text-decoration: none;
        font-weight: 700;
        text-transform: uppercase;
        display: block;
        padding: 15px 0;
        text-align: left;
        transition: 0.3s;
    }

    nav#nav-menu ul li a:hover {
        color: var(--accent-yellow) !important;
        padding-left: 10px;
    }

    /* Animasi Silang (X) Hamburger */
    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: #ffcc00; }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: #ffcc00; }
}


/* ==========================================================================
   03. SECTION: BERANDA (HERO & ANIMASI LOGO)
   ========================================================================== */
.hero {
    background-color: var(--primary-red);
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

/* Animasi Background Bergerak */
.hero-bg-animate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 300px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.hero-bg-animate img {
    height: 100%;
    width: auto;
    flex-shrink: 0;
    animation: geserBg 20s linear infinite;
}

@keyframes geserBg {
    0% { transform: translateX(0); }
    95%, 100% { transform: translateX(calc(-100% - 150px)); }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Animasi Slider Logo Klien (Marquee) */
.marquee-title {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--accent-yellow);
    margin-bottom: 10px;
    font-weight: bold;
    opacity: 0.8;
}

.client-marquee {
    width: 100%;
    max-width: 850px;
    margin-top: 10px;
    overflow: hidden;
    display: flex;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.201);
    padding: 20px 0;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollLeft 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-items {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 30px;
    padding-right: 30px;
}

.marquee-items img {
    height: 120px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.marquee-items img:hover, .marquee-items img.pop-out {
    transform: scale(1.3);
    cursor: pointer;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   RESPONSIF HP: ANIMASI LOGO KLIEN (MARQUEE)
   ========================================================================== */
@media (max-width: 768px) {
    /* 2. KECILIN LOGO KHUSUS DI HP */
    .marquee-items img {
        height: 65px !important; /* 💡 Logo di HP jadi imut dan rapi */
        max-width: 80px !important;
    }

    /* 4. BIAR SLIDER GAK BERHENTI PAS KESENTUH JARI DI HP */
    .marquee-track:hover {
        animation-play-state: running !important; 
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}
/* ==========================================================================
   04. TRANSISI & BUNGKUS KONTEN (CONTENT WRAPPER)
   ========================================================================== */
.gradient-transition {
    height: 150px;
    background: linear-gradient(to bottom, var(--primary-red) 0%, var(--bg-black) 100%);
    margin-top: -1px;
}

.content-wrapper {
    background-color: var(--bg-black);
    position: relative;
    overflow: hidden;
}

.content-wrapper section {
    position: relative;
    z-index: 10;
}

.bg-icon {
    position: absolute;
    color: #ffffff;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    transition: top 8s ease-in-out, left 8s ease-in-out, transform 8s linear;
}

section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 40px;
}


/* ==========================================================================
   05. SECTION: TENTANG AGENCY
   ========================================================================== */
.tentang-container {
    display: flex;
    align-items: center;
    background-color: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tentang-foto-kotak {
    margin-right: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agency-logo-kotak {
    flex: 0 0 250px;
    width: 250px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    padding: 0;
}

.agency-logo-kotak img, .tentang-foto-kotak img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tentang-teks-kotak {
    flex: 1;
    text-align: left;
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.7;
}

.tentang-teks-kotak p { margin-bottom: 15px; }
.tentang-teks-kotak p:last-child { margin-bottom: 0; }
.tentang-teks-kotak strong { color: var(--text-light); }

/* --- RESPONSIF HP: TENTANG AGENCY --- */
@media (max-width: 768px) {
    /* Matikan Flexbox, ganti jadi Block agar teks bisa melingkar */
    .tentang-container {
        display: block; 
        padding: 20px;
    }
    
    /* Clearfix agar kotak tidak rusak kalau teksnya kependekan */
    .tentang-container::after {
        content: "";
        display: table;
        clear: both;
    }

    /* Gunakan Float Left agar gambar nempel kiri dan teks mengalir di kanannya */
    .tentang-foto-kotak {
        float: left;
        margin-right: 15px;
        margin-bottom: 5px;
        flex: none;
    }

    /* Penyesuaian ukuran Logo Agency di HP (Dibuat Kotak) */
    .agency-logo-kotak {
        width: 160px;
        height: 160px;
        border-radius: 8px;
    }

    /* Teks dibuat rata kiri agar natural */
    .tentang-teks-kotak {
        display: block;
        text-align: left;
        font-size: 0.9rem;
    }
}


/* ==========================================================================
   06. SECTION: SUBDIVISI AGENCY (PROYEK)
   ========================================================================== */
.tentang-Sub {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    font-size: 1.1rem;
    color: #ccc;
}

#proyek .section-title {
    margin-bottom: 15px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-bottom: 4px solid var(--primary-red);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-30px);
    border-bottom-color: var(--accent-yellow);
}

.card-img {
    width: 100%;
    aspect-ratio: 9 / 10;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    color: var(--primary-red);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.card-content p {
    font-size: 0.9rem;
    color: #ccc;
}

/* --- RESPONSIF HP: SUBDIVISI AGENCY --- */
/* --- RESPONSIF HP: SUBDIVISI AGENCY --- */
@media (max-width: 768px) {
    .portfolio-grid { gap: 8px; }
    .card-content { padding: 8px; }
    .card-content h3 { font-size: 1.1rem; margin-bottom: 2px; }
    .card-content p.desc { font-size: 0.65rem; line-height: 1.2; }
    .card-img { font-size: 0.7rem; }
    .tentang-Sub p { font-size: 0.9rem; } /* ← tambah ini */
}


/* ==========================================================================
   07. SECTION: OWNER
   ========================================================================== */
.owner-foto-kotak {
    flex: 0 0 250px;
    width: 250px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.owner-foto-kotak img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- RESPONSIF HP: OWNER --- */
@media (max-width: 768px) {
    /* Penyesuaian ukuran Foto Owner di HP (Dibuat Kotak Sempurna) */
    .owner-foto-kotak {
        width: 165px;
        height: 165px;
        border-radius: 8px;
    }
}


/* ==========================================================================
   08. SECTION: TEAM BARA
   ========================================================================== */
#TEAM {
    padding: 60px 20px;
    text-align: center;
}

.team-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-yellow);
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.1);
}

.team-photo-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #222;
}

.team-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo-wrapper img {
    transform: scale(1.1);
}

.team-info {
    padding: 15px;
    
    /* 💡 KUNCI EFEK KACA BURAM (GLASSMORPHISM) */
    background: rgba(10, 10, 10, 0.5); /* Latar belakang hitam transparan tipis */
    backdrop-filter: blur(12px); /* Bikin blur/burem objek apapun di belakangnya */
    -webkit-backdrop-filter: blur(12px); /* Wajib ada untuk dukungan browser iPhone/Safari */
    
    /* Garis pemisah halus antara foto dan teks biar makin premium */
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

.team-info h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.team-info p {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- RESPONSIF TABLET: TEAM BARA --- */
@media (max-width: 992px) {
    .team-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- RESPONSIF HP: TEAM BARA --- */
@media (max-width: 768px) {
    /* Formasi Team 3-3-2 */
    #TEAM { padding: 40px 10px; }
    .team-grid-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .team-card {
        flex: 0 0 calc(33.33% - 6px);
        max-width: calc(33.33% - 6px);
        border-radius: 10px;
    }
    .team-info { padding: 8px 5px; }
    .team-info h3 { font-size: 0.65rem; margin-bottom: 2px; }
    .team-info p { font-size: 0.45rem; letter-spacing: 0; line-height: 1.1; }
}


/* ==========================================================================
   09. SECTION: KONTAK
   ========================================================================== */
.kontak-konten {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.kontak-konten p {
    margin-bottom: 20px;
}

.kontak-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.kontak-buttons .btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    border-radius: 12px;
    text-align: left;
    color: var(--text-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 250px;
}

.kontak-buttons .btn i { font-size: 2rem; }
.kontak-buttons .btn span { font-size: 1.1rem; font-weight: bold; line-height: 1.2; }
.kontak-buttons .btn small { font-size: 0.85rem; font-weight: normal; opacity: 0.9; }

.btn-wa { background-color: #25D366; }
.btn-wa:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }

.btn-email { background-color: var(--accent-yellow); color: #111 !important; }
.btn-email:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(255, 176, 0, 0.4); }

/* --- RESPONSIF HP: KONTAK --- */
@media (max-width: 600px) {
    #kontak {
        padding: 60px 10px; /* Kurangi padding kiri-kanan */
    }
    
    .kontak-konten p {
        font-size: 1rem;
    }

    /* 💡 KUNCI BIAR TETAP SAMPING-SAMPINGAN */
    .kontak-buttons {
        flex-wrap: nowrap; /* Jangan turun ke baris baru */
        gap: 10px; /* Jarak antar tombol didekatkan */
    }

    .kontak-buttons .btn {
        width: 50%; /* Masing-masing ambil setengah layar */
        min-width: unset;
        padding: 12px 10px; /* Kurangi area dalam tombol */
    }

    .kontak-buttons .btn i {
        font-size: 1.5rem; /* Kecilkan ikon */
        margin-right: 8px;
    }

    .kontak-buttons .btn span {
        font-size: 0.8rem; /* Kecilkan teks utama (WhatsApp/Email) */
    }

    .kontak-buttons .btn small {
        font-size: 0.6rem; /* Kecilkan detail (nomor/email) */
        /* Potong teks jika kepanjangan pakai titik-titik (...) */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ==========================================================================
   10. FOOTER & SOSIAL MEDIA
   ========================================================================== */
footer {
    background-color: var(--primary-red);
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    text-decoration: none;
    background-color: #1a1a1a;
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.social-links a i { font-size: 1.6rem; }
.social-links a span { font-size: 1rem; font-weight: 600; }

.social-links a:hover {
    color: var(--accent-yellow);
    transform: translateY(-5px);
    background-color: #252525;
    border-color: var(--accent-yellow);
}
@media (max-width: 768px) {
    .social-links {
        display: flex !important;
        flex-wrap: nowrap !important; /* 💡 KUNCI MUTLAK: Paksa 1 baris, pantang turun! */
        justify-content: center;
        gap: 4px !important; /* Jarak antar kotak super dirapatkan */
        padding: 0 5px;
        width: 100%;
        overflow: hidden; /* Jaga-jaga biar gak bikin layar bisa digeser ke samping */
    }

    .social-links a {
        padding: 6px 4px !important; /* Bantalan kotak dibikin sangat ramping */
        gap: 3px !important; /* Ikon dan teks mepet banget */
        flex: 1; /* Lebar layar dibagi rata berempat */
        justify-content: center;
        min-width: 0; /* 💡 KUNCI: Izinkan kotak mengecil melewati batas normalnya */
        border-radius: 8px !important; /* Lengkungan kotak disesuaikan ukurannya */
    }

    .social-links a i {
        font-size: 0.85rem !important; /* Ikon disusutkan jadi mini */
        margin: 0 !important;
    }

    .social-links a span {
        display: inline-block !important; /* Paksa teks tetap muncul (membatalkan kode hide sebelumnya) */
        font-size: 0.5rem !important; /* Teks dibikin ukuran "semut" biar muat */
        white-space: nowrap !important; /* Teks sama sekali tidak boleh turun baris */
        letter-spacing: -0.3px !important; /* Jarak antar huruf dirapatkan sedikit */
        overflow: hidden;
        text-overflow: clip; /* Kalau layar terlalu ekstrem sempitnya, teks kepotong natural, bukan titik-titik */
    }

    .social-links a:hover {
        transform: none !important; 
    }

    /* 💡 KUNCI: Gunakan efek :active (saat ditekan jari) untuk HP */
    .social-links a:active {
        transform: scale(0.92) !important; /* Tombol mengecil sedikit pas ditekan, ngasih kesan "membal" */
        background-color: var(--accent-yellow) !important; /* Latar langsung kuning */
        color: #111 !important; /* Teks/Ikon jadi hitam biar kontras */
        border-color: var(--accent-yellow) !important;
        transition: transform 0.1s ease !important; /* Transisi dipercepat biar responsif di jari */
    }

    /* ... kode social-links a:active yang tadi ... */
    .social-links a:active {
        transform: scale(0.92) !important; 
        background-color: var(--accent-yellow) !important; 
        color: #111 !important; 
        border-color: var(--accent-yellow) !important;
        transition: transform 0.1s ease !important; 
    }

    /* 💡 KECILKAN TULISAN COPYRIGHT DI HP */
    footer p {
        font-size: 0.65rem !important; 
        opacity: 0.8; 
        margin-top: 15px !important; 
        letter-spacing: 0.5px;
    }
} /* <--- Ini kurung tutupnya @media (max-width: 768px) */
