:root {
    --primary-color: #0077b5;
    --bg-color: #f8f9fa;
    --text-dark: #2c3e50;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center; /* Centers the text globally */
    margin: 0;
    padding: 20px 15px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 30px 20px;
    box-sizing: border-box;
    text-align: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover; /* Ensures the image doesn't stretch if it's not perfectly square */
    border-radius: 50%; /* Makes the image a perfect circle */
    border: 3px solid var(--primary-color); /* Uses the blue color you defined in :root */
    display: block;
    margin: 0 auto 20px auto; /* Centers the image and adds space below it */
}

h1 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    color: var(--text-dark);
}

.subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 20px 0;
}

.contact-info {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.6;
}
.contact-info a {
    color: #0077b5;
    text-decoration: none;
}
.summary {
    font-size: 0.95rem;
    color: #495057;
    text-align: justify;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #0077b5;
}
h2 {
    font-size: 1.1rem;
    color: #343a40;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}
.btn {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    box-sizing: border-box;
    transition: transform 0.2s, opacity 0.2s;
}
.btn:active {
    transform: scale(0.98);
}
.btn-linkedin {
    background-color: #0077b5;
    color: white;
}
.btn-github {
    background-color: #24292e;
    color: white;
}




/* --- Skills Styling --- */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.skill-tag {
    background-color: #e9ecef;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #ced4da;
    transition: background-color 0.2s;
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- Upgraded Repo Cards --- */
.btn-repo {
    background-color: white; /* Changed from gray to white for a cleaner look */
    color: #24292e;
    border: 1px solid #ced4da;
    text-align: left;
    display: flex;
    flex-direction: column; /* Stacks the name above the description */
    padding: 12px 15px;
}

.btn-repo:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.repo-name {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.repo-desc {
    font-size: 0.85rem;
    color: #495057;
    font-weight: normal;
    line-height: 1.4;
}


.lang-switcher {
    margin-bottom: 20px;
    display: flex;
    justify-content: center; /* Keeps the pill perfectly centered */
}

.lang-switcher button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0; /* Removes any default browser spacing */
}

.lang-switcher button:first-child {
    border-radius: 20px 0 0 20px;
    border-right: none; /* Prevents a double-thick border in the middle */
}

.lang-switcher button:last-child {
    border-radius: 0 20px 20px 0;
}

.lang-switcher button:hover {
    background: var(--primary-color);
    color: white;
}