:root {
    --bg-dark: #111315;
    --bg-muted: #f5f6f8;
    --text: #202328;
    --text-light: #eef1f5;
    --accent: #0a6cb5;
    --accent-hover: #084f85;
    --border: #d8dce2;
}

html {
    scroll-behavior: smooth;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -100%;
    z-index: 1000;
    background: #ffffff;
    color: #111315;
    border: 2px solid #111315;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.75rem;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: #ffffff;
}

.picture-background {
    background-image: url('images/background-pic.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.8));
}

.navbar {
    z-index: 2;
    position: relative;
}

.nav-link,
.navbar-brand {
    color: #ffffff;
    cursor: pointer;
}

.nav-link {
    margin-right: 1em !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    padding: 20px 0;
    margin: 0 20px;
    display: inline-block;
    position: relative;
    opacity: 0.8;
    letter-spacing: 0.04em;
}

.nav-link:hover {
    opacity: 1;
    color: #ffffff;
}

.nav-link::before {
    transition: 250ms;
    height: 3px;
    content: "";
    position: absolute;
    background-color: #ffffff;
}

.nav-link-ltr::before {
    width: 0;
    bottom: 10px;
}

.nav-link-ltr:hover::before {
    width: 100%;
}

.header {
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.description {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -54%);
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}

.description-title h1 {
    font-family: 'Space Grotesk', 'Source Sans 3', sans-serif;
    color: #ffffff;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.typewriter .typewriter-text {
    overflow: hidden;
    border-right: 0.15em solid #ffffff;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.2s steps(8, end), blink-caret 0.8s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: #ffffff;
    }
}

.card.bg-light {
    border: 0;
    border-radius: 0;
    background: var(--bg-muted) !important;
}

.project-title h2 {
    font-family: 'Space Grotesk', 'Source Sans 3', sans-serif;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

.meta-date {
    color: #4e5661;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.project-description {
    margin-bottom: 0.75rem;
}

.role-badge {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.45em 0.65em;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible,
a:focus,
button:focus-visible,
button:focus,
.btn:focus-visible,
.btn:focus,
.navbar-toggler:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
    box-shadow: none !important;
}

.btn {
    font-weight: 600;
}

.page-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 48px 0 20px;
}

.page-footer h6,
.page-footer p {
    color: var(--text-light);
}

.page-footer h2 {
    color: var(--text-light);
    font-size: 1rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.footer-copyright {
    color: #aab4c2;
    padding: 26px 0 8px;
}

@media (max-width: 767.98px) {
    .description {
        top: 35%;
        transform: translate(-50%, -50%);
    }

    .nav-link {
        margin: 0;
        padding: 12px 0;
    }

    .typewriter .typewriter-text {
        white-space: normal;
        border-right: 0;
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .typewriter .typewriter-text {
        animation: none;
        border-right: 0;
    }
}
