/*
Theme Name: Portofolio Saya
Author: Binbin Keren
Description: Tema portofolio pertama yang gua bangun dari nol.
Version: 2.1.7
*/

/* === VARIABLES & GLOBAL STYLES === */
:root {
    --bg-color: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-color: #212529;
    --accent-color: #0D6EFD;
    --white-color: #FFFFFF;
    --border-color: #E9ECEF;
    --secondary-text-color: #6c757d;

    /* Variabel Font Baru */
    --font-sans: 'Nunito Sans', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Variabel Desain Baru */
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-main: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Variabel efek cahaya (Aurora) */
    --mouse-x: 50vw;
    --mouse-y: 50vh;
    --spotlight-grad-1: rgba(13, 110, 253, 0.15);
    --spotlight-grad-2: rgba(111, 66, 193, 0.1);
}

/* === VARIABEL UNTUK DARK MODE === */
body.dark-mode {
    --bg-color: #121212;
    --bg-light: #1e1e1e;
    --text-color: #e0e0e0;
    --white-color: #181818;
    --border-color: #333333;
    --secondary-text-color: #888888;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    
    --spotlight-grad-1: rgba(13, 110, 253, 0.2);
    --spotlight-grad-2: rgba(111, 66, 193, 0.15);
}


html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;

    background-image: radial-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
}

body.dark-mode {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* === EFEK CAHAYA KURSOR (AURORA) === */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    transition: background 0.2s ease-out;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        var(--spotlight-grad-1),
        var(--spotlight-grad-2),
        transparent 80%
    );
}

.site-content {
    flex-grow: 1;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* === PENGATURAN TIPOGRAFI BARU === */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0B5ED7;
}

/* Reusable component */
.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    max-width: 600px;
    margin: -1em auto 3em auto;
    color: var(--secondary-text-color);
}


/* === HEADER & NAVIGATION === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1em 0;
    transition: all 0.4s ease-in-out;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 0.5em 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

body.dark-mode .site-header.scrolled {
    background-color: rgba(30, 30, 30, 0.8);
}


.site-header--hidden {
    transform: translateY(-100%);
}

.site-branding a {
    font-family: var(--font-heading);
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-color);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-navigation ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Style Tombol Dark Mode */
.dark-mode-toggle {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-main);
}

.dark-mode-toggle:hover {
    background-color: var(--border-color);
    transform: rotate(15deg);
}

.dark-mode-toggle .fa-sun { display: none; }
.dark-mode-toggle .fa-moon { display: block; }

body.dark-mode .dark-mode-toggle .fa-sun { display: block; }
body.dark-mode .dark-mode-toggle .fa-moon { display: none; }


/* === TOMBOL HAMBURGER & MENU MOBILE === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition-main);
}

.menu-toggle.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* === SECTION STYLES === */
section {
    padding: 5em 0;
}

.front-page section:nth-of-type(even) {
     background-color: var(--bg-light);
     border-top: 1px solid var(--border-color);
     border-bottom: 1px solid var(--border-color);
}


/* === HERO SECTION === */
.hero {
    text-align: center;
    padding: 10em 0 6em 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color) !important;
    border: none !important;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.2em;
    line-height: 1.2;
    min-height: 140px;
}

.hero h1 .typed-cursor {
    font-size: 1em;
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5em auto;
    color: var(--secondary-text-color);
}

/* === TOMBOL-TOMBOL UTAMA (REFACTORED) === */
.cta-button,
#load-more-btn {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition-main);
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

body.dark-mode .cta-button,
body.dark-mode #load-more-btn {
    color: #e0e0e0;
}

.cta-button:hover,
#load-more-btn:hover {
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
    filter: brightness(1.1);
}


/* === LAYOUT BENTO GRID BARU === */
.bento-section {
    padding-top: 0 !important;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
}

.bento-box {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-main);
}

.bento-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bento-box h2, .bento-box h3, .bento-box h4 {
    margin-top: 0;
}

.bento-box p {
    color: var(--secondary-text-color);
}

