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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing:grayscale
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: white;
    color: black;
}

/* Tema oscuro */

/* Modo oscuro para el botón del menú hamburguesa */
.dark-mode .menu-icon i {
    color: white;
}

/* Modo oscuro para el menú desplegable */
.dark-mode .navbar-right {
    background: black;
}

.dark-mode .navbar-right a {
    color: white;
}

.dark-mode .navbar-right a:hover {
    color: black;
}

/* Transiciones suaves */
.menu-icon i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.navbar-right {
    transition: background 0.3s ease, color 0.3s ease;
}


.dark-mode {
    background-color: black;
    color: white;
}

.dark-mode .navbar-right a {
    color: white;
}

.dark-mode .theme-button {
    background: white;
    color: black;
}

.dark-mode .theme-button:hover {
    background: gray;
    color: white;
}

.dark-mode {
    background-color: black;
    color: white;
}

.dark-mode .navbar {
    background-color: black;
    box-shadow: 0 4px 20px white;
}

.dark-mode .navbar-right a, .dark-mode .theme-button {
    color: white;
}

.dark-mode .theme-button {
    background: white;
    color: black;
}

.dark-mode .theme-button:hover {
    background: gray;
    color: white;
}


#theme-toggle {
    width: 60px;  /* Ancho de la pestaña */
    height: 30px; /* Alto de la pestaña */
    background: black; /* Fondo inicial en modo claro */
    border-radius: 50px; /* Hace la pestaña ovalada */
    position: relative;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    transition: background 0.3s ease;
    margin-right: 15px;
}

#theme-toggle::before {
    content: "🌙"; /* Luna en modo claro */
    font-size: 1.2rem;
    color: white;
    position: absolute;
    right: 10px;
    transition: transform 0.3s ease;
}

#theme-toggle .toggle-circle {
    width: 20px;  /* Tamaño del botón */
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 5px;
    transition: transform 0.3s ease;
}

/* Estilos para el modo oscuro */
.dark-mode #theme-toggle {
    background: white;
}

.dark-mode #theme-toggle::before {
    content: "☀️"; /* Sol en modo oscuro */
    color: black;
    left: 10px;
    right: auto;
}

.dark-mode #theme-toggle .toggle-circle {
    transform: translateX(30px); /* Mueve el botón a la derecha */
    background: black;
}

.dark-mode {
    background-color: black;
    color: white;
}

.dark-mode .navbar-right a,
.dark-mode .intro-myname,
.dark-mode .intro-title,
.dark-mode .intro-description,
.dark-mode .about-title,
.dark-mode .centered-text,
.dark-mode .highlight,
.dark-mode .tools-title,
.dark-mode .column-title,
.dark-mode .image-grid a,
.dark-mode .tools-subtitle,
.dark-mode .pet-projects h2 {
    color: white;
}

.dark-mode .navbar-right a:hover {
    color: gray;
}

.dark-mode .contact-button, .dark-mode .cv-button {
    background-color: black;
    color: white;
    border: 2px solid white;
}

.dark-mode .contact-button:hover, .dark-mode .cv-button:hover {
    background-color: gray;
    color: black;
}

.dark-mode .about,
.dark-mode .column {
    background-color: black;
    box-shadow: 2px 3px 20px white;
    color: white;
}

/* Modo oscuro: cambiar imagen de MySQL */
.dark-mode .image-grid img.mysql {
    content: url("recursos/icon-tool/mysql-dark.png");
}

/* Modo oscuro: cambiar imagen de GitHub */
.dark-mode .image-grid img.github {
    content: url("recursos/icon-tool/github-dark.png");
}


/* Modo oscuro para el footer */
.dark-mode .footer {
    background-color: black;
    color: white;
}

/* Cambiar color de los iconos a blanco en modo oscuro */
.dark-mode .footer-links a {
    color: white;
}

/* Efecto hover en modo oscuro */
.dark-mode .footer-links a:hover {
    color: gray;
}

/* Asegurar que el texto también cambie a blanco */
.dark-mode .footer-text {
    color: white;
}


#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.navbar {
    backdrop-filter: blur(50px);
    box-shadow: 0 4px 20px black;
    font-weight: 800;
    line-height: 1.5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index:1000
}

.navbar-left {
    font-family: Pathway Gothic One, sans-serif;
    font-weight: 600, Semi-Bold;
    flex: 1 1;
    font-size: 1.2rem;
    margin-left: 5%;
    color:var(--secondary)
}

.navbar-right {
    align-items: center; /* Alinea todos los elementos verticalmente */
    gap: 15px; /* Espaciado uniforme entre los elementos */
    list-style: none;
    font-family: Pathway Gothic One, sans-serif;
    display: flex;
    grid-gap: 10px;
    gap: 10px;
    font-size: 1rem;
    margin-right:5%
}

.navbar-right li {
    display: flex; /* Asegura que el li se comporte correctamente */
    align-items: center; /* Alinea los elementos dentro del li */
}

