:root {
    --background: #000;
    --foreground: #f5f5f5;
    --muted: #9a9a9a;
    --card: rgba(12, 23, 48, 0.56);
    --border: rgba(84, 160, 255, 0.18);
    --primary: #007cff;
    --primary-soft: rgba(0, 124, 255, 0.18);
    --primary-glow: rgba(0, 124, 255, 0.55);
    --shadow-glow: 0 0 42px rgba(0, 124, 255, 0.34);
    --shadow-card: 0 20px 70px rgba(0, 0, 0, 0.48);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    background: var(--background);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--foreground);
    background: #000;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

svg {
    width: 1.15em;
    height: 1.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #000;
}

.ambient-bg::before,
.ambient-bg::after {
    content: "";
    position: absolute;
    inset: -22%;
    opacity: 0.92;
    filter: blur(26px);
    transform: translateZ(0);
}

.ambient-bg::before {
    background:
        radial-gradient(circle at 26% 30%, rgba(0, 83, 255, 0.58), transparent 25%),
        radial-gradient(circle at 70% 22%, rgba(0, 32, 92, 0.66), transparent 28%),
        radial-gradient(circle at 52% 78%, rgba(0, 10, 28, 0.92), transparent 36%),
        radial-gradient(circle at 82% 68%, rgba(0, 124, 255, 0.24), transparent 28%);
    animation: fog-drift-a 18s ease-in-out infinite alternate;
}

.ambient-bg::after {
    background:
        radial-gradient(circle at 42% 18%, rgba(0, 124, 255, 0.22), transparent 28%),
        radial-gradient(circle at 18% 76%, rgba(0, 20, 64, 0.78), transparent 34%),
        radial-gradient(circle at 78% 78%, rgba(0, 0, 0, 0.86), transparent 36%);
    mix-blend-mode: screen;
    opacity: 0.42;
    animation: fog-drift-b 24s ease-in-out infinite alternate;
}

@keyframes fog-drift-a {
    from {
        transform: scale(1) translate3d(-2%, -1%, 0) rotate(0deg);
    }
    to {
        transform: scale(1.08) translate3d(3%, 2%, 0) rotate(4deg);
    }
}

@keyframes fog-drift-b {
    from {
        transform: scale(1.04) translate3d(3%, 1%, 0) rotate(0deg);
    }
    to {
        transform: scale(1.12) translate3d(-2%, -3%, 0) rotate(-5deg);
    }
}

.grid-glow {
    position: absolute;
    inset: -20%;
    opacity: 0;
    background-image:
        linear-gradient(rgba(0, 124, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 124, 255, 0.12) 1px, transparent 1px);
    background-size: 72px 72px;
    transform: perspective(700px) rotateX(62deg) translateY(14%);
    transform-origin: bottom;
}

#stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

main,
.footer,
.back-to-top,
.toast {
    position: relative;
    z-index: 10;
}

main {
    background: transparent;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(880px, calc(100% - 32px));
}

.section {
    position: relative;
    padding: 96px 0;
    background: #000;
    overflow: hidden;
}

.section::before {
    display: none;
}

.section::after {
    display: none;
}

.section > .container {
    position: relative;
    z-index: 2;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: transparent;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(2, 8, 23, 0.9));
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 560px);
    align-items: center;
    gap: 48px;
}

.hero-copy {
    max-width: 690px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

h1 {
    margin: 0 0 20px;
    font-family: "Press Start 2P", Inter, sans-serif;
    font-size: clamp(2.25rem, 6vw, 4.9rem);
    line-height: 1.13;
    letter-spacing: 0;
}

.role {
    margin: 0 0 22px;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
}

.hero-bio,
.section-subtitle,
.lead,
.panel-section p,
.project-card p,
.info-card p {
    color: var(--muted);
    line-height: 1.8;
}

.hero-bio {
    max-width: 640px;
    margin: 0 0 34px;
    font-size: 1.17rem;
}

.gradient-text {
    background: linear-gradient(110deg, var(--foreground) 28%, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.primary-text {
    color: var(--primary);
    text-shadow: 0 0 24px rgba(0, 124, 255, 0.45);
}

.actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    color: var(--foreground);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: #001225;
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}

.btn-star {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 124, 255, 0.72);
}

.btn-star::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from var(--spin), transparent 0 72%, var(--primary), transparent);
    animation: spin 5s linear infinite;
    z-index: -2;
}

