@import url('https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100..900;1,100..900&display=swap');

:root[data-theme="dark"] {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #b8b6b4;
    --accent-color: #00ffff;
    --border-color: #2d3748;
    --card-bg: #1a2537;
    --header-bg: linear-gradient(135deg, #1e293b, #0f172a);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --overlay-color: rgba(0, 0, 0, 0.5);
    --bg-background: #0F0F0F;
}

:root[data-theme="light"] {
    --bg-color: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #1a2537;
    --text-secondary: #475569;
    --accent-color: #0284c7;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --header-bg: linear-gradient(135deg, #ffffff, #f1f5f9);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --overlay-color: rgba(255, 255, 255, 0.5);
    --bg-background: #FFFFFF;
}

/* Estilos generales */
/* Estilos generales */
body {
    font-family: "Exo", sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-background);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

h2 {
    font-size: 16px;
    margin-top: 20px;
}

p {
    font-size: 14px;
    opacity: 0.8;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px; 
}

.portfolio {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

/* Banner del perfil */
.banner {
  width: 100%;
  height: 150px;
  background: url('https://boards.holopin.io/rodridev01') center/cover no-repeat;
  border-radius: 8px 8px 0 0;
  z-index: 0;
  position: relative;
}
/* Estilo general */
.profile-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    transition: all 0.3s ease;
    padding-left: 10px;
}

/* Imagen de perfil */
.profile-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-background);
    margin-top: -40px;
}

/* Información del perfil */
.profile-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Nombre */
.profile-name {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    color: var(--text-primary);
}

/* Rol */
.profile-role {
    color: var(--accent-color);
    margin: 0;
    font-weight: 500;
}

/* Ubicación */
.profile-location {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

/* Botones */
.buttons {
    display: flex;
    gap: 8px;
    width: 30%;
    padding: 10px;
    box-sizing: border-box;
}

.btn {
    flex: 1; 
    padding: 5px 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--accent-color);
    color: var(--bg-color);
}

.btn i{
    font-size: 12px;
}

button{
    font-size: 12px;
}

.btn-cv {
    background: #0077ff;
    color: white;
}

.btn-share {
    background: #333;
    color: white;
}

.btn:hover {
    opacity: 0.75;
    color: #fff;
}

/* Descripción */
.profile-description {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Experiencia */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
}

.exp-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 8px 12px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.exp-entry:nth-of-type(odd) {
    background: rgba(21, 114, 182, 0.2);
}

.exp-entry:nth-of-type(even) {
    background: rgba(0, 0, 0, 0.2);
}

.exp-info h3 {
    color: var(--text-primary);
    font-size: 14px;
    margin: 0;
}

.exp-info p {
    color: var(--text-secondary);
    margin: 3px 0 0;
}

.exp-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 11px;
}

/* Habilidades */
.skills ul {
    list-style: none;
    padding: 0;
}

.skills li {
    display: inline-flex;
    align-items: center;
    background: var(--card-bg);
    padding: 4px 10px;
    margin: 5px;
    border-radius: 5px;
    font-size: 12px;
    color: var(--text-primary);
    transition: 0.3s;
    border: 1px solid var(--border-color);
}

.skills li i {
    color: var(--text-primary);
    font-size: 12px;
}

.languages ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.languages li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    color: var(--text-primary);
    transition: transform 0.3s ease-in-out;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.languages ul li i {
    font-size: 12px;
    color: var(--text-primary);
}

.languages ul li:nth-child(1) {
    background: rgba(227, 79, 38, 0.2);
}

/* HTML */
.languages ul li:nth-child(2) {
    background: rgba(21, 114, 182, 0.2);
}

/* CSS */
.languages ul li:nth-child(3) {
    background: rgba(247, 223, 30, 0.2);
}

/* JavaScript */
.languages ul li:nth-child(4) {
    background: rgba(49, 120, 198, 0.2);
}

/* TypeScript */
.languages ul li:nth-child(5) {
    background: rgba(55, 118, 171, 0.2);
}

/* Python */
.languages ul li:nth-child(6) {
    background: rgba(104, 33, 122, 0.2);
}

/* C# */
.languages ul li:nth-child(7) {
    background: rgba(0, 0, 0, 0.2);
}

/* Markdown */
.languages ul li:nth-child(8) {
    background: rgba(97, 218, 251, 0.2);
}

/* React */
.languages ul li:nth-child(9) {
    background: rgba(255, 93, 1, 0.2);
}

/* Astro */
.languages ul li:nth-child(10) {
    background: rgba(6, 182, 212, 0.2);
}

/* Tailwind CSS */
.languages ul li:nth-child(11) {
    background: rgba(131, 205, 41, 0.2);
}

