body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: #070707;
    font-family: 'Arial', sans-serif;
    
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
background-color: #080214;
    /* Fondo oscuro */
    color: #ffffff;
    /* Texto claro */
    padding: 20px 10%;
    z-index: 1000;
}

.logo {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 20px;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
}

.nav-links li {
    padding: 0px 20px;
}

.nav-links a {
    transition: color 0.3s ease-out;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 16px;
}

.nav-links a:hover {
    color: #c0b283;
    /* Color de acento */
}

.burger {
    display: none;
}


@media screen and (max-width: 768px) {
    .navbar {
        padding: 20px;
        /* Valor fijo para evitar desbordamiento */
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background: linear-gradient(135deg, #0A0F0D 0%, #003973 50%, #007BFF 100%);
        flex-direction: column;
        align-items: center;
        width: 100%;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 30px;
        /* Espacio para el navbar */
    }

    .nav-links li {
        padding: 5px 0;
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
        z-index: 1001;
        cursor: pointer;
    }
}

/* Base del burger */
.burger div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    /* Color inicial del burger */
    margin: 5px;
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Estilos cuando el navbar está activo (burger en forma de 'X') */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: #c0b283;
    /* Color de la 'X' */
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: #c0b283;
    /* Color de la 'X' */
}

.container {
    display: flex;
}
/* Estilos para el sidebar */
.sidebar-container {
    position: fixed;
    top: 5.5rem;
    /* Ajusta según sea necesario */
    left: 0;
    width: 200px;
    height: 100vh;
  background-color: #070707;
    /* Subtle gradient */
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: -;
}

.sidebar-container h2 {
    color: #ffffff;
    margin-bottom: 5rem;
    margin-top: 5rem;
   
    /* Ajusta según sea necesario */
}

.filter-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    border: none;
    text-align: center;
    cursor: pointer;
    color: #333;
    /* Darker text color */
    font-weight: bold;
    /* Slightly bolder font weight */
}

.filter-button:hover {
    background-color: #e5e5e5;
    /* Lighter shade on hover 1 */
}

.filter-button:hover {
    background-color: #dcdcdc;
    /* Slightly different shade on hover 2 */
}

.filter-button.active {
    border: 2px solid #fff;
    /* White border for active state */
}

/* Add styling for focus state (ensure clear visual indicator when using keyboard) */
.filter-button:focus {
    outline: 2px solid #333;
    /* Example focus state with outline */
}
.projects-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
    margin-left: 14rem;
    padding: 20px;
}

.project-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 15px;
    /* Añadido padding */
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item img {
    width: 100%;
    height: auto;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: transform 0.3s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-item-content {
    padding: 20px;
}

.project-item h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}

.project-item p {
    margin: 0;
}

.search-bar {
    width: 80%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    margin-bottom: 2rem;
}

.search-bar::placeholder {
    color: #999;
}

 .close-button {
     display: none;
 }

.search-bar:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .projects-section {
        grid-template-columns: repeat(2, 1fr);
    }
        @media (max-width: 768px) {
            .projects-section {
                grid-template-columns: repeat(1, 1fr);
                /* Cambiar a una sola columna */
                margin-left: 0;
                margin-top: 4rem;
                overflow-y: scroll;
                /* Eliminar el margen izquierdo */
            }
            
        }
           .sidebar-container {
               width: 200px;
               height: 100vh;
               background-color: #020117;
               padding: 20px;
               box-sizing: border-box;
               overflow-y: auto;
               position: fixed;
               top: 0;
               left: -200px;
               /* Oculta el sidebar al inicio */
               transition: left 0.3s ease;
               /* Agrega una transición suave */}    
    
}


@media screen and (max-width: 768px) {
    .close-button {
            background: none;
            border: none;
            display: block;
            color: #eee8e8;
            /* Color del icono */
            font-size: 20px;
            cursor: pointer;
            transition: color 0.3s ease;
        }
    
        .close-button:hover {
            color: #000;
            /* Color del icono al pasar el mouse */
        }
    
        .hamburger-icon {
            color: #f5f5f6;
            margin-top: 1rem;
            ;
            margin-left: 2rem;
            /* Color del ícono */
            font-size: 24px;
            /* Tamaño del ícono */
            cursor: pointer;
            /* Cambia el cursor al pasar por encima */
        }
    
        /* Estilos adicionales al pasar el mouse */
        .hamburger-icon:hover {
            color: #666;
            /* Cambia el color al pasar el mouse */
        }
    
        h1 {
            color: #ffffff;
            text-align: center;
            margin-top: 4rem;
            margin-bottom: -3rem;
        }
    
}


