/* General Styles */
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Particles Container Styles */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: #000;
    pointer-events: none;
}

/* Ensure content is above particles */
body {
    position: relative;
    z-index: 1;
    background: transparent;
    color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

main {
    position: relative;
    z-index: 2;
}

/* Titles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 0;
    background: linear-gradient(45deg, #1B98E0, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 1em;
    display: inline-block;
}

h2::after {
    display: none;
}

/* Sections */
section {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    background: transparent;
    margin-bottom: 10px;
    pointer-events: none;
}

/* Home Section */
#home {
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: transparent;
    position: relative;
    z-index: 1;
    overflow: hidden;
    pointer-events: all;
}

/* Text Animations */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.animate-text:nth-child(1) { animation-delay: 0.2s; }
.animate-text:nth-child(2) { animation-delay: 0.4s; }
.animate-text:nth-child(3) { animation-delay: 0.6s; }
.animate-text:nth-child(4) { animation-delay: 0.8s; }
.animate-text:nth-child(5) { animation-delay: 1s; }
.animate-text:nth-child(6) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home Content */
.home-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    pointer-events: all;
}

.home-text {
    flex: 1;
    text-align: left;
    position: relative;
    pointer-events: all;
    max-width: 600px;
}

.home-text .intro {
    font-size: 1.5em;
    color: #1B98E0;
    margin-bottom: 0.5em;
    font-weight: 500;
    opacity: 0.9;
}

.home-text h1 {
    font-size: 4.5em;
    font-weight: bold;
    margin: 0;
    line-height: 1.1;
    background: linear-gradient(45deg, #1B98E0, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s ease;
    position: relative;
    display: inline-block;
}

.home-text h1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, #1B98E0, #00ff88);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.home-text h1:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.home-text h1:hover {
    transform: translateY(-5px);
    text-shadow: 0 5px 15px rgba(27, 152, 224, 0.3);
}

.home-text .job-title {
    font-size: 2em;
    font-weight: bold;
    color: #1B98E0;
    margin: 0.5em 0;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.home-text .job-title:hover {
    transform: translateX(10px);
    color: #00ff88;
}

.home-text .experience {
    font-size: 1.3em;
    color: #ddd;
    margin: 0.5em 0 1em 0;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.home-text .experience:hover {
    transform: scale(1.05);
    color: #fff;
}

.home-text .description {
    font-size: 1.2em;
    color: #bbb;
    margin: 1em 0 2em 0;
    line-height: 1.6;
    max-width: 500px;
}

/* Contact Button */
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #1B98E0, #00ff88);
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    overflow: hidden;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-contact:hover::before {
    left: 100%;
}

.btn-contact:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(27, 152, 224, 0.4);
}

.btn-contact .btn-icon {
    transition: all 0.4s ease;
}

.btn-contact:hover .btn-icon {
    transform: translateX(5px) rotate(360deg);
}

/* Social Media Links */
.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    position: relative;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: hidden;
    pointer-events: auto;
}

.social-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1B98E0, #00ff88);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.social-icon:hover {
    transform: translateY(-5px) rotate(360deg);
    color: #fff;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    font-size: 0.8em;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Home Image */
.home-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease forwards;
    animation-delay: 1.2s;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    display: none;
}

/* About Image */
.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.about-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

/* Responsive Design for Images */
@media (max-width: 768px) {
    .image-container,
    .about-image img {
        width: 300px;
        height: 300px;
    }
}

/* About Me Section */
#about {
    padding: 20px;
    background: transparent;
    position: relative;
    min-height: unset;
    display: block;
    flex-direction: unset;
    justify-content: unset;
}