.btn-star::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 7px;
    background: #020815;
    z-index: -1;
}

@property --spin {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes spin {
    to {
        --spin: 360deg;
    }
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 38px;
}

.socials a,
.socials button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.socials a:hover,
.socials button:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-art {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 42px rgba(0, 124, 255, 0.2));
}

.infra-art {
    position: relative;
    width: min(520px, 100%);
    aspect-ratio: 1;
    margin-left: auto;
}

.cyber-illustration {
    position: relative;
    width: min(560px, 100%);
    aspect-ratio: 1;
    margin-left: auto;
    isolation: isolate;
}

.cyber-illustration::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(0, 124, 255, 0.2), transparent 54%),
        conic-gradient(from 110deg, transparent, rgba(0, 124, 255, 0.26), transparent, rgba(255, 255, 255, 0.08), transparent);
    filter: blur(2px);
    animation: cyber-rotate 18s linear infinite;
    z-index: -1;
}

.cyber-illustration::after {
    content: "";
    position: absolute;
    inset: 24%;
    border-radius: 34px;
    background: rgba(2, 10, 28, 0.42);
    border: 1px solid rgba(84, 160, 255, 0.12);
    box-shadow: inset 0 0 42px rgba(0, 124, 255, 0.08);
    transform: rotate(45deg);
    z-index: -1;
}

.cyber-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(84, 160, 255, 0.2);
    pointer-events: none;
}

.ring-one {
    inset: 11%;
    border-top-color: rgba(0, 124, 255, 0.75);
    border-right-color: rgba(0, 124, 255, 0.08);
    animation: cyber-rotate 22s linear infinite;
}

.ring-two {
    inset: 24%;
    border-left-color: rgba(105, 180, 255, 0.7);
    border-bottom-color: rgba(0, 124, 255, 0.08);
    animation: cyber-rotate 16s linear infinite reverse;
}

.cyber-grid {
    position: absolute;
    inset: 20%;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(84, 160, 255, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84, 160, 255, 0.22) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(circle, #000, transparent 68%);
    -webkit-mask-image: radial-gradient(circle, #000, transparent 68%);
    transform: perspective(600px) rotateX(58deg);
}

.cyber-core,
.cyber-card {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgba(84, 160, 255, 0.22);
    background: rgba(2, 10, 28, 0.72);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35), inset 0 0 28px rgba(0, 124, 255, 0.08);
    backdrop-filter: blur(14px) saturate(160%);
}

.cyber-core {
    left: 50%;
    top: 50%;
    width: 172px;
    height: 172px;
    transform: translate(-50%, -50%);
    border-radius: 28px;
    color: var(--primary);
    gap: 12px;
    text-align: center;
    animation: cyber-float 6s ease-in-out infinite;
}

.cyber-core svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 0 16px rgba(0, 124, 255, 0.5));
}

.cyber-core span {
    color: var(--foreground);
    font-family: "Press Start 2P", Inter, sans-serif;
    font-size: 0.72rem;
    line-height: 1.6;
}

.cyber-card {
    width: 128px;
    height: 82px;
    border-radius: 18px;
    color: rgba(245, 245, 245, 0.86);
    gap: 8px;
    font-weight: 800;
    animation: cyber-float 7s ease-in-out infinite;
}

.cyber-card svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.card-code {
    left: 4%;
    top: 18%;
    animation-delay: -1s;
}

.card-network {
    right: 1%;
    top: 24%;
    animation-delay: -2.4s;
}

.card-cloud {
    left: 8%;
    bottom: 14%;
    animation-delay: -3.2s;
}

.card-cyber {
    right: 8%;
    bottom: 12%;
    animation-delay: -4.1s;
}

