/* style.css (Updated for Ethereal Glassmorphism Theme & Mobile Responsiveness) */

/* -- CSS Variables for easy theme management -- */
:root {
    --primary-bg: #100a1f;
    --panel-bg: rgba(26, 16, 44, 0.75);
    --text-color: #e0d8ff;
    --header-font: 'Orbitron', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --accent-glow: #00ffff; /* A vibrant cyan for the accent */
    --border-color: rgba(0, 255, 255, 0.3);
}

/* -- General Body & Font Styling -- */
body {
    margin: 0;
    font-family: var(--body-font); 
    color: var(--text-color);
    background-color: var(--primary-bg);
    overflow: hidden;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
    z-index: -1;
}

/* -- Redesigned Header -- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    background-color: rgba(16, 10, 31, 0.5); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}
.header-left { justify-content: flex-start; }
.header-right { justify-content: flex-end; }
.header-center { flex: 0 1 auto; }
#title-image { max-height: 200px; width: auto; }

.header-button {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
    white-space: nowrap;
}

.header-button:hover {
    background-color: rgba(0, 255, 255, 0.1);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* -- Special CTA Button Style -- */
#request-model-button {
    background-color: var(--accent-glow);
    color: #000;
    border-color: var(--accent-glow);
    font-weight: bold;
    animation: pulse 2s infinite;
}

#request-model-button:hover {
    color: #000;
    box-shadow: 0 0 25px var(--accent-glow);
}

@keyframes pulse {
    0% { box-shadow: 0 0 5px var(--accent-glow); }
    50% { box-shadow: 0 0 20px var(--accent-glow); }
    100% { box-shadow: 0 0 5px var(--accent-glow); }
}

/* -- Reviews Banner -- */
.reviews-banner {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1;
    overflow: hidden;
    white-space: nowrap;
    padding: 5px 0;
}
.reviews-track { 
    display: inline-block; 
    animation: scroll-reviews 80s linear infinite; 
}
.review-item { display: inline-block; margin: 0 40px; color: #ddd; font-size: 1.35em; }
.review-item .stars { color: #ffd700; margin-right: 10px; }
.review-item .author { font-style: italic; color: #aaa; margin-left: 10px; }
@keyframes scroll-reviews { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }
.reviews-banner:hover .reviews-track { animation-play-state: paused; }

/* -- Redesigned Pop-up Panels (Glassmorphism) -- */
.popup-panel {
    position: fixed;
    top: 120px;
    bottom: 30px;
    right: 30px;
    transform: translateX(calc(100% + 120px));
    width: clamp(450px, 45vw, 600px);
    background-color: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1003;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}
.popup-panel.visible { transform: translateX(0); }

#popup-content, #settings-content, #admin-content, #shop-content, #services-content, #review-panel-content {
    flex-grow: 1;
    overflow-y: auto;
    color: var(--text-color);
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#popup-content::-webkit-scrollbar, #settings-content::-webkit-scrollbar, #admin-content::-webkit-scrollbar, #shop-content::-webkit-scrollbar, #services-content::-webkit-scrollbar, #review-panel-content::-webkit-scrollbar { display: none; }

/* Panel Text Styling */
.popup-panel h2, .popup-panel h3, .popup-panel p, .popup-panel li { color: var(--text-color); }
.popup-panel h2 {
    font-family: var(--header-font);
    color: white;
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.popup-panel h3 {
    font-family: var(--header-font);
    color: var(--accent-glow);
    margin-top: 20px;
    margin-bottom: 10px;
}
.popup-panel a { color: var(--accent-glow); }
.popup-panel p { line-height: 1.6; }

/* About Me Section Styles */
.about-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}
.about-section.reverse {
    flex-direction: row-reverse;
}
.about-text {
    flex: 3;
}
.about-image {
    flex: 2;
    text-align: center;
}
.about-image img {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}


/* Close Buttons */
#close-popup, #close-settings, #close-admin-panel, #close-shop, #close-services, #close-review-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    padding: 0;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    transition: background-color 0.2s, box-shadow 0.2s;
}
#close-popup:hover, #close-settings:hover, #close-admin-panel:hover, #close-shop:hover, #close-services:hover, #close-review-panel:hover {
    background-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 10px red;
}

/* -- Form Styling -- */
.request-form label {
    display: block;
    margin-top: 15px;
    color: var(--text-color);
    font-weight: 600;
}
.request-form input, .request-form textarea, .request-form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.3);
    color: var(--text-color);
    box-sizing: border-box;
    font-family: var(--body-font);
}
.request-form button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    border-radius: 5px;
    border: none;
    background-color: var(--accent-glow);
    color: #000;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}
