/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette */
    --bg-main: #F2C94C;      /* Kuning Emas (Background Utama) */
    --bg-secondary: #EBC85E; /* Kuning Gelap (Variasi Section) */

    --text-primary: #9D291C; /* Merah Tua (Teks Utama & Logo) */
    --text-muted: #9D291C;   /* Merah Gelap/Kecoklatan (Teks Pendukung) */
    --text-light: #FFFCE6;   /* Putih Kekuningan (Teks di atas Merah) */

    --accent-red: #9D291C;   /* Warna Aksen Utama */

    /* Settings */
    --padding-section: 120px 0;
    --font-head: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* =========================================
   2. NAVBAR
   ========================================= */
nav {
    padding: 25px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(242, 201, 76, 0.9); /* Glass effect kuning */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(192, 32, 38, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Image Style */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

/* Menu Links */
.nav-menu {
    display: flex;
    gap: 50px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

/* CTA Button */
.btn-talk {
    padding: 12px 32px;
    background: var(--accent-red);
    color: var(--text-light);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--accent-red);
    transition: 0.3s;
}

.btn-talk:hover {
    background: transparent;
    color: var(--text-primary);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-content h1 {
    font-family: var(--font-head);
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
    color: var(--text-primary);
    animation: fadeInUp 1s ease-out;
}

.outline-text {
    -webkit-text-stroke: 2px var(--text-primary);
    color: transparent;
    transition: 0.5s;
}

.hero:hover .outline-text {
    color: var(--text-primary);
}

.hero-sub {
    max-width: 500px;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.line {
    width: 50px;
    height: 2px;
    background: var(--text-muted);
}

/* Scroll indicator mobile fix */
@media (max-width: 768px) {
    .scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 40px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   4. MARQUEE (RUNNING TEXT)
   ========================================= */
.marquee-wrapper {
    position: relative;
    margin: 40px -20px;
    height: 80px;
}

.marquee-strip {
    background: var(--accent-red);
    color: var(--text-light);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    transform: rotate(-3deg);
    border-top: 4px solid var(--bg-main);
    border-bottom: 4px solid var(--bg-main);
    position: absolute;
    width: calc(100% + 40px);
    left: 0;
}

/* Background marquee with opposite rotation */
.marquee-bg {
    transform: rotate(3deg);
    opacity: 0.25;
    z-index: 1;
}

/* Main marquee on top */
.marquee-strip:not(.marquee-bg) {
    z-index: 2;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-weight: 800;
    font-family: var(--font-head);
    font-size: 1.5rem;
}

/* Reverse animation for background marquee */
.marquee-reverse {
    animation: marquee-reverse 25s linear infinite;
}

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

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

/* =========================================
   5. PORTFOLIO SECTION
   ========================================= */
.section {
    padding: var(--padding-section);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 60px;
    border-bottom: 2px solid rgba(192, 32, 38, 0.2);
    padding-bottom: 20px;
}

.section-header h2 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 800;
}

.section-header p {
    color: var(--text-muted);
    font-weight: 600;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    grid-auto-rows: 450px;
}

.porto-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #330000;
}

.large {
    grid-column: span 2;
    grid-row: span 2;
}

.wide {
    grid-column: span 2;
}

.porto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.9;
    filter: grayscale(20%);
}

/* Overlay & Hover Effects */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease;
    color: var(--text-light);
}

/* Overlay text container */
.overlay-text {
    position: relative;
    z-index: 2;
}

.overlay h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: none;
}

.overlay p {
    color: var(--bg-main);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.1rem;
    font-style: italic;
}

.arrow-btn {
    display: none;
}

.porto-item:hover img {
    transform: scale(1.05);
    opacity: 1;
    filter: grayscale(0%);
}

.porto-item:hover .overlay {
    opacity: 1;
}

/* =========================================
   6. SERVICES LIST
   ========================================= */
