:root {
    --bg: #080a0b;
    --bg-soft: #0d1110;
    --panel: rgba(18, 24, 22, 0.72);
    --panel-strong: rgba(24, 31, 28, 0.92);
    --text: #f5f1e8;
    --muted: #aeb8b0;
    --soft: #d9dece;
    --line: rgba(245, 241, 232, 0.12);
    --line-strong: rgba(245, 241, 232, 0.22);
    --accent: #c9f27a;
    --accent-2: #54d6c5;
    --accent-3: #eadbbf;
    --danger: #ff6f61;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 8px;
    --radius-lg: 18px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(84, 214, 197, 0.12), transparent 30rem),
        radial-gradient(circle at 80% 18%, rgba(201, 242, 122, 0.10), transparent 34rem),
        linear-gradient(180deg, #080a0b 0%, #0a0f0d 48%, #080a0b 100%);
    overflow-x: hidden;
}

body.site-body::selection,
body.admin-body::selection {
    color: #07100d;
    background: var(--accent);
}

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

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

button,
input,
textarea {
    font: inherit;
}

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

.orb {
    position: absolute;
    width: 30rem;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.26;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-one {
    left: -8rem;
    top: 8rem;
    background: var(--accent-2);
}

.orb-two {
    right: -11rem;
    top: 22rem;
    background: var(--accent);
    animation-delay: -5s;
}

.mesh-line {
    position: absolute;
    width: 42rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 219, 191, 0.25), transparent);
    transform: rotate(-18deg);
    opacity: 0.45;
    animation: meshDrift 16s ease-in-out infinite;
}

.mesh-a {
    top: 14rem;
    right: 5%;
}

.mesh-b {
    bottom: 12rem;
    left: 4%;
    animation-delay: -7s;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 20px 0;
}

.navbar {
    width: min(var(--max), calc(100vw - 32px));
    margin: 0 auto;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 12px 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 10, 11, 0.72);
    backdrop-filter: blur(22px);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.25);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #07100d;
    font-size: 13px;
    font-weight: 900;
    background:
        linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 5px rgba(201, 242, 122, 0.08), 0 14px 30px rgba(84, 214, 197, 0.14);
}

.brand-name {
    max-width: 210px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 800;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    padding: 10px 11px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(245, 241, 232, 0.08);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(245, 241, 232, 0.06);
}

.language-switch span {
    width: 1px;
    height: 17px;
    background: var(--line);
}

