body {
    font-family: "FiraCode Nerd Font", "Inter", sans-serif;
    background-color: #f7f9fc; /* Lighter, softer background for light mode */
    transition:
        background-color 0.4s ease,
        color 0.4s ease;
}
body.dark {
    background-color: #121212; /* Deeper dark background */
    color: #e0e0e0; /* Softer light text for dark mode */
}
.bg-white {
    transition:
        background-color 0.4s ease,
        box-shadow 0.4s ease;
}
body.dark .bg-white {
    background-color: #1e1e1e; /* Darker card background */
    box-shadow:
        0 15px 25px -5px rgba(0, 0, 0, 0.7),
        0 8px 10px -6px rgba(0, 0, 0, 0.4); /* More pronounced dark shadow */
}
/* Light mode specific text colors for better contrast */
body:not(.dark) .text-gray-800,
body:not(.dark) .text-gray-900 {
    color: #1a1a1a; /* Even darker gray for main headings/text */
}
body:not(.dark) .text-gray-600,
body:not(.dark) .text-gray-700 {
    color: #212121; /* Darker gray for secondary text and project descriptions */
}

/* Dark mode specific text colors (retained from previous version) */
body.dark .text-gray-800,
body.dark .text-gray-900 {
    color: #f0f0f0;
}
body.dark .text-gray-600,
body.dark .text-gray-700 {
    color: #b0b0b0;
}

.bg-gray-50 {
    transition:
        background-color 0.4s ease,
        box-shadow 0.4s ease;
}
body:not(.dark) .bg-gray-50 {
    background-color: #dddddd;
}
body.dark .bg-gray-50 {
    background-color: #2a2a2a; /* Darker project card background */
    box-shadow:
        0 6px 10px -2px rgba(0, 0, 0, 0.5),
        0 3px 5px -1px rgba(0, 0, 0, 0.25);
}
.text-blue-700 {
    transition: color 0.4s ease;
}
body:not(.dark) .text-blue-700 {
    color: #1976d2; /* Stronger blue for light mode headings */
}
body.dark .text-blue-700 {
    color: #81c784; /* A pleasant green for dark mode headings */
}
.text-blue-600 {
    transition: color 0.4s ease;
}
body:not(.dark) .text-blue-600 {
    color: #1565c0; /* Stronger blue for light mode links */
}
body.dark .text-blue-600 {
    color: #64b5f6; /* A softer blue for dark mode links */
}
.border-blue-500 {
    transition: border-color 0.4s ease;
}
body:not(.dark) .border-blue-500 {
    border-color: #1e88e5; /* Stronger blue border for light mode */
}
body.dark .border-blue-500 {
    border-color: #64b5f6; /* Matching border color for dark mode */
}
.profile-img {
    transition:
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}
body:not(.dark) .profile-img {
    border-color: #1e88e5; /* Stronger blue border for light mode profile pic */
}
.dark .profile-img {
    border-color: #81c784; /* Green border for dark mode profile pic */
}
/* Style for the language toggle text */
#languageToggleText {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 9999px; /* Full rounded */
    background-color: #e2e8f0; /* Light gray background */
    color: #2d3748; /* Dark text */
    font-weight: 600;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}
body.dark #languageToggleText {
    background-color: #4a5568; /* Darker background */
    color: #e2e8f0; /* Light text */
}
#languageToggleText:hover {
    background-color: #cbd5e0; /* Lighter hover for light mode */
}
body.dark #languageToggleText:hover {
    background-color: #636b77; /* Darker hover for dark mode */
}

.tech-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    border-radius: 50%;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.tech-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tech-badge .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    white-space: nowrap;
    z-index: 10;
    font-size: 0.875rem;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.tech-badge:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Tooltip arrow for a cleaner look */
.tech-badge .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Update the tech-icon class */
.tech-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: inline-block; /* Essential for transform to work */
    /* Adjust for better centering if needed */
    transform: translateY(2px); /* Small adjustment for vertical alignment */
    transform: translateX(-10%);
}

/* You might need to do the same for the smaller icons */
.tech-badge-small .tech-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-block;
    transform: translateY(1px); /* Small adjustment for vertical alignment */
    transform: translateX(-10%);
}
