@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap");

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

::-webkit-scrollbar {
    width: 6px;
    background: #0a0103;
}
::-webkit-scrollbar-thumb {
    background: #4a0f1d;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff3366;
}

body {
    background-color: transparent;
    color: #fff;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 5%;
    min-height: 100vh;
    scroll-behavior: smooth;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#snake-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    opacity: 0.8;
    pointer-events: none;
    background-color: #17030c;
    background-image:
        linear-gradient(rgba(255, 51, 102, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 51, 102, 0.08) 1px, transparent 1px);
    background-size: 25px 25px;
}

.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
    padding: 25px 0 60px 0;
    position: relative;
    z-index: 1;
}
@media (max-width: 480px) {
    body {
        padding: 0;
    }
    .app-container {
        padding: 20px 15px 90px 15px;
    }
}

.animate-on-load {
    opacity: 0;
    animation-fill-mode: forwards;
}
.scroll-anim {
    opacity: 0;
    will-change: transform, opacity;
}
.scroll-anim.is-visible {
    opacity: 1;
    transform: translate(0, 0);
    transition:
        opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fade-down {
    animation: fadeDownAnim 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes fadeDownAnim {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    animation: fadeInAnim 1s ease forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes fadeInAnim {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.fade-up {
    transform: translateY(30px);
}
.fade-right {
    transform: translateX(-30px);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 51, 102, 0.15);
}
.sapaan-anim {
    color: #ff3366;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    animation: slideDownFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.gradient-text {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(90deg, #ff3366, #ff8da1, #ff3366);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorWave 3s linear infinite;
    letter-spacing: -0.5px;
}
.glow-pulse {
    animation:
        colorWave 3s linear infinite,
        glowPulseAnim 2s infinite alternate;
}
@keyframes glowPulseAnim {
    0% {
        filter: drop-shadow(0 0 2px rgba(255, 51, 102, 0.2));
    }
    100% {
        filter: drop-shadow(0 0 8px rgba(255, 51, 102, 0.4));
    }
}
@keyframes colorWave {
    to {
        background-position: 200% center;
    }
}

.profile-container {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 51, 102, 0.5);
    background: #2d0a1d;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.profile-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.2);
}
.github-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ff3366;
}

.music-player {
    background: linear-gradient(145deg, #290a18, #1a040e);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 51, 102, 0.2);
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}
.music-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}
.album-art-wrap {
    position: relative;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    cursor: pointer;
    z-index: 2;
    border-radius: 10px;
    border: 1px solid rgba(255, 51, 102, 0.3);
}
.album-art {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
}
.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: 0.2s;
}
.album-art.playing {
    border-radius: 50%;
    animation: spinCover 6s linear infinite;
}
.album-art-wrap.playing {
    border-radius: 50%;
    border-color: #ff3366;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.4);
}
.album-art.playing .play-overlay {
    opacity: 0;
}
.album-art-wrap:hover .play-overlay {
    color: #ff3366;
}
@keyframes spinCover {
    100% {
        transform: rotate(360deg);
    }
}

