:root {
    --bg-color: #1e1e1e;
    --text-color: #e0e0e0;
    --nav-color: #888;
    --card-bg: #2a2a2a;
    --card-hover: #3b3b3b;
    --count-bg: #444;
    --link-hover: #a0a0a0;
    --accent-color: #ff6666;
    --sub-category-color: #cccccc;
}

* {
  font-weight: 500;
}

body.light-mode {
    --bg-color: #f0f0f0;
    --text-color: #333;
    --nav-color: #666;
    --card-bg: #fff;
    --card-hover: #e6e6e6;
    --count-bg: #f5f5f5;
    --link-hover: #000;
    --accent-color: #cc0000;
    --sub-category-color: #555555;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 75%;
    object-fit: cover;
}

.site-title {
    font-weight: 500;
    font-size: 0.8rem;
}

.navbar-center {
    display: flex;
    gap: 1.25rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover {
    color: var(--link-hover);
}

.navbar-right {
    display: flex;
    gap: 0.5rem;
}

.icon-button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.icon-button:hover {
    color: var(--link-hover);
}

.navbar-right .icon-button i {
    font-size: 1.5rem;
}

/* Main Content */
.content {
    max-width: 600px;
    margin: 4rem auto 2rem;
    padding: 0 1.5rem;
}

.main-heading {
    font-size: 1.5rem;
    font-weight: 500;
}

.name-section {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 500;
}

.name-line {
    font-size: 1.5rem;
    margin: 0.2rem 0;
}

.lang-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--nav-color);
    margin-right: 0.3rem;
}

.name-alt {
    font-weight: 500;
    color: var(--accent-color);
}

.pronouns {
    color: var(--nav-color);
    font-weight: 500;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.bio {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--link-hover);
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.status-card {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    gap: 1rem;
    width: fit-content;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    justify-content: space-between;
}

.status-pic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.6rem;
}

.status-info {
    display: flex;
    flex-direction: column;
    margin-right: 2rem;
}

.status-name {
    font-weight: 500;
    font-size: 1rem;
}

.status-text {
    color: var(--nav-color);
    font-size: 0.75rem;
}

.status-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: transparent;
    border-radius: 50%;
}

.status-icon {
    font-size: 1rem;
    color: var(--text-color);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.8rem;
    transition: color 0.2s ease-in-out;
}

.social-icon:hover {
    color: var(--link-hover);
}

.social-icon i {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

/* Projects Section */
.projects-section {
    max-width: 600px;
    margin: 4rem auto 2rem;
    padding: 0 1.5rem;
}

.projects-section h2, .friends-section h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-category {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    display: block;
}

.project-category:hover {
    background-color: var(--card-hover);
    transform: translateY(-1px);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem;
}

.category-header span {
    font-size: 1rem;
    font-weight: 500;
}

.count {
    color: var(--nav-color);
    background-color: var(--count-bg);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: var(--accent-color);
    transition: transform 0.2s ease-in-out;
}

.project-category.open .dropdown-arrow {
    transform: rotate(180deg);
}

.category-content {
    display: none;
    padding: 0 0.75rem 0.75rem;
}

.project-category.open .category-content {
    display: block;
}

.project-link {
    display: flex;
    align-items: center;
    background-color: var(--count-bg);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.6rem 0.9rem;
    margin: 0.4rem 0;
    font-size: 0.9rem;
    transition: background-color 0.2s ease-in-out;
}

.project-link:hover {
    background-color: var(--card-hover);
}

/* Friends Section */
.friends-section {
    max-width: 600px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
}

.friends-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.friend-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
}

.friend-pfp {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--nav-color);
    object-fit: cover;
    margin-bottom: 0.4rem;
}

/* Sticky Image */
.sticky-image-container {
    position: fixed;
    bottom: -15px;
    right: 100px;
    z-index: 1000;
}

.sticky-image {
    width: 300px;
    height: auto;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1000px;
    margin: 2rem auto;
    border-top: 1px solid #333;
}

.footer-left span {
    color: var(--nav-color);
    font-size: 0.85rem;
}

.footer-right a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 1rem;
}

.footer-right a:hover {
    color: var(--link-hover);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    .navbar {
        padding: 0.75rem;
    }

    .navbar-left {
        gap: 0.2rem;
    }
    
    .site-title {
        font-size: 1.1rem;
    }

    .content {
        padding: 0 1rem;
        margin-top: 2rem;
    }

    .main-heading {
        font-size: 1.75rem;
    }

    .name-line {
        font-size: 1.25rem;
    }

    .projects-section {
        padding: 0 1rem;
    }

    .social-links {
        justify-content: space-around;
        gap: 1rem;
    }

    .friends-section {
        padding: 0 1rem;
    }

    .friends-list {
        justify-content: center;
    }

    .sticky-image-container {
        display: none;
    }

    footer {
        flex-direction: column;
        text-align: center;
        margin-top: 2rem;
        padding: 0.75rem;
    }

    .footer-right {
        margin-top: 0.75rem;
    }

    .footer-right a {
        margin: 0 0.5rem;
    }
}