
:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --primary-color: #007bff;
    --secondary-bg: linear-gradient(135deg, #e0eafc, #cfdef3);
    --border-color: #dddddd;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #f1f1f1;
    --text-muted: #aaaaaa;
    --nav-bg: rgba(18, 18, 18, 0.8);
    --primary-color: #3793ff;
    --secondary-bg: linear-gradient(135deg, #1e1e2f, #232323);
    --border-color: #333333;
    --shadow: 0 10px 40px rgba(0,0,0,0.3);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Mencegah scroll horizontal */
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}
/* Grup Kontrol */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
}

.control-btn {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.control-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
/* 2. NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: 0.3s;
    width: 100%;
}

#menu-check, .menu-btn { display: none; } /* Sembunyikan toggle di desktop */

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 30px;
    font-weight: 600;
    transition: 0.3s;
}

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

/* 3. HERO SECTION */
/* Animasi Mengetik */
#typing-text {
    border-right: 3px solid var(--primary-color);
    padding-right: 5px;
    white-space: nowrap;
    display: inline-block;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
    min-height: 160px; /* Menjaga layout tetap stabil saat teks ganti */
}
.hero {
    min-height: 100vh;
    padding: 80px 8% 50px 8%;
    display: flex;
    align-items: center;
    background: var(--secondary-bg);
    margin-top: 20px;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 50px;
}

.hero-content { flex: 1; }

.welcome-text {
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.0rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

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

.description {
    max-width: 500px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-footer {
    display: flex;
    gap: 50px;
    flex-wrap: wrap; /* Agar tidak kepotong di tablet */
}

.hero-footer p {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.icons a:hover{
    transform: translateY(-5px);
    transition: 0.5s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: var(--primary-color);
}
.icons { display: flex; gap: 15px; }

.icons a, .icons span {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s;
}

/* Container Utama */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    perspective: 1000px; /* Memberikan efek 3D saat hover */
}

/* Card Profile */
.image-bg-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    animation: floating 6s ease-in-out infinite; /* Efek melayang pelan */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Efek Glow di belakang card */
.image-bg-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    transition: 0.5s;
    z-index: 0;
}

/* Gambar Profile */
.image-bg-card img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 0 0 20px 20px;
    filter: grayscale(20%); /* Sedikit elegan */
    transition: 0.5s ease;
}

/* --- INTERAKSI HOVER --- */

.image-bg-card:hover {
    transform: rotateY(-10deg) rotateX(5deg) translateY(-10px); /* Efek Tilt 3D */
    box-shadow: -20px 20px 50px rgba(0,0,0,0.2);
}

.image-bg-card:hover img {
    filter: grayscale(0%); /* Warna kembali penuh saat hover */
    transform: scale(1.05); /* Gambar sedikit zoom */
}

.image-bg-card:hover::before {
    opacity: 0.2; /* Glow lebih terang saat hover */
}

/* Animasi Melayang */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Responsif untuk Mobile */
@media (max-width: 900px) {
    .hero-image {
        justify-content: center;
        margin-top: 50px;
    }
    .image-bg-card {
        max-width: 300px;
    }
}


.btn-about {
    margin-bottom: 20px;
    margin-top: -15px;
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
}
.btn-about:hover {
    transform: translateY(-5px);
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: white;
    color: var(--primary-color);
}

.btn-cta {
    margin-bottom: 20px;
    margin-top: -15px;
    padding: 15px 20px;
    background: #04cc1b;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
}
.btn-cta:hover {
    transform: translateY(-5px);
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(15, 59, 1, 0.1);
    background: white;
    color: #04cc1b;
}

/* 4. PROJECTS & SECTIONS */
.section { padding: 100px 8%; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.project-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Overlay Efek */
.project-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 92, 158, 0.8); /* Warna primary dengan transparansi */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
}

.view-btn {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: 0.4s;
}

