@import url("https://fonts.googleapis.com/css?family=Roboto");

/* Reset and Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 13px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #a6a5a0;
    background-color: #303030;
    border-radius: 15px;
    margin: 0;
    padding: 0;
    transition: 0.5s;
    cursor: default;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUnderline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(45, 82, 102, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(45, 82, 102, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Ripple effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg) scale(1.2);
    }
    25% {
        transform: rotate(-3deg) scale(1.2);
    }
    75% {
        transform: rotate(3deg) scale(1.2);
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(45, 82, 102, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* Updated Theme Variables to Match main_heniloux */
:root {
    --bg-body: #1f1f1f;           /* dark gray background */
    --sidebar-bg: #36332b;        /* dark gray sidebar */
    --sidebar-text: #a6a5a0;      /* muted light gray for sidebar text */
    --sidebar-muted: #909090;     /* muted gray */
    --content-bg: #303030;        /* dark gray for main content */
    --text-main: #a6a5a0;         /* muted light gray for text */
    --text-heading: #dbc4ae;      /* beige for headings */
    --muted: #909090;             /* muted gray for text */
    --panel-card: #303030;        /* dark gray for card backgrounds */
    --pill-bg: #c68c05;           /* gold for skill pills */
    --accent: #c68c05;            /* gold accent */
    --accent-light: #dbc4ae;      /* beige accent */
    --light-yellow: #dbc4ae;      /* beige complementary */
}

/* Apply updated variables */
body {
    color: var(--text-main);
    background-color: var(--bg-body);
}

.container {
    background: var(--content-bg);
}

.main-content {
    background: var(--content-bg);
}

.ripple {
    background: var(--accent-light);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #303030;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    min-height: 100vh;
    border-radius: 15px;
}

/* PDF-specific scaling */
@media screen {
    .container {
        transform-origin: top center;
    }
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    min-height: 100vh;
}

/* ========== LEFT SIDEBAR STYLES ========== */
.sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 0;
    position: relative;
}

/* Profile Section */
.profile-section {
    padding: 40px 30px;
    text-align: center;
    background: transparent;
}

.profile-photo {
    margin: 0 auto 20px;
}

.profile-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto;
}

.photo-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Sidebar Sections */
.sidebar-section {
    padding: 25px 30px;
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1.2rem;
    text-transform: lowercase;
    letter-spacing: 0px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    animation: fadeSlideUp 420ms ease both;
    padding-left: 0;
    transition: all 0.3s ease;
}

.sidebar-section:nth-of-type(1) .sidebar-title { animation-delay: 0.1s; }
.sidebar-section:nth-of-type(2) .sidebar-title { animation-delay: 0.3s; }
.sidebar-section:nth-of-type(3) .sidebar-title { animation-delay: 0.5s; }

.sidebar-title i {
    color: #c68c05;
    font-size: 1rem;
    transition: transform 0.5s ease;
    display: inline-block;
}

.sidebar-title:hover {
    color: #c68c05;
}

.sidebar-title:hover i {
    transform: rotate(360deg);
}

/* Animated underline for sidebar titles */
.sidebar-title::after {
    display: none;
}

/* Contact List */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeSlideUp 420ms ease both 0.2s;
}

.contact-item:nth-child(1) { animation-delay: 0.2s; }
.contact-item:nth-child(2) { animation-delay: 0.4s; }
.contact-item:nth-child(3) { animation-delay: 0.6s; }
.contact-item:nth-child(4) { animation-delay: 0.8s; }
.contact-item:nth-child(5) { animation-delay: 1.0s; }

.contact-item i {
    color: var(--sidebar-muted);
    width: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    animation: wiggle 0.8s ease;
    color: #dbc4ae;
}

.contact-item a {
    color: var(--sidebar-text);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
    position: relative;
}

.contact-item a {
    position: relative;
}

.contact-item a span {
    position: relative;
}

.contact-item a span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: #fdd835;
    transition: width 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item:hover a {
    color: #dfdfdf;
}

.contact-item:hover a span::after {
    width: 100%;
}

