:root {
    --bg: #0c0b12;
    --surface: #14121d;
    --surface-2: #1b1827;
    --line: #2b2638;
    --text: #f3f0fb;
    --muted: #aaa3bb;
    --purple: #9b5cff;
    --purple-2: #7138d4;
    --cyan: #8e7bff;
    --green: #65d6a1;
    --radius: 20px;
    --shadow: 0 24px 70px #0005;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.top-glow {
    position: absolute;
    inset: 0 0 auto;
    height: 390px;
    background:
        radial-gradient(ellipse at 75% -20%, #5925a866, transparent 60%),
        radial-gradient(ellipse at 15% 5%, #43227644, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.site-header {
    height: 82px;
    max-width: 1200px;
    padding: 0 28px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ffffff0c;
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--purple), #5428a7);
    box-shadow: 0 5px 22px #8b48ff44;
}

.accent {
    color: #b894ff;
}

.nav {
    display: flex;
    align-items: center;
    gap: 27px;
    color: var(--muted);
    font-size: 13px;
}

.nav a:hover,
.hero-socials a:hover {
    color: #fff;
}

.menu-toggle {
    display: none;
    color: var(--text);
    background: none;
    border: 0;
    font-size: 24px;
}

.button {
    border: 1px solid transparent;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(120deg, #9854fa, #7139d1);
    color: white;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 28px #783de533;
    cursor: pointer;
    transition:
        transform 0.2s,
        filter 0.2s;
}

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

.button-small {
    padding: 8px 13px;
    font-size: 12px;
}

.button-outline {
    background: transparent;
    border-color: #4a405e;
    box-shadow: none;
    color: #e9e2f9;
}

.section-wrap {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    min-height: 570px;
    padding-top: 90px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 54px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    letter-spacing: 1.7px;
    font-weight: 800;
    color: #b99aff;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #70e2a9;
    box-shadow: 0 0 12px #70e2a9;
}

.hero h1 {
    font-size: clamp(42px, 5.6vw, 68px);
    line-height: 1.08;
    letter-spacing: -3.3px;
    margin: 22px 0;
}

.gradient-text {
    background: linear-gradient(100deg, #d5b9ff 0%, #a67aff 45%, #8a7dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 490px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-socials {
    display: flex;
    gap: 22px;
    margin-top: 30px;
    font-size: 12px;
    color: #c5bdd5;
}

.hero-card {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
}

.code-window {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    background: #171421ef;
    border: 1px solid #ffffff1a;
    border-radius: 18px;
    box-shadow: var(--shadow);
    transform: rotate(1.5deg);
    overflow: hidden;
}

.window-bar {
    height: 44px;
    border-bottom: 1px solid #ffffff12;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    color: #797187;
    font-size: 10px;
}

.window-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fb6b76;
}

.window-bar i:nth-child(2) {
    background: #e8bd57;
}

.window-bar i:nth-child(3) {
    background: #61d6a0;
}

.window-bar span {
    margin-left: 12px;
}

.code-window pre {
    padding: 15px 25px 27px;
    font-size: 13px;
    line-height: 2;
    color: #d8d1e9;
    overflow: auto;
}

.code-purple {
    color: #c59bff;
}

.code-green {
    color: #95e6b9;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.orb-one {
    width: 250px;
    height: 250px;
    right: 5%;
    top: 8%;
    background: radial-gradient(circle, #7e40dd33, transparent 70%);
}

.orb-two {
    width: 180px;
    height: 180px;
    left: 3%;
    bottom: 1%;
    background: radial-gradient(circle, #6e51e833, transparent 70%);
}

.floating-chip {
    position: absolute;
    z-index: 2;
    border: 1px solid #ffffff1b;
    background: #201b2cef;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 12px;
    font-weight: 700;
}

.chip-a {
    top: 14%;
    right: 0;
}

.chip-b {
    bottom: 12%;
    left: 0;
}

.about-section {
    padding: 70px 0 95px;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2,
.contact-panel h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin: 12px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-copy {
    color: #c1bacf;
    font-size: 14px;
    line-height: 1.9;
}

.about-copy .muted {
    font-size: 12px;
}

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

.stat-card {
    padding: 20px;
    background: linear-gradient(145deg, #1a1725, #121019);
    border: 1px solid var(--line);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-icon {
    color: #b792ff;
    font-size: 23px;
    margin-bottom: 7px;
}

.stat-card strong {
    font-size: 14px;
}

.stat-card > span:last-child {
    font-size: 11px;
    color: var(--muted);
}

#projetos {
    padding: 65px 0 95px;
}

.projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.projects-heading p {
    font-size: 13px;
    margin-bottom: 0;
}

.project-count {
    font-size: 11px;
    color: var(--muted);
    padding-bottom: 7px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 180px 180px 160px;
    gap: 10px;
    margin: 28px 0 24px;
}

.search-field,
.filter-bar select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.login-form input {
    min-width: 0;
    background: #15121e;
    border: 1px solid #302a40;
    color: var(--text);
    border-radius: 11px;
    padding: 11px 13px;
    outline: none;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-field span {
    font-size: 23px;
    color: #a98aef;
}

.search-field input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font-size: 12px;
}

.filter-bar select {
    font-size: 11px;
}

.search-field:focus-within,
.filter-bar select:focus,
.admin-form input:focus,
.admin-form textarea:focus {
    border-color: #9b5cff;
}

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition:
        transform 0.22s,
        border-color 0.22s;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #7350a6;
}

.project-cover {
    height: 175px;
    position: relative;
    background: #211832;
    overflow: hidden;
}

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

.project-card:hover .project-cover img {
    transform: scale(1.04);
}

.cover-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 45px;
    color: #bca0ff;
    background:
        radial-gradient(circle at 70% 20%, #7046a866, transparent 40%),
        linear-gradient(135deg, #1d172b, #30204a);
}

.featured-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #17121edb;
    border: 1px solid #ffffff1c;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 9px;
    color: #d4baff;
}

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

.project-category {
    font-size: 10px;
    color: #b99aff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-body h3 {
    font-size: 17px;
    line-height: 1.4;
    margin: 7px 0;
}

.project-body p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0 0 15px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 5px;
}

.tag {
    font-size: 9px;
    color: #d0c3e7;
    background: #282136;
    border: 1px solid #3a304c;
    padding: 5px 8px;
    border-radius: 6px;
}

.project-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.project-actions a,
.project-actions button {
    border: 1px solid #3b314c;
    background: transparent;
    color: #e6ddf4;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.project-actions .details-button {
    background: #8b4be51b;
    border-color: #7042a9;
    color: #c7a8ff;
}

.empty-state,
.loading-state,
.error-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 50px 20px;
    border: 1px dashed #393047;
    border-radius: 14px;
    color: var(--muted);
    font-size: 13px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 26px;
}

.page-button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 7px 12px;
    cursor: pointer;
}

.page-button.active {
    background: #7540c9;
    border-color: #7540c9;
}

.tech-section {
    padding: 65px 0 100px;
}

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

.tech-item {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 11px;
    color: #d2cbdf;
}

.tech-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 800;
    background: #272136;
}

.tech-icon.java {
    color: #ffad68;
}

.tech-icon.python {
    color: #ffd45d;
}

.tech-icon.html {
    background: #452319;
    color: #ff865e;
}

.tech-icon.css {
    background: #173553;
    color: #71b8ff;
}

.tech-icon.js {
    background: #f4db58;
    color: #211d0c;
}

.tech-icon.spring {
    color: #7cdb80;
}

.tech-icon.sql {
    color: #7ec4ff;
}

.tech-icon.git {
    color: #ff8e8e;
}

.contact-section {
    padding: 20px 0 95px;
}

.contact-panel {
    padding: 42px;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 55px;
    border: 1px solid #4b3766;
    border-radius: 22px;
    background: radial-gradient(ellipse at 0 0, #6636a52c, transparent 60%), #15121e;
}

.contact-panel h2 {
    max-width: 430px;
}

.contact-panel p {
    font-size: 13px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.contact-link {
    display: grid;
    grid-template-columns: 35px 1fr 18px;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #332b42;
    border-radius: 12px;
    background: #0f0d15;
}

.contact-link > span:first-child {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #30213f;
    color: #c6a4ff;
    font-weight: 800;
}

.contact-link small,
.contact-link strong {
    display: block;
}

.contact-link small {
    font-size: 9px;
    color: var(--muted);
}

.contact-link strong {
    font-size: 11px;
    overflow-wrap: anywhere;
}

.contact-link b {
    color: #a98bdf;
}

.site-footer {
    max-width: 1100px;
    width: calc(100% - 48px);
    margin: auto;
    min-height: 90px;
    border-top: 1px solid #ffffff12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 10px;
}

.site-footer .brand {
    color: var(--text);
    font-size: 15px;
}

.site-footer .brand-mark {
    width: 28px;
    height: 28px;
}

.site-footer > a:last-child {
    color: #c5a4ff;
}

.modal {
    width: min(760px, calc(100% - 28px));
    max-height: 90vh;
    overflow: auto;
    background: #15121e;
    color: var(--text);
    border: 1px solid #45365a;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 30px 100px #000b;
}

.modal::backdrop {
    background: #06040bd9;
    backdrop-filter: blur(5px);
}

.modal-close {
    position: sticky;
    float: right;
    top: 0;
    border: 1px solid var(--line);
    background: #211b2d;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
}

.project-modal img {
    width: 100%;
    max-height: 330px;
    object-fit: cover;
    border-radius: 12px;
    margin: 12px 0;
}

.project-modal h2 {
    font-size: 28px;
    margin: 10px 0;
}

.project-modal p {
    color: #c2b9d1;
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.9;
}

.admin-modal {
    width: min(800px, calc(100% - 28px));
}

.admin-title {
    font-size: 26px;
    margin: 3px 0;
}

.admin-subtitle {
    color: var(--muted);
    font-size: 12px;
}

.login-form,
.admin-form {
    display: grid;
    gap: 13px;
    margin-top: 22px;
}

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

.admin-form label,
.login-form label {
    display: grid;
    gap: 6px;
    color: #cfc5de;
    font-size: 11px;
}

.admin-form .full {
    grid-column: 1/-1;
}

.admin-form textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-form input[type="checkbox"] {
    width: auto;
    justify-self: start;
}

.admin-form .check-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.admin-list {
    margin-top: 25px;
    display: grid;
    gap: 8px;
}

.admin-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.admin-row strong {
    font-size: 12px;
}

.admin-row small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.admin-row-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.admin-row-actions button {
    border: 1px solid var(--line);
    background: #211b2d;
    color: #e8ddf8;
    padding: 6px 9px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 10px;
}

.admin-row-actions .danger {
    color: #ff9aab;
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
    max-width: min(400px, calc(100% - 44px));
    padding: 13px 17px;
    border-radius: 11px;
    background: #2b2140;
    border: 1px solid #7453a0;
    color: #fff;
    font-size: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: 0.2s;
}

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

.toast.error {
    border-color: #b84d68;
    background: #351722;
}

@media (max-width: 900px) {
    .hero {
        gap: 25px;
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    .about-grid {
        gap: 30px;
    }

    .contact-panel {
        gap: 25px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    body,
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container,
    main,
    section {
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }

    .site-header {
        height: 70px;
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        align-items: stretch;
        background: #171320;
        border: 1px solid var(--line);
        border-radius: 14px;
        display: none;
        flex-direction: column;
        gap: 16px;
        left: 12px;
        padding: 18px;
        position: absolute;
        right: 12px;
        top: 70px;
        z-index: 5;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        text-align: center;
    }

    .section-wrap {
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
    }

    .about-grid,
    .contact-panel,
    .hero {
        box-sizing: border-box;
        width: 100%;
    }

    .hero {
        gap: 10px;
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 65px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2.4px;
    }

    .hero-lead {
        font-size: 14px;
    }

    .hero-card {
        min-height: 300px;
    }

    .code-window {
        width: 95%;
    }

    .code-window pre {
        font-size: 11px;
    }

    .about-section,
    #projetos,
    .tech-section {
        padding: 55px 0;
    }

    .about-grid {
        gap: 25px;
        grid-template-columns: 1fr;
    }

    .projects-heading {
        align-items: start;
        flex-direction: column;
        gap: 12px;
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar select {
        width: 100%;
    }

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

    .project-cover {
        height: 205px;
    }

    .tech-grid {
        gap: 8px;
        grid-template-columns: repeat(4, 1fr);
    }

    .tech-item {
        font-size: 10px;
        min-height: 95px;
    }

    .tech-icon {
        height: 37px;
        width: 37px;
    }

    .contact-section {
        padding-bottom: 60px;
    }

    .contact-panel {
        gap: 18px;
        grid-template-columns: 1fr;
        padding: 23px;
    }

    .contact-panel h2 {
        font-size: 30px;
    }

    .site-footer {
        flex-wrap: wrap;
        padding: 22px 0;
        width: calc(100% - 36px);
    }

    .site-footer > span {
        order: 3;
        width: 100%;
    }

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

    .admin-form .full {
        grid-column: auto;
    }

    .modal {
        padding: 20px;
    }

    .admin-row {
        align-items: flex-start;
    }

    .admin-row-actions {
        flex-direction: column;
    }

    .about-grid,
    .about-section,
    .about-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }

    .about-copy {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .about-image {
        width: 300px !important;
        height: 300px !important;
        max-width: 100% !important;
        aspect-ratio: 1/1 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }

    .about-image img.profile-img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        display: block;
    }
}

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

.tech-icon .tech-logo {
    display: block;
    width: 30px;
    height: 30px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tech-icon.git {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.tech-icon.git .tech-logo {
    width: 17px;
    height: 17px;
}

.tech-icon.git .github-logo {
    filter: brightness(0) invert(1);
}

.filter-bar select {
    appearance: none;
    -webkit-appearance: none;
    color-scheme: dark;
    background-color: #15121e;
    background-image:
        linear-gradient(45deg, transparent 50%, #a98aef 50%),
        linear-gradient(135deg, #a98aef 50%, transparent 50%);
    background-size: 5px 5px;
    background-repeat: no-repeat;
    background-position:
        right 18px center,
        right 13px center;
    padding: 11px 36px 11px 13px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.filter-bar select:hover {
    border-color: #514366;
    background-color: #191522;
}

.filter-bar select:focus-visible,
.search-field:focus-within {
    border-color: #9868e8;
    box-shadow: 0 0 0 3px #8b5cf629;
}

.filter-bar select option {
    background: #15121e;
    color: #eee9f7;
}

.filter-bar select option:checked {
    background: #332547;
    color: #fff;
}

.code-window {
    background: rgba(20, 17, 29, 0.94);
    border-color: rgba(210, 190, 255, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.window-bar {
    gap: 7px;
}

.window-bar .window-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 6px;
}

.window-bar .window-badge {
    flex: none;
    border: 1px solid rgba(190, 164, 240, 0.17);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.09);
    color: #d9c9f8;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.window-bar .window-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(102, 187, 132, 0.08);
    border-color: rgba(102, 187, 132, 0.18);
    color: #b8dec2;
}

.window-bar .window-badge-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #75c891;
    box-shadow: 0 0 8px rgba(117, 200, 145, 0.4);
}

.project-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(190, 164, 240, 0.15);
    border-radius: 999px;
    background: rgba(25, 21, 36, 0.72);
    padding: 6px 11px;
    color: #c9bddb;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

.project-count::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: #a98aef;
    box-shadow: 0 0 8px rgba(169, 138, 239, 0.45);
}

.project-count.is-unavailable {
    border-color: rgba(232, 170, 112, 0.2);
    background: rgba(44, 31, 24, 0.55);
    color: #d9b99c;
}

.project-count.is-unavailable::before {
    background: #e3a66f;
    box-shadow: 0 0 8px rgba(227, 166, 111, 0.4);
}

@media (max-width: 420px) {
    .window-bar {
        gap: 5px;
        padding: 0 11px;
    }

    .window-bar .window-badge {
        padding: 4px 7px;
        font-size: 9px;
    }

    .window-bar .window-title {
        margin-left: 3px;
    }
}

select {
    color-scheme: dark;
}

.filter-bar select option:hover {
    background: #332547;
    color: #fff;
}

.contact-brand-icon {
    display: block;
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.brand {
    gap: 8px;
    align-items: center;
}

.brand-mark {
    display: block;
    flex: none;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #a855f7;
    transition:
        opacity 0.2s ease,
        filter 0.2s ease;
}

.brand-mark path {
    stroke-width: 2.5;
}

.brand:hover .brand-mark {
    opacity: 0.85;
    filter: drop-shadow(0 0 6px #a855f780);
}

.brand .accent {
    color: #a855f7;
}

.site-footer .brand-mark {
    width: 24px;
    height: 24px;
}

.brand-img {
    width: 60px;
    height: 30px;
    border-radius: 0%;
    object-fit: cover;
}

.about-image {
    transform: scale(0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
    border: 2px solid #7c3aed;
}

.project-cover video.project-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#projectDetails video.modal-video-preview {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    background: #000;
    margin-bottom: 1rem;
}








.orb-one {
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-two {
    animation: orbFloat 10s 0.8s ease-in-out infinite reverse;
}

.chip-a {
    animation: chipFloat 5.2s ease-in-out infinite;
}

.chip-b {
    animation: chipFloat 6s 0.4s ease-in-out infinite reverse;
}

.status-dot {
    animation: statusPulse 2.2s ease-in-out infinite;
}

.button {
    transition:
        transform 0.25s cubic-bezier(0.2, 0.75, 0.25, 1),
        filter 0.25s ease,
        box-shadow 0.25s ease;
}

.button:hover {
    box-shadow: 0 12px 34px #783de54a;
}

.button:active {
    transform: translateY(0) scale(0.98);
}

.button:focus-visible,
.project-actions a:focus-visible,
.project-actions button:focus-visible,
.page-button:focus-visible,
.admin-row-actions button:focus-visible,
.modal-close:focus-visible {
    outline: 2px solid #b894ff;
    outline-offset: 3px;
}

.stat-card {
    transition:
        transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1),
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.stat-card:nth-child(2) {
    animation-delay: 0.08s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.16s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.24s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: #65478d;
    box-shadow: 0 14px 35px #0003;
}

.project-card {
    transition:
        transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1),
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.project-card:nth-child(2) {
    animation-delay: 0.08s;
}

.project-card:nth-child(3) {
    animation-delay: 0.16s;
}

.project-card:nth-child(4) {
    animation-delay: 0.06s;
}

.project-card:nth-child(5) {
    animation-delay: 0.14s;
}

.project-card:nth-child(6) {
    animation-delay: 0.22s;
}

.project-card:hover {
    box-shadow: 0 16px 38px #0004;
}

.project-card:focus-within {
    border-color: #8f63c5;
}

.project-cover img,
.project-cover video.project-video-preview {
    transition:
        transform 0.55s cubic-bezier(0.2, 0.75, 0.25, 1),
        filter 0.4s ease;
}

.project-card:hover .project-cover img,
.project-card:hover .project-cover video.project-video-preview {
    transform: scale(1.055);
    filter: saturate(1.08);
}

.tech-item {
    transition:
        transform 0.25s cubic-bezier(0.2, 0.75, 0.25, 1),
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.tech-item:nth-child(2n) {
    animation-delay: 0.06s;
}

.tech-item:nth-child(3n) {
    animation-delay: 0.12s;
}

.tech-item:hover {
    transform: translateY(-4px);
    border-color: #5a426f;
    background-color: #191522;
    box-shadow: 0 10px 25px #0003;
}

.tech-icon {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.tech-item:hover .tech-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 18px #8b5cf626;
}

.contact-link {
    transition:
        transform 0.25s cubic-bezier(0.2, 0.75, 0.25, 1),
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.contact-link:hover {
    transform: translateX(4px);
    border-color: #65478d;
    background-color: #15111f;
}

.contact-link:focus-visible {
    outline: 2px solid #b894ff;
    outline-offset: 3px;
}

.search-field,
.filter-bar select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.login-form input {
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
}

.nav.open {
    animation: navEnter 0.25s cubic-bezier(0.2, 0.75, 0.25, 1) both;
    transform-origin: top center;
}

.modal[open] {
    animation: modalEnter 0.3s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.modal[open]::backdrop {
    animation: backdropFade 0.25s ease both;
}

.page-button {
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.page-button:hover {
    transform: translateY(-2px);
    border-color: #70529a;
}

.page-button:active {
    transform: translateY(0) scale(0.97);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

@keyframes codeWindowEnter {
    from {
        opacity: 0;
        transform: translateY(22px) rotate(0deg) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(1.5deg) scale(1);
    }
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -12px, 0);
    }
}

@keyframes chipFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 12px #70e2a9;
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 5px #70e2a9;
    }
}

@keyframes navEnter {
    from {
        opacity: 0;
        transform: translateY(-6px) scaleY(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes backdropFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
.tech-item .tech-icon.vscode img {
    width: 30px;
    height: 30px;
}
.hero,
.about-grid,
.project-grid,
.stats-grid,
.contact-panel {
    align-items: start;
}

.hero-copy,
.hero-card,
.about-copy,
.project-card,
.stat-card,
.contact-links {
    align-self: start;
    height: fit-content;
}

.project-body {
    flex: initial;
}

.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: radial-gradient(circle at 50% 40%, #29193f, #0c0b12 65%);
    animation: splashExit 600ms 850ms ease both;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    animation: splashEnter 650ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.splash-logo {
    display: block;
    width: clamp(120px, 24vw, 180px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px #9b5cff55);
}

.splash-name {
    font-size: 18px;
    font-weight: 700;
}

.splash-caption {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2px;
}

.splash-track {
    width: 150px;
    height: 3px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 999px;
    background: #ffffff12;
}

.splash-track span {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left;
    background: linear-gradient(90deg, var(--purple), #d5b9ff);
    animation: splashProgress 1100ms ease both;
}

.reveal-pending {
    opacity: 0;
}

.reveal-pending:focus-within {
    opacity: 1;
}

.reveal-enter {
    animation: revealUp 650ms cubic-bezier(0.2, 0.75, 0.25, 1) backwards;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes revealUp {
    from {
        opacity: 0;
        translate: 0 22px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes splashEnter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes splashProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes splashExit {
    from {
        opacity: 1;
        visibility: visible;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .splash-screen {
        display: none;
    }

    .reveal-pending,
    .reveal-enter {
        opacity: 1;
        translate: none;
        animation: none;
    }
}
