:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f7f7f7;
    --primary-text: #333333;
    --secondary-text: #444;
    --accent: #777;
    --border: #ddd;
    --dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    display: flex;
    color: var(--primary-text);
    line-height: 1.6;
    background-color: var(--primary-bg);
}

h1 {
    font-size: clamp(1.8rem, 5.5vw, 5.8rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
    margin: 0;
    color: #333333;
}

h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    color: #333333;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333333;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

canvas {
    max-width: 100%;
    height: auto;
}

.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    height: auto;
    padding-bottom: 1.5rem;
}

.main-content {
    flex: 1;
    padding: 2rem 4rem;
    margin-left: 500px;
    padding-bottom: 2rem;
}

.header {
    margin-bottom: 3rem;
}

.name-container {
    position: relative;
    display: inline-block;
}

.greeting {
    position: absolute;
    right: 1rem;
    top: -1.5rem;
    font-size: 1rem;
    color: var(--secondary-text);
    font-weight: 400;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.title {
    color: var(--secondary-text);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 100;
}

.experience-section {
    margin-bottom: 0;
}

/* ========================================
   HOVER-TO-EXPAND EFFECT
   ======================================== */

.experience-item {
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border: 1px solid #333333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;

}

.experience-item:not(:last-child) {
    border-bottom: 2px solid #333333;
}

/* Hide expandable content by default */
.experience-item .position {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease, color 0.3s ease;
    margin-top: 0;
    margin-bottom: 0;
}

.experience-item .duties {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease, color 0.3s ease;
    margin-top: 0;
}

/* ON HOVER - Expand content + dark bg + white text */
.experience-item:hover,
.experience-item.expanded {
    background: linear-gradient(90deg, #333333 0%, #3d4a4f 100%);
    color: #fff;
}

.experience-item:hover .position,
.experience-item.expanded .position {
    max-height: 100px;
    opacity: 1;
    margin-top: 0.7rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.experience-item:hover .duties,
.experience-item.expanded .duties {
    max-height: 1000px;
    opacity: 1;
    margin-top: 0.3rem;
    color: #fff;
}

/* White text for all child elements on hover */
.experience-item:hover .company-main,
.experience-item:hover .company-subtitle,
.experience-item:hover .company-date-cell,
.experience-item:hover .private-tag,
.experience-item:hover .client-tag,
.experience-item:hover .duties li,
.experience-item:hover .duties li::before,
.experience-item:hover .tech-tag,
.experience-item.expanded .company-main,
.experience-item.expanded .company-subtitle,
.experience-item.expanded .company-date-cell,
.experience-item.expanded .private-tag,
.experience-item.expanded .client-tag,
.experience-item.expanded .duties li,
.experience-item.expanded .duties li::before,
.experience-item.expanded .tech-tag {
    color: #fff;
}

/* Adjust tags background on hover */
.experience-item:hover .private-tag,
.experience-item:hover .client-tag,
.experience-item.expanded .private-tag,
.experience-item.expanded .client-tag {
    background-color: #555;
    color: #fff;
}

/* Links white on hover */
.experience-item:hover a,
.experience-item.expanded a {
    color: #fff;
}

/* Tech tags lighter on dark bg */
.experience-item:hover .tech-tag,
.experience-item.expanded .tech-tag {
    color: #aaa;
}

/* ========================================
   END HOVER-TO-EXPAND
   ======================================== */

.experience-header {
    margin-bottom: 0;
    display: block;
    width: 100%;
}

.experience-header .company {
    font-size: 1rem;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    width: 100% !important;
    margin-bottom: 0;
}


.company {
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 0;
    margin-top: 0;
    font-weight: 600;
    color: #333333;
}

.company-title-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-date-cell {
    white-space: nowrap;
    font-weight: 100;
    text-align: right;
}


@media (max-width: 806px) {
    .company {
        flex-direction: column;
    }

    .company-title-cell {
        border-radius: 4px 4px 0 0;
        justify-content: center;
    }

    .company-date-cell {
        border-radius: 0 0 4px 4px;
        justify-content: center;
        font-weight: 700;
    }
}

.position {
    margin-left: 0.8rem;
    position: relative;
    display: flex;
    align-items: baseline;
}

.date {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.private-tag, .client-tag {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    margin-right: 0.5rem;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.private-tag {
    background-color: #f3f3f3;
    color: var(--secondary-text);
}

.client-tag {
    background-color: #f7f7f7;
    color: var(--accent);
}

.duties {
    list-style: none;
    font-weight: 100;
}

.duties li {
    margin-bottom: 0.2rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.3s ease;
    color: #333333;

}

.duties li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--accent);
    transition: color 0.3s ease;
}

.tech-tags {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: fixed;
    gap: 0.3rem;
    word-spacing: 1.5rem;
}

.tech-tag {
    font-size: 0.7rem;
    font-weight: 100;
    color: #999;
    transition: color 0.3s ease;
}

.skill-project-section {
    width: 720px;
    margin-bottom: 3rem;
}

.skill-description {
    margin-bottom: 2rem;
    line-height: 1.5;
    color: var(--secondary-text);
}

.skill-description p {
    margin-bottom: 0.2rem;
    line-height: 1.3;
    font-size: 0.9rem;
}

.language-proficiency {
    display: flex;
    width: 720px;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.language-item {
    text-align: center;
    padding: 0.2rem 0.5rem;
}

.language-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: #333333;
}

.language-level {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.language-native {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.language-item img {
    width: 20px;
    height: auto;
    margin-top: 0.2rem;
}

.summary {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.summary p {
    font-size: 0.9rem;
    font-weight: 100;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.summary .website {
    display: none;
}

.site-footer {
    background-color: #333333;
    color: #fff;
    padding: 0.1rem 0;
    text-align: center;
    font-weight: 100;
    font-size: 0.7rem;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.footer-content {
    margin: 0;
    width: 100%;
}

@media (min-width: 1345px) {
    .container {
        width: auto !important;
        margin: 0 auto;
    }

    .footer-large {
        display: block;
    }

    .footer-small {
        display: none;
    }

    .footer-content {
        display: flex;
    }

    .footer-content div:nth-child(1) {
        text-align: right;
        margin-right: 450px;
    }

    .footer-content div:nth-child(2) {
        text-align: left;
        margin-right: 100px;
    }

    .skill-project-section {
        width: 800px;
    }

    .skill-description {
        width: 800px;
    }

    .summary {
        width: 800px;
    }
}

@media (max-width: 1345px) {
    .container {
        flex-direction: column;
    }

    .language-proficiency {
        width: 100%;
    }

    .sidebar {
        width: 100% !important;
        height: auto;
        position: center;
        padding: 2rem !important;
        overflow-y: visible;
        margin-left: 0 !important;
        padding-left: 2rem !important;
    }

    .main-content {
        margin-left: 0;
        padding: 2rem;
        width: 100%;
        text-align: center;
    }

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

    .language-proficiency {
        flex-wrap: wrap;
        justify-content: center;
    }

    .language-item {
        width: 50%;
        margin-bottom: 1rem;
    }

    h1, h2, h3, p, .title, .header, .company, .position, .date,
    .skill-description p, .summary p, .experience-header,
    .contact-info, .contact-item, .skill-list, .language-proficiency,
    .language-item, .experience-item {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .position {
        justify-content: center;
    }

    .duties {
        text-align: left;
        display: inline-block;
        max-width: 100%;
    }

    .footer-large {
        display: none;
    }

    .footer-small {
        display: block;
    }

    .footer-content {
        text-align: center;
    }

    .footer-content div:nth-child(2) {
        display: none;
    }

    .summary {
        margin: 0 auto;
    }
}

@media (max-width: 1344px) {
    .footer-content div:nth-child(2) {
        display: none;
    }

    .footer-content {
        text-align: center;
    }
}

@media (max-width: 620px) {
    h1 {
        font-size: 1.8rem !important;
        line-height: 0.9 !important;
    }

    h2 {
        font-size: 0.9rem !important;
    }

    h3 {
        font-size: 0.8rem !important;
    }

    p {
        font-size: 0.7rem !important;
    }

    .title {
        font-size: 0.75rem !important;
    }

    .company {
        font-size: 0.6rem !important;
    }

    .company-main,
    .company-subtitle,
    .company-date {
        font-size: 0.6rem !important;
    }

    .position {
        font-size: 0.7rem !important;
    }

    .date {
        font-size: 0.65rem !important;
    }

    .duties li {
        font-size: 0.65rem !important;
    }

    .skill-list {
        font-size: 0.46rem !important;
    }

    .skill-description p {
        font-size: 0.65rem !important;
    }

    .summary p {
        font-size: 0.7rem !important;
    }

    .tech-tag {
        font-size: 0.55rem !important;
    }

    .private-tag,
    .client-tag {
        font-size: 0.6rem !important;
    }

    .language-name {
        font-size: 0.65rem !important;
    }

    .language-level,
    .language-native {
        font-size: 0.6rem !important;
    }
}



.header-table {
    border-collapse: collapse;
    border-spacing: 0;
    line-height: 1;
}

.header-table tr {
    height: 1.2rem;
}

.header-table td {
    line-height: 1;
}

.name-cell {
    padding: 0 1.5rem;
    vertical-align: middle;
    border-right: 1px solid #333333;
}

.name-cell h1 {
    margin: 0;
    line-height: 0.5;
}

.profession-cell {
    padding: 0 1.2rem;
    font-size: 0.9rem;
    font-weight: 300;
    color: #333333;
    line-height: 1;
    vertical-align: middle;
    border: none;
}

.profession-cell:last-child {
    border-bottom: none;
}


.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #333333;
    border-radius: 4px;
    color: #333333;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #333333;
    color: #fff;
}

.download-btn span {
    font-size: 1rem;
}



@media print {
    .download-buttons,
    .gallery-title,
    .site-footer,

    .sidebar {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
        padding: 0.5rem 1rem !important;
        padding-left: 1rem !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0.5rem 1rem !important;
    }

    .container {
        flex-direction: column !important;
    }

    .experience-item {
        padding: 0.4rem 0.8rem !important;
        margin-bottom: 0.4rem !important;
    }

    h1 {
        font-size: 2rem !important;
    }

    .skill-list {
        font-size: 0.6rem !important;
    }

    .duties li {
        font-size: 0.7rem !important;
        margin-bottom: 0 !important;
    }

    .summary,
    .skill-description,
    .language-proficiency {
        display: none !important;
    }
}

@media print {
    .download-buttons,
    .site-footer,
    .gallery-title {
        display: none !important;
    }

    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}



























/* BONUS TRIGGER - always visible */
.bonus-trigger {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* BONUS SECTION - hidden by default */
.bonus-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.bonus-section.show {
    max-height: 500px;
    opacity: 1;
}

/* Hide original download-buttons inside bonus when closed */
.bonus-section .download-buttons {
    margin-top: 0;
}

/* BONUS button styling */
.bonus-btn {
    background-color: #333333;
    color: #fff;
}

.bonus-btn:hover {
    background-color: #555;
    color: #fff;
}

.bonus-btn.active {
    background-color: #555;
}








/* BONUS ROW - side by side layout */
.bonus-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 0.5rem;
}

.bonus-row > div:first-child {
    flex-shrink: 0;
}
89
.bonus-row .company {
    width: auto !important;
    margin: 0 !important;
}

.gallery-area {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}


.gallery-info {
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
}

.company.bonus-bar {
    font-size: 1rem;
    font-weight: 500;
}





























.download-btn.gallery-btn {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
}