.request-form button:hover { box-shadow: 0 0 15px var(--accent-glow); }
.request-form button:disabled { background-color: #555; cursor: not-allowed; }
#form-message { margin-top: 15px; text-align: center; color: white; }
.form-response-note { font-size: 0.9em; color: #aaa; text-align: center; margin-top: 15px; }

/* -- Redesigned Golden Path Navigation -- */
#golden-path-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
}
#golden-path-nav .nav-button {
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    width: 200px;
    height: auto;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    text-align: left;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
#golden-path-nav .nav-button:hover {
    background-color: rgba(0, 255, 255, 0.1);
    transform: translateX(10px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}
#nav-request-model {
    display: none;
}

/* -- Tutorial and Bottom-Left UI -- */
#tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000; 
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
#tutorial-overlay.modal-hidden {
    opacity: 0;
}
#tutorial-highlighter {
    position: absolute;
    border: 2px solid var(--accent-glow);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: all 0.5s ease-in-out;
    opacity: 0;
    z-index: 1001;
}
#tutorial-highlighter.visible {
    opacity: 1;
}
#tutorial-step-text {
    position: absolute;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    max-width: 300px;
    box-shadow: 0 0 25px var(--accent-glow);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    z-index: 1002;
}
#tutorial-step-text.visible {
    opacity: 1;
}

.bottom-left-ui {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.bottom-button-group {
    display: flex;
    gap: 10px;
}
#tutorial-button {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}
#tutorial-button:hover {
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* UPDATED: Skip tutorial button position */
#end-tour-button {
    position: fixed;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: rgba(255, 0, 0, 0.5);
    color: white;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    pointer-events: all;
    z-index: 1003;
}
#end-tour-button:hover {
    background-color: rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 15px red;
}

.ui-button {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.ui-button:hover {
    transform: scale(1.1);
    background-color: rgba(20, 20, 20, 0.7);
}
#settings-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}
#settings-button:hover {
    transform: scale(1.1) rotate(90deg);
}

/* -- Other UI Elements -- */
#loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; display: flex; justify-content: center; align-items: center; z-index: 1000; cursor: pointer; transition: opacity 0.5s ease-out; }
#loading-overlay.hidden { opacity: 0; pointer-events: none; }
#loading-container { width: 80%; max-width: 400px; text-align: center; }
#loading-bar-container { width: 100%; height: 4px; background-color: #333; border-radius: 2px; overflow: hidden; transition: opacity 0.5s ease-out, height 0.5s ease-out 0.5s; }
#loading-bar { width: 0%; height: 100%; background-color: #fff; border-radius: 2px; transition: width 0.3s ease; }
#loading-bar.finished { background-color: var(--accent-glow); }
#loading-text { margin-top: 20px; color: #fff; font-size: 1.5em; font-family: var(--body-font); min-height: 50px; transition: margin-top 0.5s ease-out 0.5s; }
#loading-text span { opacity: 0; display: inline-block; margin: 0 0.2em; }
#loading-footer { position: absolute; bottom: 30px; width: 100%; text-align: center; color: #888; font-family: sans-serif; font-size: 0.9em; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; } }
.fade-in { animation: fadeIn 1s forwards; }
.fade-in-d1 { animation: fadeIn 1s forwards 0.7s; }
.fade-in-d2 { animation: fadeIn 1s forwards 1.4s; }
.fade-in-d3 { animation: fadeIn 1s forwards 2.1s; }

#instruction-text { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%); color: white; background-color: rgba(0, 0, 0, 0.5); padding: 10px 20px; border-radius: 20px; font-family: sans-serif; font-size: 1em; z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.5s ease-in-out; }
#instruction-text.visible { opacity: 1; }