.lang-option {
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    padding: 7px 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.lang-option:hover {
    color: var(--text);
}

.lang-option.is-active {
    color: #07100d;
    background: var(--accent);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(245, 241, 232, 0.06);
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 4px;
    background: var(--text);
    transition: transform 220ms ease, top 220ms ease;
}

.nav-toggle span:first-child {
    top: 16px;
}

.nav-toggle span:last-child {
    top: 25px;
}

.nav-toggle.is-open span:first-child {
    top: 21px;
    transform: rotate(45deg);
}

.nav-toggle.is-open span:last-child {
    top: 21px;
    transform: rotate(-45deg);
}

.section-shell {
    width: min(var(--max), calc(100vw - 40px));
    margin: 0 auto;
}

.hero {
    min-height: calc(100vh - 86px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
    align-items: center;
    gap: 62px;
    padding: 72px 0 80px;
}

.hero-copy {
    position: relative;
}

.eyebrow,
.section-kicker,
.admin-kicker {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-title {
    margin: 0;
    font-size: 68px;
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-title span {
    display: block;
}

.hero-title small {
    display: block;
    margin-top: 16px;
    color: var(--accent-3);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.hero-description {
    width: min(630px, 100%);
    margin: 28px 0 0;
    color: var(--soft);
    font-size: 19px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 19px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
    color: #07100d;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 42px rgba(84, 214, 197, 0.16);
}

.button-ghost {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(245, 241, 232, 0.06);
}

.button-ghost:hover {
    border-color: rgba(201, 242, 122, 0.42);
    background: rgba(201, 242, 122, 0.08);
}

.hero-visual {
    position: relative;
    min-height: 590px;
    animation: heroFloat 8s ease-in-out infinite;
}

.portrait-frame {
    position: absolute;
    inset: 0 0 56px 36px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #121816;
    box-shadow: var(--shadow);
}

.portrait-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 40%, rgba(8, 10, 11, 0.72) 100%),
        radial-gradient(circle at 28% 18%, rgba(201, 242, 122, 0.18), transparent 20rem);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.04);
}

.portrait-badge {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 10, 11, 0.62);
    backdrop-filter: blur(18px);
}

.portrait-badge span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.portrait-badge strong {
    color: var(--accent);
}

.signature-card {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(330px, 78%);
    padding: 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgba(12, 17, 16, 0.78);
    backdrop-filter: blur(24px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.signature-card span {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.signature-card strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1.45;
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: riseIn 760ms cubic-bezier(.2, .9, .2, 1) forwards;
}

.hero-copy .reveal-text:nth-child(2) {
    animation-delay: 120ms;
}

.hero-copy .reveal-text:nth-child(3) {
    animation-delay: 230ms;
}

.hero-copy .reveal-text:nth-child(4) {
    animation-delay: 340ms;
}

.about,
.projects,
.education,
.skills,
.experience,
.social-section,
.contact {
    padding: 92px 0;
}

.section-heading h2,
.section-topline h2,
.social-copy h2,
.contact-info h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading p,
.section-topline p,
.social-copy p,
.contact-info p {
    margin: 18px 0 0;
    color: var(--soft);
    font-size: 17px;
    line-height: 1.8;
}

.section-topline {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 32px;
}

.section-topline.compact {
    grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.5fr);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.58fr;
    gap: 20px;
    align-items: stretch;
}

.section-heading {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(245, 241, 232, 0.07), rgba(245, 241, 232, 0.025));
}

.about-panel,
.strengths-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(245, 241, 232, 0.045);
    overflow: hidden;
}

.about-panel {
    display: grid;
    grid-template-rows: 240px auto;
}

.about-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-panel div,
.strengths-panel {
    padding: 24px;
}

.about-panel span,
.strengths-panel span {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-3);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-panel p,
.strengths-panel p {
    margin: 0;
    color: var(--soft);
    line-height: 1.75;
    white-space: pre-line;
}

.strengths-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
}

