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

:root {
    --bg: hsl(0, 0%, 5%);
    --card-bg: hsl(0, 0%, 10%);
    --bg-dark: hsl(0, 0%, 0%);
    --border: hsl(217, 33%, 17%);
    --text-main: hsl(0, 0%, 95%);
    --text-dim: hsl(0, 0%, 70%);
    --accent: hsl(199, 95%, 61%);
    --nav-gap: 2rem;
}

[data-theme="light"] {
    --bg: hsl(0, 0%, 100%);
    --card-bg: hsl(210, 40%, 98%);
    --border: hsl(214, 32%, 91%);
    --text-main: hsl(222, 47%, 11%);
    --text-dim: hsl(215, 16%, 47%);
    --accent: hsl(199, 89%, 48%);
    --bg-dark: hsl(0, 0%, 100%);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--text-main);
    color: var(--bg);
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-nav {
    display: flex;
    gap: var(--nav-gap);
}

.main-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--text-main);
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

.contact-footer {
    margin-top: 6rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-dim);
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: var(--text-main);
}

.lightbox-overlay[hidden] {
    display: none;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightbox-zoom 0.2s ease;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body.lightbox-open {
    overflow: hidden;
}

@keyframes lightbox-zoom {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 700px) {
    .contact-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .top-bar {
        gap: 1rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 400px) {
    .main-nav {
        gap: 1rem;
    }
}