.data-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(105, 180, 255, 0.9), transparent);
    box-shadow: 0 0 18px rgba(0, 124, 255, 0.58);
    transform-origin: left center;
    opacity: 0.75;
    animation: data-pulse 2.8s ease-in-out infinite;
}

.line-one {
    left: 25%;
    top: 34%;
    width: 145px;
    transform: rotate(31deg);
}

.line-two {
    right: 20%;
    top: 39%;
    width: 138px;
    transform: rotate(150deg);
    animation-delay: -0.7s;
}

.line-three {
    left: 26%;
    bottom: 33%;
    width: 142px;
    transform: rotate(-31deg);
    animation-delay: -1.4s;
}

.line-four {
    right: 24%;
    bottom: 31%;
    width: 132px;
    transform: rotate(212deg);
    animation-delay: -2.1s;
}

@keyframes cyber-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cyber-float {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -12px;
    }
}

@keyframes data-pulse {
    0%,
    100% {
        opacity: 0.25;
        filter: saturate(0.8);
    }
    50% {
        opacity: 1;
        filter: saturate(1.5);
    }
}

.network-card,
.node {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 124, 255, 0.42);
    background: rgba(2, 10, 28, 0.76);
    box-shadow: var(--shadow-glow), inset 0 0 24px rgba(0, 124, 255, 0.1);
    backdrop-filter: blur(14px);
}

.network-card {
    left: 50%;
    top: 50%;
    width: 170px;
    height: 170px;
    transform: translate(-50%, -50%);
    border-radius: 22px;
    color: var(--primary);
    font-family: "Press Start 2P", Inter, sans-serif;
    font-size: 0.9rem;
    gap: 12px;
}

.network-card svg {
    width: 48px;
    height: 48px;
}

.node {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: var(--foreground);
    font-weight: 800;
    font-size: 0.8rem;
}

.node-a {
    left: 7%;
    top: 16%;
}

.node-b {
    right: 9%;
    top: 12%;
}

.node-c {
    right: 4%;
    bottom: 18%;
}

.node-d {
    left: 11%;
    bottom: 11%;
}

.link {
    position: absolute;
    height: 2px;
    transform-origin: left center;
    background: linear-gradient(90deg, transparent, rgba(0, 124, 255, 0.88), transparent);
    box-shadow: 0 0 16px rgba(0, 124, 255, 0.58);
    animation: pulse-line 2.4s ease-in-out infinite;
}

.link-a {
    left: 24%;
    top: 35%;
    width: 155px;
    transform: rotate(28deg);
}

.link-b {
    right: 22%;
    top: 35%;
    width: 150px;
    transform: rotate(148deg);
}

.link-c {
    right: 18%;
    bottom: 33%;
    width: 150px;
    transform: rotate(210deg);
}

.link-d {
    left: 24%;
    bottom: 31%;
    width: 145px;
    transform: rotate(-32deg);
}

@keyframes pulse-line {
    0%,
    100% {
        opacity: 0.38;
    }
    50% {
        opacity: 1;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 1.6rem;
    animation: bounce 1.8s infinite;
}

@keyframes bounce {
    50% {
        transform: translate(-50%, 9px);
    }
}

.panel-section {
    background: #000;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 100px);
    mask-image: linear-gradient(to bottom, transparent, #000 100px);
}

#projects {
    background: #000;
}

.section-title {
    margin: 0 0 16px;
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    line-height: 1.12;
}

.section-subtitle {
    max-width: 650px;
    margin: 0 auto 46px;
    text-align: center;
}

.lead {
    font-size: 1.14rem;
}

.pixel-name {
    color: var(--foreground);
    font-family: "Press Start 2P", Inter, sans-serif;
    font-size: 0.86em;
}

.center {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.glass-card {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px) saturate(160%);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 124, 255, 0.42);
    box-shadow: 0 24px 90px rgba(0, 124, 255, 0.14);
}