/* Info & Tags */
.project-info { padding: 25px; }

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.project-tags span {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    background: rgba(0, 92, 158, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.project-info h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
    color: var(--text-color);
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- HOVER STATES --- */
.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .view-btn {
    transform: translateY(0);
}
/* --- ABOUT SECTION --- */
.about-section {
    padding: 100px 8%;
    background: var(--bg);
    overflow: hidden;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* Sisi Foto */
.about-img-side {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.img-container {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    z-index: 2;
    border: 8px solid var(--card-bg);
}

.img-container img {
    width: 100%;
    transition: 0.5s;
}

/* Badge Pengalaman */
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0, 92, 158, 0.4);
}

.experience-badge .num { font-size: 2rem; font-weight: 800; }
.experience-badge .text { font-size: 12px; font-weight: 500; line-height: 1.2; }

/* Blob Background */
.shape-blob {
    position: absolute;
    width: 450px;
    height: 450px;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    top: -50px;
    left: -50px;
    z-index: 1;
}

/* Sisi Teks */
.about-content-side { flex: 1.2; }

.section-subtitle {
    color: var(--primary-color);
    letter-spacing: 3px;
    font-size: 14px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.personal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 35px;
}

.info-item .label { font-weight: 700; color: var(--text-color); margin-right: 5px; }
.info-item .value { color: var(--text-muted); }

.stats-grid {
    display: flex;
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.stat-card h3 { color: var(--primary-color); font-size: 1.8rem; }
.stat-card p { font-size: 14px; color: var(--text-muted); }


@media (max-width: 992px) {
    .about-wrapper { flex-direction: column; text-align: center; }
    .personal-info { grid-template-columns: 1fr; text-align: left; }
    .stats-grid { justify-content: center; }
    .experience-badge { right: 50%; transform: translateX(50%); }
}
@media (max-width: 600px) {
    .contact-container { justify-content: center; align-items: center; }
}
/* --- CONTACT SECTION LAYOUT --- */
.contact-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-side {
    flex: 1;
    padding-right: 30px;
}

.contact-info-side h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-details {
    margin-top: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item i {
    width: 50px;
    height: 50px;
    background: rgba(0, 92, 158, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.detail-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item p {
    font-weight: 600;
    color: var(--text-color);
}

/* Styling Khusus Tombol WA */
.wa-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 15px;
    background: #25d366;
    color: white !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s;
}

.wa-action-btn i {
    font-size: 12px;
    background: transparent !important;
    color: white !important;
    width: auto !important;
    height: auto !important;
}

.wa-action-btn:hover {
    background: #128c7e;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.detail-item i.fa-whatsapp {
    color: #25d366;
    background: rgba(37, 211, 102, 0.1);
}
/* --- FORM STYLING --- */
.contact-container {
    flex: 1.2;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
.contact-form h1 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
}
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    transition: 0.3s;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 92, 158, 0.2);
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.4s;
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 92, 158, 0.4);
}

/* --- FOOTER --- */
.footer {
    padding: 50px 8%;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-logo span { color: var(--primary-color); }

.footer-socials {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer-socials a:hover { color: var(--primary-color); transform: scale(1.2); }

@media (max-width: 900px) {
    .contact-wrapper { flex-direction: column; }
    .contact-info-side { padding-right: 0; text-align: center; }
    .detail-item { justify-content: center; text-align: left; }
}

/* 6. THEME TOGGLE */
#theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    margin-left: 20px;
}
#theme-toggle:hover {
        background: var(--primary-color);
        color: white;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 92, 158, 0.2);
}

/*RESPONSIVE DESIGN*/

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-content h1 { font-size: 2.8rem; }
    .description { margin: 0 auto 30px auto; }
    .hero-footer { justify-content: center; }
    .hero-image { justify-content: center; width: 100%; }
    .image-bg-card { max-width: 300px; }
}

@media (max-width: 768px) {
    /* Navbar Mobile (Hamburger Style) */
    .menu-btn { 
        display: block; 
        font-size: 1.5rem; 
        cursor: pointer; 
        color: var(--text-color);
    }
    .nav-controls {
        flex-direction: column;
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
        padding: 0 20px;
    }

    .control-btn {
        width: 80%; /* Tombol lebih lebar di mobile agar mudah ditekan */
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%; /* Sembunyi di kiri */
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        height: 100vh;
        padding: 50px 0;
        transition: 0.5s;
        box-shadow: var(--shadow);
        justify-content: flex-start;
    }

    /* Munculkan menu saat checkbox dicentang */
    #menu-check:checked ~ .nav-links {
        left: 0;
    }

    .nav-links a {
        margin: 20px 0;
        font-size: 1.2rem;
    }

    #theme-toggle { margin-left: 0; margin-top: 20px; }

    .hero-content h1 { font-size: 2.2rem; }
    .section { padding: 60px 5%; }
    .cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* --- ENHANCED HOBBIES & ACTIVITY --- */
