body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.profile-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 4px solid;
    transition: border-color 0.3s;
}

[data-bs-theme="dark"] .profile-photo {
    border-color: #6c757d;
}

[data-bs-theme="light"] .profile-photo {
    border-color: #dee2e6;
}

.social-links a {
    font-size: 1.8rem;
    margin: 0 0.5rem;
    transition: transform 0.2s, color 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

[data-bs-theme="dark"] .social-links a {
    color: #adb5bd;
}

[data-bs-theme="dark"] .social-links a:hover {
    color: #ffffff;
}

[data-bs-theme="light"] .social-links a {
    color: #495057;
}

[data-bs-theme="light"] .social-links a:hover {
    color: #000000;
}

.theme-lang-controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.theme-lang-controls button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.flag-icon {
    width: 24px;
    height: 18px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

.flag-gb {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><clipPath id="a"><path d="M0 0v30h60V0z"/></clipPath><clipPath id="b"><path d="M30 15h30v15zv15H0zH0V0zV0h30z"/></clipPath><g clip-path="url(%23a)"><path d="M0 0v30h60V0z" fill="%23012169"/><path d="M0 0l60 30m0-30L0 30" stroke="%23fff" stroke-width="6"/><path d="M0 0l60 30m0-30L0 30" clip-path="url(%23b)" stroke="%23C8102E" stroke-width="4"/><path d="M30 0v30M0 15h60" stroke="%23fff" stroke-width="10"/><path d="M30 0v30M0 15h60" stroke="%23C8102E" stroke-width="6"/></g></svg>');
}

.flag-pl {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 10"><rect width="16" height="10" fill="%23fff"/><rect width="16" height="5" y="5" fill="%23dc143c"/></svg>');
}

.teaser-list {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.teaser-list li {
    margin-bottom: 0.5rem;
}

.card {
    max-width: 600px;
    width: 100%;
}

[data-bs-theme="dark"] .card {
    background-color: #212529;
    border-color: #495057;
}

[data-bs-theme="light"] .card {
    background-color: #eaeaea;
    border-color: #dee2e6;
}

[data-bs-theme="dark"] .profession {
    color: #eeeeee;
    font-weight: bold;
}

[data-bs-theme="light"] .profession {
    color: #333333;
    font-weight: bold;
}

.contact-email {
    font-family: monospace;
    letter-spacing: 1px;
}

/* Projects Section */
.projects-section {
    max-width: 800px;
    width: 100%;
    margin-top: 2rem;
}

.project-card {
    border-radius: 0.5rem;
    overflow: hidden;
}

[data-bs-theme="dark"] .project-card {
    background-color: #212529;
    border-color: #495057;
}

[data-bs-theme="light"] .project-card {
    background-color: #e0e0e0;
    border-color: #dee2e6;
}

.project-header {
    cursor: pointer;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

[data-bs-theme="dark"] .project-header:hover {
    background-color: #2c3034;
}

[data-bs-theme="light"] .project-header:hover {
    background-color: #f8f9fa;
}

.project-header h5 {
    margin: 0;
    font-weight: 600;
}

.project-header .collapse-icon {
    transition: transform 0.3s;
}

.project-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

.project-images {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-images img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 0.375rem;
    object-fit: cover;
}

[data-bs-theme="dark"] .project-images img {
    border: 1px solid #495057;
}

[data-bs-theme="light"] .project-images img {
    border: 1px solid #dee2e6;
}

.project-description {
    text-align: left;
}

.project-description p {
    margin-bottom: 0.75rem;
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-tech-badge {
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.project-images img {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