.box-intro {
    grid-column: span 4;
    text-align: center;
    background-color: var(--bg-light);
}
.box-intro h2 {
    font-size: 1.8rem;
}
.box-intro p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.box-service-web, .box-service-va {
    grid-column: span 2;
}
.box-service-web h3 span, .box-service-va h3 span {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.bento-link {
    font-weight: 700;
    margin-top: 1em;
    display: inline-block;
}

.box-portfolio {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.box-portfolio .portfolio-link {
    display: block;
    width: 100%;
    height: 100%;
}
.box-portfolio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-main);
}
.box-portfolio:hover img {
    transform: scale(1.05);
}
.box-portfolio .bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #FFF;
}
.box-portfolio h4 {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5em;
}
.box-portfolio p {
    color: #FFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
}

.box-blog {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}
.box-blog h4 {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}
.box-blog h3 {
    font-size: 1.5rem;
    flex-grow: 1;
}
.box-blog h3 a {
    color: var(--text-color);
}
.box-blog h3 a:hover {
    color: var(--accent-color);
}
.box-blog .entry-meta {
    font-size: 0.85rem;
}

.box-cta {
    grid-column: span 2;
    background-color: var(--accent-color);
    color: #FFF;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.box-cta h3 {
    color: #FFF;
}
.box-cta p {
    color: rgba(255,255,255,0.8);
}
.box-cta .cta-button {
    background-color: var(--white-color);
    color: var(--accent-color);
}

.bento-cta-wrapper {
    text-align: center;
    margin-top: 3em;
}


/* === TESTIMONIALS SECTION === */
.testimonials {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.testimonial-card {
    background-color: var(--white-color);
    padding: 40px;
    border-left: 5px solid var(--accent-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto;
    transition: var(--transition-main);
}
.testimonial-card blockquote {
    margin: 0;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-color);
}
.testimonial-card cite {
    display: block;
    margin-top: 20px;
    font-style: normal;
    text-align: right;
}
.client-name {
    display: block;
    font-weight: 700;
    color: var(--text-color);
}
.client-title {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

/* === CONTACT SECTION (REFACTORED) === */
.contact {
    text-align: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    text-align: left;
    margin-top: 3em;
    align-items: center;
}

.contact-info h3 {
    margin-top: 0;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin-top: 2em;
}
.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5em;
    font-size: 1rem;
}
.contact-details i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}


/* === BLOG ARCHIVE === */
.blog-archive .page-header {
    padding-top: 6em;
    padding-bottom: 1em;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 5em;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition-main);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}


.post-thumbnail a {
    display: block;
}

.post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


.entry-meta {
    margin-bottom: 10px;
}

.entry-title {
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-size: 1.4rem;
}

.entry-title a {
    color: var(--text-color);
}

.entry-title a:hover {
    color: var(--accent-color);
}

.entry-summary {
    flex-grow: 1;
    margin-bottom: 1.5em;
}

.read-more {
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    align-self: flex-start;
    transition: var(--transition-main);
}

.read-more:hover {
    color: #0B5ED7;
    transform: translateX(4px);
}


/* === FOOTER (REFACTORED) === */
.site-footer {
    padding: 5em 0 0 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 4em;
    text-align: left;
}

.footer-widget-area .widget-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1.5em;
    color: var(--text-color);
}

.footer-widget-area p {
    color: var(--secondary-text-color);
    margin-bottom: 0;
}

.footer-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-menu li {
    margin-bottom: 0.8em;
}

.footer-nav-menu a {
    color: var(--secondary-text-color);
    transition: var(--transition-main);
}

.footer-nav-menu a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-social-media {
    display: flex;
    gap: 20px;
}

.footer-social-media a {
    color: var(--secondary-text-color);
    font-size: 1.5em;
    transition: var(--transition-main);
}

.footer-social-media a:hover {
    color: var(--accent-color);
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-color);
    padding: 2em 0;
    text-align: center;
}

.footer-copyright {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    margin: 0;
}

