/* ============================================
   LIGHT MODE STYLESHEET
   ============================================ */

/* Basic Styling - LIGHT MODE */
:root {
    /* Primary color palette */
    --primary-color: #2c3e50;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --hover-color: #3498db;
    
    /* Background colors - LIGHT */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --light-bg: #f9f9f9;
    
    /* Text colors - LIGHT */
    --text-color: #333333;
    --text-light: #555555;
    --text-lighter: #777777;
    --text-on-dark: #ffffff;
    
    /* Border/Outline colors */
    --border-color: #dddddd;
    --border-light: #eeeeee;
    
    /* Effects */
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-dark: 0 4px 12px rgba(0,0,0,0.25);
    --transition: all 0.3s ease;
    
    /* Special colors */
    --nav-bg: rgba(0, 0, 0, 0.15);
    --nav-border: rgba(255, 255, 255, 0.3);
    --clock-bg: rgba(0, 0, 0, 0.15);
    --footer-bg: var(--primary-color);
    --welcome-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --header-gradient: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Main Container */
.container {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-gap: 20px;
    padding: 0 20px;
    flex: 1;
}

/* Header */
header {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

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

.header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: var(--header-gradient);
    color: var(--text-on-dark);
}

.icon {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    padding: 2px;
}

.home-link {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

/* ============================================
   NAVIGATION - Language left, Dark mode right, Links centered
   ============================================ */

#nav {
    background: var(--nav-bg);
    backdrop-filter: blur(6px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 2px solid var(--nav-border);
    box-shadow: var(--shadow-dark);
    margin-top: 10px;
}

#nav nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Language Switcher - LEFT */
.nav-controls-left {
    display: flex;
    align-items: center;
    min-width: 120px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    transition: all 0.2s ease;
    color: var(--text-on-dark);
    opacity: 0.7;
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    opacity: 1;
    background: var(--primary-color);
    color: white;
}

.lang-separator {
    opacity: 0.5;
    color: var(--text-on-dark);
}

/* Navigation Links - CENTER */
#nav nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    flex: 1;
}

#nav nav ul li a {
    text-decoration: none;
    color: var(--text-on-dark);
    transition: color 0.3s;
    font-weight: 500;
    font-size: 18px;
    white-space: nowrap;
}

#nav nav ul li a:hover {
    color: var(--hover-color);
}

/* Dark Mode Switch - RIGHT */
.nav-controls-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 120px;
}

.dark-mode-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

#dayNight {
    font-size: 18px;
    color: var(--text-on-dark);
}

.darkMode {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.darkMode input {
    display: none;
}

.darkMode .d-btn {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: background .3s;
}

.darkMode .d-btn::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    top: 3px;
    left: 3px;
    background: var(--card-bg);
    border-radius: 50%;
    transition: .3s;
}

.darkMode input:checked + .d-btn {
    background: rgba(0,0,0,0.3);
}

.darkMode input:checked + .d-btn:before {
    transform: translate(30px);
    background: var(--text-lighter);
}

