* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header elegancki */
.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

/* CV Card - elegancki design */
.cv-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.cv-card {
    display: grid;
    grid-template-columns: 30% 70%;
}

@media (max-width: 768px) {
    .cv-card {
        grid-template-columns: 1fr;
    }
}

/* Left Sidebar - elegancja premium */
.cv-sidebar {
    background: linear-gradient(180deg, #0a1929 0%, #132f4c 50%, #0d47a1 100%);
    color: white;
    padding: 50px 35px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cv-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.cv-sidebar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

/* Profile Photo - Premium */
.profile-photo-container {
    position: relative;
    margin-bottom: 25px;
    z-index: 2;
    text-align: center;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 15px;
    border: 5px solid white;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
    background: #f0f0f0;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.profile-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 15px;
    border: 5px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    background: rgba(255,255,255,0.15);
    font-size: 60px;
    z-index: 2;
    position: relative;
}

.cv-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 0.5px;
    z-index: 2;
    position: relative;
}

.cv-role {
    font-size: 0.8rem;
    color: #64b5f6;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    position: relative;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #64b5f6, transparent);
    margin: 20px 0;
    z-index: 2;
    position: relative;
}

.section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64b5f6;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 12px;
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title:first-of-type {
    margin-top: 5px;
}

.section-title .icon {
    font-size: 0.9rem;
}

.cv-sidebar ul {
    list-style: none;
    z-index: 2;
    position: relative;
}

.cv-sidebar li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
    opacity: 0.95;
}

.cv-sidebar li:before {
    content: "▸";
    position: absolute;
    left: 2px;
    color: #64b5f6;
    font-weight: bold;
    font-size: 1.1rem;
}

.cv-sidebar a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.cv-sidebar a:hover {
    color: #90caf9;
}

/* Main Content */
.cv-content {
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
}

.cv-section {
    margin-bottom: 32px;
}

.cv-section:last-child {
    margin-bottom: 0;
}

.cv-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a1929;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 16px;
    display: inline-block;
    position: relative;
}

.cv-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 100%;
}

.cv-section p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #424242;
    margin-bottom: 12px;
}

.job-entry {
    margin-bottom: 18px;
    padding-left: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.job-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.job-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0a1929;
}

.job-subtitle {
    font-size: 0.8rem;
    color: #667eea;
    margin-top: 3px;
    font-weight: 600;
}

.job-date {
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
}

.job-entry p {
    margin-top: 6px;
}

.job-entry ul {
    margin: 6px 0 0 18px;
    padding: 0;
}

.job-entry ul li {
    margin-bottom: 3px;
}

/* References Table - Premium */
.references-section {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.references-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.references-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.references-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.references-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.85rem;
    color: #424242;
}

.references-table tbody tr:hover {
    background-color: #f8f9ff;
}

.references-table tbody tr:last-child td {
    border-bottom: none;
}

/* Footer */
.footer {
    text-align: center;
    color: #666;
    margin-top: 40px;
    font-size: 0.75rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .header, .action-buttons, .footer {
        display: none;
    }

    .cv-wrapper {
        box-shadow: none;
    }
}

/* MOBILE RESPONSIVE - OPTIMIZED */
@media (max-width: 1024px) {
    .header h1 {
        font-size: 2rem;
    }

    .cv-content {
        padding: 35px 30px;
    }

    .cv-sidebar {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .header {
        margin-bottom: 25px;
    }

    .header h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .header p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .action-buttons {
        gap: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        gap: 6px;
    }

    /* CV na mobile - FULL WIDTH STACKED */
    .cv-card {
        grid-template-columns: 1fr;
    }

    .cv-sidebar {
        padding: 30px 25px;
        margin-bottom: 0;
        border-radius: 20px 20px 0 0;
    }

    .cv-content {
        padding: 30px 25px;
        border-radius: 0 0 20px 20px;
    }

    .profile-photo-container {
        margin-bottom: 20px;
    }

    .profile-placeholder {
        width: 130px;
        height: 130px;
        font-size: 50px;
    }

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

    .cv-role {
        font-size: 0.75rem;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 0.65rem;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .cv-sidebar li {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .cv-section {
        margin-bottom: 25px;
    }

    .cv-section-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .cv-section p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .job-title {
        font-size: 0.9rem;
    }

    .job-subtitle {
        font-size: 0.75rem;
    }

    .job-date {
        font-size: 0.7rem;
    }

    .references-section {
        margin-top: 25px;
        padding-top: 25px;
    }

    .references-table {
        font-size: 0.75rem;
        margin-top: 10px;
    }

    .references-table th,
    .references-table td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    .references-table th {
        font-size: 0.7rem;
    }

    .footer {
        font-size: 0.7rem;
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .container {
        margin: 0 auto;
    }

    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 3px;
    }

    .header p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .action-buttons {
        gap: 8px;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 11px 15px;
        font-size: 0.8rem;
        justify-content: center;
    }

    .cv-wrapper {
        border-radius: 15px;
    }

    .cv-sidebar {
        padding: 25px 20px;
        border-radius: 15px 15px 0 0;
    }

    .cv-content {
        padding: 25px 20px;
        border-radius: 0 0 15px 15px;
    }

    .profile-placeholder {
        width: 110px;
        height: 110px;
        font-size: 45px;
    }

    .cv-name {
        font-size: 1rem;
        letter-spacing: 0px;
    }

    .cv-role {
        font-size: 0.7rem;
        margin-bottom: 18px;
    }

    .divider {
        margin: 15px 0;
    }

    .section-title {
        font-size: 0.6rem;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .cv-sidebar li {
        font-size: 0.75rem;
        margin-bottom: 5px;
        line-height: 1.4;
    }

    .cv-section {
        margin-bottom: 20px;
    }

    .cv-section-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .cv-section p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .job-entry {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .job-title {
        font-size: 0.85rem;
    }

    .job-subtitle {
        font-size: 0.7rem;
    }

    .job-date {
        font-size: 0.65rem;
    }

    .references-section {
        margin-top: 20px;
        padding-top: 20px;
    }

    .references-table {
        font-size: 0.65rem;
    }

    .references-table th,
    .references-table td {
        padding: 6px 4px;
        font-size: 0.65rem;
    }

    .rodo {
        font-size: 0.7rem;
    }

    .footer {
        font-size: 0.65rem;
        margin-top: 20px;
    }

    /* Ukryj niektóre kolumny w tabeli na bardzo małych ekranach */
    .references-table th:nth-child(3),
    .references-table td:nth-child(3) {
        display: none;
    }
}
