/* ===== CV PAGE STYLES ===== */

/* ===== CV HEADER SECTION ===== */
.cv-header-section {
    position: relative;
    width: 100%;
    padding: 120px 20px 60px;
    background: var(--bg-dark);
}

.cv-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cv-page-title {
    font-family: 'Sugar Snow', cursive;
    font-size: 4rem;
    color: var(--text-light);
    margin: 0;
    font-weight: normal;
}

.cv-download-wrapper {
    display: flex;
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    background: linear-gradient(135deg, #8B5CF6 0%, #4A9EFF 40%, #00D9FF 70%, #24FF72 100%);
    border: none;
    color: var(--text-light);
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.cv-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #24FF72 0%, #00D9FF 30%, #4A9EFF 60%, #8B5CF6 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.cv-download-btn:hover::before {
    opacity: 1;
}

.cv-download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(74, 158, 255, 0.2);
}

.cv-download-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cv-download-btn:hover svg {
    transform: translateY(3px) scale(1.1);
}

/* ===== CV CONTENT SECTION ===== */
.cv-content-section {
    position: relative;
    width: 100%;
    padding: 40px 20px 80px;
    background: var(--bg-dark);
}

/* ===== CV SECTIONS ===== */
.cv-section {
    margin-bottom: 60px;
}

.cv-section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Sugar Snow', cursive;
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: normal;
    position: relative;
    padding-bottom: 15px;
}

.cv-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--green);
    transition: background 0.3s ease;
}

.title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.title-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--green);
    transition: stroke 0.3s ease;
}

.cv-section-content {
    padding-left: 55px;
}

.cv-section-content > p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin: 0;
}

/* ===== EXPERIENCE ITEMS ===== */
.cv-experience-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
    border-left: 2px solid var(--border-subtle);
}

.cv-experience-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cv-experience-item:hover::before {
    width: 14px;
    height: 14px;
    left: -8px;
    box-shadow: 0 0 15px var(--green);
}

.cv-experience-item:last-child {
    margin-bottom: 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.experience-title-group {
    flex: 1;
    min-width: 250px;
}

.experience-title {
    font-size: 1.375rem;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 600;
}

.experience-company {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
    font-weight: 500;
}

.experience-date {
    font-size: 0.938rem;
    color: var(--green);
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s ease;
}

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

.experience-details li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.experience-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.experience-details li:last-child {
    margin-bottom: 0;
}

/* ===== COMPETENCIES GRID ===== */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.competency-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.competency-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--green);
    transform: translateY(-3px);
}

.competency-title {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 600;
}

.competency-desc {
    font-size: 0.938rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0;
}

/* ===== SKILLS GRID ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--green);
    padding: 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.skill-category-title {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.skill-category p {
    font-size: 0.938rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0;
}

/* ===== EDUCATION ===== */
.education-item,
.professional-dev {
    margin-bottom: 30px;
}

.education-item:last-child,
.professional-dev:last-child {
    margin-bottom: 0;
}

.education-degree {
    font-size: 1.375rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.education-school {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 5px;
    font-weight: 500;
}

.education-details {
    font-size: 0.938rem;
    color: var(--text-dim);
    margin: 0;
}

.cert-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.cert-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.cert-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 1.125rem;
    font-weight: bold;
}

.cert-list li:last-child {
    margin-bottom: 0;
}

/* ===== REFERENCES GRID ===== */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.reference-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.reference-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--green);
    transform: translateY(-3px);
}

.reference-name {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.reference-title {
    font-size: 1rem;
    color: var(--green);
    margin-bottom: 5px;
    font-weight: 500;
}

.reference-org {
    font-size: 0.938rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

.reference-contact {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.reference-contact:last-child {
    margin-bottom: 0;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .cv-header-section {
        padding: 100px 20px 50px;
    }

    .cv-page-title {
        font-size: 3.5rem;
    }

    .cv-section-title {
        font-size: 2.25rem;
    }

    .cv-section-content {
        padding-left: 40px;
    }
}

@media (max-width: 768px) {
    .cv-header-section {
        padding: 90px 15px 40px;
    }

    .cv-header-content {
        flex-direction: column;
        align-items: center;
    }

    .cv-page-title {
        font-size: 3rem;
        text-align: center;
    }

    .cv-download-btn {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }

    .cv-section-title {
        font-size: 2rem;
    }

    .cv-section-content {
        padding-left: 0;
    }

    .experience-header {
        flex-direction: column;
        gap: 10px;
    }

    .experience-date {
        align-self: flex-start;
    }

    .competencies-grid,
    .skills-grid,
    .references-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cv-header-section {
        padding: 80px 10px 30px;
    }

    .cv-page-title {
        font-size: 2.5rem;
    }

    .cv-section-title {
        font-size: 1.75rem;
        gap: 10px;
    }

    .title-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .experience-title {
        font-size: 1.25rem;
    }

    .cv-download-btn {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .cv-download-wrapper,
    .site-footer,
    #back-to-top {
        display: none !important;
    }

    .cv-content-section {
        padding: 20px 0;
    }

    .cv-section {
        page-break-inside: avoid;
    }

    .cv-experience-item {
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }

    .cv-section-title,
    .experience-title,
    .competency-title,
    .skill-category-title,
    .education-degree,
    .reference-name {
        color: black;
    }

    .cv-contact-item,
    .experience-company,
    .experience-details li,
    .competency-desc,
    .skill-category p,
    .education-school,
    .reference-title,
    .reference-org,
    .reference-contact {
        color: #333;
    }
}