.about-container {
    margin-top: 0;
    gap: 20px;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-container.show {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    flex: 1;
    max-width: 60%;
    text-align: left;
    padding-right: 20px;
    color: #fff;
}

.about-text p {
    margin-bottom: 1.5em;
    line-height: 1.6;
    font-size: 1.1em;
}

.about-text strong {
    color: #1B98E0;
}

/* Responsive Design for About */
@media (max-width: 768px) {
    #about {
        padding: 15px;
    }

    .about-container {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .about-text {
        max-width: 100%;
        padding-right: 0;
    }

    .about-section {
        margin-bottom: 1rem;
        padding: 1.2rem;
    }

    .about-section h3 {
        font-size: 1.2em;
    }

    .about-section p {
        font-size: 1em;
    }

    .about-image {
        width: 100%;
        padding: 0;
        margin-bottom: 2rem;
    }

    .about-image img {
        width: 100%;
        max-width: 300px;
        height: 300px;
        margin: 0 auto;
        display: block;
        border-radius: 20px;
        object-fit: cover;
    }
}

/* Projects Section */
#projects {
    background: transparent;
    padding: 20px;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Project Cards */
.project-card {
    background: rgba(10, 61, 98, 0.2);
    color: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(27, 152, 224, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(27, 152, 224, 0.2);
    background: rgba(10, 61, 98, 0.3);
    border-color: rgba(27, 152, 224, 0.4);
}

/* Project Header */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.project-header h3 {
    font-size: 1.5em;
    margin: 0;
    background: linear-gradient(45deg, #1B98E0, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex: 1;
    position: relative;
}

.project-header h3::after {
    display: none;
}

/* GitHub Icon */
.github-icon {
    font-size: 1.4em;
    color: #fff;
    transition: all 0.4s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.github-icon:hover {
    color: #1B98E0;
    transform: scale(1.1) rotate(360deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(27, 152, 224, 0.3);
}

.github-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1B98E0, #00ff88);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 50%;
    z-index: -1;
}

.github-icon:hover::before {
    opacity: 0.2;
}

/* Project Description */
.project-description {
    font-size: 1.1em;
    color: #ddd;
    line-height: 1.7;
    margin: 0 0 25px 0;
    position: relative;
    padding-left: 0;
    border-left: none;
}

/* Project Skills */
.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.skill-tag {
    background: rgba(27, 152, 224, 0.15);
    color: #1B98E0;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid rgba(27, 152, 224, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.skill-tag:hover {
    background: rgba(27, 152, 224, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 152, 224, 0.2);
}

/* Project Link */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 25px;
    background: linear-gradient(45deg, rgba(27, 152, 224, 0.15), rgba(0, 255, 136, 0.15));
    border: 2px solid rgba(27, 152, 224, 0.4);
    border-radius: 25px;
    color: #1B98E0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(27, 152, 224, 0.15);
    letter-spacing: 0.5px;
}

.project-link:hover {
    background: linear-gradient(45deg, rgba(27, 152, 224, 0.25), rgba(0, 255, 136, 0.25));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 152, 224, 0.3);
    border-color: rgba(0, 255, 136, 0.5);
    color: #00ff88;
}

.project-link i {
    font-size: 0.85rem;
    transition: all 0.4s ease;
}

.project-link:hover i {
    transform: translateX(5px) rotate(360deg);
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .project-card {
        padding: 25px;
    }

    .project-header h3 {
        font-size: 1.3em;
    }

    .project-description {
        font-size: 1em;
    }
}

/* Contact Section */
#contact {
    padding: 20px;
    background: transparent;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 10px;
    width: 100%;
}

/* Contact Form */
.contact-form {
    background: rgba(10, 61, 98, 0.2);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-field {
    margin-bottom: 0;
    position: relative;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.95em;
    font-weight: 500;
    opacity: 0.9;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #1B98E0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(27, 152, 224, 0.15);
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background: linear-gradient(45deg, #1B98E0, #00ff88);
    color: #fff;
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 152, 224, 0.3);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.info-card {
    background: rgba(10, 61, 98, 0.2);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(10, 61, 98, 0.3);
    border-color: rgba(27, 152, 224, 0.3);
    box-shadow: 0 8px 25px rgba(27, 152, 224, 0.2);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(27, 152, 224, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: #1B98E0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.info-card:hover .info-icon {
    background: rgba(27, 152, 224, 0.3);
    transform: scale(1.1);
}

.info-content {
    flex: 1;
}

.info-card h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.3em;
}

.info-card p {
    color: #ddd;
    font-size: 1.1em;
    margin: 0;
    line-height: 1.6;
}

/* Social Links in Contact */
.contact-info .social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.contact-info .social-icon {
    width: 50px;
    height: 50px;
    background: rgba(27, 152, 224, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3em;
    transition: all 0.3s ease;
}

.contact-info .social-icon:hover {
    background: rgba(27, 152, 224, 0.3);
    transform: translateY(-3px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(27, 152, 224, 0.3);
}

/* Responsive Design for Contact */
@media (max-width: 768px) {
    #contact {
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
        width: 100%;
    }

    .contact-form {
        padding: 25px;
        width: 100%;
    }

    .info-card {
        padding: 20px;
        width: 100%;
    }

    .form-field input,
    .form-field textarea {
        width: 100%;
        padding: 12px;
    }
}

/* Scroll Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(5px);
}

.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Specific Animations for Different Elements */
.slide-left {
    transform: translateX(-50px);
    opacity: 0;
    filter: blur(5px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right {
    transform: translateX(50px);
    opacity: 0;
    filter: blur(5px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up {
    transform: translateY(50px);
    opacity: 0;
    filter: blur(5px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in {
    transform: scale(0.9);
    opacity: 0;
    filter: blur(5px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show Elements Classes */
.slide-left.show,
.slide-right.show,
.slide-up.show,
.scale-in.show {
    transform: translate(0) scale(1);
    opacity: 1;
    filter: blur(0);
}

/* Delay para elementos en cascada */
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.2s; }
.project-card:nth-child(4) { transition-delay: 0.3s; }
.project-card:nth-child(5) { transition-delay: 0.4s; }
.project-card:nth-child(6) { transition-delay: 0.5s; }

.certificate-card:nth-child(2) { transition-delay: 0.1s; }
.certificate-card:nth-child(3) { transition-delay: 0.2s; }
.certificate-card:nth-child(4) { transition-delay: 0.3s; }
.certificate-card:nth-child(5) { transition-delay: 0.4s; }

.skill-logo:nth-child(2) { transition-delay: 0.1s; }
.skill-logo:nth-child(3) { transition-delay: 0.2s; }
.skill-logo:nth-child(4) { transition-delay: 0.3s; }
.skill-logo:nth-child(5) { transition-delay: 0.4s; }

/* Interactive Content */
.navbar, .home-content, .about-content, .projects-grid, .contact-form {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

/* Responsive Design for Home */
@media (max-width: 768px) {
    .home-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0 20px;
    }

    .home-text {
        text-align: center;
        max-width: 100%;
    }

    .home-text h1 {
        font-size: 3em;
    }

    .home-text .job-title {
        font-size: 1.8em;
    }

    .home-text .experience {
        font-size: 1.2em;
    }

    .home-text .description {
        font-size: 1.1em;
        margin: 1em auto 2em;
        text-align: left;
    }

    .home-image {
        display: none;
    }

    .social-links {
        justify-content: center;
    }

    .btn-contact {
        margin: 0 auto;
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Animations */
@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes glowText {
  0% { text-shadow: 0 0 10px rgba(27, 152, 224, 0); }
  50% { text-shadow: 0 0 20px rgba(27, 152, 224, 0.5); }
  100% { text-shadow: 0 0 10px rgba(27, 152, 224, 0); }
}

/* Section titles animation */
section h2 {
    position: relative;
}

/* Hello wave emoji animation */
.intro .wave-emoji {
  display: inline-block;
  animation: wave 2.5s infinite;
  transform-origin: 70% 70%;
  pointer-events: all;
  cursor: default;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #1B98E0, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.nav-emoji {
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #1B98E0, #00ff88);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
}

.nav-link:hover {
    color: #1B98E0;
}

.nav-link.active {
    color: #1B98E0;
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link span {
    font-weight: 500;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: all 0.3s ease;
}

.nav-toggle-icon::before {
    top: -8px;
}

.nav-toggle-icon::after {
    bottom: -8px;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-in-out;
        pointer-events: none;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
        pointer-events: all;
    }

    .nav-link {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: calc(0.1s * var(--i));
    }

    .nav-links.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
        z-index: 1000;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-brand {
        z-index: 1000;
    }
}

/* Skills Section */
#skills {
    padding: 20px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.skills-category {
    margin-bottom: 30px;
}

.skills-category h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #1B98E0;
    text-align: center;
}

.skills-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

.skills-track {
    display: flex;
    animation: scroll 25s linear infinite;
    width: max-content;
}

/* Animación más lenta para General Skills */
.skills-category:nth-child(2) .skills-track {
    animation: scroll-slow 15s linear infinite;
}

.skills-slide {
    display: flex;
    gap: 60px;
    padding: 0 30px;
    align-items: center;
}

.skill-logo {
    height: 80px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
    object-fit: contain;
}

.skill-logo:hover {
    transform: scale(1.15) translateY(-5px);
    opacity: 1;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.plotly-logo {
    height: 80px;
    margin: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-slow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .skill-logo {
        height: 60px;
    }
    
    .plotly-logo {
        height: 60px;
    }
    
    .skills-slide {
        gap: 40px;
    }
    
    .skills-category h3 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
}

/* Certificates Section */
#certificates {
    padding: 20px;
    background: transparent;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.certificates-category {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.certificates-category h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #1B98E0;
    text-align: center;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
    position: relative;
    z-index: 2;
}

.certificate-card {
    background: rgba(10, 61, 98, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.certificate-card:hover {
    transform: translateY(-5px);
}

.certificate-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    z-index: 2;
}

.certificate-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.certificate-card:hover .certificate-thumbnail {
    transform: scale(1.05);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
    z-index: 3;
    pointer-events: auto;
}

.certificate-card:hover .certificate-link {
    opacity: 1;
}

.certificate-link i {
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 4;
    pointer-events: auto;
}

.certificate-link:hover i {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.certificate-info {
    padding: 20px;
}

.certificate-info h4 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.2em;
}

.certificate-info p {
    margin: 0;
    color: #ddd;
    font-size: 0.9em;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex !important;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
}

.certificate-images img {
    max-width: 100%;
    max-height: 45vh;
    object-fit: contain;
    margin: 0 auto;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 4;
}

.close-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 15px;
    }

    #projects, #certificates, #skills, #contact {
        padding: 15px;
    }

    .projects-grid, .certificates-grid, .contact-container {
        gap: 15px;
        padding: 10px;
    }

    .certificates-category, .skills-category {
        margin-bottom: 20px;
    }
}

/* About Section Styles */
.about-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(10, 61, 98, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-section:hover {
    transform: translateY(-5px);
    background: rgba(10, 61, 98, 0.3);
    border-color: rgba(27, 152, 224, 0.3);
    box-shadow: 0 8px 25px rgba(27, 152, 224, 0.2);
}

.about-section h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4em;
    margin-bottom: 1rem;
    color: #1B98E0;
}

.about-section h3 i {
    font-size: 1.2em;
    background: linear-gradient(45deg, #1B98E0, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-section p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #ddd;
    margin: 0;
}

@media (max-width: 768px) {
    .about-section {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .about-section h3 {
        font-size: 1.2em;
    }

    .about-section p {
        font-size: 1em;
    }
}

/* Projects Categories */
.projects-category {
    margin-bottom: 3rem;
}

.projects-category h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #1B98E0;
    text-align: center;
    background: linear-gradient(45deg, #1B98E0, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .projects-category {
        margin-bottom: 2rem;
    }

    .projects-category h3 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
}