.filter-button {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(245, 241, 232, 0.045);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
    color: #07100d;
    border-color: transparent;
    background: var(--accent);
}

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

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.project-card {
    grid-column: span 4;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(245, 241, 232, 0.045);
    overflow: hidden;
    transition: transform 260ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.project-card:nth-child(1) {
    grid-column: span 7;
}

.project-card:nth-child(2) {
    grid-column: span 5;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: rgba(201, 242, 122, 0.42);
    background: rgba(245, 241, 232, 0.065);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.project-card.is-hidden {
    display: none;
}

.project-thumb {
    position: relative;
    height: 250px;
    display: block;
    overflow: hidden;
    background: #151b19;
}

.project-card:nth-child(1) .project-thumb,
.project-card:nth-child(2) .project-thumb {
    height: 310px;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease, filter 600ms ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.06);
    filter: saturate(1.06) contrast(1.04);
}

.featured-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 11px;
    border: 1px solid rgba(8, 10, 11, 0.08);
    border-radius: 999px;
    color: #07100d;
    background: rgba(201, 242, 122, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.project-body {
    padding: 22px;
}

.project-meta,
.project-spec {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.project-meta {
    color: var(--accent-3);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-body h3 {
    margin: 16px 0 10px;
    font-size: 24px;
    line-height: 1.18;
}

.project-body p {
    margin: 0;
    color: var(--soft);
    line-height: 1.7;
}

.project-spec {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.project-spec strong {
    color: var(--text);
}

.tool-line {
    margin-top: 12px;
    color: var(--accent-2);
    font-size: 13px;
    line-height: 1.5;
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--accent);
    font-weight: 900;
}

.timeline {
    position: relative;
    display: grid;
    gap: 18px;
    padding-left: 28px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--accent-2), var(--accent), transparent);
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 29px;
    width: 15px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 7px rgba(201, 242, 122, 0.1), 0 0 24px rgba(201, 242, 122, 0.35);
}

.timeline-content {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(245, 241, 232, 0.045);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.timeline-content:hover {
    transform: translateX(4px);
    border-color: rgba(84, 214, 197, 0.36);
    background: rgba(245, 241, 232, 0.06);
}

.timeline-date,
.experience-date {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timeline-content h3 {
    margin: 10px 0 8px;
    font-size: 24px;
}

.timeline-degree {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 12px;
}

.timeline-degree span {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--accent-3);
    background: rgba(234, 219, 191, 0.08);
    font-size: 12px;
    font-weight: 900;
}

.timeline-content p {
    margin: 0 0 12px;
    color: var(--soft);
    line-height: 1.7;
}

.timeline-content small {
    color: var(--muted);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.skill-card {
    position: relative;
    min-height: 184px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(245, 241, 232, 0.065), rgba(245, 241, 232, 0.025));
    overflow: hidden;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.skill-card::before {
    content: "";
    position: absolute;
    inset: auto -30% -45% 20%;
    height: 90px;
    background: radial-gradient(circle, rgba(84, 214, 197, 0.18), transparent 70%);
    transition: transform 260ms ease, opacity 260ms ease;
    opacity: 0;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 242, 122, 0.32);
}

.skill-card:hover::before {
    opacity: 1;
    transform: translateY(-16px);
}

.skill-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #07100d;
    background: var(--accent-3);
    font-weight: 900;
    overflow: hidden;
}

.skill-logo,
.social-logo {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.skill-card h3 {
    margin: 0;
    font-size: 20px;
}

.skill-card p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.skill-meter {
    height: 6px;
    border-radius: 999px;
    background: rgba(245, 241, 232, 0.10);
    overflow: hidden;
}

.skill-meter span {
    display: block;
    width: var(--level);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.experience-list {
    display: grid;
    gap: 16px;
}

.experience-card {
    display: grid;
    grid-template-columns: 0.52fr 1fr;
    gap: 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(245, 241, 232, 0.045);
}

.experience-card h3 {
    margin: 10px 0 8px;
    font-size: 24px;
}

.experience-card strong {
    color: var(--accent-3);
}

.experience-card p,
.experience-card small {
    margin: 0;
    color: var(--soft);
    line-height: 1.75;
    white-space: pre-line;
}

.experience-card small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
}

.social-section {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.8fr);
    gap: 44px;
    align-items: center;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}

.social-card {
    min-height: 116px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(245, 241, 232, 0.045);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.social-card:hover {
    transform: translateY(-4px);
    border-color: rgba(84, 214, 197, 0.38);
    background: rgba(245, 241, 232, 0.07);
}

.social-card span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #07100d;
    background: var(--accent);
    font-weight: 900;
    overflow: hidden;
}

.social-card strong {
    font-size: 18px;
}

.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 0.74fr) minmax(320px, 0.7fr);
    gap: 28px;
    padding: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 18%, rgba(201, 242, 122, 0.12), transparent 24rem),
        rgba(245, 241, 232, 0.055);
    box-shadow: var(--shadow);
}

.contact-info {
    padding: 18px 8px 18px 8px;
}

.contact-info p {
    max-width: 620px;
}

.direct-contact {
    display: grid;
    gap: 14px;
    align-content: center;
}

.contact-method {
    min-height: 150px;
    display: grid;
    align-content: space-between;
    gap: 26px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(8, 10, 11, 0.52);
    overflow: hidden;
    position: relative;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.contact-method::before {
    content: "";
    position: absolute;
    inset: auto -10% -60% 30%;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(84, 214, 197, 0.22), transparent 68%);
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
}

.contact-method:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 242, 122, 0.38);
    background: rgba(245, 241, 232, 0.07);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.contact-method:hover::before {
    opacity: 1;
    transform: translateY(-24px);
}