.service-row {
    display: flex;
    align-items: baseline;
    padding: 50px 0;
    border-bottom: 2px solid rgba(192, 32, 38, 0.2);
    transition: 0.3s;
}

.service-row:hover {
    padding-left: 30px;
    background: rgba(192, 32, 38, 0.05);
}

.service-row .num {
    font-family: var(--font-head);
    color: var(--text-primary);
    margin-right: 50px;
    font-size: 1.5rem;
    font-weight: 800;
}

.service-row h3 {
    font-size: 2.5rem;
    flex: 1;
    font-weight: 700;
    font-family: var(--font-head);
}

.service-row p {
    color: var(--text-muted);
    width: 40%;
    font-size: 1.1rem;
    font-weight: 500;
}

.outline-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* =========================================
   6b. SERVICE ACCORDION (Dropdown Hierarki)
   ========================================= */
.service-accordion {
    border-top: 2px solid rgba(192, 32, 38, 0.2);
}

/* Level 1: Accordion Item (Judul Utama) */
.accordion-item {
    border-bottom: 2px solid rgba(192, 32, 38, 0.2);
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 40px 0;
    cursor: pointer;
    transition: 0.3s ease;
}

.accordion-header:hover {
    padding-left: 20px;
    background: rgba(192, 32, 38, 0.03);
}

.accordion-header .num {
    font-family: var(--font-head);
    color: var(--text-primary);
    margin-right: 40px;
    font-size: 1.5rem;
    font-weight: 800;
    min-width: 50px;
}

.accordion-header h3 {
    font-size: 2.2rem;
    flex: 1;
    font-weight: 700;
    font-family: var(--font-head);
    color: var(--text-primary);
    margin: 0;
}

.accordion-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    transition: 0.3s ease;
}

.accordion-header:hover .accordion-icon {
    background: var(--text-primary);
    color: var(--bg-main);
}

/* Accordion Content (Hidden by default) */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background: rgba(192, 32, 38, 0.02);
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    padding: 0 0 30px 90px;
}

/* Level 2: Sub Accordion (Sub Judul) */
.accordion-sub-item {
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.accordion-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    cursor: pointer;
    transition: 0.3s ease;
}

.accordion-sub-header:hover {
    background: rgba(192, 32, 38, 0.05);
}

.accordion-sub-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-head);
    color: var(--text-primary);
    margin: 0;
}

.accordion-sub-header .accordion-icon {
    width: 30px;
    height: 30px;
    font-size: 1.3rem;
}

/* Sub Accordion Content */
.accordion-sub-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-sub-item.active .accordion-sub-content {
    max-height: 1000px;
    padding: 10px 25px 25px;
}

/* Level 3: Deep Accordion (Subjudul dalam Subjudul) */
.accordion-deep-item {
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    overflow: hidden;
    border-left: 4px solid var(--accent-red);
}

.accordion-deep-item:last-child {
    margin-bottom: 0;
}

.accordion-deep-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    cursor: pointer;
    transition: 0.3s ease;
}

.accordion-deep-header:hover {
    background: rgba(255, 255, 255, 0.5);
}

.accordion-deep-header h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-head);
}

.accordion-deep-header .accordion-icon {
    width: 26px;
    height: 26px;
    font-size: 1.1rem;
    border-width: 1.5px;
}

/* Deep Accordion Content (Description) */
.accordion-deep-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-deep-item.active .accordion-deep-content {
    max-height: 500px;
    padding: 0 20px 20px;
}

.accordion-deep-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

