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

body,
html {
    width: 100%;
    background: transparent;
    color: white;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

canvas#animation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* =========================================
   First Screen Styles (Aura Store layout)
   ========================================= */
.first-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    /* Takes up exactly one full screen initially */
    z-index: 10;
}

.hero-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Syne', sans-serif;
    font-size: 5vw;
    font-weight: 800;
    color: #111;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.05em;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.4);
}

.hero-text-left {
    left: 23%;
}

.hero-text-right {
    right: 8%;
}

.text-block-aura {
    position: absolute;
    bottom: 40px;
    left: 60px;
    max-width: 450px;
    color: #111;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.4);
}

.text-block-aura .icon {
    margin-bottom: 15px;
}

.text-block-aura h1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 15px 0;
    letter-spacing: -0.02em;
}

.text-block-aura p {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    text-transform: lowercase;
}

/* =========================================
   Second Screen Styles (Portfolio layout)
   ========================================= */
.content-wrapper {
    position: relative;
    width: 100%;
    background: rgba(5, 5, 5, 0.7);
    min-height: 100vh;
    z-index: 10;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    color: #000000;
    text-decoration: none;
    transition: .3s;
}

nav a:hover {
    color: white;
}

.menu {
    background: white;
    color: black;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
}

.hero-portfolio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 90px 70px;
    min-height: 85vh;
}

.left {
    max-width: 700px;
}

.small {
    letter-spacing: 4px;
    font-size: 13px;
    color: #ffffff;
    margin-bottom: 25px;
}

.left h1 {
    font-size: 78px;
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 35px;
}

.info {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    color: #bbb;
}

.stars {
    color: white;
    font-size: 18px;
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 18px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-secondary {
    border: 1px solid #333;
    color: white;
}

.right {
    width: 400px;
}

.card {
    border: 1px solid #2a2a2a;
    border-radius: 25px;
    padding: 35px;
    background: rgba(10, 10, 10, 0.8);
}

.card h2 {
    font-size: 32px;
    margin-bottom: 18px;
}

.card p {
    color: #9e9e9e;
    line-height: 1.8;
}

.focus {
    margin-top: 30px;
    font-size: 13px;
    color: #666;
    letter-spacing: 3px;
}

.tools {
    margin-top: 80px;
}

.tools h5 {
    color: #777;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

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

.item {
    padding: 15px;
    border: 1px solid #222;
    border-radius: 15px;
    text-align: center;
    color: #ddd;
    background: rgba(0, 0, 0, 0.5);
}

/*==========================
    Expertise Section
==========================*/

.expertise {
    padding: 80px 70px 100px;
}

.divider {
    width: 100%;
    height: 1px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 45px;
}

.section-title {
    color: #ffffff;
    letter-spacing: 4px;
    font-size: 13px;
    margin-bottom: 40px;
    font-weight: 500;
}

.expertise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.pill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    border: 1px solid #252525;
    border-radius: 50px;
    background: rgba(11, 11, 11, 0.8);
    /* Adapted for overlay layout */
    color: #f3f3f3;
    transition: .35s;
    cursor: pointer;
    font-size: 15px;
}

.pill span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: white;
    box-shadow:
        0 0 8px rgba(255, 255, 255, .9),
        0 0 15px rgba(255, 255, 255, .4);
}

.pill:hover {
    transform: translateY(-5px);
    border-color: #4f4f4f;
    background: rgba(17, 17, 17, 0.9);
    /* Adapted for overlay layout */
    box-shadow: 0 10px 25px rgba(255, 255, 255, .05);
}

/*====================================
    VALUE SECTION
=====================================*/

.value-section {
    padding: 140px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.value-card {
    width: 340px;
    background: #0b0b0d;
    border: 1px solid #1d1d20;
    border-radius: 28px;
    padding: 40px;
    transition: .4s;
    background: rgba(11, 11, 13, 0.85);
    /* Slightly transparent to let canvas through */
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: #555;
    box-shadow: 0 20px 50px rgba(255, 255, 255, .05);
}

.icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px solid #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: white;
    font-size: 22px;
    background: #111;
}

.value-card h3 {
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: 500;
}

.value-card p {
    color: #9c9c9c;
    line-height: 1.8;
    font-size: 16px;
}

/*======================*/

.value-center {
    text-align: center;
    flex: 1;
}

