:root {
    --primary: #0f766e;
    --primary-light: #14b8a6;
    --primary-dark: #115e59;
    --secondary: #0d9488;
    --background: #f0fdfa;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --card-shadow-hover: 0 8px 25px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.06);
    --featured-shadow: 0 4px 15px rgba(15,118,110,0.15);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --radius: 14px;
    --radius-sm: 10px;
}

[data-theme="dark"] {
    --primary: #2dd4bf;
    --primary-light: #5eead4;
    --primary-dark: #14b8a6;
    --secondary: #2dd4bf;
    --background: #0f172a;
    --surface: #1e293b;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: #334155;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
    --card-shadow-hover: 0 8px 25px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.25);
    --featured-shadow: 0 4px 20px rgba(45,212,191,0.2);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
    text-decoration: none;
    transition: top var(--transition-fast);
}
.skip-link:focus {
    top: 16px;
}

/* Background decoration */
.bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}
.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
}
.bg-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 20%;
    left: -80px;
    opacity: 0.2;
}
.bg-shape-3 {
    width: 250px;
    height: 250px;
    background: var(--primary);
    top: 40%;
    right: -60px;
    opacity: 0.15;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px 32px;
    animation: fadeIn 0.6s ease forwards;
}

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.theme-toggle:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
}
.theme-toggle:active {
    transform: scale(0.95);
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Profile */
.profile {
    text-align: center;
    padding: 32px 0 24px;
    animation: slideUp 0.7s ease forwards;
}
.profile-logo {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.profile-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.profile-logo .logo-dark {
    display: none;
}
[data-theme="dark"] .profile-logo .logo-light {
    display: none;
}
[data-theme="dark"] .profile-logo .logo-dark {
    display: block;
}
.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    color: var(--text);
}
.profile-fullname {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}
.profile-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
}
.profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
}
.profile-badge svg {
    width: 14px;
    height: 14px;
}

/* Links */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

/* Link Card */
.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--text);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-base);
    position: relative;
    border: 1px solid transparent;
    cursor: pointer;
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}
.link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}
.link-card:active {
    transform: scale(0.985);
}
.link-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.link-card.featured {
    border-color: var(--primary);
    box-shadow: var(--featured-shadow);
    padding: 18px 20px;
}
.link-card.featured:hover {
    box-shadow: var(--card-shadow-hover), 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

.link-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background-color var(--transition-base), color var(--transition-base);
}
.link-icon svg {
    width: 22px;
    height: 22px;
}
.link-card.featured .link-icon {
    background: var(--primary);
    color: #fff;
}

.link-content {
    flex: 1;
    min-width: 0;
}
.link-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 2px;
}
.link-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.link-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-base);
}
.link-card:hover .link-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

/* Featured label */
.link-badge {
    position: absolute;
    top: -1px;
    right: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 0 0 6px 6px;
}

/* Socials */
.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-secondary);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-base), color var(--transition-base);
}
.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    color: var(--primary);
}
.social-link:active {
    transform: scale(0.93);
}
.social-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 0 16px 24px;
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}
.footer-brand {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}
.footer-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.footer-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive */
@media (min-width: 768px) {
    .container {
        padding: 48px 24px 48px;
    }
    .profile {
        padding: 40px 0 32px;
    }
    .profile-logo img {
        width: 96px;
        height: 96px;
    }
    .profile-name {
        font-size: 1.75rem;
    }
    .link-card {
        padding: 18px 22px;
    }
    .link-card.featured {
        padding: 20px 24px;
    }
}

@media (min-width: 768px) {
    body {
        background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    }
    body[data-theme="dark"] {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
}

@media (min-width: 1024px) {
}

/* Selection color */
::selection {
    background: var(--primary-light);
    color: #fff;
}