#social-links-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; z-index: 100; }
.social-link { width: 42px; height: 42px; background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 15px; cursor: pointer; transition: transform 0.3s, background-color 0.3s; }
.social-link:hover { background-color: rgba(255, 255, 255, 0.2); transform: scale(1.33); }

#analog-clock-container { display: flex; align-items: center; gap: 15px; color: #fff; }
.clock-face { width: 100px; height: 100px; border: 3px solid #fff; border-radius: 50%; position: relative; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); box-shadow: 0 0 15px rgba(0,0,0,0.3); }
.clock-face::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 11; }
.hand { width: 50%; position: absolute; top: 50%; right: 50%; transform-origin: 100% 50%; }
#hour-hand { width: 35%; height: 4px; background: #fff; }
#minute-hand { width: 45%; height: 3px; background: #fff; }
#second-hand { width: 48%; height: 1px; background: #ff4444; }
#day-night-icon { width: 40px; height: 40px; font-size: 36px; text-align: center; line-height: 40px; }

/* --- PORTFOLIO MODAL & GRID --- */
/* This is the new, combined rule block that handles both desktop and mobile */

#portfolio-modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(10px); 
    z-index: 1004; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: opacity 0.3s ease; 
}

/* UPDATED DESKTOP MODAL STYLES (to support new JS structure) */
.modal-content {
    background-color: #1a102c;
    padding: 25px;
    border-radius: 10px;
    width: 80vw;
    height: 80vh;
    max-width: 1400px;
    display: grid;
    /* Define grid areas for new structure */
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto; /* Title row, content row, button row */
    grid-template-areas:
        "title title"
        "info embed"
        "store store";
    gap: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    z-index: 10; /* Ensure it's above grid items */
}