/* Download CV Button */
.download-cv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #5a4503;
    color: #b0b0b0;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    width: 100%;
}

.download-cv-btn:hover {
    background: #dbc4ae;
    color: #303030;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.download-cv-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.download-cv-btn:hover i {
    transform: translateY(2px);
}

/* Print button spacing */
.print-btn {
    margin-top: 12px;
}

/* Education List */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.education-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.3s ease;
    animation: fadeSlideUp 420ms ease both 0.2s;
}

.education-item:nth-child(1) { animation-delay: 0.2s; }
.education-item:nth-child(2) { animation-delay: 0.4s; }
.education-item:nth-child(3) { animation-delay: 0.6s; }
.education-item:nth-child(4) { animation-delay: 0.8s; }

.education-item:hover {
    background: none;
    transform: translateX(5px);
}

.education-year {
    font-size: 0.75rem;
    color: #cccccc;
    margin: 0;
    font-weight: 500;
    font-style: italic;
    position: static;
    order: 999;
    align-self: flex-start;
    margin-top: 4px;
    opacity: 0.95;
}

.education-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sidebar-text);
    margin-bottom: 2px;
    line-height: 1.3;
}

.education-item h3 a {
    color: var(--sidebar-text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.education-item h3 a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background: #c68c05;
    transition: width 0.3s ease;
}

.education-item h3 a:hover::after {
    width: 100%;
}

.education-subtitle {
    font-size: 0.8rem;
    color: var(--sidebar-muted);
    font-style: italic;
    margin-bottom: 2px;
}

.education-school {
    font-size: 0.8rem;
    color: var(--sidebar-text);
}

/* Courses List */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.3s ease;
    animation: fadeSlideUp 420ms ease both 0.2s;
}

.course-item:nth-child(1) { animation-delay: 0.2s; }
.course-item:nth-child(2) { animation-delay: 0.4s; }

.course-item:hover {
    background: none;
    transform: translateX(5px);
}

.course-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sidebar-text);
    margin-bottom: 2px;
    line-height: 1.3;
}

.course-provider {
    font-size: 0.8rem;
    color: var(--sidebar-text);
    margin-bottom: 2px;
}

.course-year {
    font-size: 0.75rem;
    color: #cccccc;
    font-weight: 500;
    font-style: italic;
    order: 999;
    align-self: flex-start;
    margin-top: 4px;
    opacity: 0.95;
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-item {
    font-size: 0.9rem;
    color: var(--sidebar-text);
    padding: 8px 0;
    padding-left: 15px;
    position: relative;
    line-height: 1.4;
    transition: color 0.8s ease;
}

.skill-item::before {
    content: "\2022";
    color: var(--sidebar-muted);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Main content skills grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    background: var(--pill-bg);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #d0dde5;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeSlideUp 420ms ease both 0.6s;
}

.skill-pill:nth-child(1) { animation-delay: 0.6s; }
.skill-pill:nth-child(2) { animation-delay: 0.7s; }
.skill-pill:nth-child(3) { animation-delay: 0.8s; }
.skill-pill:nth-child(4) { animation-delay: 0.9s; }
.skill-pill:nth-child(5) { animation-delay: 1.0s; }
.skill-pill:nth-child(6) { animation-delay: 1.1s; }
.skill-pill:nth-child(7) { animation-delay: 1.2s; }
.skill-pill:nth-child(8) { animation-delay: 1.3s; }
.skill-pill:nth-child(9) { animation-delay: 1.4s; }
.skill-pill:nth-child(10) { animation-delay: 1.5s; }

.skill-pill:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Detailed skills list */
.skills-list-detailed {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.skills-list-detailed li {
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.skills-list-detailed li::before {
    content: "\2022";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.skills-list-detailed li:hover {
    color: var(--text-heading);
    transform: translateX(5px);
    font-weight: 500;
}

.skills-list-detailed li:hover::before {
    color: var(--accent-light);
    transform: scale(1.3);
}

/* Languages List */
.languages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--sidebar-text);
}

.language-level {
    color: var(--sidebar-muted);
    font-size: 0.85rem;
}

/* Additional Info */
.additional-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item strong {
    color: var(--sidebar-text);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 0.85rem;
    color: var(--sidebar-muted);
    line-height: 1.5;
}

/* QR Code */
.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-code {
    width: 140px;
    height: 140px;
    background: #303030;
    padding: 10px;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
    filter: brightness(0.6) sepia(0.4) hue-rotate(10deg) saturate(1.2);
}

.qr-code:hover {
    transform: scale(1.05);
}

.qr-label {
    font-size: 0.85rem;
    color: var(--sidebar-muted);
    text-align: center;
    font-style: italic;
}

/* ========== RIGHT CONTENT STYLES ========== */
.content {
    padding: 50px 60px;
    background: var(--content-bg);
}

/* Content Header */
.content-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(219, 196, 174, 0.1);
}

.name {
    font-size: 2.5rem;
    font-weight: 300;
    color: #dbc4ae;
    margin-bottom: 10px;
    letter-spacing: 2px;
    position: relative;
    animation: fadeSlideUp 420ms ease both 0.6s;
    text-transform: lowercase;
    transition: all 0.8s ease;
    cursor: pointer;
}

.name:hover {
    color: #c68c05;
}

.name::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 0;
    background: #c68c05;
    transition: width 0.5s ease;
}

