/* Import font dari Google */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

body {
    background: linear-gradient(135deg, #0f172a 0%, #1a1f3a 25%, #1e1b4b 50%, #16213e 75%, #0f172a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: white;
    position: relative;
    overflow-x: hidden;
}

/* Efek Blur Circle Subtle */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

/* Efek Kartu Kaca (Glassmorphism) */
.bento-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-card:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

/* Animasi Gradient Bergerak */
.gradient-text {
    background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: rgba(71, 85, 105, 0.2);
    border: 1px solid rgba(71, 85, 105, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(71, 85, 105, 0.4);
    border-color: rgba(71, 85, 105, 0.5);
}

.lang-btn.active {
    background: rgba(56, 189, 248, 0.3);
    border-color: rgba(56, 189, 248, 0.6);
    color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* Responsif untuk HP */
@media (max-width: 640px) {
    .language-selector {
        top: 0.75rem !important;
        right: 0.75rem !important;
        gap: 0.25rem;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .bento-card {
        padding: 1.5rem !important;
    }
}

/* Ikon koper di pojok atas kartu */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(129, 140, 248, 0.06));
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.06);
}

.icon-svg {
    width: 28px;
    height: 28px;
    display: block;
}

.portfolio-tagline {
    line-height: 1.25;
}

.bento-card:hover .icon-box {
    transform: translateY(-4px) scale(1.03);
    transition: transform 320ms cubic-bezier(.2, .9, .2, 1);
}

/* Profile Image - Crop & Center */
.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ensure circular container has fixed aspect ratio */
.profile-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    overflow: hidden;
}

/* Subtitle contrast fix: make subtitle text lighter for readability */
#subtitle {
    color: #E5E7EB;
    /* light gray for good contrast on dark background */
}

/* Portfolio card preview background (subtle, low opacity) */
.portfolio-card {
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--portfolio-preview, none);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    /* 20-30% as requested */
    filter: saturate(0.85) blur(1px);
    z-index: 0;
    pointer-events: none;
}

.portfolio-card>* {
    position: relative;
    z-index: 10;
    /* ensure content sits above preview */
}

/* E-Book badge: softer, premium accent (gold) */
#ebookBadge {
    background: linear-gradient(90deg, #f7e9c2, #f0c75a);
    color: #2b1b00;
    box-shadow: 0 6px 18px rgba(240, 199, 90, 0.09);
}
