body {
    font-family: Arial, sans-serif;
    margin: 10px;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
}
h1, h2 {
    color: #ffffff;
    text-align: center;
    margin-top: 50px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: center;
    font-size: 18px;
}

ul li {
    display: inline-block;
    margin: 0 12px;
}

ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 6px 10px;
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #111111;
    color: #bbbbbb;
    font-size: 14px;
    margin-top: 40px;
}

footer .footer-link,
footer .footer-link:visited {
    color: #8f8f8f;
    text-decoration: none;
    border-bottom: 1px dotted #5f5f5f;
    font-size: 0.92em;
    opacity: 0.78;
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

footer .footer-link:hover,
footer .footer-link:focus {
    color: #c9c9c9;
    border-bottom-color: #9d9d9d;
    opacity: 0.95;
}

/* Media block: image beside paragraph */
.media-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 10px;
    box-sizing: border-box;
}

.media-block img {
    width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.media-block p {
    margin: 0;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    color: #ffffff;
    border-radius: 8px;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6) inset;
    max-width: calc(100% - 320px);
}

@media (max-width: 760px) {
    .media-block {
        flex-direction: column;
        align-items: center;
    }

    .media-block img {
        width: 80%;
        max-width: 360px;
    }

    .media-block p {
        max-width: 100%;
    }
}

/* Visible focus for keyboard users */
:focus { outline: 3px solid #ffd54f; outline-offset: 2px; }

/* Honeypot helper (hidden) */
.honeypot { position: absolute; left: -9999px; top: -9999px; }

/* Style anchors with role=button to look like buttons (CV download link) */
a[role="button"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(180deg,#1e88e5, #1565c0);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
a[role="button"] svg { width: 18px; height: 18px; fill: currentColor; }
a[role="button"]:hover { background: linear-gradient(180deg,#2196f3,#1976d2); }
a[role="button"]:active { transform: translateY(1px); }
a[role="button"]:focus { outline: 3px solid #ffd54f; }

#Git {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 10px;
}

/* Actions row for centering buttons on pages */
.actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    flex-wrap: wrap;
}

.actions a[role="button"], .actions a {
    /* ensure consistent sizing with the button-like anchors */
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
}

/* Video row: center multiple videos and make them responsive */
.video-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin: 18px 0;
}

.video-row iframe {
    width: min(560px, 100%);
    aspect-ratio: 16 / 9;
    border: 0;
}

/* Photo gallery / photography images */
.photo-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin: 18px 0 40px;
}
.photo-row img {
    max-width: 100%;
    width: min(420px, 48%);
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

@media (max-width: 560px) {
    .photo-row img { width: 100%; }
}

/* Figure / caption styling for accessibility */
.photo-row figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    width: min(420px, 48%);
}
.photo-row figure img { width: 100%; height: auto; }
.photo-row figcaption {
    margin-top: 8px;
    color: #dcdcdc;
    font-size: 14px;
    text-align: center;
}

/* Portfolio projects page */
.portfolio-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px 30px;
}

.portfolio-intro {
    max-width: 850px;
    margin: 0 auto 24px;
    text-align: center;
}

.portfolio-intro p {
    line-height: 1.7;
    color: #e8e8e8;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.project-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.project-preview {
    margin-bottom: 18px;
}

.preview-window {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(7,7,7,0.88), rgba(19,19,19,0.88));
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.preview-toolbar {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.preview-toolbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.preview-content {
    min-height: 170px;
    padding: 14px;
}

.preview-content-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
}

.preview-map {
    border-radius: 12px;
    background:
        radial-gradient(circle at 20% 20%, rgba(159,208,255,0.32), transparent 22%),
        radial-gradient(circle at 78% 35%, rgba(111,231,189,0.24), transparent 18%),
        linear-gradient(135deg, rgba(29,84,124,0.9), rgba(10,32,53,0.92));
    position: relative;
    overflow: hidden;
}

.preview-map::before,
.preview-map::after {
    content: "";
    position: absolute;
    inset: 14% 18%;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
}

.preview-map::after {
    inset: 35% 30%;
    border-radius: 18px;
    transform: rotate(10deg);
}

.preview-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.preview-line {
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
}

.preview-line.wide {
    width: 82%;
    background: rgba(159,208,255,0.42);
}

.preview-chip-row {
    display: flex;
    gap: 8px;
}

.preview-chip-row span,
.preview-hours span {
    display: block;
    height: 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    flex: 1;
}

.preview-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: center;
}