.name:hover::after {
    width: 100%;
}

.name-bold {
    font-weight: 700;
}

.job-title {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0px;
    position: relative;
    animation: fadeSlideUp 420ms ease both 0.8s;
}

.job-title::after {
    display: none;
}

/* Section Styles */
.section {
    margin-bottom: 50px;
}

/* Section Divider Lines */
.section-divider {
    border: none;
    height: 1px;
    background: rgba(219, 196, 174, 0.3);
    margin: 50px 0;
}

/* Sidebar Divider Lines */
.sidebar-divider {
    border: none;
    height: 1px;
    background: rgba(219, 196, 174, 0.2);
    margin: 25px 30px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 25px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: lowercase;
    letter-spacing: 0px;
    position: relative;
    animation: fadeSlideUp 420ms ease both 0.4s;
    transition: all 0.3s ease;
}

.section-title::after {
    display: none;
}

.section-title:hover {
    color: #c68c05;
    transform: scale(1.03);
}

.section-title i {
    color: #c68c05;
    font-size: 1.3rem;
    transition: transform 0.5s ease;
    display: inline-block;
}

.section-title:hover i {
    transform: rotate(360deg);
}

/* Profile Text */
.profile-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #a0a0a0;
    text-align: left;
    transition: color 0.8s ease;
}

.keyword {
    transition: color 0.3s ease;
    position: relative;
    display: inline;
    cursor: default;
}

.profile-text:hover .keyword {
    color: #c68c05;
}

.keyword:hover {
    color: #dbc4ae !important;
}

/* Skills section keyword highlighting */
.skills-list-detailed:hover .keyword {
    color: #c68c05;
}

/* Work Experience keyword highlighting */
.job-responsibilities:hover .keyword {
    color: #c68c05;
}

/* References keyword highlighting */
.reference-item:hover .keyword {
    color: #c68c05;
}

/* ========== TIMELINE EXPERIENCE ========== */

/* Card-based Work Experience (replaces timeline) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
}

.experience-item {
    background: transparent;
    padding: 18px 20px;
    border-radius: 10px;
    box-shadow: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.3s ease;
    display: block;
    animation: fadeSlideUp 420ms ease both 0.4s;
}

.experience-item:nth-child(1) { animation-delay: 0.4s; }
.experience-item:nth-child(2) { animation-delay: 0.6s; }
.experience-item:nth-child(3) { animation-delay: 0.8s; }
.experience-item:nth-child(4) { animation-delay: 1.0s; }

.experience-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
    background: rgba(0, 0, 0, 0.03);
}

.experience-item:hover .job-responsibilities .keyword {
    color: #c68c05;
}

.experience-item:last-child {
    margin-bottom: 0;
}

/* Year Divider Styles */
.year-divider {
    margin: 35px 0 20px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid rgba(198, 140, 5, 0.2);
    position: relative;
}