/* === ANIMATIONS (REFACTORED) === */
.fade-in {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* === SCROLL TO TOP BUTTON BARU === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-main);
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    color: var(--white-color);
    filter: brightness(1.1);
    transform: scale(1.1);
}

/* === PAGE LAYANAN SAYA (BARU) === */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 4em 0;
}
.service-page-container .service-block:nth-child(even) {
    background-color: var(--bg-light);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50% + 20px);
    padding-right: calc(50vw - 50% + 20px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.service-block:nth-child(even) .service-image {
    grid-column: 2;
}
.service-block:nth-child(even) .service-content {
    grid-column: 1;
    grid-row: 1;
}
.service-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}
.service-content {
    text-align: left;
}
.service-title {
    text-align: left;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.service-features {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5em;
}
.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--secondary-text-color);
    line-height: 1.6;
    padding-bottom: 1.2em;
    margin-bottom: 1.2em;
    border-bottom: 1px solid var(--border-color);
}
.service-features li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    margin-top: 5px;
    flex-shrink: 0;
}
.workflow-section {
    padding: 4em 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 3em;
}
.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--white-color);
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5em auto;
    font-size: 1.2rem;
}
.step h3 {
    margin-top: 0;
}


/* === SINGLE POST STYLES === */
.single-post-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 6em 0;
}
.entry-header-single {
    margin-bottom: 2em;
    text-align: center;
}
.meta-above-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
    font-size: 0.9rem;
}
.meta-above-title a {
    font-weight: bold;
}
.post-categories a {
    color: var(--secondary-text-color);
    text-decoration: underline;
}
.entry-title-single {
    font-size: 2.8rem;
    line-height: 1.2;
    margin: 0;
}
.entry-meta-single {
    margin-top: 1.5em;
}
.entry-meta-single .separator {
    margin: 0 0.5em;
}
.single-featured-image {
    margin-bottom: 2.5em;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.single-featured-image img {
    width: 100%;
    display: block;
}
.entry-content p, 
.entry-content ul, 
.entry-content ol {
    margin-bottom: 1.5em;
    font-size: 1.125rem;
}
.entry-content h2, 
.entry-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
}

/* === BLOG FILTER & LOAD MORE STYLES (REFACTORED) === */
.post-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 3em;
}
.filter-item {
    background-color: var(--white-color);
    color: var(--secondary-text-color);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-main);
    box-shadow: var(--shadow-sm);
}
.filter-item:hover {
    background-color: var(--border-color);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.filter-item.active {
    background-color: var(--accent-color);
    color: #FFF;
    border-color: var(--accent-color);
    box-shadow: none;
}
body.dark-mode .filter-item.active {
    color: #e0e0e0;
}
.load-more-container {
    text-align: center;
    margin-top: -2em;
    padding-bottom: 4em;
}


/* === RESPONSIVE === */
@media (max-width: 959px) { /* Titik henti baru untuk tablet */
     .bento-grid {
        grid-template-columns: repeat(2, 1fr);
     }
     .box-intro, .box-portfolio, .box-blog, .box-cta {
        grid-column: span 2;
     }
}

@media (max-width: 768px) {
    html {
        font-size: 93.75%;
    }

    .site-header .container {
        flex-wrap: nowrap;
    }
    .site-branding { flex-grow: 1; }

    .header-controls {
        gap: 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: block;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.8);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-bottom-left-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
        box-shadow: var(--shadow-lg);
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition-main);
        z-index: 999;
    }
    
    body.dark-mode .main-navigation {
        background-color: rgba(30, 30, 30, 0.8);
    }

    .main-navigation.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px 20px 20px;
        gap: 0;
    }
    .main-navigation a {
        display: block;
        padding: 15px 10px;
        width: 100%;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }
     .main-navigation li:last-child a {
        border-bottom: none;
    }
    .main-navigation a:hover::after {
        width: 0;
    }

    .site-header.scrolled {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    body.dark-mode .site-header.scrolled {
        background-color: rgba(30, 30, 30, 0.8);
    }
    
    .hero h1 {
        font-size: 2.5rem;
        min-height: 120px;
    }

    h2 {
        font-size: 2rem;
    }

    .spotlight {
        display: none;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .service-block,
    .service-block:nth-child(even) {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 2em 0;
    }
    .service-block:nth-child(even) .service-image {
       order: -1;
    }

    .service-page-container .service-block:nth-child(even) {
        margin-left: -20px;
        margin-right: -20px;
    }
}

@media (max-width: 600px) {
     .bento-grid {
        grid-template-columns: 1fr;
     }
     .bento-box {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
     }
}

/* === SINGLE PORTFOLIO STYLES === */
.single-portfolio-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 6em 0;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 2.5em;
}

