/*
Theme Name: Professional Portfolio
Theme URI: https://yourwebsite.com/portfolio-theme
Author: Your Name
Author URI: https://yourwebsite.com
Description: A professional portfolio theme with customizable hero section
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portfolio-theme
Tags: portfolio, professional, customizable
*/

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    font-size: var(--body-font-size);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    background: #5a8ad6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 15px 0;
    width: 100%;
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navigation-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.site-branding {
    margin-right: 30px;
}

.site-brand-text {
    font-family: 'Lobster Two', cursive;
    font-style: italic;
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    display: inline-block;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

#site-navigation {
    width: 100%;
}

/* Menu Navigation Styling */
.main-menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.main-menu li {
    display: inline-block;
    margin: 0;
    padding: 0;
    width: auto;
}

.main-menu a {
    display: inline-block;
    padding: 10px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s ease;
}

/* Efek garis bawah emas */
.main-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #FFD700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Hover effect */
.main-menu a:hover {
    color: #FFD700;
}

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

/* Active state */
.main-menu .current-menu-item a,
.main-menu a.active {
    color: #FFD700;
}

.main-menu .current-menu-item a::after,
.main-menu a.active::after {
    width: 100%;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .main-menu {
        flex-direction: column;
        gap: 5px;
    }

    .main-menu li {
        width: 100%;
    }

    .main-menu a {
        display: block;
        padding: 15px 10px;
        position: relative;
        overflow: hidden;
    }

    .main-menu a::after {
        display: block;
    }

    .main-menu a:hover {
        background-color: transparent;
    }

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

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    margin-left: auto; /* Memindahkan ke kanan */
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger Animation when active */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Show hamburger only on mobile */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #site-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--footer-bg-color);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    #site-navigation.active {
        right: 0;
    }

    /* Mobile menu items dengan hover effect seperti desktop */
    #primary-menu a,
    .menu-primary-container > ul > li > a {
        display: block;
        padding: 15px 10px;
        position: relative;
        overflow: hidden;
    }

    #primary-menu a::after,
    .menu-primary-container > ul > li > a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: #FFD700;
        transition: all 0.3s ease;
        transform: translateX(-50%);
        display: block !important; /* Menampilkan kembali garis bawah */
    }

    #primary-menu a:hover,
    .menu-primary-container > ul > li > a:hover {
        color: #FFD700;
        background-color: transparent; /* Menghapus background hover sebelumnya */
    }

    #primary-menu a:hover::after,
    .menu-primary-container > ul > li > a:hover::after {
        width: 100%;
    }
}