.contact-method span {
    position: relative;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-method strong {
    position: relative;
    color: var(--text);
    font-size: 26px;
    line-height: 1.22;
    word-break: break-word;
}

.site-footer {
    width: min(var(--max), calc(100vw - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(180px, 0.38fr);
    gap: 28px;
    align-items: start;
    padding: 42px 0 54px;
    border-top: 1px solid var(--line);
}

.site-footer p {
    max-width: 460px;
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 10px;
}

.footer-links a,
.footer-contact span {
    color: var(--muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 700ms cubic-bezier(.2, .9, .2, 1), transform 700ms cubic-bezier(.2, .9, .2, 1);
    transition-delay: var(--delay, 0ms);
}

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

/* Admin */
.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(84, 214, 197, 0.12), transparent 34rem),
        radial-gradient(circle at 92% 18%, rgba(201, 242, 122, 0.10), transparent 30rem),
        var(--bg);
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
}

.login-card {
    width: min(460px, 100%);
    display: grid;
    gap: 20px;
    padding: 26px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: rgba(15, 20, 18, 0.86);
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 38px;
}

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

.login-help {
    font-size: 13px;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 10, 11, 0.82);
    backdrop-filter: blur(22px);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.admin-link:hover {
    color: var(--accent);
}

.admin-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 26px;
    width: min(1440px, calc(100vw - 36px));
    margin: 24px auto 70px;
}

.admin-sidebar {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(245, 241, 232, 0.045);
}

.admin-sidebar nav {
    display: grid;
    gap: 4px;
}

.admin-sidebar a {
    padding: 12px 13px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    transition: color 160ms ease, background 160ms ease;
}

.admin-sidebar a:hover {
    color: var(--text);
    background: rgba(245, 241, 232, 0.08);
}

.admin-main {
    display: grid;
    gap: 22px;
}

.admin-section {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(245, 241, 232, 0.045);
    scroll-margin-top: 95px;
}

.admin-heading {
    margin-bottom: 20px;
}

.admin-heading.split {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.admin-heading h1,
.admin-heading h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.admin-heading span {
    color: var(--muted);
    font-size: 14px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.stat-grid div {
    min-height: 104px;
    display: grid;
    align-content: space-between;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 10, 11, 0.36);
}

.stat-grid span {
    color: var(--accent);
    font-size: 30px;
    font-weight: 900;
}

.stat-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.admin-form {
    display: grid;
    gap: 16px;
}

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

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

.field {
    display: grid;
    gap: 7px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.field b {
    color: var(--accent);
    margin-left: 4px;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: rgba(8, 10, 11, 0.44);
    padding: 12px 13px;
    outline: none;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(201, 242, 122, 0.45);
    box-shadow: 0 0 0 4px rgba(201, 242, 122, 0.07);
}

.upload-field {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 10, 11, 0.28);
}

.upload-field input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.upload-field small {
    color: var(--muted);
    line-height: 1.5;
}

.upload-preview {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(245, 241, 232, 0.06);
}

.check-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    align-self: end;
}

.check-field {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--soft);
    background: rgba(8, 10, 11, 0.32);
    font-size: 13px;
    font-weight: 800;
}

.check-field input {
    accent-color: var(--accent);
}

.admin-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(245, 241, 232, 0.06);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.admin-button:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
}

.admin-button.primary {
    color: #07100d;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.admin-button.ghost {
    background: transparent;
}

.admin-button.danger {
    color: #fff;
    border-color: rgba(255, 111, 97, 0.4);
    background: rgba(255, 111, 97, 0.12);
}

.admin-button.full {
    width: 100%;
}

.editor-item {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 10, 11, 0.32);
    overflow: hidden;
}

.editor-item summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    cursor: pointer;
    color: var(--text);
    font-weight: 900;
}

.editor-item summary small {
    color: var(--muted);
    font-weight: 700;
    word-break: break-word;
}

.editor-item .admin-form,
.editor-item > form:not(.admin-form) {
    padding: 0 16px 16px;
}

.flash-stack {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.flash {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--soft);
    background: rgba(245, 241, 232, 0.06);
    font-size: 14px;
}

