/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #f0f0f0;
    overflow: hidden;
    position: relative;
    height: 100vh;
    width: 100vw;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Canvas gradient overlay */
body::after {
    display: none;
}

/* Sidebar Menu */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    transform: translateX(-100%); /* Completely hidden */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.sidebar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari/Opera */
}

.sidebar.open {
    transform: translateX(0);
}

.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    transform: scale(1.2);
}

.menu-content {
    padding: 70px 20px 20px;
}

h2 {
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
}

.effects-list {
    list-style-type: none;
}

.effects-list li {
    padding: 10px 15px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
}

.effects-list li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.effects-list li.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Sliders */
.sliders {
    margin-top: 30px;
}

.slider-container {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="range"] {
    width: 100%;
    background: #222;
    height: 8px;
    border-radius: 4px;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

input[type="color"] {
    width: 100%;
    height: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* Sections */
.section {
    margin-top: 30px;
}

.section p {
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Content Area */
.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding: 2rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 204, 0.5) rgba(0, 0, 0, 0.2);
}

.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 204, 0.5);
    border-radius: 4px;
}

/* Site Title */
.site-title {
    font-size: 4.5vw;
    letter-spacing: 0.2vw;
    margin-bottom: 4vh;
    font-weight: 400;
    font-family: 'Space Mono', monospace;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    text-transform: lowercase;
    display: flex;
    justify-content: center;
    position: relative;
}

.site-title::before {
    display: none;
}

.site-title span {
    display: inline-block;
    transition: opacity 0.5s ease, transform 0.5s ease, text-shadow 0.3s ease;
}

.site-title span:hover {
    transform: translateY(-3px);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.9);
}

/* Make the dot slightly smaller */
.site-title span:nth-child(5) {
    font-size: 0.9em;
    margin-top: 0.1em;
}

/* Logo/Name */
.name {
    font-size: 4.5vw;
    letter-spacing: 0.2vw;
    margin-bottom: 4vh;
    position: relative;
    font-weight: 200;
    font-family: 'Space Mono', monospace;
    background: linear-gradient(90deg, #00ffcc, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

/* Project Grid Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.8rem;
    max-width: 850px;
    width: 100%;
    margin-top: 2rem;
}

.project-tile {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-decoration: none;
    color: #f0f0f0;
    font-size: 1.8rem;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    outline: none;
}

.project-number {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.2rem;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 3;
    text-align: center;
}

.project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #00ffcc;
}

.project-info p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-family: 'Inter', sans-serif;
}

.tech-tags {
    font-size: 0.75rem;
    opacity: 0.7;
    font-family: 'Inter', sans-serif;
}

.project-tile:hover, .project-tile:focus {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border-color: #00ffcc;
    z-index: 10;
}

.project-tile:hover ~ .project-tile {
    opacity: 0.7;
}

.project-tile:hover .project-number, .project-tile:focus .project-number {
    opacity: 0;
}

.project-tile:hover .project-info, .project-tile:focus .project-info {
    opacity: 1;
    transform: translateY(0);
}

.project-tile.empty {
    opacity: 0.4;
    cursor: default;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
}

.coming-soon {
    position: absolute;
    font-size: 0.7rem;
    bottom: 3rem;
    opacity: 0.5;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.project-tile.empty:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.4;
}

.project-tile.empty:hover ~ .project-tile {
    opacity: 1;
}

/* Animations for tile clicks */
.project-tile:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Keyboard Shortcuts */
.keyboard-shortcuts {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-align: center;
    z-index: 50;
    pointer-events: none;
    text-shadow: 0 0 5px #000, 0 0 5px #000, 0 0 5px #000;
}

/* Project list styles */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 450px;
    width: 100%;
    margin-top: 2rem;
}

.project-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    padding-left: 2.5rem;
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    text-decoration: none;
    color: #f0f0f0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid transparent;
    position: relative;
}

.project-item::before {
    content: '';
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.project-item:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ffff'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E");
}

.project-item:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ffff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.project-item:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ffff'%3E%3Cpath d='M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14z'/%3E%3Cpath d='M5 10h14v2H5z'/%3E%3C/svg%3E");
}

.project-item:nth-child(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ffff'%3E%3Cpath d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E");
}

.project-item:nth-child(5)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ffff'%3E%3Cpath d='M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z'/%3E%3C/svg%3E");
}

.project-item:nth-child(6)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ffff'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z'/%3E%3C/svg%3E");
}

.project-item:nth-child(7)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ffff'%3E%3Cpath d='M19 3H5C3.9 3 3 3.9 3 5v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14h-2V9h-2V7h4v10z'/%3E%3C/svg%3E");
}

.project-item.coming-soon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999999'%3E%3Cpath d='M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3C/svg%3E");
}

.project-item h3 {
    margin: 0;
    font-size: 1rem;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.2rem;
}

.tech-tags {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.project-item:hover {
    transform: translateY(-2px);
    background: rgba(30, 30, 30, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.5);
}

.project-item.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.project-item.coming-soon:hover {
    transform: none;
    background: rgba(10, 10, 10, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid transparent;
}

/* Animation for project items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-item {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

/* Stagger the animations */
.project-item:nth-child(1) { animation-delay: 0.7s; }
.project-item:nth-child(2) { animation-delay: 0.8s; }
.project-item:nth-child(3) { animation-delay: 0.9s; }
.project-item:nth-child(4) { animation-delay: 1.0s; }
.project-item:nth-child(5) { animation-delay: 1.1s; }
.project-item:nth-child(6) { animation-delay: 1.2s; }
.project-item:nth-child(7) { animation-delay: 1.3s; }
.project-item:nth-child(8) { animation-delay: 1.4s; }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show on mobile */
    }
    
    .keyboard-shortcuts {
        display: none; /* Hide keyboard shortcuts on mobile */
    }
    
    .sidebar {
        width: 250px;
    }
    
    .name {
        font-size: 8vw;
    }
    
    .site-title {
        font-size: 8vw;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.2rem;
    }
    
    .project-tile {
        height: 140px;
        font-size: 1.5rem;
    }
    
    .project-info h3 {
        font-size: 0.9rem;
    }
    
    .project-info p {
        font-size: 0.75rem;
    }
    
    .projects-list {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-tile {
        height: 120px;
        font-size: 1.3rem;
    }
    
    .project-info {
        padding: 0.8rem;
    }
    
    .project-info h3 {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .project-info p {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .tech-tags {
        font-size: 0.65rem;
    }
}