nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.28s ease, background 0.3s ease;
}

nav.nav-hidden {
    transform: translateY(calc(-100% - 12px));
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    font-family: "Press Start 2P", monospace;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    text-shadow: var(--glow);
    animation: glitch 3s infinite;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
    box-shadow: 0 0 5px var(--primary);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.45);
}

.theme-toggle:active {
    transform: translateY(1px);
}

.theme-toggle__icon {
    position: absolute;
    width: 28px;
    height: 28px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0.25;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.theme-toggle__icon--sun {
    opacity: 0;
    transform: scale(0.82);
}

.theme-toggle__icon--moon {
    opacity: 1;
    transform: scale(1);
}

[data-theme="light"] .theme-toggle__icon--sun {
    opacity: 1;
    transform: scale(1);
}

[data-theme="light"] .theme-toggle__icon--moon {
    opacity: 0;
    transform: scale(0.82);
}

.btn {
    padding: 12px 30px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    font-weight: 600;
    cursor: pointer;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    transition: all 0.3s;
    transform: translate(-50%, -50%);
}

.btn:hover {
    color: var(--dark);
    box-shadow: var(--glow);
}

.btn:hover::before {
    width: 100%;
    height: 100%;
}

.btn span {
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: "Press Start 2P", monospace;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: "//";
    color: var(--gray);
    margin: 0 15px;
}

.experience-description {
    line-height: 1.6;
    color: var(--text-muted);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-tag {
    padding: 5px 12px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-rgb), 0.2);
    transition: left 0.3s;
}

.tech-tag:hover::before {
    left: 0;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.skill-badge {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: "Press Start 2P", monospace;
    font-size: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.skill-badge:hover {
    transform: scale(1.1);
    box-shadow: var(--glow);
}

.skill-variant {
    position: relative;
    padding: 24px;
    background:
        linear-gradient(
            135deg,
            rgba(var(--primary-rgb), 0.1),
            rgba(var(--accent-rgb), 0.06)
        ),
        var(--card-bg);
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.08) inset;
}

.skill-variant__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.variant-kicker,
.skill-variant__title {
    font-family: "Press Start 2P", monospace;
}

.variant-kicker {
    display: inline-block;
    color: var(--gray);
    font-size: 7px;
    letter-spacing: 0.08em;
}

.skill-variant__title {
    color: var(--primary);
    font-size: 10px;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.45);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary);
    transition:
        color 0.3s ease,
        filter 0.3s ease;
    position: relative;
    isolation: isolate;
}

.social-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    background: transparent;
    clip-path: polygon(
        0 8px,
        8px 8px,
        8px 0,
        calc(100% - 8px) 0,
        calc(100% - 8px) 8px,
        100% 8px,
        100% calc(100% - 8px),
        calc(100% - 8px) calc(100% - 8px),
        calc(100% - 8px) 100%,
        8px 100%,
        8px calc(100% - 8px),
        0 calc(100% - 8px)
    );
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
    pointer-events: none;
}

.social-link svg {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: currentColor;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.social-link:hover,
.social-link:focus-visible {
    color: var(--dark);
    filter: drop-shadow(var(--glow));
}

.social-link:hover::before,
.social-link:focus-visible::before {
    transform: rotate(45deg);
    background: var(--primary);
    box-shadow: var(--glow);
}

.social-link:hover svg,
.social-link:focus-visible svg {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 14px;
    }
}