.flash.success {
    border-color: rgba(201, 242, 122, 0.32);
    color: var(--accent);
}

.flash.error {
    border-color: rgba(255, 111, 97, 0.42);
    color: var(--danger);
}

.message-list {
    display: grid;
    gap: 12px;
}

.message-card,
.empty-state {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 10, 11, 0.32);
}

.message-card.unread {
    border-color: rgba(201, 242, 122, 0.42);
}

.message-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.message-head div {
    display: grid;
    gap: 5px;
}

.message-head span,
.message-head small,
.empty-state {
    color: var(--muted);
}

.message-card p {
    margin: 0;
    color: var(--soft);
    line-height: 1.7;
    white-space: pre-line;
}

.message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

@keyframes riseIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -12px, 0);
    }
}

@keyframes floatOrb {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(3rem, -2rem, 0) scale(1.1);
    }
}

@keyframes meshDrift {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-18deg);
    }
    50% {
        transform: translate3d(-3rem, 2rem, 0) rotate(-12deg);
    }
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: 1fr 0.82fr;
        gap: 36px;
    }

    .hero-title {
        font-size: 54px;
    }

    .skill-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 920px) {
    .nav-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .nav-panel {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 84px;
        display: grid;
        gap: 12px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(8, 10, 11, 0.94);
        backdrop-filter: blur(24px);
        box-shadow: var(--shadow);
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 220ms ease, transform 220ms ease;
    }

    .nav-panel.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .nav-links a {
        padding: 13px;
        background: rgba(245, 241, 232, 0.045);
    }

    .language-switch {
        width: fit-content;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 58px;
    }

    .hero-visual {
        min-height: 620px;
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .section-topline,
    .section-topline.compact,
    .about-grid,
    .social-section,
    .contact-card,
    .experience-card,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card:nth-child(1),
    .project-card:nth-child(2) {
        grid-column: span 6;
    }

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

    .strengths-panel {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        overflow-x: auto;
    }

    .admin-sidebar nav {
        display: flex;
        min-width: max-content;
    }

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

@media (max-width: 680px) {
    .site-header {
        padding: 10px 10px 0;
    }

    .navbar,
    .section-shell,
    .site-footer {
        width: min(100% - 24px, var(--max));
    }

    .brand-name {
        max-width: 150px;
    }

    .hero {
        padding: 42px 0 60px;
        gap: 30px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-title small {
        font-size: 19px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 500px;
    }

    .portrait-frame {
        inset: 0 0 58px 0;
    }

    .signature-card {
        width: calc(100% - 22px);
        right: 11px;
    }

    .about,
    .projects,
    .education,
    .skills,
    .experience,
    .social-section,
    .contact {
        padding: 62px 0;
    }

    .section-heading,
    .timeline-content,
    .contact-card {
        padding: 20px;
    }

    .section-heading h2,
    .section-topline h2,
    .social-copy h2,
    .contact-info h2 {
        font-size: 31px;
    }

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

    .project-card,
    .project-card:nth-child(1),
    .project-card:nth-child(2) {
        grid-column: 1;
    }

    .project-thumb,
    .project-card:nth-child(1) .project-thumb,
    .project-card:nth-child(2) .project-thumb {
        height: 235px;
    }

    .contact-card {
        border-radius: 20px;
    }

    .contact-method {
        min-height: 128px;
        padding: 18px;
    }

    .contact-method strong {
        font-size: 21px;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-layout {
        width: min(100% - 20px, 1440px);
        margin-top: 14px;
    }

    .admin-section {
        padding: 16px;
        border-radius: 18px;
    }

    .admin-heading.split,
    .message-head {
        display: grid;
    }

    .stat-grid,
    .form-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .editor-item summary {
        display: grid;
    }

    .login-card {
        padding: 20px;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 34px;
    }

    .nav-links {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 455px;
    }

    .section-heading h2,
    .section-topline h2,
    .social-copy h2,
    .contact-info h2 {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }

    .reveal,
    .reveal-text {
        opacity: 1;
        transform: none;
    }
}