.song-info {
    flex: 1;
    position: relative;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.info-slider {
    position: relative;
    width: 100%;
    height: 32px;
    overflow: hidden;
}
.song-header-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.song-info.searching .song-header-anim {
    transform: translateY(-100%);
    opacity: 0;
}
.song-header-anim h2 {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.artist-text {
    font-size: 10px;
    color: #ff3366;
    font-family: "Space Mono", monospace;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.search-input-box {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1a030d;
    border: 1px solid #ff3366;
    border-radius: 6px;
    padding: 3px 3px 3px 8px;
    gap: 6px;
}
.song-info.searching .search-input-box {
    left: 0;
}
.search-input-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 5px;
    font-size: 10px;
    font-family: "Space Mono", monospace;
    outline: none;
}
.search-input-box input::placeholder {
    color: #888;
}
.submit-btn {
    background: #ff3366;
    border: none;
    color: #fff;
    width: 34px;
    height: 100%;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: 0.2s;
}
.submit-btn:active {
    background: #cc1036;
    transform: scale(0.9);
}

.lyrics-container {
    height: 14px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin-top: 4px;
    transition: 0.4s;
}
.song-info.searching .lyrics-container {
    opacity: 0;
    transform: translateY(10px);
}
.lyrics-text {
    font-size: 9px;
    color: #a39598;
    font-style: italic;
    white-space: nowrap;
    transition: 0.4s;
}
.lyrics-hidden {
    opacity: 0;
    transform: translateY(5px);
}

.main-action-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.4);
    color: #ff3366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}
.main-action-btn:hover {
    background: #ff3366;
    color: #fff;
}
.main-action-btn.close-mode {
    background: #ff3366;
    color: #fff;
    border-radius: 50%;
    transform: rotate(90deg);
}

.wave-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    height: 35px;
    margin-bottom: 25px;
    width: 100%;
    overflow: hidden;
    opacity: 0.9;
}
.bar-divider {
    width: 4px;
    background: #ff3366;
    border-radius: 2px;
    height: 30px;
    transform: scaleY(0.1);
    transform-origin: center;
    will-change: transform;
    box-shadow: 0 0 6px rgba(255, 51, 102, 0.5);
}
.bar-transition {
    transition: transform 0.08s ease-out;
}
.idle-wave {
    animation: idleWaveAnim 2s ease-in-out infinite alternate;
}
@keyframes idleWaveAnim {
    0% {
        transform: scaleY(0.1);
        opacity: 0.3;
    }
    100% {
        transform: scaleY(0.25);
        opacity: 0.6;
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

.card {
    background: #110406;
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: 12px;
    padding: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 4px 0px rgba(255, 51, 102, 0.1);
    transition: 0.2s;
}
.hover-lift:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px transparent;
}

.card-header {
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.label {
    font-size: 8px;
    color: #888;
    font-family: "Space Mono", monospace;
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 1.2;
}
.title {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.heartbeat-real {
    color: #ff3366;
    font-size: 12px;
    animation: medicalHeartbeat 1.4s infinite;
}
@keyframes medicalHeartbeat {
    0%,
    30%,
    60%,
    100% {
        transform: scale(1);
    }
    15%,
    45% {
        transform: scale(1.2);
    }
}
.card-umur .subtitle {
    font-size: 8px;
    color: #888;
    margin-bottom: 2px;
}
.age-main {
    font-family: "Space Mono", monospace;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #fff;
}
.age-main small {
    font-size: 9px;
    color: #ff3366;
    font-family: "Inter";
    font-weight: 600;
    margin-right: 5px;
}
.age-sub {
    font-family: "Space Mono", monospace;
    color: #ff3366;
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
}
.line-progress {
    height: 2px;
    background: linear-gradient(90deg, #ff3366, transparent);
    width: 80%;
    margin-top: 10px;
}

.location-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}
.card-posisi .quote {
    font-size: 9px;
    font-style: italic;
    color: #ff8da1;
    margin-bottom: 5px;
}
.country-text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}
.location-map-container {
    width: 100%;
    height: 50px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background: #0a0103;
    border: 1px solid rgba(255, 51, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-bg-img {
    position: absolute;
    width: 100%;
    height: 150%;
    object-fit: cover;
    opacity: 0.5;
    filter: grayscale(100%) sepia(100%) hue-rotate(330deg) saturate(200%);
    z-index: 0;
}
.map-pin-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}
.map-pin-icon {
    font-size: 16px;
    color: #fff;
    z-index: 3;
    animation: pinHover 2s infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.map-pin-pulse {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #ff3366;
    border-radius: 50%;
    z-index: 1;
    animation: mapPulseAnim 2s infinite;
}
@keyframes pinHover {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}
@keyframes mapPulseAnim {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.content-z {
    position: relative;
    z-index: 10;
}
.card-battery h2 {
    font-size: 26px;
    font-family: "Space Mono", monospace;
    margin: 10px 0 2px 0;
    font-weight: 700;
    color: #ff3366;
}
.battery-status {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}
.flash-anim {
    animation: flashPulse 1s infinite alternate;
}
@keyframes flashPulse {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 1;
        color: #fff;
    }
}

.battery-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    transition: height 1.5s;
    z-index: 1;
    border-top: 1px solid #ff3366;
}
.liquid-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 51, 102, 0.1);
}
.wave-svg {
    position: absolute;
    top: -14px;
    left: 0;
    width: 200%;
    height: 15px;
    will-change: transform;
    animation: waveSlide 3s linear infinite;
}
.wave-back {
    top: -16px;
    height: 17px;
    animation-duration: 4s;
    animation-direction: reverse;
    opacity: 0.5;
}
@keyframes waveSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.bubbles-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}
.charge-bubble {
    position: absolute;
    bottom: -15px;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.8),
        rgba(255, 51, 102, 0.9)
    );
    border-radius: 50%;
    animation: floatUpBubbles linear infinite;
    box-shadow: 0 0 5px rgba(255, 51, 102, 0.5);
}
@keyframes floatUpBubbles {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

.analog-clock-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0 10px 0;
}
.clock {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid rgba(255, 51, 102, 0.4);
    position: relative;
    background: #0a0203;
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 51, 102, 0.1);
}
.clock::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}
.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    background: #fff;
    border-radius: 4px;
    z-index: 5;
}
.hour {
    width: 4px;
    height: 18px;
    background: #fff;
    margin-left: -2px;
}
.minute {
    width: 2px;
    height: 25px;
    background: #aaa;
    margin-left: -1px;
}
.second {
    width: 1px;
    height: 28px;
    background: #ff3366;
    margin-left: -0.5px;
    z-index: 6;
}
.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #ff3366;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 7;
    border: 1px solid #000;
}
.time-display-small {
    text-align: center;
    font-family: "Space Mono", monospace;
    font-size: 11px;
    color: #ff3366;
    font-weight: 700;
    margin-bottom: 5px;
    background: rgba(255, 51, 102, 0.1);
    padding: 2px;
    border-radius: 4px;
}
.sync-status {
    font-size: 8px;
    color: #888;
    font-family: "Space Mono", monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dot-green {
    width: 6px;
    height: 6px;
    background: #ff3366;
    border-radius: 0;
    animation: pulseGreen 1s infinite steps(2);
}
@keyframes pulseGreen {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* TIMELINE */
.timeline-section {
    margin-top: 40px;
    padding-bottom: 20px;
}
.timeline-list {
    position: relative;
    padding-left: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}
.timeline-list::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 11px;
    width: 2px;
    background: rgba(255, 51, 102, 0.3);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    width: 100%;
}
.timeline-dot {
    position: absolute;
    left: -35px;
    top: 0px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0a0103;
    border: 2px solid #ff3366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3366;
    font-size: 10px;
    z-index: 2;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.4);
}
.timeline-content {
    background: #260715;
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: 10px;
    padding: 14px;
    box-shadow: 4px 4px 0px rgba(255, 51, 102, 0.1);
    transition: 0.3s;
}
.timeline-content:hover {
    border-color: rgba(255, 51, 102, 0.5);
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(255, 51, 102, 0.2);
}
.timeline-year {
    font-family: "Space Mono", monospace;
    font-size: 9px;
    color: #ff3366;
    font-weight: 700;
    background: rgba(255, 51, 102, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 51, 102, 0.2);
}
.timeline-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.timeline-desc {
    font-size: 11px;
    color: #bbb;
    line-height: 1.5;
}

