:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #f4f4f4;
    --card-bg: #2d2d2d;
}

body {
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    transition: background-color 0.3s;
}

h1 {
    color: var(--text-color);
    margin-bottom: 40px;
}

#contact-links {
    width: 100%;
    max-width: 450px;
}

ul { list-style: none; padding: 0; width: 100%; }

li { margin-bottom: 20px; }

a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 25px;
    background-color: var(--card-bg); /* Changed from #fff to variable */
    color: var(--text-color);       /* Changed from #333 to variable */
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(150, 150, 150, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
}

a:hover {
    transform: translateY(-4px);
    color: #fff; /* White text on hover for all brand colors */
}

/* Specific Hover Colors remain the same */
li:nth-child(1) a:hover { background-color: #24292e; }
li:nth-child(2) a:hover { background-color: #0077b5; }
li:nth-child(3) a:hover { background-color: #43e660; color: #1e1e1e; }
li:nth-child(4) a:hover { background-color: #3e54a3; }