
#main-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto; /* Let rows size automatically */
    gap: 20px;
    padding: 20px;
    width: 80%;
    height: 600px;
    margin: 0 auto; /* Center horizontally */
    max-width: 1100px;
}

/* Define color themes */
:root {
    --bg-color: #f0f0f0;
    --window-bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #e91e63; /* Pink */
    --navbar-bg-color: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.15);
    --title-bar-color: #eeeeee;
}

[data-theme='dark'] {
    --bg-color: #121212;
    --window-bg-color: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-color: #9c27b0; /* Purple */
    --navbar-bg-color: rgba(30, 30, 30, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --title-bar-color: #2a2a2a;
}

/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding-top: 80px; /* Space for navbar */
    transition: background-color 0.3s, color 0.3s;
    overflow: hidden; /* Prevent body scrollbars */
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background-color: var(--navbar-bg-color);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 8px 15px;
    box-shadow: 0 4px 20px var(--shadow-color);
    z-index: 1000;
}

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    background-color: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.nav-button:hover, .nav-button.active {
    background-color: var(--accent-color);
    color: white;
}

#theme-switcher {
    font-size: 1.2rem;
}
#theme-switcher .material-icons-outlined {
    font-size: 20px;
}

.title-bar {
    background-color: var(--title-bar-color);
    padding: 8px 12px;
    font-weight: 500;
    cursor: move;
    user-select: none;
}
/* Responsive Navbar Styles */
.mobile-menu {
    display: none; /* Hidden by default */
    position: relative;
}
.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    top: 50px;
    background-color: var(--window-bg-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow-color);
    overflow: hidden;
    width: 200px;
}
.dropdown-menu.show {
    display: block;
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
}
.dropdown-menu a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Media Query for mobile */
@media (max-width: 768px) {
    body {
        overflow: auto; /* Allow scrolling on mobile */
    }
    .nav-center, .contact-button {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    #main-content {
        display: block; /* Change from grid to block for simple stacking */
        height: auto;
    }
    .panel {
        margin-bottom: 20px;
    }
}

.panel {
    background-color: var(--window-bg-color);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: background-color 0.3s;
}

.profile-panel {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.description-panel {
    grid-column: span 2;
}

.skills-panel {
    grid-column: span 2;
}

.pfp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--accent-color);
}

.profile-panel h2 {
    margin: 0;
    font-size: 1.5rem;
}

.pronouns {
    color: var(--accent-color);
    font-weight: 500;
    margin: 5px 0 15px 0;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.socials a:hover {
    color: var(--accent-color);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
}

.skills-grid i {
    color: var(--text-color);
    transition: color 0.2s;
}

.skills-grid i:hover {
    color: var(--accent-color);
}
