:root {
    --bg-color: #ffffff;
    --icon-color: #d4b483;
    --panel-bg: #f9f1e8;
    /* New background color */
    --text-color: #7a1127;
    /* New text color */
    --transition-speed: 0.6s;
    /* Slower, more elegant slide */
    --grid-item-size: 150px;
}

/* ... existing body/grid styles ... */

.side-panel {
    /* ... existing positioning ... */
    background: var(--panel-bg);
    /* Remove blur since we have a solid color now, or keep it if opaque? Reference looks solid. */
    backdrop-filter: none;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    /* ... */
}



.panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    overflow-y: auto;
    /* Allow scrolling if content is tall */
    padding-top: 40px;
}

.logo-container {
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.panel-logo {
    width: 180px;
    /* Adjust based on logo appearance */
    height: auto;
}

.text-content {
    max-width: 90%;
}

.panel-content p {
    color: var(--text-color);
    line-height: 1.8;
    /* Relaxed leading for elegance */
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 300;
    /* "Pretty thin" */
    font-family: 'Poppins', sans-serif;
}

.panel-content a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--text-color);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    overflow: hidden;
    /* Prevent scrolling, grid fills viewport */
    height: 100vh;
    width: 100vw;
}

.grid-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.grid-row {
    display: flex;
    width: 120%;
    /* Extra width to prevent gap on right due to offset */
    flex-shrink: 0;
    height: var(--grid-item-size);
}

.grid-row.offset {
    margin-left: -75px;
    /* Half of 150px grid item size */
    /* Shift left to pull content off-screen, creating a 'cut-off' look */
}

.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--grid-item-size);
    height: var(--grid-item-size);
    flex-shrink: 0;
    opacity: 1;
    transition: transform 0.3s ease;
}

.grid-item img {
    width: 60%;
    /* Adjust size of icon within cell */
    height: auto;
    object-fit: contain;
    pointer-events: none;
    /* Let clicks pass through if needed, but we click the div */
    opacity: 0.8;
}

/* Specific styling for the clickable item */
.grid-item.clickable {
    cursor: pointer;
    z-index: 10;
    position: relative;
    /* Ensure hint is positioned relative to this */
}

.explore-hint {
    position: absolute;
    bottom: 2px;
    /* Position below the icon (icon is centered) */
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 3s ease, transform 3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.explore-hint.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.grid-item.clickable img {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(212, 180, 131, 0.5));
    animation: pulse 3s infinite ease-in-out;
}

.grid-item.clickable:hover img {
    transform: scale(1.1);
    animation: none;
    /* Pause pulse on hover interaction */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(212, 180, 131, 0.5));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 15px rgba(212, 180, 131, 0.8));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(212, 180, 131, 0.5));
    }
}

/* Side Panel */
.side-panel {
    position: fixed;
    top: 0;
    right: -400px;
    /* Hidden off-screen */
    width: 400px;
    height: 100%;
    background: var(--panel-bg);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: right var(--transition-speed) cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 100;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.side-panel.open {
    right: 0;
}

.close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    margin-bottom: 20px;
}



@media (max-width: 500px) {
    .side-panel {
        width: 100%;
        right: -100%;
    }
}

.site-footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 50;
    /* Above grid, below panel (panel z-index is 100) */
    pointer-events: none;
    /* Let clicks pass through to grid behind */
}

.site-footer p {
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 1px;
}