@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

/* ===== ESTILOS GENERALES ===== */
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%;
}

/* ===== BARRA LATERAL MEJORADA ===== */
.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;
}

/* ===== COMPUTADORA RETRO ===== */
.retro-computer {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.computer {
    width: 700px;
    height: 455px;
    background: url('Assets/computer.png') no-repeat center;
    background-size: cover;
    position: relative;
}

.computer-screen {
    opacity: 0;
    position: absolute;
    top: 32px;
    left: 162px;
    width: 360px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 1.5s ease-in-out;
}

.computer-screen.active {
    opacity: 1;
}

.contact-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-screen h2 {
    font-family: "Oswald", sans-serif;
    color: rgb(6, 235, 6);
    margin-bottom: 30px;
    text-shadow: 0 0 5px rgba(6, 235, 6, 0.5);
    letter-spacing: 2px;
    font-size: 1.5rem;
    text-align: center;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80%;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px;
    background-color: #2a2a2a;
    color: white;
    text-decoration: none;
    font-family: "Oswald", sans-serif;
    font-size: 1rem;
    border: 1px solid #444;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn:hover {
    background-color: #383838;
    border-color: rgb(255, 255, 255);
    color: rgb(255, 255, 255);
}

.contact-btn i {
    width: 25px;
    text-align: center;
    font-size: 1.2rem;
}

/* Colores específicos para hover */
.contact-btn:nth-child(1):hover { background-color: #d44638; } /* Email */
.contact-btn:nth-child(2):hover { background-color: #333; }    /* GitHub */
.contact-btn:nth-child(3):hover { background-color: #ff0cb2; } /* LinkedIn */
.contact-btn:nth-child(4):hover { background-color: #7104ff; } /* Twitter */
.contact-btn:nth-child(5):hover { background-color: #ff3030; } /* Twitter */

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 15px;
    }
    
    .computer {
        transform: scale(0.8);
    }
}