@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
body {
    margin: 0;
    font-family: 'Courier New', monospace;
    background: #1e1e1e;
    color: #fff;
    display: flex;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
}
.sidebar {
    width: 250px;
    background: #282828;
    padding: 25px 15px;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.4);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.header {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: rgb(6, 235, 6);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgb(6, 235, 6), transparent);
}

.header span {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.header span:first-child:hover {
    transform: scale(1.1) rotate(-3deg);
    text-shadow: 0 0 10px rgba(6, 235, 6, 0.7);
}

.header span:last-child:hover {
    transform: scale(1.3);
}

.projects h3 {
    color: #aaa;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    text-align: center;
    margin: 20px 0;
    letter-spacing: 1px;
}

.project-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 8px;
    background: rgba(45, 45, 45, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.project-item:hover {
    background: #383838;
    transform: translateX(8px);
    border-left: 3px solid rgb(6, 235, 6);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-item img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    border-radius: 6px;
    border: 2px solid #444;
    transition: all 0.3s ease;
    object-fit: cover;
}

.project-item:hover img {
    transform: rotate(5deg) scale(1.1);
    border-color: rgb(6, 235, 6);
    filter: brightness(1.1);
}

.project-item a {
    color: #ddd;
    font-family: "Oswald", sans-serif;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.project-item:hover a {
    color: rgb(6, 235, 6);
    letter-spacing: 0.5px;
}


.retro-computer {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.computer {
    width: 700px;
    height: 455px;
    background: url('Assets/computer.webp') no-repeat center;
    background-size: cover;
    position: relative;
}

.computer-screen {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 32px;
    left: 162px;
    width: 360px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    transition: opacity 0.5s ease-in-out;
}

.computer-screen.on {
    opacity: 1;
    pointer-events: auto;
}

.buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.buttons a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    display: block;
    margin: 10px 0;
    padding: 5px 10px;
    text-align: center;
    position: relative;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    white-space: nowrap;
}

.buttons a.selected,
.buttons a:hover {
    background-color: #444;
    color: rgb(6, 235, 6);
    border-radius: 5px;
    transform: scale(1.05);
}

.buttons a:hover::before,
.buttons a.selected::before {
    content: '�7�2';
    position: absolute;
    left: -25px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s, transform 0.3s;
    color: rgb(6, 235, 6);
}

.buttons a::before {
    content: '';
    position: absolute;
    left: -40px;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.3s, transform 0.3s;
}

.power-button {
    position: absolute;
    bottom: 150px;
    right: 206px;
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background-color: red;
    cursor: pointer;
    box-shadow: 0 0 5px red;
    transition: background-color 0.3s, box-shadow 0.3s;
    z-index: 20;
}

.power-button.on {
    background-color: green;
    box-shadow: 0 0 5px green;
}
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 15px;
    }
    
    .retro-computer {
        padding: 20px;
    }
}