@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
    --pink: #c44569;
    --pink-light: #e8698a;
    --bg-light: #fdfaf7; 
    --surface: #ffffff;
    --text-main: #2d2d2d;
    --text-sub: #666666;
    --border: rgba(196, 69, 105, 0.1);
    --border-hover: rgba(196, 69, 105, 0.4);
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden; 
}

/* ── DEKORASI LATAR BELAKANG ── */
.grid-decoration {
    position: fixed; inset: 0;
    background-image: 
        linear-gradient(rgba(196, 69, 105, 0.05) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(196, 69, 105, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
}

/* Ambient Blobs agar tidak kosong */
.bg-blobs {
    position: fixed; inset: 0;
    z-index: -1;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}
.blob-1 { width: 400px; height: 400px; background: #ffe4e9; top: -10%; left: -10%; }
.blob-2 { width: 500px; height: 500px; background: #f3e8ff; bottom: -15%; right: -5%; }

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(30px, 50px); }
}

/* ── LAYOUT ── */
.page-wrapper {
    position: relative; 
    z-index: 1;
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    /* PERBAIKAN: Padding diperkecil agar tidak mendorong konten keluar layar */
    padding: 0 20px; 
    box-sizing: border-box;
    overflow: hidden;
}

.container-custom { 
    width: 100%; 
    max-width: 1200px; 
    /* Memastikan container tidak lebih tinggi dari layar */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Menjaga konten tetap di tengah layar */
}

.eyebrow { 
    text-align: center; 
    margin-bottom: 2vh; /* Sangat kecil agar hemat ruang */
    flex-shrink: 0; 
}

.eyebrow-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 28px; border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--pink); font-size: 11px; font-weight: 700;
    letter-spacing: 2px;
}

/* ── PORTAL GRID ── */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
    /* Mencegah grid meluap */
    margin: 0; 
}

.portal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 2.5vh 30px; /* Padding dalam menggunakan vh */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* PERBAIKAN: Gunakan tinggi yang lebih aman */
    height: 55vh; 
    min-height: 400px; /* Batas minimum agar konten tidak tumpang tindih */
    transition: all 0.5s ease;
}

.portal-card:hover {
    transform: translateY(-15px);
    border-color: var(--border-hover);
    box-shadow: 0 30px 60px rgba(123, 30, 58, 0.08);
}

/* Efek cahaya saat kursor bergerak */
.card-glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(196, 69, 105, 0.08) 0%, transparent 80%);
    pointer-events: none;
}

.card-icon {
    width: 48px; height: 48px;
    font-size: 20px;
    margin-bottom: 1.5vh;
}

.portal-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--pink);
    color: #fff;
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800; 
    /* PERBAIKAN: Gunakan clamp agar font mengecil di layar pendek */
    font-size: clamp(1.4rem, 4vh, 2rem); 
    line-height: 1.1; 
    margin-bottom: 10px;
    color: var(--text-main);
}

.hero-title em {
    font-style: italic;
    color: var(--pink);
    position: relative;
}

.hero-desc {
    color: var(--text-sub);
    font-size: clamp(0.85rem, 1.8vh, 0.95rem); 
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-tag {
    position: absolute; top: 35px; right: 35px;
    font-size: 10px; font-weight: 800;
    color: var(--pink); background: #fff0f3;
    padding: 6px 16px; border-radius: 20px;
    border: 1px solid rgba(196, 69, 105, 0.1);
}

.btn-launch {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text-main); font-weight: 700;
    text-decoration: none; font-size: 0.95rem;
    transition: 0.3s;
}

.btn-launch i {
    transition: 0.3s;
    font-size: 0.8rem;
}

.btn-launch:hover { color: var(--pink); }
.btn-launch:hover i { transform: translateX(5px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .portal-grid { grid-template-columns: 1fr; max-width: 500px; margin: auto; }
}