.portfolio-title {
    font-size: 3rem;
    margin-bottom: 0.5em;
}

.portfolio-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 1em;
}

.meta-label {
    font-weight: 700;
}

.portfolio-featured-image {
    margin-bottom: 3em;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.portfolio-featured-image img {
    width: 100%;
    display: block;
}

.portfolio-content h2 {
    font-size: 1.8rem;
    text-align: left;
    margin-top: 0;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.portfolio-content p,
.portfolio-content ul,
.portfolio-content ol {
    line-height: 1.8;
}

.portfolio-live-link {
    text-align: center;
    margin-top: 3em;
}

.portfolio-content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 3em;
}

@media (min-width: 768px) {
    .portfolio-content-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.portfolio-details-sidebar .details-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    position: sticky;
    top: 120px;
}

.portfolio-details-sidebar h3 {
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.portfolio-details-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2em 0;
}

.portfolio-details-sidebar li {
    margin-bottom: 1em;
    display: flex;
    justify-content: space-between;
}

.portfolio-details-sidebar li strong {
    color: var(--text-color);
}

.portfolio-details-sidebar li span {
    color: var(--secondary-text-color);
    text-align: right;
}

.portfolio-details-sidebar .cta-button {
    width: 100%;
    text-align: center;
}


/* === KOMENTAR ARTIKEL === */
.comments-area {
    margin-top: 4em;
    padding-top: 3em;
    border-top: 1px solid var(--border-color);
}

.comments-area h2 {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 1.5em;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5em;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.comment-author.vcard {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--accent-color);
}

.fn {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
}

.comment-meta {
    margin-top: 5px;
}

.comment-meta a {
    color: var(--secondary-text-color);
    text-decoration: none;
}
.comment-meta a:hover {
    color: var(--accent-color);
}

.comment-content {
    margin-top: 1em;
    line-height: 1.7;
}

.comment-reply-link {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.comment-reply-link:hover {
    background-color: #0B5ED7;
    color: var(--white-color);
}

.comment-respond {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow-sm);
}

.comment-respond h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5em;
    text-align: left;
}

.comment-form p {
    margin-bottom: 1em;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--text-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--white-color);
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit input[type="submit"] {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background-color: #0B5ED7;
}

.children {
    list-style: none;
    margin: 0;
    padding-left: 30px;
    margin-top: 20px;
}

.children .comment-body {
    margin-top: 25px;
    background-color: var(--bg-color);
    box-shadow: none;
    border: 1px dashed var(--border-color);
}

.comment-navigation {
    margin-top: 2em;
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

.comment-navigation .nav-previous,
.comment-navigation .nav-next {
    padding: 8px 15px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.comment-navigation .nav-previous:hover,
.comment-navigation .nav-next:hover {
    background-color: var(--border-color);
}

/* === ABOUT ME PAGE (page-about.php) === */
.about-me-container {
    padding-top: 6em;
    padding-bottom: 6em;
}

.about-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 40px;
    margin-bottom: 5em;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.about-hero-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white-color);
    box-shadow: var(--shadow-md);
}

.about-hero-text h1 {
    font-size: 3rem;
    margin: 0;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 0.5em;
}

.entry-content section {
    padding: 3em 0;
}

