/*
Theme Name: Makromedia Premium
Theme URI: http://makromediaadvertising.com/
Author: Makromedia
Description: Premium Red/Black/White Corporate Theme
Version: 2.0
Text Domain: makromedia
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #ffffff;
    --bg-gray: #f5f5f5;
    --surface-color: #151515;
    
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --text-dark: #111111;
    --text-dark-muted: #555555;
    
    --accent-red: #E60000;
    --accent-red-hover: #cc0000;
    --wa-green: #25D366;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin-top: 0;
    text-transform: uppercase;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* UTILS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-dark { color: var(--text-dark) !important; }
.highlight { color: var(--accent-red); }
.highlight-text { color: var(--accent-red); }

.section-dark { background: var(--bg-dark); padding: 100px 0; }
.section-light { background: var(--bg-light); color: var(--text-dark); padding: 100px 0; }
.section-red { background: var(--accent-red); color: var(--text-light); padding: 100px 0; }
.border-top { border-top: 1px solid rgba(255,255,255,0.05); }

.section-title { font-size: 36px; margin-bottom: 10px; line-height: 1.3; }
.section-subtitle { font-size: 18px; color: var(--text-muted); margin-bottom: 50px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-light .section-subtitle { color: var(--text-dark-muted); }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-primary { background: var(--accent-red); color: #fff; border: 2px solid var(--accent-red); }
.btn-primary:hover { background: transparent; color: var(--accent-red); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-secondary:hover { background: #fff; color: var(--bg-dark); }
.btn-dark { background: var(--bg-dark); color: #fff; border: 2px solid var(--bg-dark); }
.btn-dark:hover { background: transparent; color: var(--bg-dark); }
.btn-massive { font-size: 20px; padding: 20px 50px; }

/* NAVBAR */
/* NAVBAR */
.site-header {
    background: rgba(5,5,5,0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 25px;
}

/* LOGO + NAMA WEBSITE SEJAJAR */
.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-branding img {
    height: 40px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 24px;
    margin: 0;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

/* MENU */
.main-navigation ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

.main-navigation a:hover {
    color: var(--accent-red);
}

/* MOBILE */
@media(max-width: 768px) {

    .header-inner {
        height: auto;
        min-height: 80px;
        padding: 12px 15px;
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .site-branding {
        width: 100%;
        justify-content: flex-start;
    }

    .site-branding img {
        height: 34px;
    }

    .site-title {
        font-size: 18px;
        line-height: 1.1;
        white-space: normal;
    }

    .main-navigation {
        display: block;
        width: 100%;
    }

    .main-navigation ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 18px;
        width: 100%;
    }

    .main-navigation a {
        font-size: 12px;
        white-space: nowrap;
    }
}

    .site-title {
        font-size: 20px;
    }

    .site-branding {
        gap: 10px;
    }

    .site-branding img {
        height: 36px;
    }
}

@media(max-width: 768px){
    .main-navigation { display: none; /* Add hamburger JS later */ }
}

/* HERO */
.premium-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(5,5,5,0.7), rgba(5,5,5,0.9)), url('<?php echo get_template_directory_uri(); ?>/assets/hero-bg.jpg') center/cover;
    padding: 100px 20px;
}
.hero-headline { font-size: 54px; line-height: 1.2; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.hero-subheadline { font-size: 20px; max-width: 800px; margin: 0 auto 30px; color: var(--text-light); }
.hero-services { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--accent-red); margin-bottom: 30px; letter-spacing: 2px; }
.hero-cta { display: flex; gap: 20px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.hero-microcopy { font-style: italic; color: var(--text-muted); }
.hero-microcopy-small { font-size: 14px; color: #888; margin-top: 20px; }

@media(max-width: 768px) {
    .hero-headline { font-size: 36px; }
    .hero-cta { flex-direction: column; }
}

/* GRIDS */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
@media(max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* FEATURE CARDS */
.feature-card { background: var(--surface-color); padding: 40px; border-radius: 8px; text-align: center; border-bottom: 3px solid transparent; transition: 0.3s; }
.feature-card:hover { border-bottom-color: var(--accent-red); transform: translateY(-5px); }
.feature-card .icon { font-size: 40px; margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; margin-bottom: 15px; }
.feature-card p { color: var(--text-muted); font-size: 15px; }

/* SERVICES GRID */
.grid-service { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.service-box { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; }
.service-box:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.service-img { height: 250px; background-size: cover; background-position: center; }
.service-content { padding: 30px; }
.service-content h3 { font-size: 22px; color: var(--text-dark); margin-bottom: 10px; }
.service-content p { color: var(--text-dark-muted); margin-bottom: 20px; }
.service-link { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--accent-red); text-transform: uppercase; font-size: 14px; }

/* PORTFOLIO */
.portfolio-filter { margin-bottom: 40px; }
.portfolio-filter span { display: inline-block; margin: 0 10px 10px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; color: var(--text-muted); cursor: pointer; padding-bottom: 5px; }
.portfolio-filter span.active, .portfolio-filter span:hover { color: #fff; border-bottom: 2px solid var(--accent-red); }
.portfolio-masonry { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.port-item { background: var(--surface-color); height: 300px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-weight: bold; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.port-item:hover { border-color: var(--accent-red); color: #fff; }

/* BEFORE AFTER */
.ba-container { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.ba-box { flex: 1; min-width: 300px; }
.ba-label { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 24px; margin-bottom: 15px; color: var(--text-dark-muted); }
.ba-img { height: 300px; display: flex; align-items: center; justify-content: center; font-weight: bold; border-radius: 8px; color: #fff; }
.bg-gray { background: #ccc; color: #666; }
.bg-dark { background: var(--surface-color); }
.ba-arrow { font-size: 40px; color: var(--accent-red); font-weight: 900; }
@media(max-width: 768px){ .ba-arrow { transform: rotate(90deg); } }

/* TIMELINE */
.timeline { display: flex; flex-direction: column; gap: 30px; max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before { content:''; position:absolute; left: 35px; top:0; bottom:0; width:2px; background: rgba(255,255,255,0.1); }
.tl-item { display: flex; align-items: flex-start; gap: 30px; position: relative; }
.tl-num { width: 70px; height: 70px; background: var(--bg-dark); border: 2px solid var(--accent-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 800; color: var(--accent-red); flex-shrink: 0; z-index: 2; }
.tl-content { background: var(--surface-color); padding: 30px; border-radius: 8px; flex: 1; border: 1px solid rgba(255,255,255,0.02); }
.tl-content h3 { font-size: 20px; margin-bottom: 10px; }
.tl-content p { color: var(--text-muted); margin: 0; }

/* TESTIMONIAL */
.testi-card { background: #f9f9f9; padding: 40px; border-radius: 8px; border-left: 4px solid var(--accent-red); }
.testi-card .stars { margin-bottom: 15px; }
.testi-card p { font-size: 18px; font-style: italic; line-height: 1.8; margin-bottom: 20px; color: var(--text-dark); }
.testi-card h5 { color: var(--accent-red); margin: 0; font-size: 16px; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item h2 { font-size: 48px; color: var(--accent-red); margin-bottom: 5px; }
.stat-item p { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #fff; letter-spacing: 2px; }
@media(max-width: 768px){ .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* CTA MASSIVE */
.cta-massive { padding: 150px 20px; background: linear-gradient(45deg, #111, #000); }

/* FOOTER */
.site-footer { background: var(--bg-darker); padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 18px; }
.footer-col p, .footer-col ul { color: var(--text-muted); font-size: 15px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--accent-red); }

/* FLOATING WA & MOBILE BAR */
.floating-wa { position: fixed; bottom: 30px; right: 30px; background-color: var(--wa-green); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 10000; animation: wa-pulse 2s infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.mobile-bottom-bar { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--bg-darker); padding: 15px; text-align: center; z-index: 9999; border-top: 1px solid rgba(255,255,255,0.1); }
@media(max-width: 768px) {
    .floating-wa { bottom: 90px; right: 20px; width: 50px; height: 50px; }
    .mobile-bottom-bar { display: block; }
    body { padding-bottom: 70px; }
}

/* DIAMOND TOUCHES & PLACEHOLDERS */
.premium-hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--accent-red) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}
.premium-hero { position: relative; }
.premium-hero .container { position: relative; z-index: 1; }
.diamond-icon { 
    display: inline-block; 
    width: 8px; 
    height: 8px; 
    background: var(--accent-red); 
    transform: rotate(45deg); 
    margin-right: 10px;
    box-shadow: 0 0 5px var(--accent-red);
}

/* TESTIMONIAL SLIDER ANIMATION */
.testimonial-slider-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}
.testimonial-slider-wrap::before,
.testimonial-slider-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.testimonial-slider-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light) 0%, transparent 100%);
}
.testimonial-slider-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light) 0%, transparent 100%);
}

.testimonial-track {
    display: flex;
    width: calc(400px * 14); /* 7 items + 7 clones, approx 400px each */
    animation: scroll 40s linear infinite;
    gap: 30px;
}
.testimonial-track:hover {
    animation-play-state: paused; /* Pause on hover */
}
.testimonial-track .testi-card {
    width: 400px;
    flex-shrink: 0;
    margin: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * 7 - 30px * 7)); } /* Shift by exactly half the track */
}

@media(max-width: 768px) {
    .testimonial-track .testi-card {
        width: 300px;
    }
    .testimonial-track {
        width: calc(300px * 14);
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-300px * 7 - 30px * 7)); }
    }
}

/* HERO IMAGE SLIDER */
.premium-hero { flex-direction: column; justify-content: flex-start; padding-top: 50px; gap: 40px; }
.hero-image-slider-wrap { width: 100%; max-width: 1000px; margin: 0 auto 30px; overflow: hidden; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.1); }
.hero-image-track { display: flex; width: 300%; animation: single-slide 15s infinite; }
.hero-img-box { width: 33.3333%; height: 350px; background-size: cover; background-position: center; flex-shrink: 0; }
@keyframes single-slide { 0%, 25% { transform: translateX(0); } 33%, 58% { transform: translateX(-33.33333%); } 66%, 91% { transform: translateX(-66.66666%); } 100% { transform: translateX(0); } }
@media(min-width: 768px) { .hero-img-box { height: 500px; } }

/* =========================
   FIX HERO MOBILE
   ========================= */

@media (max-width: 768px) {

    .premium-hero {
        width: 100%;
        min-width: 0;
        padding: 30px 10px 70px;
        gap: 20px;
        overflow: hidden;
    }

    .hero-image-slider-wrap {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 20px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .hero-image-track {
        width: 300%;
    }

    .hero-img-box {
        width: 33.3333%;
        height: 220px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: #050505;
    }

    .hero-headline {
        font-size: 28px;
        line-height: 1.2;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .hero-subheadline {
        font-size: 15px;
        max-width: 100%;
    }

    .hero-cta {
        width: 100%;
    }
}