/* Node.js */
.languages ul li:nth-child(12) {
    background: rgba(71, 162, 72, 0.2);
}

/* MongoDB */
.languages ul li:nth-child(13) {
    background: rgba(0, 117, 143, 0.2);
}

/* MySQL */
.languages ul li:nth-child(14) {
    background: rgba(0, 150, 200, 0.2);
}

/* SQLite */
.languages ul li:nth-child(15) {
    background: rgba(47, 79, 79, 0.2);
}

/* SQL */
.languages ul li:nth-child(16) {
    background: rgba(242, 78, 30, 0.2);
}

/* Figma */
.languages ul li:nth-child(17) {
    background: rgba(240, 80, 50, 0.2);
}

/* Git */

/* Proyectos */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
    gap: 20px;
}

.project {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

/* Contenedor de imagen */
.project-image {
    margin: 0;
}

.project img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Contenido del proyecto */
.project-content {
    padding: 15px 20px;
}

.project h3 {
    padding: 10px;
    font-size: 13px;
    margin: 0;
}

/* Botones */
.project-buttons {
    display: flex;
    gap: 10px;
    margin: 10px;
}

.project-buttons a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-demo {
    background: #0077ff;
    color: #fff;
}

.btn-code {
    background: #222;
    color: #fff;
}

.contact ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.contact ul li {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.contact ul li:nth-child(1),
.contact ul li:nth-child(3) {
    background: rgba(51, 51, 51, 0.5);
}

.contact ul li:nth-child(2) {
    background: rgba(255, 0, 47, 0.5);
}

.contact ul li:nth-child(4) {
    background: rgba(0, 119, 181, 0.5);
}

.contact ul li i,
.contact ul li a {
    font-size: 12px;
    color: var(--text-primary);
    text-decoration: none;
}

.contact ul li i {
    font-size: 16px;
}

/* Tarjetas */
.card {
    background: var(--card-bg);
    border-radius: 5px;
    padding: 8px 12px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

/* Colores diferentes para cada tarjeta */
.card:nth-of-type(1) {
    background: rgba(21, 114, 182, 0.2);
    border-left: 5px solid #66c0f4;
}

.card:nth-of-type(2) {
    background: rgba(247, 223, 30, 0.2);
    border-left: 5px solid #FBC02D;
}

.card:nth-of-type(3) {
    background: rgba(240, 80, 50, 0.2);
    border-left: 5px solid #D32F2F;
}

.card:nth-of-type(1) i {
    color: #66c0f4;
}

.card:nth-of-type(2) i {
    color: #FBC02D;
}

.card:nth-of-type(3) i {
    color: #D32F2F;
}

.card i {
    font-size: 20px;
    color: var(--text-primary);
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.card h3 {
    font-size: 14px;
    margin: 0;
    color: var(--text-primary);
}

.card p {
    font-size: 12px;
    margin: 3px 0;
    opacity: 0.8;
    color: var(--text-secondary);
}

.card span {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-top: 6px;
}

.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
}

.card.active .card-details {
    max-height: 200px;
    opacity: 1;
}

.expand-icon {
    float: right;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card.open .expand-icon {
    transform: rotate(45deg);
}

/* Pie de página */
footer {
    color: var(--text-secondary);
    border-top: 1px solid var(--text-secondary);
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
    padding: 4px 20px;
}

footer a {
    color: var(--accent-color) !important;
}

section {
 padding: 10px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 14px;
    }

    p {
        font-size: 12px;
    }

    .profile-image img {
        width: 85px;
        height: 85px;
        border: 3px solid var(--bg-background);
        margin-top: -30px;
    }
    /* Nombre */
    .profile-name {
        font-size: 18px;
    }
    /* Ubicación */
    .profile-location {
        font-size: 10px;
    }

    .banner {
    height: 120px;
    }

    .portfolio {
        max-width: 100%;
        padding: 0px;
    }

    .project-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90%, 1fr));
        gap: 15px;
    }

    .project img {
        height: 160px;
    }

    .exp-entry {
        flex-direction: column;
        align-items: flex-start;
    }

    .exp-date {
        margin-top: 5px;
        align-self: flex-end;
    }

    .card i {
        font-size: 28px;
        min-width: auto;
    }

    .expand-icon {
        font-size: 12px;
        margin-left: 0;
    }

    footer {
        max-width: 100%;
    }

    .card i {
    font-size: 18px;
    color: var(--text-primary);
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    }

    .card h3 {
        font-size: 13px;
    }

    .card p {
        font-size: 12px;
    }

    .card span {
        font-size: 13px;
    }
}