.project-image {
    height: 190px;
    overflow: hidden;
    background: #111;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.project-body h3,
.info-card h3 {
    margin: 0 0 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 24px;
}

.tags span {
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 5px 9px;
    font-size: 0.76rem;
    font-weight: 700;
}

.card-actions {
    margin-top: auto;
}

.skills-section {
    background: linear-gradient(to bottom, #000 0%, transparent 25%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 28px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--foreground);
    transition: transform 0.25s ease;
}

.skill-item:hover {
    transform: translateY(-6px) scale(1.04);
}

.skill-orb {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(0, 124, 255, 0.12);
    box-shadow: var(--shadow-glow);
    color: var(--primary);
    text-transform: uppercase;
}

.skill-bars-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.skill-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 26px;
}

.skill-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 0%, rgba(0, 124, 255, 0.18), transparent 34%);
    pointer-events: none;
}

.skill-panel > * {
    position: relative;
    z-index: 1;
}

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

.skill-panel h3 {
    margin: 0;
    color: var(--foreground);
    font-size: 1.1rem;
}

.skill-panel-header span {
    color: var(--primary);
    font-family: "Press Start 2P", Inter, sans-serif;
    font-size: 0.78rem;
    text-shadow: 0 0 18px rgba(0, 124, 255, 0.35);
}

.skill-panel p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.7;
}

.skill-meter {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(84, 160, 255, 0.16);
}

.skill-meter span {
    display: block;
    width: var(--level);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0, 124, 255, 0.55), #69b4ff);
    box-shadow: 0 0 22px rgba(0, 124, 255, 0.5);
    transform-origin: left center;
    animation: meter-fill 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes meter-fill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.skill-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.skill-chip-row span {
    border-radius: 999px;
    background: rgba(0, 124, 255, 0.1);
    border: 1px solid rgba(84, 160, 255, 0.18);
    color: rgba(245, 245, 245, 0.78);
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: stretch;
    gap: 32px;
}

#contact {
    padding-bottom: 90px;
    background: transparent;
}

.contact-form,
.info-card {
    border-radius: var(--radius);
    padding: 28px;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-form label {
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.38);
    color: var(--foreground);
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(0, 124, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(0, 124, 255, 0.12);
}

.full {
    width: 100%;
    margin-top: 8px;
}

.contact-info {
    display: flex;
    min-height: 100%;
}

.info-card {
    display: grid;
    width: 100%;
    align-content: start;
    gap: 18px;
}

.info-card a {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.info-card a:hover {
    color: var(--primary);
}

.contact-links {
    display: grid;
    gap: 14px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid rgba(84, 160, 255, 0.14);
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    color: var(--foreground);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-link:hover {
    border-color: rgba(0, 124, 255, 0.42);
    background: rgba(0, 124, 255, 0.08);
    transform: translateY(-2px);
}

.contact-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 12px;
    color: var(--primary);
    background: rgba(0, 124, 255, 0.1);
    box-shadow: inset 0 0 18px rgba(0, 124, 255, 0.08);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-link span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.contact-link strong {
    color: var(--foreground);
    font-size: 0.95rem;
}

.contact-link em {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.88rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice {
    margin: 0 0 8px;
    border-radius: 8px;
    padding: 12px;
}

.success {
    color: #b7ffb7;
    background: rgba(0, 124, 255, 0.14);
}

.error {
    color: #ffb7b7;
    background: rgba(220, 38, 38, 0.16);
}

.side-nav {
    position: fixed;
    left: 18px;
    top: 50%;
    z-index: 9999;
    display: grid;
    gap: 8px;
    transform: translateY(-50%);
    border-radius: 18px;
    background: rgba(2, 10, 28, 0.88);
    border: 1px solid rgba(84, 160, 255, 0.26);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.48), 0 0 34px rgba(0, 124, 255, 0.14);
    padding: 10px;
    backdrop-filter: blur(18px) saturate(160%);
}

.nav-link {
    display: grid;
    min-width: 52px;
    height: 48px;
    place-items: center;
    border-radius: 12px;
    color: var(--muted);
    font-size: 1.12rem;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(0, 124, 255, 0.14);
    color: var(--primary);
}

.nav-link:hover {
    transform: translateX(2px);
}

.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 44px;
    width: 58px;
    height: 58px;
    border: 3px solid #006dcc;
    border-radius: 999px;
    background: rgba(0, 5, 18, 0.38);
    color: #007cff;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    backdrop-filter: blur(14px);
    display: grid;
    place-items: center;
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    color: #58aaff;
    border-color: #58aaff;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 88px;
    border-radius: 10px;
    background: rgba(38, 38, 38, 0.92);
    border: 1px solid var(--border);
    color: var(--foreground);
    padding: 12px 16px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    position: relative;
    min-height: 280px;
    padding: 42px 16px 44px;
    text-align: center;
    color: var(--muted);
    overflow: hidden;
    background:
        radial-gradient(circle at 43% 11%, rgba(0, 83, 255, 0.55), transparent 18%),
        radial-gradient(circle at 50% 30%, rgba(0, 72, 194, 0.2), transparent 28%),
        linear-gradient(90deg, #000 0%, #010817 28%, #000c22 50%, #020817 76%, #000 100%);
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.4px),
        radial-gradient(circle, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.3px);
    background-position: 18px 32px, 92px 12px;
    background-size: 150px 92px, 230px 130px;
    opacity: 0.34;
}

.footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, transparent 0%, rgba(0, 0, 0, 0.28) 78%);
}

