/* Warp exit canvas */
#cv-warp-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9100;
    pointer-events: none;
    display: none;
    background: #15100b;
}

/* Page Enter Overlay */
#page-enter-overlay {
    position: fixed;
    inset: 0;
    background: #15100b;
    z-index: 9000;
    pointer-events: none;
    animation: cvEnterFade 0.75s ease forwards;
}

@keyframes cvEnterFade {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #15100b;
    --text-color: #ede8df;
    --text-gray: #968d85;
    --border-color: #ede8df;
    --accent-color: #c44743;
    --sidebar-width: 200px;
    --nav-bg: rgba(21, 16, 11, 0.6);
    --nav-border: rgba(237, 232, 223, 0.1);
    --shadow-color: rgba(237, 232, 223, 0.12);
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glass Navigation Bar */
.navbar {
    position: fixed;
    top: 20px;
    right: 40px;
    z-index: 1001;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--nav-border);
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
}

.cv-button {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-button:hover {
    background: var(--nav-border);
    transform: scale(1.05);
}

/* Theme Toggle Button */

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(237, 232, 223, 0.1);
    z-index: 1000;
}


.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    padding: 3rem 0 2rem 2rem;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 100;
}

.back-link {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-color);
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 1rem;
}

.nav-link {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: 1rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--text-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link.active::before {
    width: 0.5rem;
}

/* Main Content */
.cv-content {
    margin-left: var(--sidebar-width);
    padding: 4rem 4rem 4rem 6rem;
}

/* CV Sections */
.cv-section {
    padding: 4rem 0 3rem;
    margin-bottom: 0;
}

.section-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 0;
    padding-bottom: 1.25rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(237, 232, 223, 0.12);
}


.section-content {
    margin-top: 2.5rem;
}

/* Basics Section */
.cv-name {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-shadow: 3px 3px 0px var(--text-gray);
}

.cv-label {
    font-size: 1.2rem;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 1.75rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.icon-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    position: relative;
}

.icon {
    width: 100%;
    height: 100%;
    fill: var(--text-color);
    transition: filter 0.3s ease, fill 0.3s ease;
}

/* Icon Hover Animations */
.icon-link:hover {
    transform: none;
}

.icon-link:hover .icon {
    fill: var(--accent-color);
    filter: none;
}

.summary {
    margin-top: 2rem;
}

.summary h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.summary p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Timeline Items (Work, Education, Awards) */
.timeline-item,
.award-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(237, 232, 223, 0.1);
}


.timeline-item:last-child,
.award-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-text {
    flex: 1;
}

.timeline-images {
    width: 100%;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.image-box {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--nav-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.image-box:hover {
    transform: scale(1.02);
}

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

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    gap: 1.5rem;
}

.timeline-header h3 {
    font-size: 1.3rem;
    font-weight: 400;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-style: italic;
    white-space: nowrap;
    flex-shrink: 0;
}

.timeline-links {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timeline-link {
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.timeline-link:hover {
    background: var(--nav-border);
    transform: scale(1.05);
}

.timeline-company {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.company-link {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.company-link:hover {
    opacity: 0.7;
}

.timeline-description {
    font-size: 1rem;
    line-height: 1.8;
}

/* Education Details */
.education-details {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
}

.detail-heading {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.detail-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.detail-list li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.detail-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-gray);
}

/* Publications */
.publication-item {
    margin-bottom: 2.5rem;
}

.publication-item h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.publication-authors {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.publication-venue {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.publication-description {
    font-size: 1rem;
    line-height: 1.8;
}

/* Certificates */
.certificate-item {
    margin-bottom: 2rem;
}

.certificate-item h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.certificate-issuer {
    font-size: 1rem;
    color: var(--text-gray);
}

.certificate-date {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Projects grid */
#projects .section-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-item {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    padding: 1.25rem;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-item:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}


.project-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.project-text {
    flex: 1;
}

.project-images {
    flex-shrink: 0;
    width: 250px;
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.project-item h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.project-featured {
    font-size: 1.5rem !important;
}

.project-tagline {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background: transparent;
    border: 1px solid rgba(237, 232, 223, 0.12);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-gray);
    font-weight: 300;
}


.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    padding: 0.5rem 1.2rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* Featured In cards */
.featured-news {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-card {
    text-decoration: none;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.news-preview {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

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

.news-info {
    padding: 1rem;
}

.news-outlet {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    display: block;
    margin-bottom: 0.4rem;
}

.news-description {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.85rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-gray);
    margin: 0;
}

/* Project image previews */
.project-preview {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px var(--shadow-color);
}

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

/* Skills */
.skills-inline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skills-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.skills-row-label {
    font-weight: 400;
    font-style: italic;
    color: var(--text-color);
    white-space: nowrap;
    min-width: 160px;
    padding-top: 0.25rem;
}

.skills-row-value {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: transparent;
    border: 1px solid rgba(237, 232, 223, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-gray);
}


/* Basics Section — full-width centered header */
#basics.cv-section {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}


/* Featured In */
#featured.cv-section {
    padding-bottom: 2rem;
}

/* Skills / Interests / Languages — compact */
#skills.cv-section,
#interests.cv-section,
#languages.cv-section {
    padding-bottom: 2rem;
}

#languages.cv-section {
    margin-bottom: 0;
}

.interests-list {
    list-style: none;
    padding-left: 0;
}

.interests-list li {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.interests-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-gray);
}

/* Languages */
.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

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

.language-name {
    font-size: 1.1rem;
    font-weight: 400;
}

.language-level {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Scroll Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cv-content {
        padding: 4rem 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
    }

    .sidebar {
        display: none;
    }

    .cv-content {
        margin-left: 0;
        padding: 4rem 2rem;
    }

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

    .cv-name {
        font-size: 2.5rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-date {
        margin-top: 0.25rem;
    }

    #projects .section-content {
        grid-template-columns: 1fr;
    }

    .featured-news {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cv-content {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cv-name {
        font-size: 2rem;
    }
}
