/* General settings */
body {
    background-color: #000; /* Fondo sólido */
    margin: 0;
    padding: 0; /* Sin padding por defecto */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    min-height: 100vh; /* Asegura que el fondo cubra toda la altura */
    padding: 10px; /* Añade un pequeño padding global para todo el proyecto */
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.header {
    margin-bottom: 20px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.neon-text {
    font-size: 35px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 10px;
    text-transform: uppercase;
    animation: neon-flicker 1.5s infinite alternate;
    background: linear-gradient(90deg, 
        #ff0000,   /* Rojo */
        #ff6600,   /* Naranja */
        #ffff00,   /* Amarillo */
        #00ff00,   /* Verde */
        #00ffff,   /* Cian */
        #0000ff,   /* Azul */
        #ff00ff);  /* Magenta */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.5), 
        0 0 10px rgba(255, 0, 0, 0.5), 
        0 0 20px rgba(255, 0, 0, 0.5), 
        0 0 30px rgba(255, 0, 0, 0.5), 
        0 0 40px rgba(255, 0, 0, 0.5), 
        0 0 50px rgba(255, 0, 0, 0.5), 
        0 0 60px rgba(255, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
}

.neon-text:hover {
    transform: scale(1.1);
    filter: brightness(150%);
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.5), 
            0 0 10px rgba(255, 0, 0, 0.5), 
            0 0 20px rgba(255, 0, 0, 0.5), 
            0 0 30px rgba(255, 0, 0, 0.5), 
            0 0 40px rgba(255, 0, 0, 0.5), 
            0 0 50px rgba(255, 0, 0, 0.5), 
            0 0 60px rgba(255, 0, 0, 0.5);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.dropdown-section {
    margin: 20px 0;
}

.dropdown-menu {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.menu-item {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
}

.dropdown-btn {
    background-color: #1f1f1f;
    color: #00e5ff;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: background-color 0.3s ease;
}

.dropdown-btn:hover {
    background-color: #333;
}

.dropdown-content {
    display: none;
    background-color: #242424;
    border-radius: 10px;
    padding: 15px;
    margin-top: 5px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.dropdown-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #ffffff;
    text-align: left;
}

.dropdown-content ul li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.dropdown-content ul li:last-child {
    border-bottom: none;
}

.menu-item.active .dropdown-content {
    display: block;
}

.projects-section {
    padding: 50px 20px;
    background-color: #181818;
    border-radius: 20px; /* Redondea las 4 puntas de la sección de proyectos */
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.projects-section h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: #00e5ff;
    text-transform: uppercase;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.project-card {
    background-color: #242424;
    border: 2px solid #00e5ff;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

.project-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00e5ff;
}

.project-card p {
    font-size: 16px;
    color: #cccccc;
}

.footer {
    margin-top: 20px;
    padding: 15px;
    background-color: #1f1f1f;
    color: #999999;
    font-size: 14px;
    width: 100%; /* Ajusta el tamaño del footer al body */
    max-width: 1200px; /* Ajusta el tamaño al máximo del contenido */
    box-sizing: border-box; /* Asegura que padding no aumente el tamaño */
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .dropdown-menu {
        flex-direction: column;
    }
    
    .menu-item {
        max-width: 100%;
    }
    
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .projects-section, .footer {
        padding: 20px; /* Ajusta el padding en pantallas medianas */
        max-width: 90%; /* Reduce el tamaño máximo para tablets */
    }

    .project-card {
        max-width: 45%; /* Ajusta el tamaño de las tarjetas en pantallas medianas */
    }
}