.footer-inner {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    margin: 0 auto;
}

.footer h2 {
    margin: 0 0 16px;
    color: #f2f4f8;
    font-family: "Press Start 2P", Inter, sans-serif;
    font-size: 1.75rem;
    line-height: 1.25;
    letter-spacing: 0;
    text-shadow: 0 0 12px rgba(74, 144, 255, 0.42);
}

.footer-role {
    margin: 0 0 30px;
    color: rgba(245, 245, 245, 0.58);
    font-size: 1.02rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.footer-nav a {
    color: rgba(245, 245, 245, 0.55);
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover {
    color: #f2f4f8;
    transform: translateY(-2px);
}

.footer-line {
    height: 1px;
    width: 100%;
    margin: 0 auto 32px;
    background: linear-gradient(90deg, transparent, rgba(245, 245, 245, 0.22), transparent);
}

.footer-copy {
    margin: 0;
    color: rgba(245, 245, 245, 0.54);
    font-size: 1rem;
}

.footer-copy span {
    font-family: "Press Start 2P", Inter, sans-serif;
    font-size: 0.82rem;
    color: rgba(245, 245, 245, 0.72);
}

.tool-page {
    min-height: 100vh;
}

.tool-hero {
    min-height: 100vh;
    padding-top: 96px;
    background: transparent;
}

.tool-back {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.tool-back:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

.tool-title {
    margin: 0 0 18px;
    text-align: center;
    font-family: "Press Start 2P", Inter, sans-serif;
    font-size: 2rem;
    line-height: 1.35;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}

.tool-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: min(1020px, 100%);
    margin: 42px auto 28px;
}

.tool-choice {
    display: grid;
    min-height: 170px;
    place-items: center;
    gap: 10px;
    border: 1px solid rgba(84, 160, 255, 0.18);
    border-radius: 18px;
    background: rgba(12, 23, 48, 0.46);
    color: var(--foreground);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px) saturate(160%);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.tool-choice:hover,
.tool-choice.active {
    transform: translateY(-6px);
    border-color: rgba(0, 124, 255, 0.54);
    background: rgba(0, 124, 255, 0.12);
    box-shadow: 0 24px 90px rgba(0, 124, 255, 0.14);
}

.tool-choice svg {
    width: 44px;
    height: 44px;
    color: var(--primary);
    filter: drop-shadow(0 0 16px rgba(0, 124, 255, 0.38));
}

.tool-choice .tool-emoji {
    display: block;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 0 16px rgba(0, 124, 255, 0.32));
}

.tool-choice span {
    font-family: "Press Start 2P", Inter, sans-serif;
    font-size: 0.88rem;
}

.tool-choice em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.88rem;
}

.tool-panels {
    width: min(860px, 100%);
    margin: 0 auto;
}

.tool-panel {
    display: none;
}

.tool-panel.active {
    display: grid;
    animation: panel-in 0.35s ease both;
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    border-radius: var(--radius);
    padding: 28px;
}

