/* Variables y Reset */
:root {
    --primary-color: #021f47;
    --secondary-color: #1757af;
    --accent-color: #3a86ff;
    --text-color: #ffffff;
    --text-secondary: #e0e0e0;
    --bg-color: #0a192f;
    --card-bg: #112240;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1 {
    text-align: center;
    font-size: 45px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header__logo-container {
    display: flex;
    align-items: center;
}

.header__logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--text-color);
    transition: transform 0.3s ease;
}

.header__logo:hover {
    transform: rotate(15deg);
}

.header__menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-line {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.header__checkbox {
    display: none;
}

.header__nav {
    display: flex;
}

.header__nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header__nav-item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.header__nav-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.header__nav-item a:hover {
    color: var(--accent-color);
}

.header__nav-item a:hover::after {
    width: 100%;
}

/* Sección Perfil */
.profile {
    padding: 120px 0 60px;
}

.profile__wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.profile__img-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile__img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile__data-container {
    flex: 1;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.profile__description {
    margin-bottom: 30px;
}

.profile__description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.skills-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.skills-list {
    list-style: none;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-name {
    font-weight: 600;
    color: var(--text-color);
}

.skill-percent {
    color: var(--accent-color);
}

.skill-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* Sección Portafolio */
.portfolio-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
}

.portfolio-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.portfolio-title a {
    text-decoration: none;
    color: var(--text-color);
}

.portfolio-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Proyectos específicos con imágenes de fondo */
#eternal {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../imagenes/eternal.png') center/cover no-repeat;
}

#ninja {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../imagenes/ninja.png') center/cover no-repeat;
}

#under {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../imagenes/under.png') center/cover no-repeat;
}

#watch {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../imagenes/watch.png') center/cover no-repeat;
}

#hidden {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../imagenes/hidden.png') center/cover no-repeat;
}

#avani {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../imagenes/avani.png') center/cover no-repeat;
}

.coming-soon {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../imagenes/axl.png') center/cover no-repeat;
}

/* Detalles de Proyectos */
.project-details {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.project-article {
    margin-bottom: 60px;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--accent-color);
    text-align: center;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: scale(1.03);
}

/* Sección Contacto */
.contact-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background-color: var(--card-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    background-color: rgba(58, 134, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-icon {
    width: 30px;
    height: 30px;
}

/* Footer */
.footer {
    padding: 30px 0;
    background-color: var(--primary-color);
    text-align: center;
}

.copyright {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.credits {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .profile__wrapper {
        flex-direction: column;
    }
    
    .profile__data-container {
        margin-top: 30px;
    }
    
    .header__menu-button {
        display: flex;
    }
    
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .header__checkbox:checked ~ .header__nav {
        right: 0;
    }
    
    .header__nav-list {
        flex-direction: column;
        gap: 30px;
    }
    
    .header__checkbox:checked ~ .header__menu-button .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .header__checkbox:checked ~ .header__menu-button .menu-line:nth-child(2) {
        opacity: 0;
    }
    
    .header__checkbox:checked ~ .header__menu-button .menu-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .profile__title {
        font-size: 2rem;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .profile {
        padding: 100px 0 40px;
    }
    
    .profile__title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.5rem;
    }
}