@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@400;500;600&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f0ece3;
    color: #1F2A44;
    perspective: 1000px;
}
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
}

.badge-container { perspective: 1500px; }

.badge {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease;
    cursor: pointer;
    width: 100%;
    height: 400px;
}

.badge.flipped { transform: rotateY(180deg); }

.badge-front, .badge-back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}
.badge-front { z-index: 2; }
.badge-back {
    transform: rotateY(180deg);
    z-index: 1;
}

.badge-photo {
    background-color: #e8e1d9;
    border: 2px solid #4B1248;
}

.security-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.badge-info { position: relative; z-index: 1; }

.gold-foil {
    background: linear-gradient(45deg, #d4af37 0%, #f9f295 50%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 2px 3px rgba(0,0,0,0.2);
}

.barcode {
    height: 40px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.barcode-line {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: #1F2A44;
}

.badge-lanyard {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 60px;
    background-color: #4B1248;
    z-index: -1;
    transition: all 0.3s ease;
}
.badge:hover .badge-lanyard {
    top: -65px;
    height: 65px;
}

.badge-clip {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background-color: #d4af37;
    border-radius: 5px 5px 0 0;
    z-index: -1;
}

.button {
    background-color: #4B1248;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s, transform 0.3s;
}
.button:hover {
    background-color: #5c1759;
    transform: translateY(-2px);
}

.qr-code {
    background-color: white;
    padding: 10px;
    border-radius: 4px;
}

.hologram {
    position: absolute;
    width: 80px;
    height: 80px;
    bottom: 20px;
    right: 20px;
    opacity: 0.8;
    background: linear-gradient(45deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.8) 50%,
    rgba(255,255,255,0) 100%
    );
    background-size: 200% 200%;
    animation: shimmer 3s infinite linear;
    border-radius: 50%;
    pointer-events: none;
}
@keyframes shimmer {
    0% { background-position: -100% -100%; }
    100% { background-position: 200% 200%; }
}