/* Assign grid areas to the new elements */
.modal-content > .modal-title { /* Use > to select direct child */
    grid-area: title;
    margin-top: 0;
    color: var(--accent-glow);
    font-family: var(--header-font);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-content > .modal-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.modal-content > .modal-info::-webkit-scrollbar { display: none; }

.modal-content > .modal-embed {
    grid-area: embed;
    background-color: #111;
    border-radius: 5px;
    overflow: hidden;
    /* Ensures iframe fills the embed container */
    display: flex;
    min-height: 200px; /* Prevents collapse */
}

/* This new rule is CRITICAL */
.modal-content > .modal-embed > iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Style the store button to fit the grid */
.modal-content > .buy-button {
    grid-area: store;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: var(--accent-glow);
    color: #000;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: box-shadow 0.3s;
}
.modal-content > .buy-button:hover {
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Original styles for .modal-info children (now direct) */
.modal-info .tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.modal-info .tag {
    background-color: #333;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
}
.modal-info .modal-images {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.modal-info .modal-extra-image {
    width: 100%;
    border-radius: 5px;
}
/* End of moved .modal-info children styles */


/* Portfolio Grid (the thumbnails) */
.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
    gap: 15px; 
}
.portfolio-item { 
    aspect-ratio: 1 / 1; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: transform 0.3s ease; 
    position: relative; 
}
.portfolio-item:hover { 
    transform: scale(1.15); 
    z-index: 2; 
}
.portfolio-item canvas { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 5px; 
}
/* UPDATED: Increased z-index to appear over portfolio modal */
.portfolio-nav-arrow { 
    position: fixed; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 3em; 
    color: white; 
    background-color: rgba(0, 0, 0, 0.3); 
    border-radius: 50%; 
    width: 60px; 
    height: 60px; 
    display: none; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    z-index: 1005; 
    transition: background-color 0.3s; 
    user-select: none; 
}
#prev-item { left: 20px; }
#next-item { right: 20px; }
.portfolio-nav-arrow:hover { background-color: rgba(0, 0, 0, 0.6); }

/* Guided Tour Prompt */
#guided-tour-prompt { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); z-index: 1001; display: flex; justify-content: center; align-items: center; transition: opacity 0.3s ease; }
.guided-tour-content { background-color: var(--panel-bg); border: 1px solid var(--border-color); padding: 30px 40px; border-radius: 15px; width: 90%; max-width: 500px; text-align: center; color: var(--text-color); box-shadow: 0 0 30px rgba(0, 255, 255, 0.2); }
.guided-tour-content h2 { font-family: var(--header-font); color: white; margin-top: 0; }
.guided-tour-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 25px; }
.guided-tour-buttons button { padding: 10px 20px; border-radius: 8px; border: 1px solid var(--border-color); font-family: var(--body-font); font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.3s, box-shadow 0.3s; }
#start-tour-button { background-color: var(--accent-glow); color: #000; }
#start-tour-button:hover { box-shadow: 0 0 15px var(--accent-glow); }
#skip-tour-button { background-color: transparent; color: var(--text-color); }
#skip-tour-button:hover { background-color: rgba(0, 255, 255, 0.1); }

.modal-hidden { opacity: 0; pointer-events: none; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* --- NEW Mobile Portfolio Modal Layout --- */
    #portfolio-modal {
        /* Ensure the modal itself is scrollable */
        overflow-y: auto;
        /* Fix for iOS momentum scrolling */
        -webkit-overflow-scrolling: touch; 
    }

    #portfolio-modal .modal-content {
        display: flex; /* Use Flexbox */
        flex-direction: column; /* Stack vertically */
        height: auto; /* Let content define height */
        min-height: 100%;
        width: 100%;
        overflow-y: visible; /* Let the parent scroll */
        padding: 15px;
        padding-top: 50px; /* Space for the close button */
        box-sizing: border-box; /* Include padding in width/height */
        gap: 0; /* Reset gap */
        grid-template-areas: none; /* Reset grid */
        grid-template-columns: none;
        grid-template-rows: none;
        border: none; /* Remove border for mobile */
        border-radius: 0; /* Full screen */
    }

    .modal-content > .modal-title {
        grid-area: unset; /* Reset grid */
        order: 1; /* 1. Title */
        text-align: center;
        padding-bottom: 10px;
        font-size: 1.5em;
        border-bottom: none;
    }

    .modal-content > .modal-embed {
        grid-area: unset; /* Reset grid */
        order: 2; /* 2. Embed */
        width: 100%;
        
        /* This achieves the "almost square" and "peek" goals */
        height: 80vw; /* "Almost square" aspect ratio */
        max-height: 450px; /* Cap it on larger phones */
        min-height: 300px; /* Ensure it's not too small */
        
        flex-shrink: 0; /* Prevent embed from shrinking */
    }

    .modal-content > .modal-info {
        grid-area: unset; /* Reset grid */
        order: 3; /* 3. Info */
        overflow-y: visible; /* Let the parent scroll */
        padding-top: 15px; /* Space from embed */
    }
    
    .modal-content > .buy-button {
        grid-area: unset; /* Reset grid */
        order: 4; /* 4. Button */
        margin-top: 20px;
        margin-bottom: 20px; /* Add breathing room at the bottom */
    }
    
    #portfolio-modal .modal-close {
        top: 10px; /* Keep it clear of notch/status bar */
        right: 10px;
        width: 35px;
        height: 35px;
        line-height: 35px;
        background-color: rgba(0,0,0,0.5);
        z-index: 100; /* Ensure it's on top */
    }
    /* --- End Mobile Portfolio Modal --- */

    .header-left, .header-right {
        display: none;
    }
    .main-header {
        justify-content: center;
    }
    .popup-panel {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: 90vw;
        height: 75vh;
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
        pointer-events: none;
    }
    .popup-panel.visible {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: all;
    }
    #analog-clock-container {
        display: none;
    }
    #golden-path-nav .nav-button {
        width: 120px;
        padding: 8px 12px;
        font-size: 14px;
    }
    .reviews-banner {
        display: none;
    }
    #social-links-container {
        left: 75%; /* Move to the right */
        gap: 0; /* Bring icons closer */
    }
    #nav-request-model {
        display: block;
        background-color: var(--accent-glow);
        color: #000;
        font-weight: bold;
    }
    #tutorial-step-text {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    /* Mobile-specific button visibility */
    .bottom-button-group #music-toggle-button, .bottom-button-group #hire-me-button {
        display: none;
    }
    #settings-button {
        position: fixed;
        top: 90px;
        right: 15px;
        bottom: auto;
        left: auto;
    }
    
    /* MODIFIED: This rule was causing issues. */
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Use auto-fill */
    }
    .portfolio-item {
        width: 100%; /* Make items fill their grid cell */
        height: auto;
        margin: auto;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
    }
}