:root {
    --bg-dark: #f4f5f7;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-primary: #1a1a2e;
    --text-secondary: #555566;
    --accent-stranger: #2563eb;
    --accent-intern: #d97706;
    --accent-translator: #7c3aed;
    --accent-tutor: #059669;
    --accent-pleaser: #db2777;
    --border-radius: 20px;
    --glass-blur: 16px;
    --transition-speed: 0.4s;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out forwards;
}

header h1 {
    font-size: 4rem;
    background: linear-gradient(to right, #1a1a2e, #555566);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image-wrap {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image-wrap img {
    transform: scale(1.1);
}

.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.card h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex: 1;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    padding: 30px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 2;
    overflow-y: auto;
}

.card.active .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.card-overlay ul {
    list-style: none;
    margin-bottom: 20px;
}

.card-overlay li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.card-overlay li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: currentColor;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
}

/* Character Specific Accents */
.card-stranger .card-tag {
    color: var(--accent-stranger);
}

.card-stranger:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.card-intern .card-tag {
    color: var(--accent-intern);
}

.card-intern:hover {
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.15);
}

.card-translator .card-tag {
    color: var(--accent-translator);
}

.card-translator:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}

.card-tutor .card-tag {
    color: var(--accent-tutor);
}

.card-tutor:hover {
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.15);
}

.card-pleaser .card-tag {
    color: var(--accent-pleaser);
}

.card-pleaser:hover {
    box-shadow: 0 8px 30px rgba(219, 39, 119, 0.15);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glow effects */
.glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
    filter: blur(80px);
}

.glow-2 {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -100px;
    left: -100px;
    z-index: -1;
    filter: blur(80px);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .character-grid {
        grid-template-columns: 1fr;
    }
}