.about-story {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills-section {
    background-color: var(--bg-light);
    padding: 4em 2em;
    border-radius: var(--border-radius);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.skill-item {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
}

.about-cta {
    text-align: center;
    background-color: var(--accent-color);
    color: #FFF;
    padding: 4em 2em;
    border-radius: var(--border-radius);
    margin-top: 3em;
}

.about-cta h2 {
    color: #FFF;
}

.about-cta p {
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: -1em auto 2.5em auto;
}

.about-cta .cta-button {
    background-color: var(--white-color);
    color: var(--accent-color);
}

.about-cta .cta-button:hover {
    background-color: #f0f0f0;
    color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .about-hero {
        flex-direction: column;
        text-align: center;
    }
    .about-hero-text h1 {
        font-size: 2.5rem;
    }
}


/* === STYLE UNTUK WPFORMS === */
div.wpforms-container-full .wpforms-form .wpforms-field-label {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
}

div.wpforms-container-full .wpforms-form input[type=text],
div.wpforms-container-full .wpforms-form input[type=email],
div.wpforms-container-full .wpforms-form input[type=url],
div.wpforms-container-full .wpforms-form input[type=password],
div.wpforms-container-full .wpforms-form input[type=search],
div.wpforms-container-full .wpforms-form input[type=number],
div.wpforms-container-full .wpforms-form input[type=tel],
div.wpforms-container-full .wpforms-form select,
div.wpforms-container-full .wpforms-form textarea {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    padding: 12px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-main);
}

div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form select:focus,
div.wpforms-container-full .wpforms-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
    outline: none;
}

div.wpforms-container-full .wpforms-form button[type=submit] {
    background-color: var(--accent-color);
    color: var(--white-color);
    width: 100%;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition-main);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
}

div.wpforms-container-full .wpforms-form button[type=submit]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

body.dark-mode div.wpforms-container-full .wpforms-form button[type=submit] {
    color: #e0e0e0;
}


/* === STYLE UNTUK SLIDER TESTIMONI (SWIPER.JS) === */
.testimonial-slider {
    padding-bottom: 50px !important;
    margin: 0 auto;
    max-width: 700px;
}
.testimonial-slider .swiper-pagination-bullet {
    background-color: var(--border-color);
    opacity: 0.8;
}
.testimonial-slider .swiper-pagination-bullet-active {
    background-color: var(--accent-color);
    opacity: 1;
}

/* === BLOG LAYOUT MAJALAH & SEARCH === */
.headline-section {
    margin-bottom: 4em;
}

.post-card-featured {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-main);
}

.post-card-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}


.post-card-featured .entry-title {
    font-size: 1.8rem;
}

@media (min-width: 768px) {
    .post-card-featured {
        flex-direction: row;
        align-items: center;
    }
    .post-card-featured .post-thumbnail {
        flex: 1 1 55%;
    }
    .post-card-featured .post-thumbnail img {
        height: 100%;
        min-height: 400px;
    }
    .post-card-featured .post-content {
        flex: 1 1 45%;
        padding: 40px;
    }
    .post-card-featured .entry-title {
        font-size: 2.2rem;
    }
}

.category-section {
    margin-bottom: 4em;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.category-title {
    font-size: 1.8rem;
    text-align: left;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--accent-color);
}

.post-card-category {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--white-color);
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: var(--transition-main);
}
.post-card-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.post-card-category .post-thumbnail {
    flex: 0 0 80px;
}

.post-card-category .post-thumbnail img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    display: block;
}

.post-card-category .post-content {
    padding: 0;
}

.post-card-category .entry-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.post-card-category .entry-meta,
.box-blog .entry-meta {
    font-size: 0.8rem;
}

.other-posts-section {
    padding-top: 3em;
    border-top: 1px solid var(--border-color);
}

.section-title-center {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1em;
}

