/* ===== VARIABLES & THEME ===== */
:root {
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: 0.3s ease;
    --radius: 10px;
    --radius-sm: 6px;
}

[data-theme="light"] {
    --bg-primary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
    --btn-bg: rgba(15, 23, 42, 0.06);
    --btn-bg-hover: rgba(15, 23, 42, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --border: #334155;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.4);
    --btn-bg: rgba(255, 255, 255, 0.08);
    --btn-bg-hover: rgba(255, 255, 255, 0.14);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background var(--transition), color var(--transition);
    display: flex;
    flex-direction: column;
}

::selection {
    background: var(--accent);
    color: white;
}

/* ===== THEME TOGGLE ===== */
.btn-theme {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--btn-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-theme:hover {
    background: var(--btn-bg-hover);
    color: var(--text-primary);
    transform: rotate(15deg);
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ===== HERO ===== */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ===== CARD ===== */
.card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 56px;
    box-shadow: var(--shadow-lg);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
    max-width: 480px;
    width: 100%;
    animation: fadeIn 0.6s ease;
}

/* ===== PHOTO ===== */
.photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 24px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
}

/* ===== TEXT ===== */
.name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 4px;
}

.motto {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 32px;
}

/* ===== LINKS ===== */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--btn-bg);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.link-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.link-btn:hover {
    background: var(--btn-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--text-primary);
}

.link-btn--accent {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.link-btn--accent:hover {
    background: var(--accent-hover);
    color: white;
    border-color: var(--accent-hover);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 16px 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 540px) {
    .card {
        padding: 36px 28px;
    }

    .photo {
        width: 110px;
        height: 110px;
    }

    .name {
        font-size: 1.5rem;
    }

    .btn-theme {
        top: 12px;
        right: 12px;
    }
}
