@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --accent: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.3);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#cursor {
    width: 25px;
    height: 25px;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: -12.5px;
    left: -12.5px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    display: none;
}

#cursor::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

#cursor.active {
    width: 45px;
    height: 45px;
    top: -22.5px;
    left: -22.5px;
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

#cursor.clicking {
    border-color: var(--accent);
}

@media (pointer: fine) {
    #cursor { display: block; }
}

/* --- Background --- */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #16161a 0%, #0a0a0c 100%);
}

.blob {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: linear-gradient(135deg, var(--accent) 0%, #3a7bd5 100%);
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.1;
    animation: move 20s infinite alternate ease-in-out;
}

.blob-2 {
    background: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
    right: -10vw;
    bottom: -10vw;
    animation-delay: -5s;
}

@keyframes move {
    0% { transform: translate(-5%, -5%) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

/* --- Layouts --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Home Page (Search) --- */
.hero {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 5vh;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-bar {
    width: 100%;
    padding: 20px 60px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    background: rgba(255, 255, 255, 0.05);
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.profile-card-small {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.profile-card-small:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.avatar-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--card-border);
}

/* --- Profile Page --- */
.profile-view {
    width: 100%;
    max-width: 450px;
    margin-top: 5vh;
}

.profile-main-card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid var(--card-border);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    object-fit: cover;
}

.profile-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent);
}

.avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 25px;
}

.avatar-glow {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.5;
    z-index: 1;
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.profile-header {
    margin-bottom: 35px;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.profile-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.profile-bio {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto;
}

.share-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--hover-color);
    box-shadow: 0 0 20px var(--accent-glow);
    color: var(--hover-color);
}

/* --- Utilities --- */
.redirect-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.redirect-overlay.active { opacity: 1; pointer-events: all; }

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- New Elements --- */
.enter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.enter-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.enter-content {
    text-align: center;
    animation: pulse 2s infinite;
}

.enter-content p {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.enter-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
}

.music-control:hover {
    transform: scale(1.1);
    background: var(--accent);
}

.badges-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge-item {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.05);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    transition: all 0.3s;
}

.badge-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}

.badge-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover { color: #fff; }

.qr-section {
    text-align: center;
    margin-bottom: 30px;
}

.qr-image {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    border: 5px solid #fff;
    margin-bottom: 10px;
}

.qr-section p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.share-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-input-wrapper input {
    flex-grow: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.9rem;
}

.share-input-wrapper button {
    background: var(--accent);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.share-input-wrapper button:active { transform: scale(0.95); }

.social-share-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-btn:hover { transform: translateY(-5px); }
.social-btn.tw { background: #1da1f2; }
.social-btn.wa { background: #25d366; }
.social-btn.ml { background: #ea4335; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .container { padding: 20px; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-main-card { padding: 30px 20px; }
    .music-control { bottom: 20px; right: 20px; }
}