/* PROJECT SECTION */
.project-section {
    margin-top: 40px;
    padding-bottom: 20px;
}
.section-header {
    margin-bottom: 20px;
}
.section-title {
    font-size: 20px;
    color: #ff3366;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title::before {
    content: "►";
    color: #fff;
    font-size: 14px;
}
.section-desc {
    font-size: 10px;
    font-family: "Space Mono", monospace;
    color: #ff8da1;
    margin-top: 4px;
    margin-left: 24px;
    margin-bottom: 20px;
}
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.project-card {
    background: #260715;
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: 4px 4px 0px rgba(255, 51, 102, 0.1);
    transition: 0.2s;
    cursor: pointer;
}
.project-card:hover {
    border-color: rgba(255, 51, 102, 0.5);
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(255, 51, 102, 0.2);
}
.project-card:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px transparent;
}
.project-media {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 51, 102, 0.3);
}
.project-media img,
.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: 0.3s;
}
.project-card:hover .project-media img {
    filter: grayscale(0%);
    transform: scale(1.05);
}
.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.project-info h3 {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.project-info p {
    font-size: 9px;
    color: #aaa;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.project-status {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: "Space Mono", monospace;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid;
}
.status-draft {
    background: rgba(150, 150, 150, 0.1);
    border-color: #aaa;
    color: #aaa;
}
.status-progress {
    background: rgba(255, 170, 0, 0.1);
    border-color: #ffaa00;
    color: #ffaa00;
}
.status-review {
    background: rgba(0, 153, 255, 0.1);
    border-color: #0099ff;
    color: #0099ff;
}
.status-live {
    background: rgba(255, 51, 102, 0.1);
    border-color: #ff3366;
    color: #ff3366;
}

/* --- CERTIFICATE SECTION --- */
.certificate-section {
    margin-top: 40px;
    padding-bottom: 40px;
}
.certificate-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.cert-card {
    background: #110406;
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 4px 4px 0px rgba(255, 51, 102, 0.1);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 15px rgba(255, 51, 102, 0.3);
    border-color: #ff3366;
}
.cert-card:active {
    transform: translate(0, 0);
}
.cert-media {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
    background: #000;
    border-bottom: 1px solid rgba(255, 51, 102, 0.2);
}
.cert-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: 0.4s;
}
.cert-card:hover .cert-media img {
    filter: grayscale(0%);
    transform: scale(1.08);
}
.cert-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.cert-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cert-issuer {
    font-size: 10px;
    color: #ff8da1;
    font-family: "Space Mono", monospace;
    margin-bottom: 10px;
}
.cert-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.cert-date {
    font-size: 9px;
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 6px;
    border-radius: 4px;
}
.cert-icon {
    color: #ff3366;
    font-size: 14px;
}

