:root {
    --primary-color: #d4a373;
    --accent-color: #faedcd;
    --text-color: #333;
    --bg-color: #fefae0;
    --glass-bg: rgba(255, 255, 255, 0.4);
    /* More transparent */
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    /* Deeper shadow */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Soften blobs further */
    opacity: 0.5;
    animation: floatBlob 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #ccd5ae;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #e9edc9;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 350px;
    height: 350px;
    background: #faedcd;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.container {
    width: 100%;
    max-width: 600px;
    /* Wider container for larger card presence */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* More space between card and info */
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Centered vertically */
}

/* 3D Card Scene - HERO ELEMENT */
.card-scene {
    width: 100%;
    max-width: 500px;
    /* Limit max width on desktop */
    aspect-ratio: 1.75 / 1;
    perspective: 1500px;
    /* Deeper perspective */
    cursor: pointer;
    margin-bottom: 20px;
    /* Floating Animation for the scene */
    animation: floatingCard 6s ease-in-out infinite;
}

@keyframes floatingCard {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Smoother springy feel */
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.card.is-flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    /* Match card radius */
    overflow: hidden;
    background: white;
    /* Subtle inner border/lighting */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Remove small bottom gap */
}

.card-back {
    transform: rotateY(180deg);
}

/* Glass Section - REDUCED WEIGHT */
.info-section {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideUp 0.8s ease-out backwards;
    animation-delay: 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 1.6rem;
    /* Slightly smaller to let card dominate */
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 4px;
}

p#title {
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

p#company {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Actions */
.actions {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    border-radius: 14px;
    /* More rounded */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 1rem;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.3);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 163, 115, 0.4);
}

.btn.primary:active {
    transform: scale(0.98);
}

.btn.secondary {
    background-color: rgba(255, 255, 255, 0.8);
    color: #555;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.btn.secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.btn.icon-only {
    padding: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

footer {
    opacity: 0.5;
    font-size: 0.75rem;
    margin-top: auto;
    padding-bottom: 20px;
}

/* Responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        gap: 30px;
        justify-content: flex-start;
        /* Don't force center on small screens if content overflows */
        padding-top: 40px;
    }

    .card-scene {
        width: 100%;
        /* Full width on mobile */
    }

    h1 {
        font-size: 1.5rem;
    }
}