/* Sidebar */
.sidebar {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    grid-column: 1;
    height: fit-content;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.widget {
    margin-bottom: 30px;
}

.widget h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.search-widget {
    position: relative;
}

.search-widget input {
    padding-left: 40px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.search-widget input::placeholder {
    color: var(--text-lighter);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 10px;
    color: var(--text-lighter);
}

/* Main Content */
main {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    grid-column: 2;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Welcome Section */
.welcome {
    margin-bottom: 40px;
    padding: 20px;
    background: var(--welcome-gradient);
    color: var(--text-on-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.welcome h1 {
    color: var(--text-on-dark);
    margin-bottom: 15px;
}

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

/* About Section */
.about-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 4rem 0;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.about-item.reverse {
    flex-direction: row-reverse;
}

.about-image {
    flex: 1 1 45%;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.about-text {
    flex: 1 1 50%;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-text p {
    line-height: 1.6;
    color: var(--text-light);
}

/* Gallery */
.gallery {
    margin: 4rem 0;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-dark);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Buttons */
.btn, button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-on-dark);
    padding: 10px 20px;
    margin: 3px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    width: fit-content;
    border: 1px solid var(--border-color);
}

.btn:hover, button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-full {
    width: 100%;
}

/* Documents Section */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.document-card {
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.document-icon {
    background: var(--primary-color);
    color: var(--text-on-dark);
    font-size: 2rem;
    padding: 20px;
    text-align: center;
}

.document-info {
    padding: 15px;
}

.document-info h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.document-info p {
    color: var(--text-lighter);
}

.document-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 900px;
    position: relative;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.close {
    color: var(--text-lighter);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

/* Contact Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-lighter);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed var(--border-color);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: var(--transition);
    background-color: var(--light-bg);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-color);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Timeline Section */
.timeline-section {
    margin: 4rem 0;
    padding: 2rem;
}

.timeline-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-color);
}

.timeline-box, .resume-documents {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-dark);
    width: 100%;
    border: 1px solid var(--border-color);
}

/* Horizontal Timeline */
.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 2rem 0;
    padding: 0 1rem;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-horizontal.second-row {
    margin-top: 6rem;
}

.timeline-item {
    position: relative;
    text-align: center;
    z-index: 2;
}

.timeline-year {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    margin: 0 auto;
    transition: var(--transition);
    z-index: 5;
}

.timeline-year:hover {
    background: var(--primary-color);
    color: var(--text-on-dark);
}

/* Tooltip */
.timeline-tooltip {
    display: none;
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 220px;
    z-index: 10;
    color: var(--text-color);
}

.timeline-item:hover .timeline-tooltip {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Skills Section */
.skills-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--border-color);
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-color);
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
    font-size: 1.2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem 2rem;
}

.skill span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
}

.skill-bar {
    background: var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    height: 14px;
    position: relative;
}

.skill-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 12px;
    transition: var(--transition);
}

.skill:hover .skill-progress {
    filter: brightness(1.2);
    transform: scaleY(1.2);
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.project-card h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: var(--footer-bg);
    border-radius: 8px;
    width: 100%;
}

footer p {
    background: var(--nav-bg);
    backdrop-filter: blur(6px);
    border-radius: 50px;
    border: 2px solid var(--nav-border);
    padding: 12px 20px;
    display: inline-block;
    color: var(--text-on-dark);
    font-weight: 500;
    transition: var(--transition);
}

footer p a {
    text-decoration: none;
    color: var(--text-on-dark);
    margin: 0 10px;
    transition: var(--transition);
}

footer p a:hover {
    color: var(--primary-color);
}

/* ============================================
   IMPRESSUM & DATENSCHUTZ STYLES
   ============================================ */

.content-box {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.content-box h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    font-size: 2rem;
}

.impressum-section {
    margin-bottom: 30px;
}

.impressum-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.impressum-section h3 {
    color: var(--text-color);
    margin: 15px 0 10px 0;
    font-size: 1.1rem;
}

.impressum-details {
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
}

.impressum-details p {
    margin: 8px 0;
    line-height: 1.6;
    color: var(--text-light);
}

.datenschutz-section {
    margin-bottom: 35px;
}

.datenschutz-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.datenschutz-section h3 {
    color: var(--text-color);
    margin: 15px 0 10px 0;
    font-size: 1.1rem;
}

.datenschutz-details {
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
}

.datenschutz-details p {
    margin: 8px 0;
    line-height: 1.6;
    color: var(--text-light);
}

.datenschutz-details ul {
    margin: 10px 0 10px 20px;
    padding-left: 0;
}

.datenschutz-details li {
    margin: 5px 0;
    line-height: 1.5;
    color: var(--text-light);
}

/* Responsive adjustments for Impressum & Datenschutz */
@media (max-width: 768px) {
    .content-box {
        padding: 15px;
    }
    
    .content-box h1 {
        font-size: 1.6rem;
    }
    
    .impressum-section h2,
    .datenschutz-section h2 {
        font-size: 1.2rem;
    }
    
    .impressum-details,
    .datenschutz-details {
        padding-left: 10px;
    }
}

/* Clock */
#clock {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--clock-bg);
    padding: 12px 18px;
    border-radius: 15px;
    color: var(--text-on-dark);
    text-align: center;
    box-shadow: var(--shadow-dark);
    border: 2px solid var(--nav-border);
    backdrop-filter: blur(6px);
    min-width: 120px;
    z-index: 10;
}

