/* =============================================
   Improvements to reduce inline styles
   ============================================= */

/* Timeline spacing */
.timeline-block-margin {
    margin-top: 50px;
}

/* Button sizes */
.btn-small {
    font-size: 12px;
}

.btn-small-text {
    font-size: 11px;
}

/* Text utilities */
.text-small {
    font-size: 12px;
}

/* Spacing utilities */
.margin-top-50 {
    margin-top: 50px;
}

/* Accessibility improvements */
a[target="_blank"]::after {
    content: " \2197";
    font-size: 0.8em;
    vertical-align: super;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive text */
@media (max-width: 768px) {
    .btn-small {
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* Loading optimization */
#loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #06A763 0%, #05A55C 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
}

#loading-center {
    width: 100%;
    height: 100%;
    position: relative;
}

#loading-center-absolute {
    width: 100%;
    max-width: 420px;
    padding: 25px;
    position: relative;
    margin: 0 auto;
    top: auto;
    left: auto;
    transform: none;
}

#loading .box-holder {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto 20px;
    display: block;
}

#loading .text-holder {
    position: relative;
    top: auto;
    width: 100%;
    color: #ffffff;
    margin-top: 12px;
}

.loader-profile {
    margin: 15px auto 10px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.25);
}

.loader-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.loader-status {
    color: #f1f1f1;
    margin: 12px 0 8px;
    font-size: 14px;
}

.loader-data {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 320px;
    text-align: left;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.6;
}

.loader-data li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}

.loader-data li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffffff;
}

/* Improve form styling */
.input-field {
    margin-bottom: 1.5rem;
}

.input-field input:focus,
.input-field textarea:focus {
    border-bottom: 2px solid #06A763;
    box-shadow: 0 1px 0 0 #06A763;
}

#contact .row {
    display: flex;
    flex-wrap: wrap;
}

#contact .col-md-7,
#contact .col-md-5 {
    display: flex;
    flex-direction: column;
}

#contact #map-card,
#contact #contact-card {
    display: flex;
    flex: 1 1 auto;
}

#contact #map-card .card,
#contact #contact-card .card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#contact #map-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Progress bar improvements */
.progress {
    background-color: #f5f5f5;
    border-radius: 4px;
    height: 4px;
    overflow: hidden;
}

.progress .indeterminate {
    background-color: #06A763;
}

/* Skill bar improvements */
.skillbar {
    background-color: #f5f5f5;
    border-radius: 3px;
    overflow: visible;
    margin-bottom: 20px;
    position: relative;
}

.skillbar-bar {
    background: linear-gradient(90deg, #06A763, #00d4aa);
    height: 5px;
    transition: width 0.3s ease;
}

#skills .card .skillbar .skill-bar-percent {
    color: #b0b0b0 !important;
    z-index: 2;
    position: absolute;
    right: 1px;
    top: -20px;
}

#skills .card .skillbar .skillbar-title span {
    color: #b0b0b0 !important;
}

/* Modal improvements */
.modal-content {
    border-radius: 4px;
}

.modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
}

/* Card improvements */
.card {
    border-radius: 4px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 3px 20px 0 rgba(0, 0, 0, 0.15);
}

/* Link improvements */
a {
    color: #06A763;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #05A55C;
    text-decoration: underline;
}

#contact #myMap,
.contact-map {
    width: 100%;
    min-height: 320px;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
