/* Define light and dark mode variables */
:root {
    --primary-background: #FFFFFF;
    --primary-header: #F5F5F5;
    --primary-button: #83CD0F;
    --primary-button-alt: #2E86EA;
    --primary-logo: rgb(182, 145, 145);
    --text-primary: #121212;
    --text-hover: #4D4D4D;
    --button-dark: #2d7b0f;
    --button-darker: #235f0c;
    --panel-background: rgba(245, 245, 245, 0.95);
    --max-width: 1440px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-background: #121212;
        --primary-header: #1F1F1F;
        --text-primary: #FFFFFF;
        --text-hover: #c7c7c7;
        --button-dark: #2d7b0f;
        --button-darker: #235f0c;
        --panel-background: rgba(31, 31, 31, 0.95);
    }
}

/* Apply global styles */
body {
    margin: 0;
    color: var(--text-primary);
    background-color: var(--primary-background);
    font-family: "Glegoo", serif;
}

#backgroundScene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -200;
    opacity: 1.0;
}

/* Header and Navigation */
.siteheader {
    position: relative;
    height: 96px;
    background-color: var(--primary-header);
    border-width: 0px;
}

.content-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo, .nav-right {
    flex: 0.7;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    padding-left: 1.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-top: -1px;
}

.store-logo {
    max-width: 65px;
    max-height: 65px;
    width: auto;
    height: auto;
}

.hidden-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-right: 1.5rem;
}

.account-placeholder, .cart-placeholder {
    width: 3.5rem;
    height: 1.5rem;
}

.sections {
    flex: 1.6;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.navigation li {
    height: 100%;
    display: flex;
    align-items: center;
}

.navigation li a {
    font-size: 1.125rem;
    padding: 0 1.75rem;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.navigation li a:hover {
    color: var(--text-hover);
    text-decoration: none;
}

/* About Me Side Panel */
/* About Me Side Panel */
.side-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 33vw;
    margin-right: 16px;
    background-color: var(--panel-background);
    border-radius: 8px;
    padding: 24px;
    font-family: "Glegoo", serif;
    color: var(--text-primary);
    z-index: 100;
}

.projects-panel {
    width: auto !important;
    left: 16px;
    right: 16px;
    top: calc(50% + 48px);
    transform: translateY(-50%) !important;
}

.projects-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.side-panel h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 700;
}

.side-panel p {
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.side-panel a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 16px;
    background-color: var(--button-dark);
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.side-panel a:hover {
    background-color: var(--button-darker);
    color: #FFFFFF;
    text-decoration: none;
}

.side-panel.visible {
    display: block;
    opacity: 1;
}

/* Project Tiles */
.project-tile {
    display: flex !important;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--button-dark);
    color: #FFFFFF !important;
    text-decoration: none;
    padding: 12px !important;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    white-space: normal !important;
    margin-top: 12px !important;
}

.project-tile:hover {
    background-color: var(--button-darker);
    transform: translateX(4px);
}

.project-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
    display: block;
}

.project-description {
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.2;
    display: block;
}

.project-thumbnail {
    width: 120px;
    flex-shrink: 0;
    height: auto;
    border-radius: 4px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info {
    flex: 1;
}
