/* ==========================================================================
   ArcxGo Profile Theme (Red, Black, White)
   ========================================================================== */

:root {
    --primary-red: #e50000;
    --hover-red: #ff1a1a;
    --dark-bg: #000000;
    --card-bg: #0d0d0d;
    --btn-bg: #1a1a1a;
    --border-color: #333333;
    --text-white: #ffffff;
    --text-muted: #cccccc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- Global Navbar --- */
.navbar {
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.navbar-brand span {
    color: var(--primary-red);
}

.brand-logo {
    height: 30px;
    width: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-nav-outline {
    border: 1px solid var(--border-color);
}

.btn-nav-outline:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-register {
    background: var(--primary-red);
    color: var(--text-white);
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    transition: background 0.3s ease;
}

.btn-register:hover {
    background: var(--hover-red);
}

/* --- 3D Flip Card Container --- */
.scene {
    width: 100%;
    max-width: 420px;
    perspective: 1000px;
    margin: 40px auto;
    padding: 0 15px;
}

.card {
    width: 100%;
    min-height: 600px;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

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

.card__face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--card-bg);
    border-radius: 20px;
    border: 2px solid var(--primary-red);
    box-shadow: 0 15px 35px rgba(229, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card__face--back {
    transform: rotateY(180deg);
    justify-content: center;
    align-items: center;
    padding: 25px;
    text-align: center;
    background: var(--dark-bg);
}

/* --- Profile Front Components --- */
.profile-cover {
    background: linear-gradient(135deg, var(--primary-red), #4a0000);
    height: 120px;
    position: relative;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid var(--dark-bg);
    position: absolute;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    background: var(--text-white);
}

.profile-body {
    padding: 60px 20px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-white);
}

.profile-handle {
    font-size: 0.95rem;
    color: var(--primary-red);
    font-weight: 600;
    margin: 5px 0 12px;
}

.profile-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* --- Linktree-Style Links --- */
.links-container {
    flex-grow: 1;
}

.link-btn {
    display: block;
    width: 100%;
    padding: 13px;
    margin-bottom: 12px;
    background: var(--btn-bg);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 0, 0, 0.4);
}

.flip-trigger {
    background: transparent;
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    padding: 9px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.flip-trigger:hover {
    background: var(--primary-red);
    color: var(--text-white);
}

/* --- QR Code Section --- */
.qr-box img {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    background: var(--text-white);
    padding: 10px;
}

/* --- Modal Dialog --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card-bg);
    border: 2px solid var(--primary-red);
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--btn-bg);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    border-radius: 8px;
}

.form-group input:focus {
    border-color: var(--primary-red);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-red);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

/* --- Footer --- */
.footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--primary-red);
    text-decoration: none;
}