/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* ===== NAVIGATION - Fixed with 50% Opacity ===== */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-btn {
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    background-color: #FFEB88;
    color: #4969B2;
    text-decoration: none;
    padding: 12px 30px;
    margin: 5px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    /* FIX 1: Hardware acceleration for smooth animations */
    transform: translate3d(0, 0, 0);
    will-change: transform, background-color;
}

.nav-btn:hover {
    background-color: #4969B2;
    color: #FFEB88;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.3);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Only apply slide animation on mobile */
@media (max-width: 768px) {
    nav {
        transition: transform 0.3s ease-in-out;
    }
    
    nav.hidden {
        transform: translateY(-100%);
    }
}

/* ===== HERO SLIDER ===== */
      .hero-section {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100vh;
            position: relative;
            overflow: hidden;
        }

        .hero-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .hero-video video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
        }

        /* Mobile optimization */
        @media (max-width: 768px) {
            .hero-video video {
                object-fit: cover;
                min-height: 100vh;
            }
        }
/* ===== ABOUT SECTION ===== */
.about-section {
    background-color: #4969b2;
    padding: 80px 20px;
    scroll-margin-top: 60px;
}

.about-content {
    background-color: white;
    padding: 40px;
    border-radius: 30px;
}

.slide-in-animation {
    animation: slideInFromTop 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-title {
    background-color: #bbd4ea;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
    margin-top: -20px;
    border-radius: 15px;
    font-family: 'Buhega Chocoo', sans-serif;
    letter-spacing: 2px;
}

.profile-card {
    align-items: center;
    margin-left:0px;
}

.profile-image {
    width: 200px;
    height: 250px;
    background: linear-gradient(135deg, #87CEEB, #5B9BD5);
    border-radius: 15px;
    border: 5px solid #FFD700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.profile-info h3 {
    color: #3498DB;
    margin-bottom: 15px;
    margin-top:-10px;
    font-weight: bold;
    margin-left:0px;
}

.profile-info p {
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-left:0px;
    margin-right: 0px;
    padding-right:20px;
}

.contact-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
}

.tag {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: center center;
    border-radius: 20px
}
.tag:hover {
  animation: scale-shake-twice 0.5s ease-in-out;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.tag.red { background-color: #b64203; color: white; }
.tag.blue { background-color: #4969b2; color: white; }
.tag.yellow { background-color: #ffeb88; color: #333; }

@keyframes scale-shake-twice {
    0% {
        transform: scale(1) rotate(0deg);
    }
    15% {
        transform: scale(1.1) rotate(-4deg);
    }
    30% {
        transform: scale(1.1) rotate(4deg);
    }
    45% {
        transform: scale(1.1) rotate(-4deg);
    }
    60% {
        transform: scale(1.1) rotate(4deg);
    }
    75% {
        transform: scale(1.1) rotate(0deg);
    }
    100% {
        transform: scale(1.1) rotate(0deg);
    }
}

.tag.red { 
    background-color: #b64203; 
    color: white; 
}

.tag.red:hover {
    background-color: #d14d03;
    box-shadow: 0 5px 20px rgba(182, 66, 3, 0.5);
}

.tag.blue { 
    background-color: #4969b2; 
    color: white; 
}

.tag.blue:hover {
    background-color: #5a7bc9;
    box-shadow: 0 5px 20px rgba(73, 105, 178, 0.5);
}
.tag.yellow { 
    background-color: #ffeb88; 
    color: #333; 
}

.tag.yellow:hover {
    background-color: #fff49e;
    box-shadow: 0 5px 20px rgba(255, 235, 136, 0.6);
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .profile-info {
        margin-left: 0; /* Reset on mobile for better layout */
        margin-top: 20px;
    }
}

/* ===== DROPDOWN SECTIONS ===== */
.dropdown-section {
    background-color: #bbd4ea;
    padding: 0;
}

.accordion-item-full {
    background-color: #4969b2;
    margin-bottom: 2px;
    overflow: hidden;
}

.accordion-input {
    display: none;
}

.accordion-header-full {
    display: block;
    padding: 20px 0;
    padding-left: 0;
    padding-right: 0;
    background-color: #bbd4ea;
    color: #4969b2;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.accordion-header-full:hover {
    background-color: #6FB1E0;
}

.arrow {
    transition: transform 0.3s;
}

.accordion-input:checked ~ .accordion-header-full .arrow {
    transform: rotate(180deg);
}

.accordion-content-full {
    max-height: 0;
    overflow: hidden;
    background-color: #bbd4ea;
    transition: max-height 0.5s ease;
}

.accordion-input:checked ~ .accordion-content-full {
    max-height: 800px;
}

/* FIX 1: Hardware acceleration for skill icons */
.skill-icon {
    background: linear-gradient(135deg, #b64203, #903706);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    /* FIX 1: Add hardware acceleration */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.skill-icon img {
    width: 60px;  /* Same size as your icon */
    height: 60px;
    object-fit: contain; /* Keeps image proportions */
    margin-bottom: 10px;
}

.skill-icon p {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.skill-icon:hover {
    transform: translate3d(0, -10px, 0) scale(1.05);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
    z-index: 10;
}

.skills-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
}

.skill-col {
    flex: 0 0 auto;
    padding: 15px;
}

.skills-row > div {
    flex: 0 0 auto;
    width: 150px;
}

/* ===== BEST WORK SECTION ===== */
.best-work-section {
    background: linear-gradient(135deg, #4969b2 100%);
    font-family: Arial, sans-serif;
    padding: 50px 20px;
    margin: 0;
    min-height: 100vh;
    scroll-margin-top: 60px;
}

h2 {
    color: white;
    font-size: 35px;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Buhega Chocoo', sans-serif;
    letter-spacing: 2px;
}

.work-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 500px;
}

.work-slider-wrapper input[type="radio"] {
    display: none;
}

.work-slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease;
}

.work-slide {
    width: 33.333%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.work-image {
    width: 100%;
    max-width: 600px;
    height: 350px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}
.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 15px;
}
.work-title {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

#work1:checked ~ .work-slides { transform: translateX(0); }
#work2:checked ~ .work-slides { transform: translateX(-33.333%); }
#work3:checked ~ .work-slides { transform: translateX(-66.666%); }

.work-controls {
    position: absolute;
    top: 40%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#work1:checked ~ .work-controls-1,
#work2:checked ~ .work-controls-2,
#work3:checked ~ .work-controls-3 {
    opacity: 1;
    pointer-events: auto;
}

.work-btn {
    background-color: #ffeb88;
    color: #4969b2;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    text-decoration: none;
    /* FIX 1: Hardware acceleration */
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.work-btn:hover {
    background-color: #ffd50b;
    transform: translate3d(0, 0, 0) scale(1.1);
}

.work-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.work-indicators label {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
}

.work-indicators label:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

#work1:checked ~ .work-indicators label:nth-child(1),
#work2:checked ~ .work-indicators label:nth-child(2),
#work3:checked ~ .work-indicators label:nth-child(3) {
    background-color: #FFD700;
    transform: scale(1.3);
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    background-color: #4668AE;
    padding: 80px 20px;
}

/* Desktop: 2 columns */
.projects-section .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; /* Equal gap for all items */
    max-width: 1200px;
    margin: 0 auto;
}

/* Tablet: 3 columns (between 769px and 991px) */
@media (max-width: 991px) {
    .projects-section .row {
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 30px !important; /* Equal gap */
    }
}

/* Mobile: 2 columns (768px and below) */
@media (max-width: 768px) {
    .projects-section .row {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 20px !important; /* Equal gap */
    }
}

/* Very small mobile: 1 column (optional, for very small screens) */
@media (max-width: 480px) {
    .projects-section .row {
        grid-template-columns: 1fr !important; 
        gap: 15px !important;
    }
}

.folder-wrapper {
    position: relative;
    width: 100%; 
    box-sizing: border-box; 
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important; /* Remove any padding */
}

.project-input {
    display: none;
}

.folder {
    background: transparent !important;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    min-height: 180px;
    position: relative;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.folder:hover {
    transform: translate3d(0, -15px, 0) scale(1.05);
}

.folder-icon {
    font-size: 100px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.folder:hover .folder-icon {
    transform: translate3d(0, -10px, 0);
}

.folder-title {
    font-weight: bold;
    color: white;
    font-size: 20px;
}

/* Modal styles remain the same */
.project-input {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.project-input:checked ~ .modal {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.modal-content {
    position: relative;
    padding: 0;
    border-radius: 15px;
    max-width: 90vw; 
    max-height: 90vh;
    width: auto;
    z-index: 2001;
    pointer-events: auto;
    overflow: hidden;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 45px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    transition: all 0.3s;
    font-weight: bold;
    text-decoration: none;
    display: block;
    background: none;
    border: none;
    z-index: 2003;
}

.close-btn:hover {
    color: #E74C3C;
    transform: rotate(90deg);
}

.modal-full-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    max-height: 90vh;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.video-container {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 850px;
    z-index: 2002;
    padding: 25px;
    margin-top: 20px;
}

.modal-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: 10px;
    background-color: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ===== CONTACT SECTION ===== */
#contact-section {
    background: #C03426;
    position: relative;
    padding-bottom: 40px;
    scroll-margin-top: 160px;
}

.contact-header {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 120px;
    background: #4969b2;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    z-index: 1;
}

.contact-header h2 {
    margin: 0;
    padding-top: 20px;
    text-align: center;
    color: #ffffff;
    font-size:35px;
    letter-spacing: 4px;
    opacity: 0.87;
    font-family: 'Buhega Chocoo', sans-serif;
    letter-spacing: 2px;
    padding-bottom: -5px;
}

.contact-form-wrapper {
    padding-top: 80px;
    max-width: 740px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-form {
    padding: 30px 24px 0 24px;
}

.contact-form label {
    color: #FFE066;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 18px;
    border: none;
    border-radius: 16px;
    background: #fff;
    padding: 16px;
    font-size: 1.2rem;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #FFD700;
}

.submit-btn {
    background: #ffeb88;
    color: #4969b2;
    border: none;
    border-radius: 16px;
    padding: 8px 28px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(68, 68, 68, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #ffd117;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(68, 68, 68, 0.25);
}

/* ===== FOOTER ===== */
.footer-section {
    background-color: #87CEEB;
    padding: 40px 20px;
    color: white;
}

.footer-section p {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    /* FIX 1: Hardware acceleration */
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.social-icon i {
    font-size: 32px;
}

.social-icon:hover {
    color: #4969b2;
    transform: translate3d(0, -5px, 0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Besar (<= 991px) - MENGATUR TATA LETAK 3 KOLOM DI RENTANG INI */
@media (max-width: 991px) {
    .about-content {
        margin: 0 auto;
    }
    
    /* PENTING: MENGATUR 3 KOLOM FOLDER DI SINI (Tablet Besar, misal 769px - 991px) */
    /* Ini akan menimpa aturan 2 kolom default/desktop */
    .projects-section .row {
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px;
    }
}

/* Tablet Kecil & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
    /* --- Navigasi & Profil --- */
    .nav-btn {
        display: block;
        margin: 5px auto;
        max-width: 200px;
    }
    
    .profile-image {
        width: 150px;
        height: 200px;
        margin: 0 auto 20px;
    }
    
    /* --- Header & Slider --- */
    .best-work-section h2,
    .contact-header h2 {
        font-size: 32px;
    }
    
    .work-slider-wrapper {
        height: 450px;
    }
    
    .work-image {
        height: 250px;
    }
    
    .work-title {
        font-size: 16px;
    }
    
    /* --- Folder (Proyek) --- */
    .folder {
        min-height: 150px;
    }
    
    .folder-icon {
        font-size: 70px;
    }
    
    /* PENTING: MENGATUR 2 KOLOM FOLDER DI MOBILE/HP (<= 768px) */
    .projects-section .row {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }
}

/* Mobile Portrait (<= 576px) */
@media (max-width: 576px) {
    /* --- About & Skills --- */
    .about-content {
        padding: 20px;
    }
    
    .skill-icon i {
        font-size: 30px;
    }
    
    .skill-icon p {
        font-size: 12px;
    }
    
    /* --- Modal & Button --- */
    .work-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .close-btn {
        font-size: 35px;
    }
    
    /* --- Folder (Ikon) --- */
    .folder-icon {
        font-size: 60px;
    }
}

@font-face {
      font-family: 'Buhega Chocoo';
      src: url(BuhegaChocoo.otf) format('opentype');
  }