#clock .time {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

#clock #date {
    font-size: 0.8rem;
    margin-top: 4px;
    opacity: 0.85;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }
    
    .sidebar {
        grid-column: 1;
        margin-bottom: 20px;
    }
    
    main {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .header-image {
        height: 250px;
    }
    
    #nav {
        padding: 10px 15px;
    }
    
    #nav nav {
        flex-direction: column;
        gap: 12px;
    }
    
    #nav nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    #nav nav ul li a {
        font-size: 16px;
    }
    
    .nav-controls-left,
    .nav-controls-right {
        min-width: auto;
    }
    
    #clock {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        min-width: 100px;
    }
    
    #clock .time {
        font-size: 1rem;
    }
    
    #clock #date {
        font-size: 0.7rem;
    }
    
    .about-item, .about-item.reverse {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        flex: 1 1 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .projects-grid, .documents-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   JSON CV STYLES
   ============================================ */

.json-loading {
    text-align: center;
    padding: 20px;
    color: var(--secondary-text, #666);
    font-style: italic;
    background: var(--card-bg, #f8f9fa);
    border-radius: 8px;
    margin: 10px 0;
    border: 1px dashed var(--border-color, #ddd);
}

.json-error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    margin: 10px 0;
    font-weight: 500;
}

.json-success {
    color: #27ae60;
    text-align: center;
    padding: 15px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 8px;
    margin: 10px 0;
}

.json-personal-data p {
    margin: 8px 0;
    line-height: 1.5;
}

.json-personal-data strong {
    color: var(--text-color, #333);
    font-weight: 600;
}

/* Work Experience Items */
.work-item {
    background: var(--card-bg, #ffffff);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color, #4db8ff);
    box-shadow: 0 2px 10px var(--shadow-color, rgba(0,0,0,0.08));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.work-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color, rgba(0,0,0,0.12));
    border-left-width: 6px;
}

.work-item.last {
    margin-bottom: 0;
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #4db8ff), transparent);
    opacity: 0.3;
}

.job-header h3 {
    margin: 0 0 8px 0;
    color: var(--text-color, #333);
    font-size: 1.2rem;
    font-weight: 600;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--secondary-text, #666);
    font-size: 0.95rem;
    align-items: center;
}

.job-meta .company {
    font-weight: 600;
    color: var(--primary-color, #4db8ff);
    background: rgba(77, 184, 255, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
}

.job-responsibilities {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.job-responsibilities li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
    color: var(--text-color, #555);
}

.job-responsibilities li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color, #4db8ff);
    font-weight: bold;
}

/* Education Items */
.education-item {
    background: var(--card-bg, #ffffff);
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #36d399;
    box-shadow: 0 2px 8px var(--shadow-color, rgba(0,0,0,0.05));
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow-color, rgba(0,0,0,0.1));
}

.education-item.last {
    margin-bottom: 0;
}

.education-header h3 {
    margin: 0 0 8px 0;
    color: var(--text-color, #333);
    font-size: 1.1rem;
    font-weight: 600;
}

.education-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--secondary-text, #666);
    font-size: 0.9rem;
}

.education-meta .institution {
    font-weight: 600;
    color: #36d399;
    background: rgba(54, 211, 153, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.education-meta .period::before {
    content: '📅';
    margin-right: 5px;
    opacity: 0.7;
}

/* Skills Container */
.skills-container {
    background: var(--card-bg, #ffffff);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color, rgba(0,0,0,0.08));
}

.skills-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #eee);
}

.skills-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.skills-category h4 {
    margin: 0 0 12px 0;
    color: var(--text-color, #333);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skills-category h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, #eee);
    margin-left: 10px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

/* Skill Tags */
.skill-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
}

.skills-list.languages .skill-tag {
    background: linear-gradient(135deg, #4db8ff, #3498db);
    color: white;
    box-shadow: 0 2px 5px rgba(77, 184, 255, 0.3);
}

.skills-list.software .skill-tag {
    background: linear-gradient(135deg, #36d399, #27ae60);
    color: white;
    box-shadow: 0 2px 5px rgba(54, 211, 153, 0.3);
}

.skills-list.abilities .skill-tag {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    box-shadow: 0 2px 5px rgba(155, 89, 182, 0.3);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.license {
    color: var(--text-color, #333);
    font-weight: 500;
    padding: 8px 15px;
    background: var(--card-bg, #f8f9fa);
    border-radius: 8px;
    border-left: 4px solid #f39c12;
    display: inline-block;
}

/* Interests */
.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.interest-tag {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #ff7675, #e74c3c);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.interest-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(231, 76, 60, 0.3);
}

/* Timeline with JSON data */
.timeline-item.has-data {
    background: rgba(77, 184, 255, 0.05);
    border: 1px solid rgba(77, 184, 255, 0.2);
    border-radius: 6px;
    padding: 10px;
    transition: all 0.3s ease;
}

.timeline-item.work-year {
    border-color: #4db8ff;
    background: rgba(77, 184, 255, 0.1);
}

.timeline-item.education-year {
    border-color: #36d399;
    background: rgba(54, 211, 153, 0.1);
}

.timeline-item.has-data:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: rgba(77, 184, 255, 0.15);
}

.timeline-item.has-data .timeline-year {
    color: var(--primary-color, #4db8ff);
    font-weight: 700;
    font-size: 1.1rem;
}

/* JSON Sections Container */
.work-experience-json,
.education-json,
.skills-json {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px var(--shadow-color, rgba(0,0,0,0.1));
    border: 1px solid var(--border-color, #e0e0e0);
    position: relative;
    overflow: hidden;
}

.work-experience-json::before,
.education-json::before,
.skills-json::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #4db8ff), #36d399, #9b59b6);
}

.work-experience-json h2,
.education-json h2,
.skills-json h2 {
    color: var(--text-color, #333);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Social Links */
.profile-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.profile-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--light-bg);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.profile-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    transition: width 0.3s ease;
    z-index: 0;
}

.profile-links a:hover::before {
    width: 100%;
}

.profile-links a:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.profile-links a .social-icon {
    font-size: 1.5rem;
    min-width: 32px;
    text-align: center;
    z-index: 1;
}

.profile-links a .social-name {
    flex: 1;
    z-index: 1;
}

.profile-links a[data-platform="github"]:hover {
    border-color: #333;
    background: #333;
    color: white;
}

.profile-links a[data-platform="linkedin"]:hover {
    border-color: #0077b5;
    background: #0077b5;
    color: white;
}

.profile-links a[data-platform="email"]:hover {
    border-color: #ea4335;
    background: #ea4335;
    color: white;
}

.profile-links a:hover {
    background: var(--primary-color);
    color: var(--text-on-dark);
    border-color: var(--primary-color);
}

/* Responsive Design for JSON Sections */
@media (max-width: 768px) {
    .work-item,
    .education-item,
    .skills-container {
        padding: 15px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .education-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .skills-list {
        gap: 8px;
    }
    
    .skill-tag,
    .interest-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .work-experience-json,
    .education-json,
    .skills-json {
        padding: 20px;
    }
    
    .work-experience-json h2,
    .education-json h2,
    .skills-json h2 {
        font-size: 1.3rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-item,
.education-item,
.skills-category,
.timeline-item.has-data {
    animation: fadeIn 0.5s ease forwards;
}

/* Delayed animations for items */
.work-item:nth-child(1) { animation-delay: 0.1s; }
.work-item:nth-child(2) { animation-delay: 0.2s; }
.work-item:nth-child(3) { animation-delay: 0.3s; }
.work-item:nth-child(4) { animation-delay: 0.4s; }
.work-item:nth-child(5) { animation-delay: 0.5s; }

.education-item:nth-child(1) { animation-delay: 0.2s; }
.education-item:nth-child(2) { animation-delay: 0.3s; }
.education-item:nth-child(3) { animation-delay: 0.4s; }
.education-item:nth-child(4) { animation-delay: 0.5s; }

/* Print Styles */
@media print {
    .work-item,
    .education-item,
    .skills-container {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .skill-tag,
    .interest-tag {
        background: #f5f5f5 !important;
        color: #333 !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ============================================
   LIGHTBOX STYLES
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    padding: 10px;
    background: rgba(0,0,0,0.5);
}