.navbar-right a{
    color: black;
    text-decoration: none;
    font-weight:700
}

.navbar-right a:hover {
    color: gray;
}

/* Icono de menú hamburguesa */
.menu-icon {
    color: black;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    transition: transform 0.3s ease;
    margin-left: 15px; /* Espaciado igual al de los elementos de la lista */
}

/* Ajuste de tamaño del icono */
.menu-icon i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    /* Hacer que el menú ocupe todo el ancho */
    .navbar-right {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%; /* Ocupar todo el ancho */
        background: white;
        flex-direction: column;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        text-align: center;
    }

    .navbar-right.show {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    .navbar-right li {
        padding: 10px 0;
        width: 100%;
    }

    .navbar-right a {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 1.2rem;
    }
}

.intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 900px;
    max-width: 1200px;
    max-height: 1000px;
    margin:auto;
    padding: 20px;
    border-radius:15px
}

.intro-content {
    z-index: 10;
    width: 60%;
    margin-bottom:5%
}

.intro-myname {
    z-index: 10;
    color: black;
    font-size: 1rem;
    font-weight:700
}

.intro-myname, .intro-title {
    z-index: 10;
    font-family: Inter, sans-serif;
    text-align:left
}

.intro-title {
    z-index: 10;
    color: black;
    font-size:4rem
    
}

.intro-description {
    z-index: 10;
    color: black;
    font-size: 1.5rem;
    font-family:NTR, sans-serif
}

.contact-buttons {
    z-index: 10;
    display: flex;
    grid-gap: 10px;
    gap: 10px;
    justify-content:center
}

.contact-button, .cv-button {
    z-index: 10;
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    color: black;
    background-color: white;
    border: 2px solid black;
    border-radius: 5px;
    text-decoration: none;
    font-family: Inter, sans-serif;
    font-size: .9rem;
    font-weight: 700;
    transition: background-color .3s ease, color .3s ease;
    cursor:pointer
}

.contact-button:hover, .cv-button:hover {
    z-index: 10;
    background-color: gray;
    color:#fff
}

.intro-image {
    z-index: 10;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items:center
}

.profile-image {
    z-index: 10;
    aspect-ratio: 1/1;
    width: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px gray;
    transition: transform .3s ease;
    margin-bottom:20px
}

.profile-image:hover {
    z-index: 10;
    transform:scale(1.1)
}

@media (min-width: 1171px) {
    .intro-myname {
        font-size:1rem
    }

    .intro-title {
        font-size:4rem
    }

    .intro-description {
        font-size:1.5rem
    }

    .contact-buttons {
        justify-content: flex-start;
        width:100%
    }

    .profile-image {
        max-width: 400px;
        width:100%
    }

    .contact-button, .cv-button {
        font-size: 1.2rem;
        padding:12px 24px
    }
}

@media (max-width: 1170px) {
    .intro-container {
        flex-direction: column;
        align-items: center;
        grid-gap: 0;
        gap: 0;
        width: 90vw;
        height:auto;
    }

    .intro-container, .intro-myname, .intro-title {
        text-align:center
    }

    .intro-title {
        font-size:3rem
    }

    .intro-description {
        font-size:1.2rem
    }

    .contact-buttons {
        flex-direction: row;
        align-items: center;
        justify-content:center
    }

    .contact-button, .cv-button {
        width: 100%;
        max-width:150px
    }

    .profile-image {
        margin-top: 10%;
        max-width:100%
    }
}

@media (max-width: 850px) {
    .intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        grid-gap: 0;
        gap: 0;
        width: auto;
        margin-bottom:10px;
    }

    .intro-container {
        justify-content: center;
        align-content: center;
        width: 100%;
        height:700px
    }

    .intro-myname {
        align-content: center;
        margin-top:30px
    }

    .intro-title {
        font-size:1.6rem
    }

    .intro-description {
        font-size: 1.2rem;
        margin-top: 10px;
        line-height:1.2
    }

    .contact-buttons {
        margin-top: 5px;
        flex-direction: row;
        align-items: center;
        justify-content:center
    }

    .profile-image {
        margin-top: 10%;
        max-width: 300%;
        width:250px
    }

    .contact-button, .cv-button {
        width: 100%;
        max-width: 200px;
        font-size:.7rem
    }
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 20px
}

.about {
    z-index: 10;
    width: 80%;
    max-width: 1200px;
    height: auto;
    margin: 20px;
    padding: 40px;
    border-radius: 10px;
    line-height: 1.6;
    background-color: white;
    box-shadow: 2px 3px 20px black
}

.highlight {
    color: black;
    font-weight:700
}

.about-title {
    color: black;
    font-size:3.3rem
}

.about-title, .centered-text {
    font-family:Inter, sans-serif
}

.centered-text {
    font-size: 1.2rem;
    color: black;
    margin: 20px 0;
    max-width: 100%;
    font-weight:500
}

