/* Custom Styles for Walter Martinez Portfolio */

.highlight {
    font-weight: bold;
    color: green;
}

/* Base Body Styles */
body {
    font-family: 'Roboto', sans-serif;
}

p {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: auto;
}

.ts-item-body p,
.ts-block p,
.modal-body p {
    text-align: justify !important;
}

/* Table Styles from Inline */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    /* Ensure readability */
}

th,
td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Mobile Table Styles */
@media (max-width: 600px) {
    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 8px;
    }
}

/* Skill Bar Styles */
.skill-container {
    margin-bottom: 30px;
}

.skill-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    position: relative;
}

.skill-progress {
    height: 100%;
    background-color: #ff6600;
    /* Orange accent */
    border-radius: 5px;
}

.skill-percentage {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.9em;
    background-color: #fcf9f9;
    padding: 2px 5px;
    border: 1px solid #080808;
    color: #000;
}

/* Typography Overrides */
h1.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Fix for broken background image container if needed */
.ts-background-fallback {
    background-color: #333;
    background-image: url('../img/bg-hero.jpg');
    background-size: cover;
    background-position: center;
}

/* Styles from Skill.html */
.habilidades {
    margin-bottom: 20px;
}

.habilidades h2 {
    color: #0078d7;
}

.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.skill-name {
    width: 200px;
}

.skill-level {
    display: flex;
}

.circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #0078d7;
    margin-right: 5px;
}

.empty-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #0078d7;
    background-color: transparent;
    margin-right: 5px;
}

@media (max-width: 600px) {
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .skill-name {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Fix for 'Read More' link visibility on mobile/desktop */
.ts-link-arrow-effect {
    color: #fff !important;
    /* White text for button */
    display: inline-block !important;
    padding: 10px 20px !important;
    border: 2px solid #f26c4f !important;
    margin-top: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    background-color: #f26c4f !important;
    /* Visible background by default */
    border-radius: 4px;
    transition: none !important;
    /* No delay on mobile */
    opacity: 1 !important;
    visibility: visible !important;
}

.ts-link-arrow-effect:hover {
    background-color: #d44729 !important;
    border-color: #d44729 !important;
}

.ts-link-arrow-effect span {
    transform: none !important;
    opacity: 1 !important;
    display: inline-block !important;
    position: static !important;
}

/* Force span visibility inside link-arrow-effect and remove all style.css animations */
[class*="ts-link-arrow-effect"],
[class*="ts-link-arrow-effect"]:before,
[class*="ts-link-arrow-effect"] span {
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
}

/* Specific fix for style.css hover translation that might hide elements on touch */
.ts-item:hover .icon,
.ts-item:hover h4,
.ts-item:hover p {
    transform: none !important;
    /* Prevent content shift on tap */
}

/* Force span visibility inside link-arrow-effect */
[class*="ts-link-arrow-effect"] span {
    transform: none !important;
    opacity: 1 !important;
}

/* Fix for Modal Close Button visibility */
.modal-header .close span {
    color: #f26c4f !important;
    font-size: 2rem;
    font-weight: bold;
}

.modal-header .close {
    background: white !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
}

/* Fix for Download CV Icon on Mobile */
@media (max-width: 767px) {
    .fa-download {
        color: #f26c4f !important;
        opacity: 1 !important;
    }

    .btn-outline-light .fa-download {
        color: #fff !important;
    }

    .ts-visible.btn-outline-light {
        border-color: #f26c4f !important;
        color: #f26c4f !important;
    }
}