.tool-card h2 {
    margin: 0 0 10px;
    color: var(--foreground);
    font-size: 1.35rem;
}

.tool-muted,
.tool-hint {
    color: var(--muted);
    line-height: 1.7;
}

.tool-hint {
    margin: 2px 0 8px;
    font-size: 0.88rem;
}

.tool-form {
    display: grid;
    gap: 14px;
}

.compact-form {
    max-width: 420px;
}

.tool-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tool-form-row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-form label {
    font-weight: 700;
    color: rgba(245, 245, 245, 0.88);
}

.tool-form input,
.tool-form select,
.tool-form textarea,
.share-box input,
.shared-note,
.shared-code {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.38);
    color: var(--foreground);
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tool-form select {
    cursor: pointer;
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, rgba(245, 245, 245, 0.78) 50%) calc(100% - 20px) 52% / 6px 6px no-repeat,
        linear-gradient(135deg, rgba(245, 245, 245, 0.78) 50%, transparent 50%) calc(100% - 15px) 52% / 6px 6px no-repeat,
        rgba(0, 8, 24, 0.74);
    padding-right: 44px;
    color-scheme: dark;
}

.tool-form select option {
    background: #020815;
    color: #f5f5f5;
}

.tool-form input::placeholder,
.tool-form textarea::placeholder {
    color: rgba(245, 245, 245, 0.42);
}

.tool-form textarea,
.shared-note {
    resize: vertical;
    min-height: 220px;
}

.shared-code {
    min-height: 280px;
    max-height: 62vh;
    margin: 18px 0 0;
    overflow: auto;
    padding: 0;
    background:
        linear-gradient(90deg, rgba(0, 124, 255, 0.06), transparent 22%),
        rgba(0, 0, 0, 0.42);
}

.shared-code code {
    display: block;
    min-width: 100%;
    padding: 18px;
    color: rgba(245, 245, 245, 0.9);
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 0.94rem;
    line-height: 1.75;
    tab-size: 4;
    white-space: pre;
}

.syn-comment {
    color: #6f87aa;
    font-style: italic;
}

.syn-keyword {
    color: #69b4ff;
}

.syn-string {
    color: #8ff0b4;
}

.syn-number {
    color: #ffcf70;
}

.syn-tag {
    color: #58aaff;
}

.syn-attr {
    color: #c9a8ff;
}

.syn-prop {
    color: #76d7ff;
}

.tool-form input:focus,
.tool-form select:focus,
.tool-form textarea:focus,
.share-box input:focus {
    border-color: rgba(0, 124, 255, 0.72);
    background-color: rgba(0, 8, 24, 0.86);
    box-shadow: 0 0 0 4px rgba(0, 124, 255, 0.12);
}

.share-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    margin-top: 12px;
}

.notice .share-box {
    grid-template-columns: minmax(0, 1fr) auto;
}

.created-secret {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    border-radius: 10px;
    border: 1px solid rgba(84, 160, 255, 0.18);
    background: rgba(0, 0, 0, 0.18);
    padding: 14px;
}

.created-secret span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.created-secret .share-box {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 0;
}

.file-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.file-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(84, 160, 255, 0.14);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    padding: 14px 16px;
    color: var(--foreground);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.file-list a:hover {
    border-color: rgba(0, 124, 255, 0.42);
    background: rgba(0, 124, 255, 0.08);
    transform: translateY(-2px);
}

.file-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-list em {
    flex: 0 0 auto;
    color: var(--muted);
    font-style: normal;
    font-size: 0.85rem;
}

.library-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.library-path {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
    border: 1px solid rgba(84, 160, 255, 0.14);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    padding: 11px 13px;
    color: var(--muted);
}

.library-path a {
    color: #69b4ff;
    font-weight: 800;
}

.library-up {
    display: inline-flex;
    width: fit-content;
    margin-top: 16px;
    border: 1px solid rgba(84, 160, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 124, 255, 0.1);
    color: #69b4ff;
    padding: 9px 12px;
    font-weight: 800;
}

