:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 4px;
}

.nav-link {
    position: relative;
    transition: color 0.2s ease-in-out;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #10b981;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after, .nav-link:focus-visible::after { width: 100%; }
.nav-link:hover, .nav-link:focus-visible { color: #10b981; }
.nav-link.active { color: #10b981; }
.nav-link.active::after { width: 100%; }

body {
    background-color: #09090b;
    color: #e4e4e7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #27272a; border: 2px solid #09090b; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

footer svg:hover path { fill: #10b981; }

.measure-optimal { max-width: 65ch; }

input::placeholder, textarea::placeholder { font-family: 'Fira Code', monospace; }

.project-card {
    border: 1px solid #27272a;
    transition: border-color 0.2s, background 0.2s;
}
.project-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.03);
}

.tag {
    border: 1px solid #27272a;
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #71717a;
    padding: 2px 8px;
}

.training-card {
    border: 1px solid #27272a;
    background: rgba(9, 9, 11, 0.5);
    transition: border-color 0.2s, background 0.2s;
}
.training-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.03);
}

.stat-card {
    border: 1px solid #27272a;
    border-left: 2px solid #10b981;
}

.offer-section {
    border: 1px solid #27272a;
    transition: border-color 0.2s, background 0.2s;
}
.offer-section:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.03);
}

.offer-item {
    border-left: 2px solid #27272a;
    transition: border-color 0.2s;
}
.offer-item:hover {
    border-color: #10b981;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .screenshot-gallery:has(> :nth-child(2)) {
        grid-template-columns: repeat(2, 1fr);
    }
}

.screenshot-thumb {
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s, transform 0.2s;
}
.screenshot-thumb:hover {
    border-color: rgba(16, 185, 129, 0.5);
    transform: scale(1.02);
}

#burgerBtn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #e4e4e7;
    transition: transform 0.3s, opacity 0.3s;
}
#burgerBtn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#burgerBtn.open span:nth-child(2) { opacity: 0; }
#burgerBtn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

#mobileMenu {
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobileMenu.open {
    transform: translateY(0);
}

.lightbox {
    animation: lightbox-in 0.2s ease-out;
}
@keyframes lightbox-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