.year-divider h4 {
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.year-divider::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--accent);
}

/* Company Header Styles */
.company-header {
    background: rgba(198, 140, 5, 0.08);
    border-left: 4px solid var(--accent);
    margin-bottom: 20px;
}

.company-header .job-header {
    margin-bottom: 0;
}

.company-header h3 {
    color: var(--accent);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.job-header h3 {
    font-size: 1.15rem;
    color: var(--text-heading);
    font-weight: 700;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.experience-item:hover .job-header h3 {
    color: var(--accent);
}

.job-header h3 a {
    color: var(--text-heading);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.job-header h3 a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background: #c68c05;
    transition: width 0.3s ease;
}

.job-header h3 a:hover {
    color: var(--accent);
}

.job-header h3 a:hover::after {
    width: 100%;
}

.job-company {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Link styling for content areas */
.job-company a,
.job-responsibilities a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.job-company a:hover,
.job-responsibilities a:hover {
    color: var(--text-heading);
    border-bottom-color: var(--accent);
}

.experience-item:hover .job-company {
    color: var(--accent-light);
}

.job-date {
    font-size: 0.8rem;
    color: var(--muted);
    background: transparent;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
    font-weight: 600;
  
    flex-shrink: 0;
    align-self: flex-start;
}

.job-responsibilities {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.job-responsibilities li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    transition: color 0.8s ease;
}

.job-responsibilities li::marker {
    color: var(--accent);
}

/* Remove bullet points from DIT Project History */
.timeline .year-divider ~ .experience-item .job-responsibilities {
    list-style: none;
    padding-left: 0;
}

.timeline .year-divider ~ .experience-item .job-responsibilities li::marker {
    content: none;
}

/* ========== REFERENCES ========== */
.references-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.reference-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeSlideUp 420ms ease both 0.4s;
}

.reference-item:nth-child(1) { animation-delay: 0.4s; }
.reference-item:nth-child(2) { animation-delay: 0.6s; }
.reference-item:nth-child(3) { animation-delay: 0.8s; }
.reference-item:nth-child(4) { animation-delay: 1.0s; }

.reference-item h4 {
    font-size: 1.15rem;
    color: var(--sidebar-text);
    margin-bottom: 2px;
    font-weight: 700;
}

.reference-item p {
    font-size: 0.9rem;
    color: var(--sidebar-text);
    margin-bottom: 0;
    line-height: 1.5;
    transition: color 0.8s ease;
}

.reference-item a {
    color: var(--sidebar-text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.reference-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background: #c68c05;
    transition: width 0.3s ease;
}

.reference-item a:hover {
    color: #c68c05;
}

.reference-item a:hover::after {
    width: 100%;
}

.reference-phone {
    margin-top: 10px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sidebar-text) !important;
    font-weight: 600;
    font-size: 0.9rem;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 300px 1fr;
    }

    .content {
        padding: 40px 40px;
    }

    .name {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    html,
    body {
        font-size: 12px;
    }

    .container {
        margin: 0;
        box-shadow: none;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
    }

    .content {
        padding: 30px 20px;
    }

    .content-header {
        text-align: center;
    }

    .name {
        font-size: 2rem;
    }

    .job-title {
        font-size: 1rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -28px;
    }

    .job-header {
        flex-direction: column;
        gap: 10px;
    }

    .job-date {
        align-self: flex-start;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-section {
        padding: 30px 20px;
    }

    .photo-placeholder {
        width: 120px;
        height: 120px;
    }

    .photo-placeholder i {
        font-size: 3rem;
    }

    .sidebar-section {
        padding: 20px;
    }

    .content {
        padding: 25px 15px;
    }

    .name {
        font-size: 1.8rem;
    }

    .job-title {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .timeline {
        padding-left: 25px;
    }

    /* On very small screens, let the education year flow inline */
    .education-year {
        position: static;
        display: block;
        margin-bottom: 6px;
        align-self: flex-start;
    }

    /* On very small screens, let the course year flow inline */
    .course-year {
        position: static;
        display: block;
        margin-bottom: 6px;
        align-self: flex-start;
    }
}

/* Print Styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white;
        margin: 0;
        padding: 0;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
        margin: 0;
        background: white;
        width: 100%;
    }

    .main-content {
        grid-template-columns: 280px 1fr;
        width: 100%;
    }

    .sidebar {
        background: #2d5266 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide print and download buttons when printing */
    .download-cv-btn,
    .print-btn {
        display: none !important;
    }

    /* Ensure proper scaling */
    .content {
        padding: 20px 30px;
    }

    .sidebar-section {
        padding: 18px 25px;
    }

    .profile-section {
        padding: 30px 25px;
    }

    .profile-photo img {
        width: 120px;
        height: 120px;
    }

    /* Typography adjustments for print */
    .name {
        font-size: 2rem;
    }

    .job-title {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    /* Optimize page breaks */
    .experience-item,
    .reference-item,
    .education-item,
    .course-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .section {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    h2, h3 {
        page-break-after: avoid;
        break-after: avoid;
    }

    .timeline::before {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Ensure colors print correctly */
    .sidebar,
    .sidebar-section,
    .profile-section,
    .timeline-marker,
    .timeline::before {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Remove shadows for cleaner print */
    .profile-photo img {
        box-shadow: none;
        border: 3px solid rgba(255, 255, 255, 0.9);
    }

    /* Ensure QR code prints well */
    .qr-code {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* ========== SOFTWARE PROFICIENCY SECTION STYLES ========== */

.skills-proficiency {
    list-style: none;
    padding: 0;
    margin-left: 15px;
}

.skills-proficiency li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    margin-left: 0;
    padding-left: 0;
}

.skills-proficiency li::before,
.skills-proficiency li::after {
    display: none;
}

.skills-proficiency li span {
    display: block;
    width: 120px;
    transition: color 0.3s ease;
}

.skills-proficiency li:hover span {
    color: #c68c05;
}

.skills-proficiency li:hover .skills-bar .bar {
    background: #c68c05;
    box-shadow: 0 0 0 1px #c68c05;
}

.skills-proficiency li .skills-bar {
    background: #404040;
    height: 2px;
    width: calc(100% - 120px);
    position: relative;
    border-radius: 2px;
    margin-left: 10px;
}

.skills-proficiency li .skills-bar .bar {
    transition: all 0.3s ease;
    position: absolute;
    top: -1px;
    height: 4px;
    background: #ffb300;
    border-radius: 5px;
    width: 0;
    will-change: width, background;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.1s;
}

.skills-proficiency li a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.skills-proficiency li a:hover {
    color: var(--accent);
}

/* Responsive adjustments for skills proficiency */
@media (max-width: 768px) {
    .skills-proficiency li {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .skills-proficiency li .skills-bar {
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
        height: 4px;
    }

    .skills-proficiency li span {
        width: 100%;
        margin-bottom: 2px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .skills-proficiency li {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 6px;
    }

    .skills-proficiency li .skills-bar {
        width: 100%;
        margin-left: 0;
        margin-top: 3px;
        height: 2px;
    }

    .skills-proficiency li span {
        width: 100%;
        margin-bottom: 2px;
        font-size: 0.7em;
    }
}

/* ========== VIDEO PREVIEW & SPLASH SCREEN STYLES ========== */

/* Small hover preview - exact copy from main_heniloux */
.video-preview {
    position: fixed;
    display: none;
    width: 240px;  /* Smaller width */
    height: 180px; /* Smaller height */
    background: #1e1e1e;
    border: 2px solid #c68c05;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;  /* Start transparent for fade-in animation */
    transform: scale(0.95);  /* Start slightly smaller for zoom-in animation */
    transition: opacity 0.2s ease, transform 0.2s ease;  /* Smooth transition */
}

.video-preview .preview-content {
    width: 100%;
    height: 100%;
}

.video-preview .preview-video,
.video-preview .preview-image,
.video-preview .preview-text,
.video-preview .preview-grid {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-preview .preview-text {
    flex-direction: column;
    text-align: center;
    padding: 10px;
    background: #1e1e1e;
    color: #fff;
}

.video-preview .preview-text h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #c68c05;
}

.video-preview .preview-text p {
    margin: 0;
    font-size: 12px;
}

.video-preview iframe {
    width: 100%;
    height: 100%;
}

.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Miniature Grid Preview Styles */
.video-preview .preview-grid {
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #1e1e1e;
    padding: 3px;
    overflow: hidden;
}

.video-preview .preview-grid-title {
    color: #c68c05;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 2px;
    padding: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 16px;
}

.video-preview .preview-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;
    flex: 1;
    width: 100%;
}

.video-preview .preview-grid-item {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.video-preview .preview-grid-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.video-preview .preview-grid-item:hover img {
    transform: scale(1.1);
}

/* Full splash screen - exact copy from main_heniloux */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.splash-content {
    background: #303030;
    width: 90%;
    max-width: 600px;
    height: auto;
    max-height: 80vh;
    border-radius: 16px;
    position: relative;
    border: 1px solid #dbc4ae;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .splash-content {
        width: 98vw;
        max-width: 98vw;
        min-width: 0;
        max-height: 90vh;
        border-radius: 10px;
        padding: 0 2vw;
    }
}

.splash-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dbc4ae;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.splash-title {
    color: #dbc4ae;
    margin: 0;
    font-size: 24px;
}

.close-splash {
    background: none;
    border: none;
    color: #dbc4ae;
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.3s ease;
}

.close-splash:hover {
    color: #fff;
}

.splash-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.splash-description {
    color: #a6a5a0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.splash-preview {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 15px 0;
}

.image-grid {
    display: grid;
    /* auto-fit with a small min column keeps multiple columns on narrow screens */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    padding: 12px;
    box-sizing: border-box;
    flex-grow: 1;
    overflow-y: auto;
    align-content: start;
    height: calc(100% - 60px);
    /* Account for controls height */
}

.grid-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #242424;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 0;
    height: auto;
    min-height: 0;
    min-width: 0;
}

.grid-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.grid-item img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* show full image without cropping */
    transition: transform 0.3s ease;
    background: #242424;
}

/* Responsive: make grid more suitable on smaller screens */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        padding: 8px;
    }

    .grid-item {
        border-radius: 4px;
        box-shadow: none; /* remove drop shadow on mobile */
        background: transparent; /* remove dark background on mobile */
        padding: 8px;
        position: relative;
    }

    .grid-item img {
        position: static;
        display: block;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        background: transparent;
    }
    /* Remove hover effects on mobile so there is no shadow/scale */
    .grid-item:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 6px;
        padding: 6px;
    }
}

/* Desktop: force a 3-column layout for wider screens */
@media (min-width: 992px) {
    .image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        padding: 16px;
    }
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
    flex-shrink: 0;
    background: #303030;
    border-top: 1px solid rgba(219, 196, 174, 0.2);
}

.carousel-prev,
.carousel-next {
    background: none;
    border: 2px solid #dbc4ae;
    color: #dbc4ae;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #dbc4ae;
    color: #303030;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(219, 196, 174, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #dbc4ae;
    transform: scale(1.2);
}

/* Custom scrollbar for the grid */
.image-grid::-webkit-scrollbar {
    width: 8px;
}

.image-grid::-webkit-scrollbar-track {
    background: #242424;
    border-radius: 4px;
}

.image-grid::-webkit-scrollbar-thumb {
    background: #dbc4ae;
    border-radius: 4px;
}

.image-grid::-webkit-scrollbar-thumb:hover {
    background: #dbc4ae;
}

/* ========== PRODUCTION LINK HOVER PREVIEW ========== */
.production-preview {
    position: fixed;
    background: #242424;
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 15px;
    width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.production-preview.visible {
    opacity: 1;
    transform: translateY(0);
}

.production-preview-title {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.production-preview-meta {
    font-size: 0.85rem;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.production-preview-description {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.production-preview-link {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.production-preview-link i {
    font-size: 0.7rem;
}