.value-center h1 {
    font-size: 74px;
    font-weight: 300;
    line-height: 1.05;
    color: white;
}

.value-center span {
    display: block;
    margin-top: 8px;
    font-weight: 700;
    color: white;
    text-shadow:
        0 0 10px rgba(255, 255, 255, .8),
        0 0 20px rgba(255, 255, 255, .6),
        0 0 40px rgba(255, 255, 255, .45),
        0 0 80px rgba(255, 255, 255, .25);
    animation: glow 3s ease-in-out infinite;
}

/*======================*/

@keyframes glow {
    0% {
        text-shadow:
            0 0 8px rgba(255, 255, 255, .6),
            0 0 20px rgba(255, 255, 255, .4);
    }

    50% {
        text-shadow:
            0 0 18px rgba(255, 255, 255, .95),
            0 0 40px rgba(255, 255, 255, .7),
            0 0 70px rgba(255, 255, 255, .4);
    }

    100% {
        text-shadow:
            0 0 8px rgba(255, 255, 255, .6),
            0 0 20px rgba(255, 255, 255, .4);
    }
}

/*======================*/

@media(max-width:1100px) {
    .value-section {
        flex-direction: column;
    }

    .value-center {
        order: -1;
        margin-bottom: 40px;
    }

    .value-center h1 {
        font-size: 55px;
    }
}