.loader-pulse {
    text-align: center;
    color: #ff3366;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    padding: 20px 0;
    animation: blink 1s infinite steps(2);
}

/* --- MODAL POPUP --- */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}
.project-modal.show {
    opacity: 1;
    pointer-events: auto;
}
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-content {
    background: #1f0511;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    border-radius: 16px;
    position: relative;
    z-index: 10001;
    transform: scale(0.9) translateY(20px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 51, 102, 0.5);
    box-shadow: 0 20px 50px rgba(255, 51, 102, 0.15);
    overflow: hidden;
}
.project-modal.show .modal-content {
    transform: scale(1) translateY(0);
}
.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 51, 102, 0.5);
    color: #fff;
    z-index: 10;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: 0.2s;
}
.modal-close-btn:hover {
    background: #ff3366;
}
.modal-media-box {
    width: 100%;
    height: 220px;
    background: #000;
    position: relative;
    border-bottom: 2px solid #ff3366;
}
.modal-media-box img,
.modal-media-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-media-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #1f0511, transparent);
    pointer-events: none;
}
.modal-body {
    padding: 20px 25px;
    overflow-y: auto;
}
.modal-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.modal-date {
    font-size: 10px;
    color: #ff3366;
    font-family: "Space Mono", monospace;
    font-weight: 700;
}
.modal-body h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(255, 51, 102, 0.2);
}
.modal-desc-full {
    font-size: 12px;
    color: #ff8da1;
    line-height: 1.6;
    margin-bottom: 30px;
}
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: rgba(255, 51, 102, 0.1);
    color: #ff3366;
    padding: 14px;
    border: 1px solid #ff3366;
    text-decoration: none;
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: 13px;
    transition: 0.2s;
    text-transform: uppercase;
    border-radius: 8px;
}
.btn-primary:active {
    background: #ff3366;
    color: #fff;
    transform: scale(0.96);
}

/* --- FIX BACK TO TOP BUTTON --- */
.back-to-top-btn {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ff3366;
    color: #fff;
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
    opacity: 0;
    transform: translateY(20px) scale(0.5);
    pointer-events: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}
.back-to-top-btn.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: floatBtn 3s ease-in-out infinite;
}
.back-to-top-btn:hover {
    background: #cc1036;
}
.back-to-top-btn:active {
    transform: scale(0.9);
}
@keyframes floatBtn {
    0% {
        box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
    }
    50% {
        box-shadow: 0 10px 25px rgba(255, 51, 102, 0.6);
    }
    100% {
        box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
    }
}