/* CV Button - Simple Rounded Style */
.cyberpunk-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(90deg, 
        var(--cyberpunk-color1, #ff00ff), 
        var(--cyberpunk-color2, #00ffff));
    color: var(--cyberpunk-text-color, #ffffff);
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cyberpunk-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    opacity: 0.95;
}

/* Hapus styling kompleks yang tidak diperlukan */
.cyberpunk-btn::before {
    display: none;
}

.cyberpunk-btn-content {
    position: relative;
    color: var(--cyberpunk-text-color, #ffffff);
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
}

/* Hero Section with Separate Color Areas for Left Column */
.hero-section {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* Top colored area */
.hero-top-area {
    background-color: var(--hero-top-color, transparent);
    padding: 50px 0;
    width: 100%;
}

/* Middle colored area (main content) */
.hero-main-area {
    background-color: var(--hero-main-color, #ffffff);
    padding: 60px 0;
    width: 100%;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Bottom colored area */
.hero-bottom-area {
    background-color: var(--hero-bottom-color, transparent);
    padding: 50px 0;
    width: 100%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* Left column with text and buttons */
.hero-content {
    flex: 0 0 var(--hero-content-width, 50%);
    padding-right: 40px;
    max-width: var(--hero-content-width, 50%);
}

.hero-name {
    font-size: 3rem;
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--hero-name-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: var(--hero-desc-size, 1.25rem);
    font-family: var(--body-font);
    color: var(--hero-desc-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Button container */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

/* Right column with image */
.hero-image {
    flex: 0 0 var(--hero-image-width, 45%);
    position: relative;
    overflow: visible;
    z-index: 2;
    width: var(--hero-image-width, 45%);
}

/* Frame background yang menembus batas atas dan bawah */
.hero-image::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--hero-image-overflow-height, 100px));
    right: calc(-1 * var(--hero-image-overflow-width, 50px));
    width: calc(100% + var(--hero-image-overflow-width, 50px));
    height: calc(100% + 2 * var(--hero-image-overflow-height, 100px));
    background-color: var(--hero-image-bg, transparent);
    z-index: -1;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.08);
    border-radius: var(--hero-image-border-radius, 3px);
}

/* Gambar tetap dalam ukuran normal */
.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: var(--hero-image-border-radius, 3px);
}

/* Media query untuk layar besar */
@media (min-width: 1400px) {
    .hero-image::before {
        right: calc(-1 * var(--hero-image-overflow-width, 50px) * 1.5);
        width: calc(100% + var(--hero-image-overflow-width, 50px) * 1.5);
    }
}

/* Media query untuk responsivitas */
@media (max-width: 992px) {
    .hero-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        text-align: center;
        margin: 0 auto 40px;
    }
    
    .hero-container {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .hero-image {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Sesuaikan overlay frame untuk mobile */
    .hero-image::before {
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }
    
    .hero-image img {
        position: static;
        width: 100%;
        height: auto;
        object-fit: contain;
        max-width: 100%;
        max-height: none;
        border-radius: 8px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Sesuaikan ukuran teks */
    .hero-name {
        font-size: calc(var(--hero-name-size) * 0.8);
    }
    
    .hero-description {
        font-size: calc(var(--hero-desc-size) * 0.9);
    }
}

/* Media query untuk smartphone kecil */
@media (max-width: 576px) {
    .hero-image {
        max-width: 320px;
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .hero-name {
        font-size: calc(var(--hero-name-size) * 0.7);
    }
    
    .hero-main-area {
        padding: 40px 0;
    }
    
    .hero-top-area, 
    .hero-bottom-area {
        padding: 30px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
    }
}

/* Hero Button Styles - perlu dipertahankan */
.hero-btn {
    font-size: var(--btn-font-size, 1rem);
    display: inline-block;
    padding: 12px 30px;
    color: var(--btn-text-color, #ffffff);
    background-color: var(--btn-bg-color, #0066cc);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.5;
}

.hero-btn:hover {
    background-color: var(--btn-hover-bg-color, #004c99);
    color: var(--btn-hover-text-color, #ffffff);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Ghost button style for Download CV */
.hero-btn.ghost {
    background-color: transparent;
    color: var(--btn-bg-color, #0066cc);
    border: 2px solid var(--btn-bg-color, #0066cc);
}

.hero-btn.ghost:hover {
    background-color: var(--btn-bg-color, #0066cc);
    color: var(--btn-text-color, #ffffff);
}

/* Education Section */
.education-section {
    padding: 80px 0;
    background: var(--education-bg-color);
    width: 100%;
}

.education-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.education-heading {
    text-align: center;
    margin-bottom: 50px;
}

.education-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--education-title-color);
    margin-bottom: 15px;
}

.education-subtitle {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--education-subtitle-color);
    max-width: 700px;
    margin: 0 auto;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.education-item {
    display: flex;
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto; /* Mengubah dari 100% ke auto */
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.education-image {
    flex: 0 0 35%; /* Mengurangi dari 40% ke 35% */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px; /* Mengurangi padding */
    background-color: var(--education-image-bg, #f8f9fa);
}

.education-image img {
    max-width: 100%;
    max-height: 200px; /* Mengurangi dari 300px */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.education-item:hover .education-image img {
    transform: scale(1.05);
}

.education-content {
    flex: 1;
    padding: 20px; /* Mengurangi padding */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.education-year {
    display: inline-block;
    font-size: 0.85rem; /* Sedikit lebih kecil */
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px; /* Mengurangi margin */
}

.education-degree {
    font-family: var(--heading-font);
    font-size: 1.2rem; /* Mengurangi ukuran font */
    color: var(--education-degree-color);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.education-school {
    font-family: var(--body-font);
    font-size: 1rem; /* Mengurangi ukuran font */
    color: var(--education-school-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.education-description {
    font-family: var(--body-font);
    font-size: 0.9rem; /* Mengurangi ukuran font */
    color: var(--education-desc-color);
    line-height: 1.5;
}

.education-description ul {
    padding-left: 18px;
    margin: 0;
}

.education-description ul li {
    margin-bottom: 6px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .education-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 40px auto 0;
    }
    
    .education-image img {
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    .education-item {
        flex-direction: column;
    }
    
    .education-image {
        width: 100%;
        padding: 20px;
    }
    
    .education-image img {
        max-height: 160px;
    }
    
    .education-content {
        padding: 20px;
    }
    
    .education-title {
        font-size: 2rem;
    }
    
    .education-subtitle {
        font-size: 1rem;
    }
}

/* Work Experience Timeline Section */
.experience-section {
    padding: 80px 0;
    background: var(--experience-bg-color);
    width: 100%;
}

.experience-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.experience-heading {
    text-align: center;
    margin-bottom: 70px;
}

.experience-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--experience-title-color);
    margin-bottom: 15px;
}

.experience-subtitle {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--experience-subtitle-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Timeline Styling */
.timeline {
    position: relative;
    margin: 50px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--timeline-line-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
}

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

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
    text-align: left;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: right;
}

.timeline-item:nth-child(even) .timeline-content {
    float: left;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 25px;
    background: #fff;
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    left: -10px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    right: -10px;
}

.timeline-logo {
    position: absolute;
    width: 70px;
    height: 70px;
    left: 50%;
    top: 10px;
    margin-left: -35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 20;
    overflow: hidden;
    border: 4px solid var(--timeline-logo-border);
}

.timeline-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.timeline-year {
    display: inline-block;
    padding: 5px 15px;
    background: var(--experience-year-bg);
    color: var(--experience-year-color);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 10px;
}

.timeline-position {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: var(--experience-position-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-company {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--experience-company-color);
    margin-bottom: 15px;
}

.timeline-description {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--experience-desc-color);
    line-height: 1.6;
    text-align: left;
}

.timeline-description ul {
    padding-left: 20px;
    margin-top: 10px;
    text-align: left;
}

.timeline-description ul li {
    margin-bottom: 5px;
}

/* Clear floats */
.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

/* Active dot for timeline */
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    left: 50%;
    top: 30px;
    margin-left: -8px;
    border-radius: 50%;
    background: var(--timeline-dot-color);
    z-index: 15;
    box-shadow: 0 0 0 4px var(--timeline-line-color);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 90px);
        float: right;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        float: right;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
    }
    
    .timeline-logo {
        left: 30px;
        margin-left: 0;
    }
    
    .timeline-dot {
        left: 30px;
        margin-left: 0;
    }
}

/* Speaker Experience Section */
.speaker-section {
    padding: 80px 0;
    background: var(--speaker-bg-color);
    width: 100%;
}

.speaker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.speaker-heading {
    text-align: center;
    margin-bottom: 50px;
}

.speaker-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--speaker-title-color);
    margin-bottom: 15px;
}

.speaker-subtitle {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--speaker-subtitle-color);
    max-width: 700px;
    margin: 0 auto;
}

.speaker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.speaker-item {
    display: flex;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speaker-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.speaker-image {
    flex: 0 0 35%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100%;
}

.speaker-content {
    flex: 1;
    padding: 25px;
}

.speaker-date {
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--speaker-date-color);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.speaker-title-item {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--speaker-item-title-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.speaker-venue {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--speaker-venue-color);
    margin-bottom: 15px;
}

.speaker-description {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--speaker-desc-color);
    line-height: 1.6;
}

.speaker-description ul {
    padding-left: 20px;
    margin-top: 10px;
    text-align: left;
}

.speaker-description ul li {
    margin-bottom: 5px;
}

/* Workshop & Training Section */
.workshop-section {
    padding: 80px 0;
    background-color: var(--workshop-bg-color);
}

.workshop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.workshop-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--heading-color);
}

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

.workshop-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.workshop-item:hover {
    transform: translateY(-5px);
}

.workshop-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.workshop-content {
    padding: 20px;
}

.workshop-year {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.workshop-item-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.workshop-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .workshop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .workshop-grid {
        grid-template-columns: 1fr;
    }
    
    .workshop-section {
        padding: 60px 0;
    }
    
    .workshop-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

/* Responsive for Speaker and Workshop Sections */
@media (max-width: 992px) {
    .speaker-grid,
    .workshop-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .speaker-item,
    .workshop-item {
        flex-direction: column;
    }
    
    .speaker-image,
    .workshop-image {
        height: 200px;
        flex: none;
        width: 100%;
    }
}

/* Workshop text-only styles */
.workshop-grid.workshop-text-only .workshop-item {
    display: block;
    text-align: left;
    padding: 25px;
}

.workshop-grid.workshop-text-only .workshop-content {
    padding: 0;
}

/* Single workshop item centered */
.workshop-grid.workshop-single-item {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.workshop-grid.workshop-single-item .workshop-item {
    margin: 0 auto;
}

.workshop-grid.workshop-single-item.workshop-text-only .workshop-item {
    max-width: 700px;
    text-align: center;
}

.workshop-grid.workshop-single-item.workshop-text-only .workshop-description {
    text-align: left; /* Keep description text left-aligned for readability */
}

.workshop-grid.workshop-single-item.workshop-text-only .workshop-description ul {
    display: inline-block;
    text-align: left;
}

/* Skills and Tools Section */
.skills-section {
    padding: 100px 0;
    background: var(--skills-bg-color);
    width: 100%;
}

.skills-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.skills-heading {
    text-align: center;
    margin-bottom: 60px;
}

.skills-title {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    color: var(--skills-title-color);
    margin-bottom: 20px;
}

.skills-subtitle {
    font-family: var(--body-font);
    font-size: 1.2rem;
    color: var(--skills-subtitle-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Skills Category Styling */
.skills-category {
    margin-bottom: 60px;
}

.skills-category-title {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--skills-category-color);
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 5px solid var(--skills-category-accent);
}

/* Horizontal Scrolling Container */
.skills-items-container {
    display: flex;
    overflow-x: auto;
    padding: 20px 5px 40px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 25px;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #D4AF37 var(--skills-scrollbar-track, #f1f1f1);
}

.skills-items-container::-webkit-scrollbar {
    height: 4px;
}

.skills-items-container::-webkit-scrollbar-track {
    background: var(--skills-scrollbar-track, #f1f1f1);
    border-radius: 2px;
}

.skills-items-container::-webkit-scrollbar-thumb {
    background-color: #D4AF37;
    border-radius: 2px;
}

/* Individual Skill Item - Modern Design */
.skill-item {
    min-width: 280px;
    background: var(--skill-item-bg, #ffffff);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
    .skill-item {
        min-width: 260px;
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .skill-item {
        min-width: 240px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .skill-item {
        min-width: 220px;
        padding: 20px;
    }
}

/* Skill Icon Container */
.skill-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--skill-icon-bg, rgba(0, 102, 204, 0.08));
    border-radius: 18px;
    margin-bottom: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.skill-icon img {
    width: auto;
    height: auto;
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon {
    background: var(--skill-icon-hover-bg, rgba(0, 102, 204, 0.12));
}

.skill-item:hover .skill-icon img {
    transform: scale(1.1);
}

/* Skill Content */
.skill-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--skill-text-color);
    margin: 0;
}

.skill-experience {
    font-size: 1.1rem;
    color: var(--skill-experience-color);
    background: var(--skill-experience-bg, rgba(0, 102, 204, 0.08));
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.skill-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--skill-desc-color);
    margin: 0;
}

/* Additional styling for tools vs skills */
.skills-items-container.tools-container .skill-item {
    background-color: var(--tool-item-bg);
}

/* Workshop text-only styles */
.workshop-grid.workshop-text-only .workshop-item {
    display: block;
    text-align: left;
    padding: 25px;
}

.workshop-grid.workshop-text-only .workshop-content {
    padding: 0;
}

/* Single workshop item centered */
.workshop-grid.workshop-single-item {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.workshop-grid.workshop-single-item .workshop-item {
    margin: 0 auto;
}

.workshop-grid.workshop-single-item.workshop-text-only .workshop-item {
    max-width: 700px;
    text-align: center;
}

.workshop-grid.workshop-single-item.workshop-text-only .workshop-description {
    text-align: left; /* Keep description text left-aligned for readability */
}

.workshop-grid.workshop-single-item.workshop-text-only .workshop-description ul {
    display: inline-block;
    text-align: left;
}

/* Client Logos Section */
.clients-section {
    padding: 80px 0;
    background: var(--clients-bg-color);
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clients-heading {
    text-align: center;
    margin-bottom: 50px;
}

.clients-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--clients-title-color);
    margin-bottom: 15px;
}

.clients-subtitle {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--clients-subtitle-color);
    max-width: 700px;
    margin: 0 auto;
}

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

.client-item {
    background-color: var(--client-item-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease;
    position: relative;
}

.client-item:hover {
    transform: scale(1.05);
}

.client-logo {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.client-item:hover .client-logo {
    transform: scale(1.1);
}

.client-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-item:hover .client-name {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
}

/* Project Section */
.projects-section {
    padding: 80px 0;
    background: var(--projects-bg-color);
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.projects-heading {
    text-align: center;
    margin-bottom: 50px;
}

.projects-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--projects-title-color);
    margin-bottom: 15px;
}

.projects-subtitle {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--projects-subtitle-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Book Covers Container */
.book-covers-container {
    display: flex;
    flex-direction: row-reverse; /* Books from right to left */
    overflow-x: auto;
    gap: 30px;
    padding: 30px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--projects-scrollbar-thumb) var(--projects-scrollbar-track);
}

.book-covers-container::-webkit-scrollbar {
    height: 8px;
}

.book-covers-container::-webkit-scrollbar-track {
    background: var(--projects-scrollbar-track);
    border-radius: 4px;
}

.book-covers-container::-webkit-scrollbar-thumb {
    background-color: var(--projects-scrollbar-thumb);
    border-radius: 4px;
}

/* Individual Book Cover */
.book-cover {
    position: relative;
    min-width: 200px;
    height: 280px;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    transform-origin: bottom center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.book-cover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.book-spine {
    position: absolute;
    top: 0;
    left: -10px;
    width: 20px;
    height: 100%;
    background: rgba(0,0,0,0.1);
    border-radius: 2px 0 0 2px;
    transform: perspective(100px) rotateY(25deg);
}

/* Modal/Popup Styling */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    max-width: 800px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #000;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-title {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--project-title-color);
    margin-bottom: 5px;
}

.modal-year {
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--project-year-color);
    display: inline-block;
    padding: 3px 10px;
    background: var(--project-year-bg);
    border-radius: 4px;
    margin-bottom: 15px;
}

.modal-description {
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--project-desc-color);
    line-height: 1.6;
}

.modal-image {
    float: right;
    max-width: 200px;
    margin: 0 0 20px 20px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 80px 20px;
        padding: 20px;
    }
    
    .modal-image {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }
    
    .book-cover {
        min-width: 150px;
        height: 210px;
    }
}

/* References Section - Same as Client Section */
.references-section {
    padding: 80px 0;
    background: var(--references-bg-color, #f8f9fa);
}

.references-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.references-heading {
    text-align: center;
    margin-bottom: 50px;
}

.references-title {
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-size: 2.5rem;
    color: var(--references-title-color, #333333);
    margin-bottom: 15px;
}

.references-subtitle {
    font-family: var(--body-font, 'Roboto', sans-serif);
    font-size: 1.1rem;
    color: var(--references-subtitle-color, #666666);
    max-width: 700px;
    margin: 0 auto;
}

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

.reference-item {
    background-color: var(--reference-item-bg, #ffffff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease;
    position: relative;
    /* Safari compatibility fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.reference-item:hover {
    transform: scale(1.05) translateZ(0);
}

.reference-logo {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* Safari compatibility fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.reference-item:hover .reference-logo {
    transform: scale(1.1) translateZ(0);
}

.reference-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reference-item:hover .reference-name {
    opacity: 1;
}

/* Responsive adjustments for references - Same as Client Section */
@media (max-width: 992px) {
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .references-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--contact-bg-color);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-heading {
    text-align: center;
    margin-bottom: 50px;
}

.contact-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--contact-title-color);
    margin-bottom: 15px;
}

.contact-subtitle {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--contact-subtitle-color);
    max-width: 700px;
    margin: 0 auto;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--contact-box-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    text-align: center;
}

.contact-name {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--contact-name-color);
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--social-icon-bg);
    color: var(--social-icon-color);
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: var(--social-icon-hover-bg);
    color: var(--social-icon-hover-color);
}

.social-icon i {
    transition: transform 0.3s ease;
}

.social-icon:hover i {
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-box {
        padding: 30px 20px;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Footer Styling */
.site-footer {
    padding: 40px 0;
    background: #5a8ad6;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-copyright {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-credit {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.footer-credit a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #FFD700;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0;
    }
}

.custom-social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-icon:hover .custom-social-icon {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Ornament Shapes */
.shape-decorator {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    z-index: 1;
}

/* Plus Shape */
.shape-plus {
    width: 60px;
    height: 60px;
}

.shape-plus::before,
.shape-plus::after {
    content: '';
    position: absolute;
    background-color: currentColor;
}

.shape-plus::before {
    width: 100%;
    height: 6px;
    top: 50%;
    transform: translateY(-50%);
}

.shape-plus::after {
    width: 6px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* Dots Pattern - Menggantikan zigzag */
.shape-dots {
    width: 70px;
    height: 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 8px;
    padding: 5px;
}

.shape-dots::before,
.shape-dots::after,
.shape-dots span {
    content: '';
    width: 12px;
    height: 12px;
    background-color: currentColor;
    border-radius: 50%;
}

.shape-dots span {
    display: block;
}

/* Circle Shape */
.shape-circle {
    width: 50px;
    height: 50px;
    border: 6px solid currentColor;
    border-radius: 50%;
}

/* Wave Shape */
.shape-wave {
    width: 70px;
    height: 35px;
    background: none;
    position: relative;
}

.shape-wave::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid currentColor;
    border-radius: 50%;
    border-left: 0;
    border-right: 0;
}

/* Apply decorators to sections */
.hero-section,
.experience-section,
.projects-section,
.skills-section,
.workshops-section,
.references-section,
.contact-section {
    position: relative;
    overflow: hidden;
}

/* Decorator positioning classes */
.decorator-top-left {
    top: 3%; /* Dari 5% */
    left: 3%; /* Dari 5% */
}

.decorator-top-right {
    top: 3%; /* Dari 5% */
    right: 3%; /* Dari 5% */
}

.decorator-bottom-left {
    bottom: 3%; /* Dari 5% */
    left: 3%; /* Dari 5% */
}

.decorator-bottom-right {
    bottom: 3%; /* Dari 5% */
    right: 3%; /* Dari 5% */
}

.decorator-center-left {
    top: 50%;
    left: 3%; /* Dari 5% */
    transform: translateY(-50%);
}

.decorator-center-right {
    top: 50%;
    right: 3%; /* Dari 5% */
    transform: translateY(-50%);
}

/* Tambahan posisi baru untuk variasi lebih */
.decorator-center-top {
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
}

.decorator-center-bottom {
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
}

/* Animasi lebih subtle */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shape-decorator {
        transform: scale(0.8); /* Dari 0.7 */
    }
}

/* Workshop Timeline Horizontal Style */
.workshop-timeline {
    position: relative;
    width: 100%;
    padding: 40px 0;
    overflow-x: auto;
}

/* Timeline Line */
.workshop-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: var(--timeline-line-color);
    transform: translateY(-50%);
}

.workshop-timeline-container {
    position: relative;
    min-width: max-content;
    padding: 0 40px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.workshop-timeline-item {
    position: relative;
    width: 300px;
    margin-top: 60px;
}

/* Alternate items above and below the line */
.workshop-timeline-item:nth-child(even) {
    margin-top: -60px;
}

/* Timeline dot */
.workshop-timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--timeline-dot-color);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.workshop-timeline-item:nth-child(odd) .workshop-timeline-dot {
    bottom: -38px;
}

.workshop-timeline-item:nth-child(even) .workshop-timeline-dot {
    top: -38px;
}

/* Year marker */
.workshop-timeline-year {
    position: absolute;
    background: var(--workshop-year-bg, #f0f4f8);
    color: var(--workshop-year-color, #333);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.workshop-timeline-item:nth-child(odd) .workshop-timeline-year {
    bottom: -70px;
}

.workshop-timeline-item:nth-child(even) .workshop-timeline-year {
    top: -70px;
}

/* Content Card */
.workshop-timeline-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.workshop-timeline-content:hover {
    transform: translateY(-5px);
}

/* Workshop Image */
.workshop-timeline-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 15px;
}

.workshop-timeline-title {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    color: var(--workshop-item-title-color);
    margin-bottom: 8px;
}

.workshop-timeline-organizer {
    font-size: 0.95rem;
    color: var(--workshop-organizer-color);
    margin-bottom: 12px;
}

.workshop-timeline-description {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--workshop-desc-color);
    line-height: 1.5;
}

.workshop-timeline-description ul {
    padding-left: 20px;
    margin-top: 10px;
}

.workshop-timeline-description li {
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .workshop-timeline-container {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }

    .workshop-timeline::before {
        top: 0;
        bottom: 0;
        left: 30px;
        width: 4px;
        height: auto;
        transform: none;
    }

    .workshop-timeline-item {
        width: calc(100% - 60px);
        margin-top: 0;
        margin-left: 60px;
    }

    .workshop-timeline-item:nth-child(even) {
        margin-top: 0;
    }

    .workshop-timeline-dot {
        left: -38px;
        top: 30px !important;
    }

    .workshop-timeline-year {
        left: -38px;
        top: -25px !important;
    }
}

/* Safari-specific fixes for references - Same as client section */
@supports (-webkit-appearance: none) {
    /* Fix for Safari grid layout issues */
    .references-grid {
        display: -webkit-grid;
        display: grid;
        -webkit-grid-template-columns: repeat(3, 1fr);
        grid-template-columns: repeat(3, 1fr);
    }

    /* Fix for Safari flexbox issues in reference items */
    .reference-item {
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Fix for Safari transform issues - Same as client hover effect */
    .reference-item:hover {
        -webkit-transform: scale(1.05) translateZ(0);
        transform: scale(1.05) translateZ(0);
    }

    .reference-item:hover .reference-logo {
        -webkit-transform: scale(1.1) translateZ(0);
        transform: scale(1.1) translateZ(0);
    }

    /* Safari responsive grid fixes */
    @media (max-width: 992px) {
        .references-grid {
            -webkit-grid-template-columns: repeat(2, 1fr);
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 576px) {
        .references-grid {
            -webkit-grid-template-columns: 1fr;
            grid-template-columns: 1fr;
        }
    }
}

/* Additional Safari compatibility fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* Safari-specific CSS */
    .reference-logo {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }

    .reference-item {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed !important; /* memaksa posisi fixed */
    bottom: 30px !important;
    right: 30px !important;
    background-color: #FFD700 !important;
    color: #000 !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999 !important; /* memastikan muncul di atas semua elemen */
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background-color: #FFE44D;
}

.back-to-top i {
    font-size: 20px;
    line-height: 1;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .back-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
    }
}