/*====================================
    EXPERIENCE TIMELINE
=====================================*/
.experience-timeline {
    text-align: center;
    padding: 80px 20px;
    font-family: 'Space Grotesk', sans-serif;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.timeline-item .company {
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.timeline-item .date {
    color: #aaaaaa;
    font-size: 14px;
}

.timeline-divider {
    margin: 25px 0;
    color: #555555;
    font-size: 20px;
    font-weight: 300;
}

.scroll-space {
    height: 15vh;
}

/* ===========================
   PROJECTS SECTION (TIDAK BERUBAH)
=========================== */
.projects {
    position: relative;
    overflow: hidden;
    background: #050505;
    padding-top: 80px;
    padding-bottom: 60px;
    padding-left: 8%;
    padding-right: 8%;
    min-height: 100vh;
    z-index: 20;
}

/* ===========================
   TEXT (TIDAK BERUBAH)
=========================== */
.projects-content {
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-block;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.projects h2 {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 25px;
    color: white;
    /* Pastikan terlihat di background gelap */
}

.projects h2 span {
    text-shadow: 0 0 18px rgba(255, 255, 255, .45);
}

.projects-content p {
    max-width: 650px;
    color: #9c9c9c;
    line-height: 1.8;
}

/* ===========================
   CAROUSEL CONTAINER (BARU: PENGGANTI GRID)
=========================== */
.carousel-container {
    position: relative;
    width: 100%;
    margin-top: 90px;
    display: flex;
    align-items: center;
}

.projects-carousel {
    display: flex;
    gap: 35px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    /* Memberi ruang untuk efek hover translateY */
    -ms-overflow-style: none;
    /* IE & Edge */
    scrollbar-width: none;
    /* Firefox */
    cursor: grab;
    width: 100%;

    /* BARU: Tambahkan ini agar scroll mengunci dengan mulus */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Momentum scroll mulus untuk HP */
}

.projects-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.projects-carousel.active {
    cursor: grabbing;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

/* ===========================
   CARD (STYLE ASLI ANDA + CAROUSEL)
=========================== */

.project-card {
    /* Lebar kartu di slider horizontal */
    flex: 0 0 380px;

    position: relative;
    overflow: hidden;
    border-radius: 24px;

    /* Rasio 16/10 asli milik Anda */
    aspect-ratio: 16/10;
    background: #111;
    text-decoration: none;
    color: white;
    transition: .35s;

    /* Agar kartu berhenti rapi saat di-scroll */
    scroll-snap-align: start;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .6s;
}

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

.project-card:hover {
    transform: translateY(-8px);
}

/* ===========================
   OVERLAY (ISI TULISAN DI DALAM KARTU)
=========================== */

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;

    /* Gradient gelap di bawah gambar agar teks terbaca jelas */
    background: linear-gradient(transparent 20%, rgba(0, 0, 0, .88));

    /* UBAH DI SINI: Dibuat 1 (atau 0.9) agar teks LANGSUNG KELIHATAN dan tidak kosong */
    opacity: 1;
    transition: .35s;
}

.project-overlay span {
    font-size: 13px;
    color: #bdbdbd;
    letter-spacing: 1px;
}

.project-overlay h3 {
    margin: 10px 0;
    font-size: 28px;
    color: #ffffff;
}

.project-overlay p {
    color: #d0d0d0;
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
}

/* ===========================
   BUTTON (ASLI ANDA)
=========================== */

.view-btn {

    display: none;

    /* ===========================
    margin-top: 18px;
    width: max-content;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    transition: .3s;
    color: white;
    font-size: 14px;
    =========================== */
}

.project-card:hover .view-btn {
    background: white;
    color: black;
}

/* ===========================
   CAROUSEL NAVIGATION BUTTONS (BARU)
=========================== */
.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: black;
    transform: scale(1.1);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

/* ===========================
   RESPONSIVE MOBILE (BARU)
=========================== */
@media (max-width: 992px) {
    .project-card {
        flex: 0 0 calc(50% - 18px);
        /* 2 kartu per baris di tablet */
    }
}

@media (max-width: 768px) {
    .project-card {
        flex: 0 0 calc(85% - 0px);
        /* 1 kartu dominan di HP */
    }

    .carousel-btn {
        display: none;
        /* Sembunyikan tombol panah di HP, pakai usapan jari (drag) */
    }

    .projects h2 {
        font-size: 50px;
    }
}

/* ===========================
   YOUTUBE BACKGROUND VIDEO
=========================== */

.bg-video {
    position: absolute;
    top: 60%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* Rasio 16:9 dari lebar layar */
    min-height: 100vh;
    min-width: 177.77vh;
    /* Rasio 16:9 dari tinggi layar */
    transform: translate(-50%, -50%) scale(1.3);
    pointer-events: none;
    z-index: 0;
}

/* Memastikan video YouTube menutupi seluruh layar tanpa bingkai hitam (Aspect Ratio) */
@media (min-aspect-ratio: 16/9) {
    .bg-video {
        height: 300%;
        /* Memperbesar tinggi agar rapat */
    }
}

@media (max-aspect-ratio: 16/9) {
    .bg-video {
        width: 300%;
        /* Memperbesar lebar agar rapat */
    }
}

/* Layer Gelap di Atas Video (Sesuaikan kepekatannya) */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.75);
    z-index: 1;
}


/* ==========================================
   SECTION CERTIFICATES (MONOCHROME THEME)
   ========================================== */

/* 1. Container Utama Section */
.certificates {
    position: relative;
    background-color: #050505;
    /* Hitam pekat selaras dengan .projects */
    color: #ffffff;
    padding: 90px 8%;
    overflow: hidden;
}

/* 2. Canvas Background Kinetic Grid */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 3. Pembungkus Konten Utama */
.certificates-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* 4. Sub-title / Section Tag */
.certificates-content .section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #888888;
    /* Abu-abu terang */
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* 5. Judul Section (H2) */
.certificates-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

/* Highlight Kata "Certificates" (Gradasi Putih ke Abu-abu) */
.certificates-content h2 span {
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}

.certificates-content>p {
    color: #a0a0a0;
    /* Abu-abu sedang */
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.6;
}

/* 6. Layout Grid Sertifikat */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* 7. Card Sertifikat (Monochrome Glassmorphism) */
.cert-card {
    background: rgba(11, 11, 13, 0.85);
    border: 1px solid #1d1d20;
    border-radius: 28px;
    padding: 35px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Hover Effect pada Card */
.cert-card:hover {
    transform: translateY(-10px);
    border-color: #555;
    box-shadow: 0 20px 50px rgba(255, 255, 255, .05);
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.cert-icon {
    font-size: 1.5rem;
    background: #111;
    border: 1px solid #2d2d2d;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cert-issuer {
    font-size: 0.85rem;
    font-weight: 500;
    color: #cccccc;
    /* Abu-abu muda */
}

.cert-body {
    margin-bottom: 24px;
}

.cert-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    /* Putih netral */
    margin-bottom: 8px;
    line-height: 1.4;
}

.cert-date {
    font-size: 0.85rem;
    color: #777777;
    /* Abu-abu gelap/redup */
}

/* 8. Tombol / Link "View Credential" */
.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
    width: fit-content;
    transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    margin-top: auto;
}

.cert-link:hover {
    border-color: #ffffff;
    opacity: 0.8;
    transform: translateX(4px);
}