.blog-search-section,
.portfolio-archive .blog-search-section {
    margin-bottom: 3em;
    padding-bottom: 3em;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-archive .blog-search-section {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 4em;
}

.header-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.search-form {
    display: flex;
    box-shadow: var(--shadow-md);
    border-radius: 50px;
}
.search-field {
    width: 100%;
    border: 1px solid var(--border-color);
    background-color: var(--white-color);
    color: var(--text-color);
    padding: 15px 25px;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    transition: var(--transition-main);
}
.search-field:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}
.search-submit {
    border: 1px solid var(--accent-color);
    background-color: var(--accent-color);
    color: #FFF;
    padding: 0 25px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: var(--transition-main);
}

.search-submit:hover {
    background-color: #0B5ED7;
}

.search-results-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}
.search-loading, .search-no-results {
    padding: 15px 20px;
    color: var(--secondary-text-color);
}
.search-result-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.search-result-item:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 700;
    color: var(--secondary-text-color);
    border-bottom: 1px solid var(--border-color);
}
.clear-history {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.9em;
}
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    transition: background-color 0.2s ease;
}
.history-item:hover {
     background-color: var(--bg-light);
}
.history-term {
    cursor: pointer;
    flex-grow: 1;
}
.delete-history-item {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--secondary-text-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    line-height: 20px;
    font-size: 16px;
}

/* === PENERAPAN FONT MONOSPACE === */
.entry-meta,
.entry-meta-single,
.portfolio-tags span,
.skill-item,
.comment-meta,
.portfolio-meta .meta-label,
.box-blog h4,
.portfolio-details-sidebar li span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.skill-item,
.portfolio-tags span {
    font-size: 0.75rem;
}
.portfolio-details-sidebar .cta-button {
    width: 100%;
    text-align: center;
    padding: 12px 0px;
    font-size: 0.9rem;
}
/* Untuk gambar di halaman detail artikel & portfolio */
.single-featured-image img,
.portfolio-featured-image img {
    width: 100%;
    height: 450px; /* Atur tinggi yang lu mau, misalnya 450px */
    object-fit: cover;
}

/* Untuk gambar di kartu-kartu blog (arsip/home) */
.post-thumbnail img {
    width: 100%;
    height: 220px; /* Sesuaikan tingginya biar seragam */
    object-fit: cover;
}

/* Untuk gambar di kartu portfolio */
.portfolio-card img {
    width: 100%;
    height: 250px; /* Sesuaikan tingginya biar seragam */
    object-fit: cover;
}
.work-showcase {
    padding: 5em 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.scroller-container {
    margin-top: 3em;
}

.scroller {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    margin-bottom: 1rem;
}

.scroller-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    width: max-content;
}

.scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 60s;
}

.scroller-inner {
    animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

.showcase-card {
    width: 350px; /* Lebar setiap kartu */
    height: 220px; /* Tinggi setiap kartu */
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.showcase-card:hover {
    transform: scale(1.05);
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.showcase-card:hover img {
    filter: brightness(0.9);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: #FFF;
    transform: translateY(30%);
    transition: transform 0.4s ease;
}

.showcase-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h3 {
    color: #FFF;
    font-size: 1.2rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.card-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background-color: var(--accent-color);
    color: #FFF;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

body.dark-mode .card-category {
    color: #121212;
}
/* === BANNER CTA DI SINGLE PORTFOLIO === */
.project-cta-banner {
    padding: 5em 2em;
    margin-top: 4em;
    text-align: center;
    color: #FFF;
    background: linear-gradient(45deg, var(--accent-color) 0%, #3a0ca3 100%);
    border-radius: var(--border-radius);
}

body.dark-mode .project-cta-banner {
     background: linear-gradient(45deg, var(--accent-color) 0%, #1e1e1e 100%);
}

.project-cta-banner .container {
    max-width: 700px;
}

.project-cta-banner h2 {
    color: #FFF;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.project-cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5em;
}

.project-cta-banner .cta-button {
    background-color: #FFF;
    color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.project-cta-banner .cta-button:hover {
    background-color: #f0f0f0;
    color: var(--accent-color);
    transform: translateY(-5px);
}