:root {
    /* Base Colors - Light Mode */
    --background: #ffffff;
    --foreground: #09090b;
    /* Zinc 950 */
    --card: #ffffff;
    --card-foreground: #09090b;
    --popover: #ffffff;
    --popover-foreground: #09090b;
    --primary: #18181b;
    /* Zinc 900 */
    --primary-foreground: #fafafa;
    /* Zinc 50 */
    --secondary: #f4f4f5;
    /* Zinc 100 */
    --secondary-foreground: #18181b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    /* Zinc 500 */
    --accent: #f4f4f5;
    --accent-foreground: #18181b;
    --destructive: #ef4444;
    --destructive-foreground: #fafafa;
    --border: #e4e4e7;
    /* Zinc 200 */
    --input: #e4e4e7;
    --ring: #18181b;
    --radius: 0.5rem;

    /* Font */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark Mode Variables */
body.dark {
    --background: #09090b;
    /* Zinc 950 */
    --foreground: #fafafa;
    /* Zinc 50 */
    --card: #09090b;
    --card-foreground: #fafafa;
    --popover: #09090b;
    --popover-foreground: #fafafa;
    --primary: #fafafa;
    --primary-foreground: #18181b;
    --secondary: #27272a;
    /* Zinc 800 */
    --secondary-foreground: #fafafa;
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    /* Zinc 400 */
    --accent: #27272a;
    --accent-foreground: #fafafa;
    --destructive: #7f1d1d;
    --destructive-foreground: #fafafa;
    --border: #27272a;
    --input: #27272a;
    --ring: #d4d4d8;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 640px;
    /* Typical mobile/linktree width */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    animation: fadeIn 0.5s ease-out;
}

.avatar-container {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.bio {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    max-width: 400px;
}

/* Links Section */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center text */
    padding: 1rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    border-color: var(--foreground);
    /* Slightly stronger border on hover */
}

.link-card:active {
    transform: translateY(0);
}

/* Icons within links (optional, if we add them) */
.link-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Footer */
.footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--foreground);
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: var(--accent);
}

.theme-icon {
    font-size: 1.2rem;
    display: none;
}

/* Show sun in dark mode (to switch to light) */
body.dark .theme-icon.sun-icon {
    display: block;
}

/* Show moon in light mode (to switch to dark) */
body:not(.dark) .theme-icon.moon-icon {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.link-card {
    animation: fadeIn 0.5s ease-out backwards;
}

/* Stagger animation for links */
.link-card:nth-child(1) {
    animation-delay: 0.1s;
}

.link-card:nth-child(2) {
    animation-delay: 0.15s;
}

.link-card:nth-child(3) {
    animation-delay: 0.2s;
}

.link-card:nth-child(4) {
    animation-delay: 0.25s;
}

.link-card:nth-child(5) {
    animation-delay: 0.3s;
}