@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/inter/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/inter/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/inter/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('./assets/fonts/plus-jakarta-sans/PlusJakartaSans-Bold.woff2') format('woff2');
    font-weight: 700 800;
    font-style: normal;
}

:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.98);
    --primary: #6366f1; 
    --secondary: #0ea5e9;
    --tertiary: #a855f7;
    --text-main: #0f172a;
    --text-muted: #475569;
    --card-width: 380px;
    --card-height: 560px;
    --card-radius: 32px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

/* Professional Mesh Background */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #050505;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,20%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%), 
        radial-gradient(at 0% 100%, hsla(339,49%,30%,1) 0, transparent 50%), 
        radial-gradient(at 50% 100%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 100%, hsla(253,16%,7%,1) 0, transparent 50%);
    filter: blur(60px);
}

/* Grain Overlay for High-End Texture */
.liquid-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(120px);
    animation: move 25s infinite alternate ease-in-out;
}

.blob:nth-child(1) {
    width: 60vw;
    height: 60vh;
    background: var(--primary);
    left: -5%;
    top: -5%;
}

.blob:nth-child(2) {
    width: 50vw;
    height: 50vh;
    background: var(--tertiary);
    right: -5%;
    bottom: -5%;
    animation-delay: -8s;
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(150px, 80px) scale(1.1) rotate(10deg); }
}

/* Header */
header {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: 4px;
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    opacity: 0.4;
}

/* Scene & Cards */
.scene {
    perspective: 1500px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-stack {
    position: relative;
    width: var(--card-width);
    height: var(--card-height);
    transform-style: preserve-3d;
    touch-action: none;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--card-radius);
    box-shadow: 
        0 25px 50px -12px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    transform-origin: 50% 100%;
    cursor: grab;
    user-select: none;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0); /* Force GPU acceleration for sharper text */
}

.card:active {
    cursor: grabbing;
}

.card-content {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-image {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 28px;
    flex-shrink: 0;
}

/* Avatar Card Specific Styling */
.card[data-type="avatar"] .card-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 24px;
    border: 4px solid #fff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 450;
}

.social-links {
    display: flex;
    gap: 24px;
    margin: 24px 0;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.1);
}

.social-icon {
    width: 22px;
    height: 22px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.social-links a:hover .social-icon {
    opacity: 1;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--text-main);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-2px);
    background: #000;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
}

/* States */
.card.swiped-left {
    transform: translateX(-150%) rotate(-15deg) !important;
    opacity: 0;
}

.card.swiped-right {
    transform: translateX(150%) rotate(15deg) !important;
    opacity: 0;
}

.card.swiped-up {
    transform: translateY(-150%) rotate(0deg) !important;
    opacity: 0;
}

.card.swiped-down {
    transform: translateY(150%) rotate(0deg) !important;
    opacity: 0;
}

/* Responsive */
@media (max-width: 480px) {
    :root {
        --card-width: 320px;
        --card-height: 500px;
    }
    
    .card-content {
        padding: 30px 24px;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    .card-image {
        height: 200px;
    }
}

@media (max-height: 600px) {
    :root {
        --card-height: 440px;
    }
    .card-image {
        height: 160px;
        margin-bottom: 16px;
    }
}