/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ===== SIDE MENU ===== */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.side-nav ul {
    list-style: none;
}

.side-nav li {
    margin: 30px 0;
}

.side-nav a {
    color: white;
    text-decoration: none;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 10px;
    display: block;
    transition: opacity 0.3s;
}

.side-nav a:hover,
.side-nav a.active {
    opacity: 0.7;
}

.language-switcher {
    display: none;
}

/* ===== MAIN CONTENT ===== */
.section {
    display: none;
    padding: 30px 50px;
    min-height: 100vh;
}

.section.active {
    display: block;
    position: relative;
}

.section>* {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.content {
    margin-left: 80px;
    position: relative;
}

.content::before {
    content: "";
    position: fixed;
    top: 0;
    left: 80px;
    right: 0;
    bottom: 0;
    background: url('/assets/images/background_pages.jpg') center/cover;
    background-color: rgba(255, 255, 255, 0.6);
    background-blend-mode: overlay;
    z-index: -1;
}

/* ===== HOME PAGE ===== */
#home {
    background:
        linear-gradient(to bottom, rgb(255, 255, 255), rgba(255, 255, 255, 0.619)),
        url('/assets/images/background_home.jpg') center/cover;
    background-blend-mode: overlay;
}

#home.active {
    display: flex;
    align-items: center;
}

.alex {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    text-align: left;
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.alex-image {
    height: 480px;
    object-fit: cover;
    flex-shrink: 0;
    margin: -60px 0 0 0;
}

.alex-content {
    flex: 1;
}

.alex h1 {
    font-size: 2.5em;
    margin-bottom: 0px;
    color: #2c3e50;
    text-align: left;
}

.alex>p {
    font-size: 1.2em;
    color: #7f8c8d;
    text-align: left;
    margin-bottom: 25px;
}

.main-subtitle {
    font-size: 1.4em;
    color: #2c3e50;
    margin: 0 0 30px 0;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    max-width: 650px;
}

.personal-quote {
    font-style: italic;
    color: #7f8c8d;
    text-align: justify;
    line-height: 1.6;
    margin: 0 0 30px 0;
    padding: 25px 30px;
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.1em;
    max-width: 640px;
    text-justify: inter-word;
}

.alex-actions {
    margin-top: 30px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #2573a7);
}

/* ===== ABOUT ME SECTION ===== */

.about-tabs-container {
    margin-top: 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.about-tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.about-tab-btn {
    padding: 15px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.95em;
    color: #6c757d;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    flex: 1;
    min-width: 100px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-direction: column;
}

.about-tab-btn i {
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.about-tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.about-tab-btn.active {
    background: white;
    color: #3498db;
    border-bottom-color: #3498db;
}

.about-tab-btn.active i {
    color: #3498db;
}

.about-tabs-content {
    padding: 0;
}

.about-tab-pane {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease-in;
}

.about-tab-pane.active {
    display: block;
}

#work-tab,
#education-tab,
#languages-tab,
#skills-tab {
    max-width: 1000px;
    margin: 0 auto;
}

#work-tab,
#education-tab {
    padding: 0;
    padding-top: 5px;
    padding-bottom: 20px;
}

#languages-tab {
    padding: 0 20px;
}

#skills-tab {
    padding: 30px 0;
}

/* ===== WORK TAB ===== */
.experience-list {
    margin: 15px 0 0 0;
    max-width: 100%;
}

.experience-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 18px;
    margin: 10px 0;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid #3498db;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-height: 75px;
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.experience-item-period-container {
    width: 140px;
    white-space: nowrap;
    text-align: center;
    padding-right: 15px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.experience-item-period {
    font-size: 1em;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 3px;
}

.experience-item-duration {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    color: #6c757d;
    display: inline-block;
}

.experience-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.experience-item-company {
    font-size: 1em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2px;
}

.experience-item-position {
    font-size: 0.9em;
    color: #7f8c8d;
    font-weight: 500;
}

.experience-item:hover .experience-item-duration {
    background: #f8f9fa;
    color: #6c757d;
}

/* ===== EDUCATION TAB ===== */
.education-section {
    margin: 15px 0 0 0;
    max-width: 100%;
}

.education-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 18px;
    margin: 10px 0;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid #2ecc71;
    box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-height: 75px;
}

