/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLES FOR KOUCKY.CZ
   ========================================================================== */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables & Theme Definitions */
:root {
    /* Color Palette - Light Mode (Default) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #b45309; /* Deep gold/amber */
    --accent-glow: rgba(180, 83, 9, 0.15);
    --accent-light: #fef3c7;
    --border-color: #e2e8f0;
    
    /* Glassmorphism settings */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
    
    /* Layout Constants */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

[data-theme="dark"] {
    /* Color Palette - Dark Mode */
    --bg-primary: #090d16;
    --bg-secondary: #111827;
    --bg-tertiary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #f59e0b; /* Amber/gold */
    --accent-glow: rgba(245, 158, 11, 0.2);
    --accent-light: #451a03;
    --border-color: #1e293b;
    
    /* Glassmorphic settings for dark theme */
    --glass-bg: rgba(17, 24, 39, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Base resets & setups */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    opacity: 0.9;
}

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

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0 6rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff !important;
    box-shadow: 0 4px 14px 0 var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--accent-glow);
    opacity: 1;
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / NAVIGATION (GLASSMORPHIC)
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    height: 65px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--accent);
    margin-left: 0.25rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.controls-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 1px solid var(--border-color);
    padding-left: 1rem;
}

/* Theme Switcher Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent);
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

/* Language Switcher Button */
.lang-switch {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    background-color: var(--bg-tertiary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-switch img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

/* Mobile Nav Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.burger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION (O MNĚ)
   ========================================================================== */

.hero-section {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 40px);
    padding-top: calc(var(--header-height) + 2rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-img-container {
    position: relative;
    justify-self: center;
}

.hero-img-wrapper {
    width: 380px;
    height: 380px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: var(--bg-tertiary);
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-img-wrapper:hover img {
    transform: scale(1.05);
}

/* Decorative glass backdrop */
.hero-img-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-name {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    text-align: justify;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ==========================================================================
   INTERACTIVE TIMELINE (KARIÉRA)
   ========================================================================== */

.timeline-intro {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 4rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
}

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

.timeline-dot {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 4px solid var(--accent);
    z-index: 5;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-item.active .timeline-dot {
    background-color: var(--accent);
}

.timeline-content {
    position: relative;
    width: 45%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--accent-glow);
    border-color: var(--accent);
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-role {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.timeline-company {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: justify;
}

.timeline-company-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.55;
    text-align: justify;
}

.timeline-highlights {
    list-style-type: disc;
    margin-left: 1.25rem;
    margin-top: 0.5rem;
    padding-left: 0;
}

.timeline-highlights li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.45;
    text-align: left;
}

/* Timeline collapser for older entries */
.timeline-toggle-container {
    text-align: center;
    margin-top: 4rem;
}

/* Timeline Accordion & Body Transitions */
.timeline-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.timeline-item.active .timeline-body {
    max-height: 1000px;
    opacity: 1;
    margin-top: 1.5rem;
}

.timeline-content {
    cursor: pointer;
    position: relative;
}

.timeline-toggle-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-muted);
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.timeline-item.active .timeline-toggle-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

@media (min-width: 769px) {
    .timeline-item {
        margin-top: 0;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   SECURE REFERENCES SECTION
   ========================================================================== */

.ref-lock-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 30px;
    backdrop-filter: blur(12px);
}

.ref-lock-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.ref-lock-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ref-lock-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.ref-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ref-input-wrapper {
    position: relative;
    width: 100%;
}

.ref-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    text-align: center;
    transition: border-color 0.2s;
}

.ref-input:focus {
    border-color: var(--accent);
}

.ref-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

/* Reference grid once loaded */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.references-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.ref-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s;
}

.ref-card:hover {
    transform: translateY(-5px);
}

.ref-quote {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
}

.ref-quote::before {
    content: '„';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent-glow);
    position: absolute;
    top: -2.5rem;
    left: -1rem;
    line-height: 1;
}

.ref-author {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ref-author-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.ref-author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   THESIS SECTION (DIPLOMKA)
   ========================================================================== */

.thesis-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
    align-items: stretch;
}

#thesis-display-area {
    height: 100%;
}

#thesis-book-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.thesis-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.thesis-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.thesis-points {
    margin: 2rem 0;
    list-style: none;
}

.thesis-point-item {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.thesis-point-item::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.thesis-point-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.thesis-point-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Embedded PDF Container */
.pdf-container {
    width: 100%;
    height: auto;
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    background: var(--bg-tertiary);
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   DOWNLOADS SECTION (DOKUMENTY)
   ========================================================================== */

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.doc-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.doc-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.doc-thumb {
    height: 180px;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.doc-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.doc-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 30px;
    padding: 4rem 3rem;
    text-align: center;
    backdrop-filter: blur(12px);
}

.contact-logo {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.contact-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-email {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.contact-email:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: var(--bg-secondary);
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-name {
        font-size: 3.2rem;
    }
    
    .thesis-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        align-items: start;
    }
    
    .thesis-lock-container {
        height: 500px;
    }
    
    .pdf-container {
        height: 500px;
        flex: none;
    }
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        padding: 4rem 0;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-img-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-description {
        text-align: center;
    }
    
    /* Timeline adjustments for mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        left: 50px !important;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-body {
        text-align-last: left;
    }
    
    .contact-card {
        padding: 3rem 1.5rem;
    }
    
    .contact-email {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   PDF PREVIEW MODAL
   ========================================================================== */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 13, 22, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pdf-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.pdf-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 950px;
    height: 85%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.pdf-modal.active .pdf-modal-content {
    transform: scale(1);
}

.pdf-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-primary);
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.pdf-modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.pdf-modal-close:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent);
}

.pdf-modal-body {
    flex-grow: 1;
    position: relative;
    background-color: #525659; /* Neutral browser PDF viewer grey */
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background-color: var(--bg-primary);
}

@media (max-width: 768px) {
    .pdf-modal-content {
        width: 95%;
        height: 90%;
    }
    .pdf-modal-header {
        padding: 1rem;
    }
}

/* ==========================================================================
   REFERENCES CAROUSEL & CARDS COLOR-CODING
   ========================================================================== */
.references-carousel {
    position: relative;
    width: 100%;
    margin: 2rem auto;
    padding: 0 40px; /* space for absolute prev/next buttons */
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex-shrink: 0;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Responsive carousel widths */
@media (min-width: 1025px) {
    .carousel-slide {
        width: 33.333%;
    }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .carousel-slide {
        width: 50%;
    }
}
@media (max-width: 768px) {
    .carousel-slide {
        width: 100%;
    }
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: var(--glass-shadow);
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.3s, width 0.3s, border-radius 0.3s;
}

.carousel-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 10px;
}

/* Subtle border color-coding based on author relationship */
.ref-card {
    border-top: 4px solid transparent;
}
.ref-card.ref-boss {
    border-top-color: var(--accent); /* Orange/Gold for Superior */
}
.ref-card.ref-peer {
    border-top-color: #3b82f6; /* Subtle blue for peer/subordinate */
}
.ref-card.ref-partner {
    border-top-color: #10b981; /* Subtle green for partner/external */
}

/* ==========================================================================
   LOCKED THESIS PREVIEW STATE
   ========================================================================== */
.thesis-lock-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    background: var(--bg-tertiary);
}

.thesis-lock-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px);
    transition: filter 0.3s ease;
}

.thesis-lock-container:hover img {
    filter: blur(2px);
}

.thesis-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 13, 22, 0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
    color: #fff;
    backdrop-filter: blur(2px);
}

.thesis-lock-overlay h4 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.thesis-lock-overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.thesis-lock-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 280px;
}
