/* =============== GENERAL STYLES =============== */
:root {
    --primary-color: #087946;
    --text-color: #333;
    --nav-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --hero-bg: #f8f9fa;
    --skills-bg: #f8f9fa;
    --skill-card-bg: rgba(240, 240, 240, 0.7);
    --skills-text: #212529;
    --navbar-bg: #fff;
    --primary-dark: #087946;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --background-color: #fff;
    --card-bg: #fff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --footer-bg: #212529;
    --footer-text: #fff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --projects-bg: #f8f9fa;
    --contact-bg: #f8f9fa;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --navbar-hover: #212529; /* Negro para el hover en tema claro */
}

[data-theme="dark"] {
    --primary-color: #087946;
    --text-color: #ffffff;
    --nav-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
    --hero-bg: #1a1a1a;
    --skills-bg: #121212;
    --skill-card-bg: rgba(30, 40, 51, 0.7);
    --skills-text: #ffffff;
    --navbar-bg: #1e1e1e;
    --primary-dark: #087946;
    --secondary-color: #adb5bd;
    --light-color: #343a40;
    --dark-color: #f8f9fa;
    --background-color: #121212;
    --card-bg: #1e1e1e;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --footer-bg: #000000;
    --footer-text: #f8f9fa;
    --nav-bg: rgba(18, 18, 18, 0.95);
    --projects-bg: #121212;
    --contact-bg: #121212;
    --navbar-hover: #ffffff; /* Blanco para el hover en tema oscuro */
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
    background-color: var(--background-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-title h2 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

section {
    padding: 100px 0;
    transition: background-color 0.3s ease;
}

.highlight {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* =============== THEME TOGGLE =============== */
#theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    transform: rotate(30deg);
    color: var(--primary-color);
}

/* =============== NAVBAR =============== */
.navbar {
    background-color: var(--navbar-bg);
    box-shadow: var(--nav-shadow);
    z-index: 1000;
}

.navbar.scrolled {
    background-color: var(--navbar-bg);
    box-shadow: var(--nav-shadow);
}

.navbar-brand {
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 24px;
}

.line {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (min-width: 992px) {
    .navbar-nav {
        align-items: center;
    }
}

/* =============== HERO SECTION =============== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-bg);
}

.hero-content {
    color: var(--text-color);
}

.hero-content h1,
.hero-content h2,
.hero-content .lead {
    color: var(--text-color);
}

.hero-content .highlight {
    color: var(--primary-color);
}

.hero-content span {
    color: #087946 !important;
}

.hero-buttons {
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
    padding: 10px 25px;
    font-weight: 500;
    border-radius: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 350px;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* =============== ABOUT SECTION =============== */
.about-section {
    background-color: var(--background-color);
    transition: background-color 0.3s ease;
}

.about-content {
    margin-bottom: 40px;
}

.about-content h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.personal-info {
    margin: 30px 0;
}

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

.info-label {
    font-weight: 700;
    margin-right: 10px;
}

.about-buttons .btn {
    margin-right: 15px;
}

.education-section, .courses-section {
    margin-bottom: 40px;
}

.education-section h3, .courses-section h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.education-item, .course-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.education-item h4, .course-item h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.education-place, .course-place {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.education-date, .course-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* =============== PROJECTS SECTION =============== */
.projects-section {
    background-color: var(--projects-bg);
    transition: background-color 0.3s ease;
}

.projects-section .nav-pills {
    margin-bottom: 40px;
}

.projects-section .nav-pills .nav-link {
    color: var(--text-color);
    font-weight: 500;
    border-radius: 50px;
    padding: 8px 25px;
    margin: 0 5px;
}

.projects-section .nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-image {
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-tags {
    margin-bottom: 15px;
}

.project-tags .badge {
    margin-right: 5px;
    padding: 5px 10px;
    font-weight: 500;
}

.project-links {
    margin-top: auto;
    display: flex;
    margin-top: 15px;
}

.project-links a {
    margin-right: 10px;
}

/* =============== PROJECTS CAROUSEL =============== */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--primary-dark);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.projects-indicators {
    position: relative;
    bottom: 0;
    margin-top: 20px;
    margin-bottom: 0;
}

.projects-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: none;
    margin: 0 5px;
}

.projects-indicators button.active {
    background-color: var(--primary-color);
}

/* =============== SKILLS SECTION =============== */
.skills-section {
    padding: 100px 0;
    background-color: var(--skills-bg);
    color: var(--text-color);
}

.skills-heading {
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 2.5rem;
}

.skills-container {
    margin-top: 50px;
}

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

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 1px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--skill-card-bg);
    border-radius: 10px;
    padding: 20px;
    width: 110px;
    height: 110px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.skill-icon i {
    font-size: 2.5rem;
}

/* Colores para los iconos de Hugeicons */
.js-icon i {
    color: #F7DF1E; /* Amarillo para JavaScript */
    font-size: 2.2rem;
}

.java-icon i {
    color: #E76F00; /* Naranja para Java */
    font-size: 2.2rem;
}

.html-icon i {
    color: #E34F26; /* Naranja para HTML */
    font-size: 2.2rem;
}

.css-icon i {
    color: #2965F1; /* Azul para CSS */
    font-size: 2.2rem;
}

.python-icon i {
    color: #3776AB; /* Azul para Python */
    font-size: 2.2rem;
}

.react-icon i {
    color: #61DAFB; /* Azul claro para React */
    font-size: 2.2rem;
}

.bootstrap-icon i {
    color: #7952B3; /* Morado para Bootstrap */
    font-size: 2.2rem;
}

.node-icon i {
    color: #68A063; /* Verde para Node.js */
    font-size: 2.2rem;
}

.spring-icon i {
    color: #6DB33F; /* Verde para Spring */
    font-size: 2.2rem;
}

.postgres-icon i {
    color: #336791; /* Azul para PostgreSQL */
    font-size: 2.2rem;
}

.mysql-icon i {
    color: #4479A1; /* Azul para MySQL */
    font-size: 2.2rem;
}

.mongodb-icon i {
    color: #4DB33D; /* Verde para MongoDB */
    font-size: 2.2rem;
}

.maven-icon i {
    color: #C71A36; /* Rojo para Maven */
    font-size: 2.2rem;
}

.jpa-icon i {
    color: #6DB33F; /* Verde para Spring Data JPA */
    font-size: 2.2rem;
}

.swagger-icon i {
    color: #85EA2D; /* Verde para Swagger */
    font-size: 2.2rem;
}

.docker-icon i {
    color: #2496ED; /* Azul para Docker */
    font-size: 2.2rem;
}

.postman-icon i {
    color: #FF6C37; /* Naranja para Postman */
    font-size: 2.2rem;
}

.insomnia-icon i {
    color: #5849BE; /* Morado para Insomnia */
    font-size: 2.2rem;
}

.figma-icon i {
    color: #F24E1E; /* Naranja/Rojo para Figma */
    font-size: 2.2rem;
}

.miro-icon i {
    color: #FFD02F; /* Amarillo para Miro */
    font-size: 2.2rem;
}

.trello-icon i {
    color: #0079BF; /* Azul para Trello */
    font-size: 2.2rem;
}

.git-icon i {
    color: #F05032; /* Naranja para Git */
    font-size: 2.2rem;
}

.github-icon i {
    color: var(--text-color); /* Usa el color de texto en lugar de blanco fijo */
    font-size: 2.2rem;
}

.agile-icon i {
    color: #5BC0DE; /* Azul claro para Agile */
    font-size: 2.2rem;
}

.skill-name {
    font-size: 0.85rem;
    text-align: center;
    color: var(--skills-text);
}

@media (max-width: 768px) {
    .skills-grid {
        justify-content: center;
    }
    
    .skill-card {
        width: 100px;
        height: 100px;
    }
}

/* =============== CONTACT SECTION =============== */
.contact-section {
    background-color: var(--contact-bg);
    transition: background-color 0.3s ease;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-details {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.form-label {
    font-weight: 500;
}

/* =============== FOOTER =============== */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-info h3 {
    color: var(--footer-text);
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.footer-info p {
    margin-bottom: 0;
    opacity: 0.8;
}

.footer-links h4 {
    color: var(--footer-text);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    margin-bottom: 0;
    opacity: 0.7;
}

/* =============== LANGUAGE SWITCHER =============== */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* =============== BADGES COLORS =============== */
.badge-1 {
    background-color: #23302a !important; 
    color: #fff;
}

.badge-2 {
    background-color: #426958 !important;
    color: #fff;
}

.badge-3 {
    background-color: #37800d !important; 
    color: #fff;
}

.badge-4 {
    background-color: #12875c !important; 
    color: #fff;
}

.badge-5 {
    background-color: #7fcf35 !important; 
    color: #fff;
}


.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    margin-right: 0.25rem;
}

/* =============== RESPONSIVE STYLES =============== */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .education-section, .courses-section {
        margin-top: 40px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .hero-image img {
        max-width: 280px;
    }
    
    .project-card {
        margin-bottom: 30px;
    }
    
    .skills-icons {
        gap: 15px;
    }
    
    .icon-item i {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .skills-category h3 {
        font-size: 1.3rem;
    }
}