.education-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #2ecc71;
}

.education-item h4 {
    color: #2c3e50;
    margin-bottom: 3px;
    font-size: 1.1em;
    font-weight: 700;
}

.education-meta {
    color: #666;
    margin: 2px 0;
    font-size: 0.9em;
}

.education-additional {
    margin-top: 15px;
}

.education-toggle {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: bold;
    font-style: italic;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.education-toggle:hover {
    color: #3498db;
}

.education-toggle i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.education-toggle.active i {
    transform: rotate(180deg);
}

.education-additional-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0 15px;
}

.education-additional-content.active {
    max-height: 500px;
    opacity: 1;
    padding: 15px;
    margin-top: 10px;
}

.education-additional-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-additional-item {
    padding: 5px 0;
    color: #555;
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
}

.education-additional-item::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.education-additional-item.subitem {
    padding-left: 25px;
    color: #666;
    font-size: 0.95em;
}

.education-additional-item.subitem::before {
    content: "˗";
    color: #3498db;
    left: 10px;
    font-size: 0.85em;
}

/* ===== LANGUAGES TAB ===== */
.language-bars {
    margin-top: 20px;
    max-width: 100%;
}

.language-bar {
    margin-bottom: 25px;
}

.language-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.language-text {
    font-size: 1.1em;
    color: #2c3e50;
}

.language-level {
    font-size: 0.9em;
    color: #7f8c8d;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 12px;
}

.language-progress {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.language-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
    transform-origin: left;
}

.language-bar.animated .language-progress-fill {
    animation: slideIn 1.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ===== SKILLS TAB ===== */
.skills-sidebar-layout {
    display: flex;
    gap: 40px;
    max-width: 100%;
    margin: 0;
    min-height: 450px;
}

.skills-categories-sidebar {
    flex: 0 0 330px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-category-btn {
    padding: 18px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-weight: normal;
    font-size: 1em;
    color: #2c3e50;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    position: relative;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 65px;
}

.skill-category-btn i {
    font-size: 1.2em;
    color: #6c757d;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.skill-category-btn:hover i {
    color: #495057;
}

.skill-category-btn.active i {
    color: #3498db;
}

.skill-category-btn span {
    flex: 1;
}

.skill-category-btn:hover,
.skill-category-btn.active {
    background: #f8f9fa;
    color: #3498db;
    font-weight: normal;
    transform: translateX(5px);
    box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.1);
}

.skills-content-area {
    flex: 1;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    min-height: 400px;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.1);
}

.skills-content-pane {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.skills-content-pane.active {
    display: block;
}

.skills-items-sidebar {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-item-sidebar {
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    line-height: 1.5;
    color: #555;
    font-size: 1em;
    position: relative;
    padding-left: 25px;
}

.skill-item-sidebar:last-child {
    border-bottom: none;
}

.skill-item-sidebar::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #3498db;
    border-radius: 50%;
    position: absolute;
    left: 10px;
    top: 20px;
    transition: all 0.3s ease;
}

.skill-item-sidebar:hover::before {
    background: #2980b9;
    transform: scale(1);
}

/* ===== INTERESTS TAB ===== */
.interests-container {
    max-width: 1000px;
    margin: 0 auto;
}

.interest-category {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
    border-left: 4px solid #9b59b6;
    box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.1);
}

.interest-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.interest-category-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.interest-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.interest-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.interest-item:hover {
    background: #9b59b6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(155, 89, 182, 0.4);
    border-color: #9b59b6;
}

.interest-item:hover .interest-item-icon {
    color: white;
}

.interest-item-icon {
    font-size: 1.3em;
    color: #9b59b6;
    transition: color 0.3s ease;
}

