:root {
    --parchment-ivory: #F4EBD8;
    --warm-beige: #D8C5A5;
    --burgundy: #722F37;
    --charcoal-black: #242321;
    --antique-gold: #B08D57;
    --cream-white: #FFF9EF;
}

body {
    background-color: var(--parchment-ivory);
    color: var(--charcoal-black);
    font-family: 'Inter', sans-serif;
    background-image: 
        radial-gradient(rgba(176, 141, 87, 0.14) 1px, transparent 1px),
        radial-gradient(rgba(114, 47, 55, 0.06) 1px, var(--parchment-ivory) 1px);
    background-size: 28px 28px;
    background-position: 0 0, 14px 14px;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Ornamen & Bingkai Kartu Klasik (Digunakan di Landing Page & Portfolio) */
.royal-card {
    background-color: var(--cream-white);
    border: 2px solid var(--antique-gold);
    border-radius: 16px;
    box-shadow: 
        0 10px 25px -5px rgba(36, 35, 33, 0.16),
        0 0 0 1px rgba(176, 141, 87, 0.3) inset;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    cursor: pointer;
    overflow: hidden;
}

.royal-card::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(176, 141, 87, 0.55);
    border-radius: 10px;
    pointer-events: none;
    z-index: 2;
}

.royal-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 32px -6px rgba(114, 47, 55, 0.26),
        0 0 0 2px var(--antique-gold) inset;
}

.royal-card.king-centerpiece {
    border-width: 2.5px;
    border-color: var(--burgundy);
    box-shadow: 
        0 14px 30px -5px rgba(114, 47, 55, 0.28),
        0 0 0 2px var(--antique-gold) inset;
}

/* 3D Flip Card untuk Halaman 8 Kartu (/portfolio) */
.card-scene {
    perspective: 1200px;
    height: 400px;
    width: 100%;
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.card-scene:hover .card-flip-inner:not(.is-flipped) {
    transform: translateY(-8px);
}

.card-flip-inner.is-flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background-color: var(--cream-white);
    border: 2px solid var(--antique-gold);
    border-radius: 16px;
    box-shadow: 
        0 10px 25px -5px rgba(36, 35, 33, 0.16),
        0 0 0 1px rgba(176, 141, 87, 0.3) inset;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-face::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(176, 141, 87, 0.5);
    border-radius: 10px;
    pointer-events: none;
}

.card-face.king-border {
    border-width: 2.5px;
    border-color: var(--burgundy);
}

.card-face-back {
    transform: rotateY(180deg);
    background-color: var(--parchment-ivory);
    border-color: var(--burgundy);
}

/* Animasi Shuffle */
@keyframes shufflePulse {
    0% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-20px) rotate(-3deg); }
    50% { transform: translateX(20px) rotate(3deg); }
    75% { transform: translateX(-10px) rotate(-1.5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

.animate-shuffle {
    animation: shufflePulse 0.6s ease-in-out 1;
}

.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--antique-gold), transparent);
}