.library-folder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.library-folder {
    display: grid;
    gap: 8px;
    min-height: 130px;
    align-content: center;
    border: 1px solid rgba(84, 160, 255, 0.16);
    border-radius: 12px;
    background:
        radial-gradient(circle at 18% 16%, rgba(0, 124, 255, 0.18), transparent 38%),
        rgba(0, 0, 0, 0.22);
    padding: 18px;
    color: var(--foreground);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.library-folder:hover {
    border-color: rgba(0, 124, 255, 0.46);
    background:
        radial-gradient(circle at 18% 16%, rgba(0, 124, 255, 0.28), transparent 42%),
        rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.library-folder span {
    font-size: 2rem;
    line-height: 1;
}

.library-folder strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.library-folder em {
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
}

.library-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(84, 160, 255, 0.16);
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(0, 124, 255, 0.09), transparent 34%),
        rgba(0, 0, 0, 0.22);
    padding: 15px;
    color: var(--foreground);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.library-item:hover {
    border-color: rgba(0, 124, 255, 0.46);
    background:
        linear-gradient(90deg, rgba(0, 124, 255, 0.16), transparent 38%),
        rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.library-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 10px;
    background: rgba(0, 124, 255, 0.12);
    font-size: 1.35rem;
}

.library-main {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.library-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.library-main em {
    color: var(--muted);
    font-size: 0.86rem;
    font-style: normal;
}

.library-action {
    border-radius: 8px;
    background: var(--primary);
    color: #001225;
    padding: 9px 12px;
    font-size: 0.82rem;
    font-weight: 800;
}

.empty-library {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    border: 1px dashed rgba(84, 160, 255, 0.28);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.empty-library span {
    color: var(--muted);
    line-height: 1.6;
}

.library-lock {
    display: grid;
    max-width: 520px;
    gap: 14px;
    margin-top: 20px;
    border: 1px solid rgba(84, 160, 255, 0.22);
    border-radius: 14px;
    background:
        radial-gradient(circle at 20% 0%, rgba(0, 124, 255, 0.18), transparent 38%),
        rgba(0, 0, 0, 0.24);
    padding: 24px;
}

.library-lock-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 124, 255, 0.12);
    font-size: 1.6rem;
}

.library-lock h3 {
    margin: 0;
    color: var(--foreground);
}

.library-lock p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.tool-muted code,
.empty-library code {
    color: #69b4ff;
}

.password-tool {
    gap: 18px;
}

.share-tool {
    gap: 18px;
}

.share-mode-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    width: min(360px, 100%);
    gap: 6px;
    border: 1px solid rgba(84, 160, 255, 0.16);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
    padding: 6px;
}

.share-mode-tabs button {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 10px 12px;
    font-weight: 800;
}

.share-mode-tabs button.active {
    background: rgba(0, 124, 255, 0.18);
    color: var(--foreground);
}

.share-mode {
    display: none;
}

.share-mode.active {
    display: grid;
}

.password-output-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.password-output-row input,
.password-length-controls input[type="number"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.38);
    color: var(--foreground);
    padding: 13px 14px;
    outline: none;
}

.password-output-row input {
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 1rem;
}

.password-length {
    display: grid;
    gap: 10px;
}

.password-length label {
    color: rgba(245, 245, 245, 0.88);
    font-weight: 800;
}

.password-length-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 12px;
    align-items: center;
}

.password-length-controls input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

.password-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.password-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(84, 160, 255, 0.16);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    padding: 14px;
    cursor: pointer;
}

.password-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.password-option span {
    display: grid;
    gap: 3px;
}

.password-option strong {
    color: var(--foreground);
}

.password-option em {
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
}

.portfolio-footer {
    position: relative;
    z-index: 20;
    min-height: 280px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 42px 80px 38px;
    overflow: visible;
    text-align: center;
    color: rgba(245, 245, 245, 0.56);
    background: transparent;
}

.portfolio-footer::before {
    display: none;
}

.portfolio-footer::after {
    display: none;
}