@media (max-width: 1170px) {
    .about-container {
        width: 100%;
        height: 100%;
        flex-direction: column;
        align-items: center;
        padding:0 20px
    }

    .about {
        width: 90%;
        padding:20px
    }

    .about-title {
        font-size:2.5rem
    }

    .centered-text {
        font-size: 1rem;
        max-width:100%
    }
}

@media (max-width: 1000px) {
    .about-title {
        font-size:1.7rem
    }

    .centered-text {
        font-size:.9rem
    }
}

.tools-title {
    color: black;
    font-size: 3.3rem;
    font-family: Inter, sans-serif;
    margin-bottom:10px
}

.tools-subtitle {
    color: black;
    font-size: 1.4rem;
    font-weight: 400;
    font-family: Pathway Gothic One, sans-serif;
    margin-bottom:25px
}

.tools-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    margin: auto;
    margin-bottom:120px
}

.tools {
    display: flex;
    z-index: 10;
    border-radius: 10px;
    line-height: 1.6;
    width: 150vh;
    height:auto
}

.column-title {
    margin-bottom: 30px;
    margin-top: 20px;
    width: auto;
    font-family: Inter, sans-serif;
    color: black;
    font-weight: 700;
    line-height: 1.2;
    font-size: 1.3rem;
    text-align:center
}

.column {
    background-color: white;
    transition: transform .3s ease;
    box-shadow: 2px 3px 20px black;
    flex: 1 1;
    margin: 0 25px;
    border-radius: 8px;
    padding: 20px;
    width: auto;
    height: auto;
    color: gray;
    font-size: 1.6rem;
    font-family: NTR;
    font-weight: semi-bold;
    display: flex;
    flex-direction: column;
    align-items:center
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    gap: 10px;
    list-style-type: none;
    padding: 0;
    width: 80%;
    margin:0 auto 25px
}

.image-grid a {
    text-decoration: none;
    font-family: sans-serif;
    color: black;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    transition:transform .2s ease, box-shadow .2s ease
}

.image-grid img {
    max-width: 60px;
    height: auto;
    display: block;
    margin:0 auto
}

.image-grid a:hover {
    transform:scale(1.1)
}

.column:hover {
    transform:scale(1.05)
}

@media (max-width: 1170px) {
    .tools-container {
        width: 90%;
        flex-direction: column;
        align-items: center;
        padding:0 20px
    }

    .tools {
        flex-direction: column;
        width:100%
    }

    .column {
        width: 100%;
        margin:10px 0 50px
    }

    .tools-title {
        margin-top: 50px;
        font-size:2.5rem
    }
}

@media (max-width: 1000px) {
    .tools-title {
        font-size:1.7rem
    }

    .tools-subtitle {
        font-size:.8rem
    }
}

.pet-projects {
    z-index: 10;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    margin-bottom: 80px;
    width:100%
}

.pet-projects h2 {
    color: black;
    font-size: 3.3rem;
    font-family: Inter, sans-serif;
    margin-bottom: 40px;
    text-align:center
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-gap: 20px;
    gap: 20px;
    width: 80%;
    max-width:1400px
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px black;
    transition: transform .3s ease;
    height: 300px;
    margin-bottom:30px
}

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

.image-container {
    position: relative;
    width: 100%;
    height:100%
}

.project-image {
    object-fit: cover;
    transition:filter .3s ease
}

.project-image, .project-info {
    width: 100%;
    height: 100%;
    border-radius:10px
}

.project-info {
    position: absolute;
    top: 0;
    left: 0;
    background: gray;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition:opacity .3s ease, visibility .3s ease
}

.project-card:hover .project-info {
    opacity: 1;
    visibility:visible
}

.project-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom:10px
}

.project-info p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align:center
}

.project-info a {
    padding: 8px 16px;
    background-color: black;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition:background-color .3s ease
}

.project-info a:hover {
    background-color: black;
}

@media (max-width: 768px) {
    .pet-projects h2 {
        font-size:2rem
    }

    .project-info h3 {
        font-size:1.4rem
    }

    .project-info p {
        font-size:.9rem
    }
}

@media (max-width: 600px) {
    .pet-projects h2 {
        font-size:1.6rem
    }

    .project-info h3 {
        font-size:1.2rem
    }

    .project-info a, .project-info p {
        font-size:.9rem
    }
}

.footer {
    z-index: 1000;
    background-color: white;
    color: black;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items:center
}

.footer-links {
    z-index: 10;
    display: flex;
    grid-gap: 15px;
    gap: 15px;
    font-size: 1.5rem;
    margin-bottom:10px;
    justify-content: center;
}

.footer-links a {
    z-index: 10;
    color: black;
    transition:color .3s ease
}

.footer-links a:hover {
    z-index: 10;
    color:gray;
}

.footer-text {
    z-index: 10;
    font-size: .9rem;
    color: black
}