.active-experience {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.active-experience:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Badge Aktifitas */
.activity-badge {
    position: absolute;
    top: 15px;
    right: -30px; /* Sembunyi sedikit */
    background: var(--primary-color);
    color: white;
    padding: 5px 35px;
    font-size: 0.7rem;
    font-weight: 800;
    transform: rotate(40deg); /* Miring ala pita */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.active-experience:hover .activity-badge {
    right: -25px;
    background: #ff9800; /* Berubah warna saat hover agar eye-catching */
}

.active-experience:hover .hobby-icon i {
    transform: translateY(-5px) rotate(-10deg);
}

/* --- INTERACTIVE GRID --- */
.interactive-hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    perspective: 1000px; /* Penting untuk efek 3D */
}

.experience-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.4s ease;
}

/* Efek Sinar Mengikuti Kursor (Spotlight) */
.card-spotlight {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(600px circle at var(--x) var(--y), rgba(0, 92, 158, 0.15), transparent 40%);
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon i {
    font-size: 3rem;
    background: linear-gradient(45deg, var(--primary-color), #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.activity-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: rgba(0, 92, 158, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
}

.card-details h3 {
    margin: 15px 0 10px;
    font-size: 1.4rem;
}

.card-details p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-top: 20px;
    opacity: 0.6;
    transition: 0.3s;
}

.experience-card:hover .card-footer {
    opacity: 1;
    transform: translateX(5px);
}

/* Hover State */
.experience-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

#hobbies {
    padding: 100px 8%;
    background: var(--secondary-bg);
}

.hobbies-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.hobby-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Lingkaran dekorasi di belakang icon */
.hobby-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 92, 158, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    transition: 0.4s;
}

.hobby-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: 0.4s;
}

.hobby-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    transition: 0.4s;
}

.hobby-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    transition: 0.4s;
}

/* --- HOVER EFFECT --- */
.hobby-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.hobby-card:hover::before {
    transform: translateX(100%);
}

.hobby-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 92, 158, 0.2);
}

.hobby-card:hover .hobby-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(10deg);
}
.hobby-card:hover i, 
.hobby-card:hover h3, 
.hobby-card:hover p {
    color: white;
}

/* Class untuk elemen yang akan dianimasikan */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Class saat elemen masuk ke layar */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variasi: Slide dari kiri */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Variasi: Slide dari kanan */
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* LIGHTBOX STYLING */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.lightbox.active { display: flex; animation: fadeIn 0.3s ease; }

.lightbox-content {
    text-align: center;
    max-width: 80%;
    max-height: 80%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: 0.3s ease;
}

.lightbox.active img { transform: scale(1); }

#lightbox-caption {
    color: white;
    margin-top: 20px;
    font-size: 1.5rem;
}

.close-lightbox {
    position: absolute;
    top: 30px; right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Navigasi */
.prev, .next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: 0.3s;
}

.prev:hover, .next:hover { background: var(--primary-color); }
.prev { left: 50px; }
.next { right: 50px; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- SCROLL NAVIGATION --- */
.scroll-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

.scroll-nav.active {
    opacity: 1;
    visibility: visible;
}

.scroll-btn {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

@media (max-width: 600px) {
    .scroll-nav {
        bottom: 20px;
        right: 20px;
    }
    .scroll-btn {
        width: 40px;
        height: 40px;
    }
}

/* Sembunyikan project lebih dari 3 */
.hidden-project {
    display: none !important;
}
.show-more-container {
    text-align: center;
    margin-top: 40px;
}
.btn-show-more {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s all ease;
}
.btn-show-more:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 92, 158, 0.3);
    transform: translateY(-3px);
}
.btn-show-more i {
    transition: transform 0.3s ease;
}
.btn-show-more.active i {
    transform: rotate(180deg);
}

/* --- SKILLS SECTION --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.skill-category {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.skill-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    display: inline-block;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 90px;
    background: var(--secondary-bg);
    border-radius: 12px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.skill-item i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.skill-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
}

.skill-item:hover {
    transform: scale(1.1);
    background: var(--card-bg);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Dark Mode adjustment for icons */
