:root {
    --bg: #05070b;
    --bg-alt: #0d1017;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-strong: rgba(255, 255, 255, 0.1);
    --text: #f3f4f6;
    --muted: #a3a9b8;
    --accent: #d6dbe7;
    --accent-2: #8b95a8;
    --border: rgba(255, 255, 255, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
    font-size: 16px;
    background: linear-gradient(120deg, #05070b 0%, #0d1118 45%, #161b25 100%);
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.22;
    pointer-events: none;
}

h1, h2, h3 {
    padding: 0;
    margin: 0 0 0.7rem;
}

h1, h2 {
    line-height: 1.2;
}

header {
    padding: 2.6rem 1.25rem 3rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(9, 11, 16, 0.94), rgba(20, 24, 33, 0.84));
    backdrop-filter: blur(18px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.header-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.title-wrapper {
    text-align: center;
}

.header-container h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-container h1 a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.header-container h1 a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: width 240ms ease, opacity 240ms ease;
}

.header-container h1 a:hover::after,
.header-container h1 a:focus-visible::after {
    width: 100%;
    opacity: 1;
}

.top-nav, .bottom-nav {
    width: 100%;
}

.top-nav ul, .bottom-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav a, .bottom-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.top-nav a::after, .bottom-nav a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(214,219,231,0.16), rgba(255,255,255,0.04));
    opacity: 0;
    transition: opacity 180ms ease;
}

.top-nav a:hover, .bottom-nav a:hover,
.top-nav a:focus-visible, .bottom-nav a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(214, 219, 231, 0.24);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.top-nav a:hover::after, .bottom-nav a:hover::after,
.top-nav a:focus-visible::after, .bottom-nav a:focus-visible::after {
    opacity: 1;
}

.logo {
    width: 16px;
    height: 16px;
    filter: brightness(1.15);
}

section {
    max-width: 1120px;
    margin: 1.35rem auto;
    padding: 1.5rem 1.6rem;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
}



section h3 {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.summary {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto 1.2rem;
    text-align: center;
}

.summary p {
    margin: 0;
}

.skills {
    font-size: 1rem;
}

.skills p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.skills .list-2cols,
.skills .list-3cols {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.skills .list-2cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skills .list-3cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skills .proficient,
.skills .experienced {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.skills .proficient:hover,
.skills .experienced:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.skills .proficient {
    color: var(--accent);
    border-color: rgba(214, 219, 231, 0.2);
}

.skills .experienced {
    color: var(--accent-2);
    border-color: rgba(139, 149, 168, 0.2);
}

.projects > h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.projects > h3:first-of-type {
    margin-top: 0;
}

.personal-projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0.4rem 0 1rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(70, 91, 125, 0.678), rgba(255, 255, 255, 0));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card a {
    color: inherit;
    text-decoration: none;
}

.project-card-link {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(214, 219, 231, 0.24);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.project-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.project-card h4 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.project-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.project-tags span,
.project-tags a {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.235);
    border: 1px solid rgba(214, 219, 231, 0.16);
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.project-tags .project-link {
    background: rgba(214, 219, 231, 0.913);
    border-color: rgba(214, 219, 231, 0.28);
    color: var(--text);
}

.project-card-banner {
    position: absolute;
    right: -2.3rem;
    bottom: 0rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 2.4rem;
    padding: 0 0.6rem;
    border-radius: 0.4rem;
    background: rgb(203, 3, 3) !important;
    border: 1px solid rgb(223, 18, 7) !important;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transform: rotate(-45deg);
    box-shadow: 0 6px 16px rgb(212, 3, 3) !important;
    z-index: 2;
}

.project-card {
    position: relative;
    overflow: hidden;
}

.note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 1rem auto 0;
    padding: 1rem 1.2rem;
    max-width: 760px;
    border-radius: 16px;
    border: 1px solid rgba(214, 219, 231, 0.18);
    color: var(--text);
    background: rgba(214, 219, 231, 0.1);
}

.industry-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

.industry-table td {
    padding: 0;
}

.industry-table img {
    display: block;
    width: 100%;
    max-width: min(100%, 720px);
    max-height: 240px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.industry-table img:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

footer {
    padding: 2rem 1rem 3rem;
    text-align: center;
    color: var(--muted);
}

footer a {
    color: var(--text);
}