/* Mobile Responsive for Accordion */
@media (max-width: 768px) {
    .accordion-header {
        padding: 25px 0;
    }

    .accordion-header .num {
        font-size: 1.2rem;
        margin-right: 20px;
        min-width: 35px;
    }

    .accordion-header h3 {
        font-size: 1.5rem;
    }

    .accordion-icon {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .accordion-item.active .accordion-content {
        padding: 0 15px 20px 15px;
    }

    .accordion-sub-header h4 {
        font-size: 1.1rem;
    }

    .accordion-deep-header h5 {
        font-size: 0.95rem;
    }

    .accordion-deep-content p {
        font-size: 0.9rem;
    }
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    padding: 100px 0 50px;
    text-align: center;
    background: var(--bg-main);
}

.footer-content h2 {
    font-family: var(--font-head);
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1;
}

.highlight {
    color: var(--text-primary);
}

.email-link {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 4px solid var(--text-primary);
    padding-bottom: 10px;
    transition: 0.3s;
    font-family: var(--font-head);
}

.email-link:hover {
    background: var(--text-primary);
    color: var(--bg-main);
    border-bottom-color: transparent;
    padding: 15px 30px;
}

.footer-bottom {
    margin-top: 120px;
    display: flex;
    justify-content: space-between;
    border-top: 2px solid rgba(192, 32, 38, 0.2);
    padding-top: 40px;
    font-weight: 600;
    color: var(--text-muted);
}

.socials a {
    color: var(--text-primary);
    margin-left: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--text-muted);
}

/* =========================================
   8. MOBILE RESPONSIVE
   ========================================= */

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        order: 2;
    }

    /* Hide hamburger when menu is open (show X instead) */
    .hamburger.active {
        position: fixed;
        top: 25px;
        right: 40px;
        z-index: 200;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #FFFDF5;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 100px 40px 40px;
        transition: 0.4s ease;
        z-index: 150;
        overflow-y: auto;
    }

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

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        display: block;
        font-size: 1.1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 20px 0;
        color: #1a1a1a;
    }

    .nav-menu a:hover {
        color: var(--text-primary);
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .container {
        padding: 0 20px;
    }

    nav .container {
        padding: 0 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 350px;
    }

    .large, .wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .service-row {
        flex-direction: column;
        gap: 15px;
    }

    .service-row p {
        width: 100%;
    }

    .footer-content h2 {
        font-size: 3rem;
    }

    .email-link {
        font-size: 1.5rem;
        word-break: break-all;
    }

    /* Footer mobile responsive */
    .footer-content h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-top: 60px;
    }

    .footer-bottom p {
        margin: 0;
    }

    .socials {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .socials a {
        margin-left: 0;
    }

    /* Mobile menu overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 140;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Hide desktop-only elements on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile CTA in menu */
    .mobile-cta {
        display: list-item;
        list-style: none;
        margin-top: 30px;
        border-bottom: none !important;
    }

    .mobile-cta .btn-talk {
        display: block;
        width: 100%;
        text-align: center;
        padding: 18px 32px;
        font-size: 0.9rem;
    }
}

/* Hide mobile-cta on desktop */
.mobile-cta {
    display: none;
}

/* =========================================
   9. PORTFOLIO PAGE STYLES (NEW)
   ========================================= */

/* Override Background khusus halaman Portfolio biar karya lebih pop-up */
body.portfolio-page {
    background-color: #FFFDF5; /* Cream sangat muda/putih */
    color: #1a1a1a; /* Teks jadi hitam biar kontras */
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--accent-red);
    background: transparent;
    color: var(--accent-red);
    font-family: var(--font-head);
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-red);
    color: #FFF;
}

/* Gallery Layout (Pinterest Style / Masonry) */
.gallery-grid {
    column-count: 3; /* 3 Kolom */
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

/* Type Badge (Photo/Video/Web) */
.type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    backdrop-filter: blur(5px);
    z-index: 2;
}

/* Hover Effect */
.gallery-item:hover img, .gallery-item:hover video {
    transform: scale(1.05);
    opacity: 0.6;
}

.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px;
    transform: translateY(100%);
    transition: 0.3s;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
}

.gallery-desc {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Tombol Load More */
.load-more-container {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 60px;
}

/* Responsif buat HP */
@media (max-width: 768px) {
    .gallery-grid {
        column-count: 1; /* Jadi 1 kolom di HP */
    }
}