.portfolio-footer-inner {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.portfolio-footer h2 {
    margin: 0 0 15px;
    color: #f2f5fb;
    font-family: "Press Start 2P", Inter, sans-serif;
    font-size: 1.7rem;
    line-height: 1.25;
    letter-spacing: 0;
    text-shadow: 0 0 12px rgba(76, 139, 255, 0.42);
}

.portfolio-footer p {
    margin: 0 0 29px;
    color: rgba(245, 245, 245, 0.56);
    font-size: 1.02rem;
}

.portfolio-footer-nav {
    display: flex;
    justify-content: center;
    gap: 29px;
    flex-wrap: wrap;
    margin-bottom: 33px;
}

.portfolio-footer-nav a {
    color: rgba(245, 245, 245, 0.58);
    font-size: 1rem;
    transition: color 0.2s ease;
}

.portfolio-footer-nav a:hover {
    color: #f2f5fb;
}

.portfolio-footer-line {
    width: 100%;
    height: 1px;
    margin-bottom: 31px;
    background: linear-gradient(90deg, transparent, rgba(245, 245, 245, 0.23), transparent);
}

.portfolio-footer-copy {
    color: rgba(245, 245, 245, 0.56);
    font-size: 1rem;
}

.portfolio-footer-copy span {
    color: rgba(245, 245, 245, 0.72);
    font-family: "Press Start 2P", Inter, sans-serif;
    font-size: 0.82rem;
}

.portfolio-footer .portfolio-footer-top {
    position: absolute;
    z-index: 2;
    right: 18px;
    top: 58px;
    bottom: auto;
    width: 58px;
    height: 58px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border: 2px solid rgba(0, 124, 255, 0.78);
    background: rgba(0, 5, 18, 0.18);
    color: #007cff;
    box-shadow: 0 0 24px rgba(0, 124, 255, 0.16);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .hero-layout,
    .contact-grid,
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .tool-picker {
        grid-template-columns: 1fr;
        width: min(520px, 100%);
    }

    .tool-choice {
        min-height: 120px;
    }

    .contact-info {
        min-height: auto;
    }

    .hero-art {
        max-width: 520px;
        margin: 0 auto;
    }

    .cyber-illustration {
        width: min(460px, 100%);
        margin: 10px auto 0;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skills-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .section {
        padding: 76px 0;
    }

    .hero {
        padding-top: 86px;
        text-align: center;
    }

    .cyber-illustration {
        width: min(360px, 100%);
    }

    .cyber-card {
        width: 104px;
        height: 70px;
        font-size: 0.78rem;
    }

    .cyber-core {
        width: 136px;
        height: 136px;
    }

    .cyber-core svg {
        width: 42px;
        height: 42px;
    }

    .cyber-core span {
        font-size: 0.58rem;
    }

    .actions,
    .socials {
        justify-content: center;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .skill-bars-grid {
        grid-template-columns: 1fr;
    }

    .skill-orb {
        width: 52px;
        height: 52px;
    }

    .side-nav {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 12px;
        display: flex;
        justify-content: space-between;
        transform: none;
        border-radius: 28px;
    }

    .nav-link {
        flex: 1;
        min-width: auto;
    }

    .back-to-top {
        bottom: 88px;
        right: 18px;
        width: 52px;
        height: 52px;
    }

    .footer {
        padding-bottom: 112px;
    }

    .footer h2 {
        font-size: 1.15rem;
    }

    .footer-nav {
        gap: 18px;
    }

    .tool-title {
        font-size: 1.25rem;
        text-align: left;
    }

    .tool-card {
        padding: 22px;
    }

    .tool-form-row,
    .share-box,
    .password-options,
    .password-length-controls,
    .password-output-row {
        grid-template-columns: 1fr;
    }

    .portfolio-footer {
        min-height: auto;
        padding: 28px 24px 116px;
    }

    .portfolio-footer-inner {
        padding: 0;
    }

    .portfolio-footer h2 {
        font-size: 1.05rem;
    }

    .portfolio-footer p {
        font-size: 0.92rem;
    }

    .portfolio-footer-nav {
        gap: 17px;
    }

    .portfolio-footer .portfolio-footer-top {
        top: auto;
        right: 18px;
        bottom: 86px;
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 460px) {
    h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skill-panel {
        padding: 22px;
    }

    .skill-panel-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
