:root {
    --bg-color: #0f0f0f;
    --card-bg: #1a1a1a;
    --accent: #ff007c; 
    --cyan: #00e5ff;
    --gold: #ffd700;
    --text-main: #ffffff;
    --text-muted: #888888;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    overflow: hidden; 
    text-align: center;
}

header { text-align: center; margin-bottom: 15px; z-index: 2; }
.project-tag { font-size: 0.6rem; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; opacity: 0.8; }
h1 { font-size: 1.4rem; letter-spacing: 2px; margin: 0 0 5px 0; text-transform: uppercase; font-weight: 700; }
.subtitle { font-size: 0.9rem; color: var(--accent); font-weight: 400; margin: 0; letter-spacing: 4px; }

/* TERMINAL TEXT */
.terminal-box {
    margin-bottom: 20px;
    max-width: 300px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ccc;
    border-left: 2px solid var(--accent);
    padding-left: 10px;
}
.typewriter-text { margin: 0; }

.browser-alert {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255, 0, 124, 0.95);
    color: white; padding: 15px; font-size: 0.75rem;
    z-index: 1000; cursor: pointer; font-weight: bold; letter-spacing: 1px;
}

/* SCENE */
.scene {
    width: 260px; 
    height: 364px; 
    perspective: 1000px;
    margin-bottom: 25px;
    position: relative;
    z-index: 10;
}

.card {
    width: 100%; height: 100%; position: relative;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

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

.card-face {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; border-radius: 18px;
    background-size: cover; background-position: center;
    overflow: hidden;
}

.card-back {
    background-image: url('2.jpg'); 
    background-color: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
}

.glitch-overlay {
    position: absolute; top:0; left:0; right:0; bottom:0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.card-front {
    transform: rotateY(180deg);
    background-color: #fff;
}

.holo-overlay {
    position: absolute; top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 0, 128, 0.4) 40%, rgba(0, 255, 255, 0.4) 60%, transparent 80%);
    opacity: 0; mix-blend-mode: color-dodge; pointer-events: none; transition: opacity 0.5s;
}
.is-flipped .holo-overlay { opacity: 0.8; animation: holograph 3s infinite linear; }
@keyframes holograph { 0% { transform: translateX(20%) translateY(20%) rotate(0deg); } 100% { transform: translateX(-20%) translateY(-20%) rotate(0deg); } }

/* CONTROLS */
.controls { width: 100%; max-width: 300px; z-index: 20; }
.input-group { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.terminal-input {
    background: transparent; border: 1px solid #444; color: var(--accent);
    padding: 12px; font-family: 'Space Grotesk', sans-serif; text-transform: uppercase;
    text-align: center; font-size: 1rem; border-radius: 8px; outline: none; transition: border 0.3s;
}
.terminal-input:focus { border-color: var(--accent); }

.mint-btn {
    background: var(--accent); color: white; border: none; padding: 15px 0;
    width: 100%; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    font-size: 1rem; cursor: pointer; border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 0, 124, 0.3); text-transform: uppercase;
    transition: transform 0.1s;
}
.mint-btn:active { transform: scale(0.98); }
.mint-btn:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); }

/* ACTIONS */
.action-group { display: flex; flex-direction: column; gap: 10px; width: 100%; animation: fadeIn 0.5s ease; }
.action-btn {
    display: flex; align-items: center; justify-content: center; padding: 12px;
    border-radius: 8px; text-decoration: none; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; width: 100%;
}
.btn-save { border: 1px solid var(--cyan); color: var(--cyan); }
.btn-inquire { background: var(--accent); color: white; }

.hidden { display: none !important; }
.status-msg { font-size: 0.75rem; color: #666; margin-top: 15px; min-height: 1.2em; }
.tech-note { font-size: 0.6rem; color: #555; margin-top: 5px; }
.manifesto { margin-top: 20px; font-size: 0.6rem; color: #444; line-height: 1.4; max-width: 280px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }