:root {
    --bg-light: #f8fafc;
    --text-light: #020617;
    --card-light: #ffffff;

    --bg-dark: #020617;
    --text-dark: #e5e7eb;
    --card-dark: #0f172a;

    --accent: #38bdf8;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

body.light {
    background: var(--bg-light);
    color: var(--text-light);
}

body.dark {
    background: radial-gradient(circle at top, #0f172a, #020617);
    color: var(--text-dark);
}

.card-main {
    background: var(--card-light);
    padding: 3rem 2rem;
    border-radius: 18px;
    max-width: 900px;
    width: 100%;
}

body.dark .card-main {
    background: var(--card-dark);
}

.roles {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.role {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
}

.subtitle {
    opacity: 0.8;
}

.phrase {
    font-size: 1.35rem;
    min-height: 70px;
    margin-bottom: 2rem;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: currentColor;
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.section-title {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.stack span {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.contacts {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 1rem;
}

.contact {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: inherit;
    transition: all 0.3s ease;
}

body.dark .contact {
    background: rgba(255,255,255,0.08);
}

.contact:hover {
    background: var(--accent);
    color: #020617;
    transform: translateY(-4px);
}

footer {
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 576px) {
    .role {
        font-size: 1.2rem;
    }
    .phrase {
        font-size: 1.15rem;
    }
}
