/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffff;
    background: rgb(255, 255, 255);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Elementos de fondo animados */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}


/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(172, 172, 172, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffff;
}



.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Sección Hero */
.hero {
    padding: 8rem 0 5rem;
    position: relative;
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #0000 0%, #242424 50%, #0000 100%);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 2rem;
    backdrop-filter: blur(8px);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0000;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-normal {
    color: #ffff;
}

.title-gradient {
    background:  linear-gradient(90deg, #969696 0%, #ffff 50%, #969696 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-description {
    font-size: 1.25rem;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 32rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background:  linear-gradient(90deg, #0000 0%, #242424 50%, #0000 100%);
    color: #ffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-line {
    width: 3rem;
    height: 2px;
    background:  linear-gradient(90deg, #0000 0%, #242424 50%, #0000 100%);
}

.contact-label {
    color: #0000;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-email {
    color: #9ca3af;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out 0.3s both;
}

.image-container {
    position: relative;
}

.image-glow {
    position: absolute;
    inset: 0;
    background:  linear-gradient(90deg, #0000 0%, #242424 50%, #0000 100%);
    border-radius: 1.5rem;
    filter: blur(2rem);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.image-frame {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portrait-image {
    border-radius: 1rem;
    width: 100%;
    max-width: 24rem;
    height: auto;
    object-fit: cover;
}

/* Sección About */
.about {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-line {
    width: 6rem;
    height: 4px;
    background:  linear-gradient(90deg, #0000 0%, #242424 50%, #0000 100%);
    margin: 0 auto;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffff;
    margin-bottom: 1rem;
}

.card-text {
    color: #d1d5db;
    line-height: 1.6;
}

/* Sección Skills */
.skills {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffff;
    margin-bottom: 1.5rem;
}

.skill-progress {
    position: relative;
    width: 6rem;
    height: 6rem;
    margin: 0 auto;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
    transition: stroke-dashoffset 1s ease-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffff;
}

/* Footer */
.footer {
    padding: 3rem 0;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: #9ca3af;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ffff;
}

/* Animaciones */
@keyframes slideInLeft {
    from {
    opacity: 0;
    transform: translateX(-2rem);
    }
    to {
    opacity: 1;
    transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
    opacity: 0;
    transform: translateX(2rem);
    }
    to {
    opacity: 1;
    transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    }
    
    .hero-title {
    font-size: 3rem;
    }
    
    .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
    display: none;
    }
    
    .hero {
    padding: 6rem 0 3rem;
    }
    
    .hero-title {
    font-size: 2.5rem;
    }
    
    .hero-description {
    font-size: 1.125rem;
    }
    
    .hero-buttons {
    flex-direction: column;
    align-items: center;
    }
    
    .btn {
    width: 100%;
    max-width: 20rem;
    }
    
    .section-title {
    font-size: 2.5rem;
    }
    
    .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-content {
    flex-direction: column;
    text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
    padding: 0 1rem;
    }
    
    .hero-title {
    font-size: 2rem;
    }
    
    .section-title {
    font-size: 2rem;
    }
    
    .about-card,
    .skill-card {
    padding: 1.5rem;
    }
}

h3{
    text-align: center;
    }

    .logo-img{
    height: 300px;
    width: 300px;
    }

    .habi

    {
    height: 90px;
    width: 90px;
    text-align: center;
    position: center;
    align-items: center;

    }

    .skill-card .skill-name  {
    
    text-align: center;
    position: center;
    align-items: center;

    }

/* Contenedor para las habilidades lado a lado */
.skills-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 200px;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* Responsive para habilidades */
@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .skill-item {
        width: 100%;
        max-width: 300px;
    }
}