.interest-item-text {
    font-weight: 500;
}

.interest-single {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.interest-single:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #3498db;
    color: white;
}

.interest-single:hover .interest-single-icon {
    color: white;
}

.interest-single-icon {
    font-size: 1.8em;
    color: #3498db;
    transition: color 0.3s ease;
}

.interest-single-text {
    font-size: 1.1em;
    font-weight: 500;
}

.interest-single:first-child {
    border-left-color: #05a19e;
}

.interest-single:first-child:hover {
    background: #05a19e;
    color: white;
}

.interest-single:first-child .interest-single-icon {
    color: #05a19e;
}

.interest-single:first-child:hover .interest-single-icon {
    color: white;
}

/* ===== CONTACTS SECTION ===== */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #2980b9;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8em;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.contact-info span {
    color: #7f8c8d;
    font-size: 1.1em;
}

.contact-form {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.contact-form h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.3em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.form-note {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 15px;
    font-style: italic;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .side-nav {
        width: 60px;
    }

    .content {
        margin-left: 60px;
    }

    .section {
        padding: 30px 20px;
    }

    .alex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 50px 0;
    }

    .alex-image {
        width: 300px;
        height: 300px;
        margin: 0;
    }

    .alex h1,
    .alex>p,
    .main-subtitle,
    .personal-quote {
        text-align: center;
    }

    .about-tabs-nav {
        flex-direction: column;
    }

    .about-tab-btn {
        text-align: left;
        border-bottom: 1px solid #e9ecef;
        border-left: 3px solid transparent;
        flex: none;
        min-width: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }

    .about-tab-btn.active {
        border-left-color: #3498db;
        border-bottom-color: #e9ecef;
    }

    .experience-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .experience-item-period-container {
        min-width: auto;
        text-align: center;
    }

    .experience-item-company {
        font-size: 1.1em;
    }

    .experience-item-position {
        font-size: 1em;
    }

    .education-item {
        margin: 20px 0;
        padding: 20px;
    }

    .education-section {
        margin: 25px 0;
    }

    .language-bars {
        max-width: 95%;
    }

    .language-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .language-level {
        align-self: flex-start;
    }

    .skills-sidebar-layout {
        flex-direction: column;
        gap: 20px;
    }

    .skills-categories-sidebar {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .skill-category-btn {
        flex: 1;
        min-width: 150px;
        text-align: center;
        padding: 15px;
        min-height: 60px;
        gap: 12px;
    }

    .skill-category-btn:hover,
    .skill-category-btn.active {
        transform: translateY(-2px);
    }

    .skills-content-area {
        min-height: 300px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    #work-tab,
    #education-tab,
    #languages-tab,
    #skills-tab {
        padding: 0 10px;
    }

    .interest-items {
        flex-direction: column;
        gap: 10px;
    }

    .interest-item {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .about-tab-btn {
        padding: 12px 10px;
        font-size: 0.9em;
    }

    .skill-category-btn {
        min-width: 120px;
        font-size: 0.9em;
        padding: 12px 10px;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .project-content {
        padding: 20px;
    }
}

/* ===== EXPERIENCE ADDITIONAL INFO ===== */
.experience-additional {
    margin-top: 10px;
}

.experience-toggle {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: bold;
    font-style: italic;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.experience-toggle:hover {
    color: #3498db;
}

.experience-toggle i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.experience-toggle.active i {
    transform: rotate(180deg);
}

.experience-additional-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0 15px;
}

.experience-additional-content.active {
    max-height: 500px;
    opacity: 1;
    padding: 12px 15px;
    margin-top: 8px;
}

.experience-additional-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-additional-item {
    padding: 3px 0;
    color: #555;
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
}

.experience-additional-item::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.experience-text {
    padding: 4px 0;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.experience-additional-content-inner>* {
    margin-bottom: 4px;
}

.experience-additional-content-inner>*:last-child {
    margin-bottom: 0;
}