.preview-stat {
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-stat strong {
    font-size: 30px;
    line-height: 1;
}

.preview-stat span,
.preview-city {
    color: #d9d9d9;
}

.preview-table {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
}

.preview-table div {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(159,208,255,0.65), rgba(255,255,255,0.12));
}

.preview-meteo {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto 1fr;
    gap: 12px;
    align-items: center;
    background:
        radial-gradient(circle at 72% 24%, rgba(255,216,102,0.32), transparent 18%),
        radial-gradient(circle at 76% 24%, rgba(255,216,102,0.16), transparent 26%),
        linear-gradient(135deg, rgba(21,86,114,0.88), rgba(8,15,27,0.94));
    border-radius: 12px;
}

.preview-city {
    grid-column: 1 / 2;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.preview-weather {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    font-size: 58px;
    font-weight: 700;
    color: #fff;
}

.preview-hours {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    align-self: end;
}

.preview-hours span {
    height: 42px;
    background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
}

.project-preview-ecoride .preview-map {
    background:
        radial-gradient(circle at 25% 28%, rgba(255,255,255,0.32), transparent 12%),
        radial-gradient(circle at 68% 62%, rgba(111,231,189,0.28), transparent 16%),
        linear-gradient(135deg, rgba(18,37,66,0.95), rgba(30,110,170,0.86));
}

.project-preview-rh .preview-window {
    background: linear-gradient(180deg, rgba(14,19,32,0.95), rgba(20,32,44,0.92));
}

.project-preview-rh .preview-stat strong {
    color: #9fd0ff;
}

.project-preview-meteo .preview-weather {
    color: #ffe08a;
}

@media (max-width: 760px) {
    .preview-content-split {
        grid-template-columns: 1fr;
    }

    .preview-dashboard {
        grid-template-columns: 1fr;
    }

    .preview-weather {
        font-size: 44px;
    }
}

.project-card h3 {
    margin-top: 6px;
    margin-bottom: 10px;
    text-align: left;
}

.project-card p {
    line-height: 1.7;
    color: #f0f0f0;
}

.project-label {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9fc5ff;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 18px;
    text-align: left;
}

.tag-list li {
    display: inline-block;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    font-size: 13px;
}

.project-card a {
    display: inline-block;
    margin-top: 4px;
    color: #9fd0ff;
}

@media (max-width: 560px) {
    .photo-row figure { width: 100%; }
}

/* Contact form styles */
.contact-section { max-width: 820px; margin: 28px auto; padding: 12px; }
.contact-section h2 { text-align: center; margin-bottom: 8px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form .form-row { display: flex; flex-direction: column; }
.contact-form label { margin-bottom: 6px; font-weight: 600; color: #e8e8e8; }
.contact-form input,
.contact-form textarea { padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); background: #0b0b0b; color: #fff; }
.contact-form textarea { resize: vertical; grid-column: 1 / -1; }
.contact-form button { grid-column: 1 / -1; justify-self: center; padding: 10px 16px; border-radius: 6px; background: linear-gradient(180deg,#4caf50,#388e3c); color: #fff; border: none; cursor: pointer; }
.contact-form button:focus { outline: 3px solid #ffd54f; }

@media (max-width: 760px) {
    .contact-form { grid-template-columns: 1fr; }
    .contact-form textarea { grid-column: auto; }
}

/* Download animation for CV icon */
@keyframes a11y-rotate360 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.downloading svg {
    animation: a11y-rotate360 1s linear infinite;
    transform-origin: 50% 50%;
}

/* subtle pulse on the button while downloading */
.downloading {
    box-shadow: 0 6px 18px rgba(33,150,243,0.28), 0 2px 4px rgba(0,0,0,0.25) !important;
}