[data-theme="dark"] .skill-item {
    background: rgba(255,255,255,0.05);
}

/* --- PREMIUM UNFOLDING CERTIFICATES --- */
.cert-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cert-canvas {
    position: relative;
    width: 320px;
    height: 450px;
    display: flex;
    justify-content: center;
    transition: width 0.7s cubic-bezier(0.25, 1, 0.35, 1); /* Lebih smooth */
}

/* Base style: Glassmorphism Item */
.cert-glass-item {
    position: absolute;
    width: 320px;
    height: 420px;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.35, 1);
    z-index: 1;
    border-radius: 15px;
}

/* Bagian Kertas & Frame Premium */
.cert-glass-paper {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.cert-glass-paper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Ikon Badge */
.cert-glass-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Info Popup */
.cert-unfold-info {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    width: 90%;
    background: rgba(var(--secondary-bg-rgb), 0.2);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.35, 1) 0.1s;
}

.cert-unfold-info .cert-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    background: rgba(0, 92, 158, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
}

.cert-unfold-info h3 {
    margin: 12px 0 6px;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Detail Tanggal: Tipis & Minimalis */
.cert-unfold-info .cert-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    opacity: 0.8;
}

.cert-unfold-info .cert-issuer {
    font-size: 0.85rem;
    color: var(--text-color);
}

/* --- LOGIKA TUMPANGAN AWAL --- */
.cert-glass-item {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); 
    width: 300px;
    height: 400px;
    transition: all 1s cubic-bezier(0.25, 1, 0.35, 1);
}


.cert-item-1 { transform: translateX(-50%) rotate(-5deg); z-index: 5; }
.cert-item-2 { transform: translateX(-50%) rotate(3deg) translate(10px, 10px); z-index: 4; }
.cert-item-3 { transform: translateX(-50%) rotate(-2deg) translate(-5px, 15px); z-index: 3; }
.cert-item-4 { transform: translateX(-50%) rotate(6deg) translate(5px, 20px); z-index: 2; }


/* --- HOVER EFFECT: DINAMIS & OTOMATIS --- */
.cert-canvas-container:hover .cert-canvas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; 
    width: 90%;
    height: auto;
}

.cert-canvas-container:hover .cert-glass-item {
    position: relative;
    left: auto;
    transform: translateX(0) rotate(0deg) !important;
    margin-bottom: 100px;
}

.cert-canvas-container:hover .cert-unfold-info {
    opacity: 1;
    visibility: visible;
    bottom: -110px;
    transform: translateX(-50%) scale(1);
}
/* Dark Mode adjustment for secondary background rgb */
:root {
    --secondary-bg-rgb: 249, 249, 249; /* Default light secondary bg */
}
[data-theme="dark"] :root {
    --secondary-bg-rgb: 30, 30, 30; /* Dark mode secondary bg */
}

.cert-show-more-container {
    display: none;
    justify-content: center;
    margin-top: 50px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .cert-canvas-container {
        padding: 50px 0;
    }
    .cert-canvas {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .cert-glass-item {
        position: relative;
        transform: rotate(0deg) translate(0,0) !important;
        left: auto !important;
        right: auto !important;
        width: 320px;
        margin-bottom: 120px;
    }
    
    .cert-unfold-info {
        opacity: 1;
        visibility: visible;
        bottom: -110px;
        transform: translateX(-50%) scale(1);
    }
    
    .cert-canvas-container:hover .cert-canvas {
        width: 100%;
    }

    .cert-show-more-container {
        display: flex; /* Munculkan hanya di mobile */
    }

    .show-all-certs .hidden-cert {
        display: flex !important;
    }
    .hidden-cert {
        display: none !important;
    }
}

// service section
.service-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-container .service-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    width: 100%;
}
.service-item .service-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    margin-bottom: 0; 
    width: 100%;
}

.service-card .service-icon {
    font-size: 3rem;
    color: #f1c40f;
    margin-bottom: 20px;
    display: inline-block;
}
.service-item .service-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 92, 158, 0.2);
    border-color: var(--primary-color);
}
.service-item .service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}
@media (max-width: 768px) {
    .service-item .service-card {
        flex: 1 1 100%;
    }
}