@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

:root {
    /* Dark theme defaults */
    --background-color: #0a0a0a; /* Darker background */
    --text-color: #ffffff;
    --profile-bg-color: #161616; /* Darker profile background */
    --link-bg-color: #252525; /* Darker link background */
    --link-hover-bg-color: #c4f82a; /* Original lime restored */
    --link-hover-text-color: #0a0a0a; /* Darker text for contrast */
    --secondary-text-color: #c4f82a; /* Original lime for secondary text */
}

body.light-theme {
    --background-color: #f0f0f0;
    --text-color: #0a0a0a;
    --profile-bg-color: #ffffff;
    --link-bg-color: #dedede;
    --link-hover-bg-color: #c4f82a; /* Keeping consistent lime */
    --link-hover-text-color: #0a0a0a;
    --secondary-text-color: #2d3436; /* Darker text for light mode */
}

/* Base styles */
body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.profile {
    background-color: var(--profile-bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 30%;
    max-width: 600px;
}

.profile .avatar {
    width: auto;
    max-width: 150px;
    height: auto;
    border-radius: 20%;
    margin-bottom: 20px;
}

.profile h1 {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.profile .location {
    font-weight: 600; /* Even bolder for better visibility */
    margin: 5px 0;
    font-size: 1.1rem;
    color: var(--secondary-text-color);
}

.profile .job-title {
    font-weight: 400;
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
}

.profile ul {
    list-style: none;
    padding: 0;
}

.profile li {
    margin: 10px 0;
}

.profile a {
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--link-bg-color);
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
    width: 50%;
    outline: none;
    position: relative;
}

.profile a:hover,
.profile a:focus {
    background-color: var(--link-hover-bg-color);
    color: var(--link-hover-text-color);
}

.profile a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--link-hover-bg-color);
    background-color: var(--link-hover-bg-color);
    color: var(--link-hover-text-color);
}

.profile a.email-link {
    background-color: var(--link-bg-color);
    color: var(--link-hover-bg-color);
    font-weight: 600;
    margin-top: 30px;
    padding-top: 12px;
    padding-bottom: 12px;
    position: relative;
    border: 1px solid var(--link-hover-bg-color);
}

.profile a.email-link::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 25%;
    width: 50%;
    height: 1px;
    background-color: var(--link-bg-color);
}

.profile a.email-link:hover,
.profile a.email-link:focus {
    background-color: var(--link-hover-bg-color);
    color: var(--link-hover-text-color);
    border-color: transparent;
}

.profile select {
    margin-top: 20px;
    padding: 8px 16px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--link-bg-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4f82a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    position: relative;
}

.profile select:hover {
    background-color: var(--link-hover-bg-color);
    color: var(--link-hover-text-color);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.profile select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--link-hover-bg-color);
}

.profile select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--link-hover-bg-color);
    background-color: var(--link-hover-bg-color);
    color: var(--link-hover-text-color);
}

.profile a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--link-hover-bg-color);
    background-color: var(--link-hover-bg-color);
    color: var(--link-hover-text-color);
}

.profile select:focus-visible {
    outline: 2px solid var(--link-hover-bg-color);
    outline-offset: 2px;
    box-shadow: none;
}

/* Skip default focus styles when using mouse */
.profile a:focus:not(:focus-visible),
.profile select:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.profile select option {
    background-color: var(--profile-bg-color);
    color: var(--text-color);
    padding: 8px;
}